You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SystemRelationship support on ComponentType and ComponentTypeInput (#610)
Mirrors the existing OwnerRelationship implementation 1:1 to expose the
public GraphQL `systemRelationship` field on ComponentType and the
corresponding argument on ComponentTypeInput.
Co-authored-by: Aditya Singh <aditya@opslevel.com>
Copy file name to clipboardExpand all lines: input.go
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -700,12 +700,13 @@ type ComponentTypeIconInput struct {
700
700
701
701
// ComponentTypeInput Specifies the input fields used to create a component type
702
702
typeComponentTypeInputstruct {
703
-
Alias*Nullable[string] `json:"alias,omitempty" yaml:"alias,omitempty" example:"example_value"`// The unique alias of the component type (Optional)
704
-
Description*Nullable[string] `json:"description,omitempty" yaml:"description,omitempty" example:"example_value"`// The description of the component type (Optional)
705
-
Icon*ComponentTypeIconInput`json:"icon,omitempty" yaml:"icon,omitempty"`// The icon associated with the component type (Optional)
706
-
Name*Nullable[string] `json:"name,omitempty" yaml:"name,omitempty" example:"example_value"`// The unique name of the component type (Optional)
707
-
OwnerRelationship*OwnerRelationshipInput`json:"ownerRelationship,omitempty" yaml:"ownerRelationship,omitempty"`// The owner relationship for the component type (Optional)
708
-
Properties*[]ComponentTypePropertyDefinitionInput`json:"properties,omitempty" yaml:"properties,omitempty" example:"[]"`// A list of property definitions for the component type (Optional)
703
+
Alias*Nullable[string] `json:"alias,omitempty" yaml:"alias,omitempty" example:"example_value"`// The unique alias of the component type (Optional)
704
+
Description*Nullable[string] `json:"description,omitempty" yaml:"description,omitempty" example:"example_value"`// The description of the component type (Optional)
705
+
Icon*ComponentTypeIconInput`json:"icon,omitempty" yaml:"icon,omitempty"`// The icon associated with the component type (Optional)
706
+
Name*Nullable[string] `json:"name,omitempty" yaml:"name,omitempty" example:"example_value"`// The unique name of the component type (Optional)
707
+
OwnerRelationship*OwnerRelationshipInput`json:"ownerRelationship,omitempty" yaml:"ownerRelationship,omitempty"`// The owner relationship for the component type (Optional)
708
+
SystemRelationship*SystemRelationshipInput`json:"systemRelationship,omitempty" yaml:"systemRelationship,omitempty"`// The system relationship for the component type (Optional)
709
+
Properties*[]ComponentTypePropertyDefinitionInput`json:"properties,omitempty" yaml:"properties,omitempty" example:"[]"`// A list of property definitions for the component type (Optional)
709
710
}
710
711
711
712
// ComponentTypePropertyDefinitionInput The input for defining a property
@@ -998,6 +999,11 @@ type OwnerRelationshipInput struct {
998
999
ManagementRules*[]ManagementRuleInput`json:"managementRules,omitempty" yaml:"managementRules,omitempty"`// The management rules for the relationship (Optional)
999
1000
}
1000
1001
1002
+
// SystemRelationshipInput The input for defining the system relationship for a component type
1003
+
typeSystemRelationshipInputstruct {
1004
+
ManagementRules*[]ManagementRuleInput`json:"managementRules,omitempty" yaml:"managementRules,omitempty"`// The management rules for the relationship (Optional)
1005
+
}
1006
+
1001
1007
// PayloadFilterInput Input to be used to filter types
1002
1008
typePayloadFilterInputstruct {
1003
1009
Arg*Nullable[string] `json:"arg,omitempty" yaml:"arg,omitempty" example:"example_value"`// Value to be filtered (Optional)
0 commit comments