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
Copy file name to clipboardExpand all lines: input.go
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -987,9 +987,26 @@ type PropertyInput struct {
987
987
988
988
// RelationshipDefinition A source, target and relationship type specifying a relationship between two resources
989
989
typeRelationshipDefinitionstruct {
990
-
SourceIdentifierInput`json:"source" yaml:"source"`// The resource that is the source of the relationship. alias is ambiguous in this context and is not supported. Please supply an id (Required)
991
-
TargetIdentifierInput`json:"target" yaml:"target"`// The resource that is the target of the relationship. alias is ambiguous in this context and is not supported. Please supply an id (Required)
992
-
TypeRelationshipTypeEnum`json:"type" yaml:"type" example:"belongs_to"`// The type of the relationship between source and target (Required)
990
+
RelationshipDefinition*IdentifierInput`json:"relationshipDefinition,omitempty" yaml:"relationshipDefinition,omitempty"`// A dynamic definition that specifies how the source and target are related (Optional)
991
+
SourceIdentifierInput`json:"source" yaml:"source"`// The resource that is the source of the relationship (Required)
992
+
TargetIdentifierInput`json:"target" yaml:"target"`// The resource that is the target of the relationship (Required)
993
+
TypeRelationshipTypeEnum`json:"type" yaml:"type" example:"belongs_to"`// The type of the relationship between source and target (Required)
994
+
}
995
+
996
+
// RelationshipDefinitionInput The input for defining a relationship on a component type
997
+
typeRelationshipDefinitionInputstruct {
998
+
Alias*string`json:"alias,omitempty" yaml:"alias,omitempty" example:"example_value"`// The unique identifier of the relationship (Optional)
999
+
ComponentType*IdentifierInput`json:"componentType,omitempty" yaml:"componentType,omitempty"`// The component type to create the relationship on (Optional)
1000
+
Description*Nullable[string] `json:"description,omitempty" yaml:"description,omitempty" example:"example_value"`// The description of the relationship (Optional)
1001
+
Metadata*RelationshipDefinitionMetadataInput`json:"metadata,omitempty" yaml:"metadata,omitempty"`// The metadata of the relationship (Optional)
1002
+
Name*string`json:"name,omitempty" yaml:"name,omitempty" example:"example_value"`// The name of the relationship (Optional)
1003
+
}
1004
+
1005
+
// RelationshipDefinitionMetadataInput The metadata of the relationship
1006
+
typeRelationshipDefinitionMetadataInputstruct {
1007
+
AllowedTypes []string`json:"allowedTypes,omitempty" yaml:"allowedTypes,omitempty" example:"LIST_TODO"`// The aliases of which types this relationship can target. Valid values include any component type alias on your account, or `team` (Optional)
1008
+
MaxItems*int`json:"maxItems,omitempty" yaml:"maxItems,omitempty" example:"3"`// The maximum number of records this relationship can associate to the component type. Defaults to null (no maximum) (Optional)
1009
+
MinItems*int`json:"minItems,omitempty" yaml:"minItems,omitempty" example:"3"`// The minimum number of records this relationship must associate to the component type. Defaults to 0 (optional) (Optional)
993
1010
}
994
1011
995
1012
// RepositoryUpdateInput Specifies the input fields used to update a repository
Copy file name to clipboardExpand all lines: object.go
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -338,6 +338,30 @@ type Predicate struct {
338
338
Valuestring// The value of the condition (Optional)
339
339
}
340
340
341
+
// RelationshipDefinitionMetadata The metadata of the relationship
342
+
typeRelationshipDefinitionMetadatastruct {
343
+
AllowedTypes []string// The aliases of which types this relationship can target. Valid values include any component type alias on your account, or `team` (Required)
344
+
MaxItemsint// The maximum number of records this relationship can associate to the component type. Defaults to null (no maximum) (Optional)
345
+
MinItemsint// The minimum number of records this relationship must associate to the component type. Defaults to 0 (optional) (Optional)
346
+
}
347
+
348
+
// RelationshipDefinitionType A dynamic definition for a relationship between one catalog entity to another
349
+
typeRelationshipDefinitionTypestruct {
350
+
Aliasstring// The programmatic alias that can be used to reference the relationship in OpsLevel tooling (Required)
351
+
ComponentTypeComponentTypeId// The component type that the relationship belongs to (Required)
352
+
Descriptionstring// The long-form descripion of what the relationship represents (Optional)
353
+
IdID// The ID of the relationship definition (Required)
354
+
MetadataRelationshipDefinitionMetadata// JSON data that defines rules for how the relationship should be validated internally (Required)
355
+
Namestring// The human-readable name for a relationship (Required)
356
+
}
357
+
358
+
// RelationshipNode The relationship between two resources. A pair of source and destination resources
359
+
typeRelationshipNodestruct {
360
+
DestinationRelationshipResource// The catalog item that a relationship points to (Required)
361
+
IdID// The ID of the relationship (Required)
362
+
SourceRelationshipResource// The catalog item that a relationship stems from (Required)
363
+
}
364
+
341
365
// RepositoryPath The repository path used for this service
342
366
typeRepositoryPathstruct {
343
367
Hrefstring// The deep link to the repository path where the linked service's code exists (Required)
0 commit comments