Skip to content

Commit

Permalink
Regenerate client from commit 78095ca of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 26, 2022
1 parent 780e2cb commit bd75378
Show file tree
Hide file tree
Showing 36 changed files with 820 additions and 134 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-21 15:36:28.646928",
"spec_repo_commit": "a7ac3db"
"regenerated": "2022-01-26 11:27:56.238422",
"spec_repo_commit": "78095ca"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-21 15:36:28.658569",
"spec_repo_commit": "a7ac3db"
"regenerated": "2022-01-26 11:27:56.253124",
"spec_repo_commit": "78095ca"
}
}
}
32 changes: 27 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1216,10 +1216,10 @@ components:
description: The relationships the incident will have with other resources once
created.
properties:
commander:
$ref: '#/components/schemas/RelationshipToUser'
commander_user:
$ref: '#/components/schemas/NullableRelationshipToUser'
required:
- commander
- commander_user
type: object
IncidentCreateRequest:
description: Create request for an incident.
Expand Down Expand Up @@ -1476,7 +1476,7 @@ components:
description: The incident's relationships from a response.
properties:
commander_user:
$ref: '#/components/schemas/RelationshipToUser'
$ref: '#/components/schemas/NullableRelationshipToUser'
created_by_user:
$ref: '#/components/schemas/RelationshipToUser'
integrations:
Expand Down Expand Up @@ -1969,7 +1969,7 @@ components:
description: The incident's relationships for an update request.
properties:
commander_user:
$ref: '#/components/schemas/RelationshipToUser'
$ref: '#/components/schemas/NullableRelationshipToUser'
created_by_user:
$ref: '#/components/schemas/RelationshipToUser'
integrations:
Expand Down Expand Up @@ -3638,6 +3638,28 @@ components:
type: array
readOnly: true
type: object
NullableRelationshipToUser:
description: Relationship to user.
properties:
data:
$ref: '#/components/schemas/NullableRelationshipToUserData'
required:
- data
type: object
NullableRelationshipToUserData:
description: Relationship to user object.
nullable: true
properties:
id:
description: A unique identifier that represents the user.
example: 00000000-0000-0000-0000-000000000000
type: string
type:
$ref: '#/components/schemas/UsersType'
required:
- id
- type
type: object
Organization:
description: Organization object.
properties:
Expand Down
4 changes: 4 additions & 0 deletions api/v2/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ docs/MetricVolumesResponse.md
docs/MetricsAndMetricTagConfigurations.md
docs/MetricsAndMetricTagConfigurationsResponse.md
docs/MetricsApi.md
docs/NullableRelationshipToUser.md
docs/NullableRelationshipToUserData.md
docs/Organization.md
docs/OrganizationAttributes.md
docs/OrganizationsType.md
Expand Down Expand Up @@ -599,6 +601,8 @@ model_metric_volumes.go
model_metric_volumes_response.go
model_metrics_and_metric_tag_configurations.go
model_metrics_and_metric_tag_configurations_response.go
model_nullable_relationship_to_user.go
model_nullable_relationship_to_user_data.go
model_organization.go
model_organization_attributes.go
model_organizations_type.go
Expand Down
2 changes: 2 additions & 0 deletions api/v2/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ All URIs are relative to *https://api.datadoghq.com*
- [MetricVolumesResponse](docs/MetricVolumesResponse.md)
- [MetricsAndMetricTagConfigurations](docs/MetricsAndMetricTagConfigurations.md)
- [MetricsAndMetricTagConfigurationsResponse](docs/MetricsAndMetricTagConfigurationsResponse.md)
- [NullableRelationshipToUser](docs/NullableRelationshipToUser.md)
- [NullableRelationshipToUserData](docs/NullableRelationshipToUserData.md)
- [Organization](docs/Organization.md)
- [OrganizationAttributes](docs/OrganizationAttributes.md)
- [OrganizationsType](docs/OrganizationsType.md)
Expand Down
26 changes: 13 additions & 13 deletions api/v2/datadog/docs/IncidentCreateRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Properties

| Name | Type | Description | Notes |
| ------------- | ----------------------------------------------- | ----------- | ----- |
| **Commander** | [**RelationshipToUser**](RelationshipToUser.md) | |
| Name | Type | Description | Notes |
| ----------------- | --------------------------------------------------------------- | ----------- | ----- |
| **CommanderUser** | [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | |

## Methods

### NewIncidentCreateRelationships

`func NewIncidentCreateRelationships(commander RelationshipToUser) *IncidentCreateRelationships`
`func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships`

NewIncidentCreateRelationships instantiates a new IncidentCreateRelationships object.
This constructor will assign default values to properties that have it defined,
Expand All @@ -25,23 +25,23 @@ NewIncidentCreateRelationshipsWithDefaults instantiates a new IncidentCreateRela
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set.

### GetCommander
### GetCommanderUser

`func (o *IncidentCreateRelationships) GetCommander() RelationshipToUser`
`func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommander returns the Commander field if non-nil, zero value otherwise.
GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderOk
### GetCommanderUserOk

`func (o *IncidentCreateRelationships) GetCommanderOk() (*RelationshipToUser, bool)`
`func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderOk returns a tuple with the Commander field if it's non-nil, zero value otherwise
GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommander
### SetCommanderUser

`func (o *IncidentCreateRelationships) SetCommander(v RelationshipToUser)`
`func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommander sets Commander field to given value.
SetCommanderUser sets CommanderUser field to given value.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8 changes: 4 additions & 4 deletions api/v2/datadog/docs/IncidentResponseRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Type | Description | Notes |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
Expand All @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set.

### GetCommanderUser

`func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser`
`func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderUserOk

`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommanderUser

`func (o *IncidentResponseRelationships) SetCommanderUser(v RelationshipToUser)`
`func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommanderUser sets CommanderUser field to given value.

Expand Down
8 changes: 4 additions & 4 deletions api/v2/datadog/docs/IncidentUpdateRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Type | Description | Notes |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
Expand All @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set.

### GetCommanderUser

`func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser`
`func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderUserOk

`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommanderUser

`func (o *IncidentUpdateRelationships) SetCommanderUser(v RelationshipToUser)`
`func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommanderUser sets CommanderUser field to given value.

Expand Down
59 changes: 59 additions & 0 deletions api/v2/datadog/docs/NullableRelationshipToUser.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# NullableRelationshipToUser

## Properties

| Name | Type | Description | Notes |
| -------- | ------------------------------------------------------------------------------- | ----------- | ----- |
| **Data** | [**NullableNullableRelationshipToUserData**](NullableRelationshipToUserData.md) | |

## Methods

### NewNullableRelationshipToUser

`func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser`

NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object.
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed.

### NewNullableRelationshipToUserWithDefaults

`func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser`

NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object.
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set.

### GetData

`func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData`

GetData returns the Data field if non-nil, zero value otherwise.

### GetDataOk

`func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool)`

GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetData

`func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData)`

SetData sets Data field to given value.

### SetDataNil

`func (o *NullableRelationshipToUser) SetDataNil(b bool)`

SetDataNil sets the value for Data to be an explicit nil

### UnsetData

`func (o *NullableRelationshipToUser) UnsetData()`

UnsetData ensures that no value is present for Data, not even an explicit nil

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
67 changes: 67 additions & 0 deletions api/v2/datadog/docs/NullableRelationshipToUserData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# NullableRelationshipToUserData

## Properties

| Name | Type | Description | Notes |
| -------- | ----------------------------- | --------------------------------------------- | ---------------------------- |
| **Id** | **string** | A unique identifier that represents the user. |
| **Type** | [**UsersType**](UsersType.md) | | [default to USERSTYPE_USERS] |

## Methods

### NewNullableRelationshipToUserData

`func NewNullableRelationshipToUserData(id string, type_ UsersType) *NullableRelationshipToUserData`

NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object.
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed.

### NewNullableRelationshipToUserDataWithDefaults

`func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData`

NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object.
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set.

### GetId

`func (o *NullableRelationshipToUserData) GetId() string`

GetId returns the Id field if non-nil, zero value otherwise.

### GetIdOk

`func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool)`

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetId

`func (o *NullableRelationshipToUserData) SetId(v string)`

SetId sets Id field to given value.

### GetType

`func (o *NullableRelationshipToUserData) GetType() UsersType`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool)`

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetType

`func (o *NullableRelationshipToUserData) SetType(v UsersType)`

SetType sets Type field to given value.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Loading

0 comments on commit bd75378

Please sign in to comment.