Skip to content

Commit 5551da8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a815d95 of spec repo
1 parent f1ae477 commit 5551da8

30 files changed

+600
-134
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.1",
7-
"regenerated": "2022-01-21 12:35:34.456369",
8-
"spec_repo_commit": "23b4462"
7+
"regenerated": "2022-01-22 09:58:44.549863",
8+
"spec_repo_commit": "a815d95"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.1",
12-
"regenerated": "2022-01-21 12:35:34.467035",
13-
"spec_repo_commit": "23b4462"
12+
"regenerated": "2022-01-22 09:58:44.565009",
13+
"spec_repo_commit": "a815d95"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,10 +1216,10 @@ components:
12161216
description: The relationships the incident will have with other resources once
12171217
created.
12181218
properties:
1219-
commander:
1220-
$ref: '#/components/schemas/RelationshipToUser'
1219+
commander_user:
1220+
$ref: '#/components/schemas/NullableRelationshipToUser'
12211221
required:
1222-
- commander
1222+
- commander_user
12231223
type: object
12241224
IncidentCreateRequest:
12251225
description: Create request for an incident.
@@ -1476,7 +1476,7 @@ components:
14761476
description: The incident's relationships from a response.
14771477
properties:
14781478
commander_user:
1479-
$ref: '#/components/schemas/RelationshipToUser'
1479+
$ref: '#/components/schemas/NullableRelationshipToUser'
14801480
created_by_user:
14811481
$ref: '#/components/schemas/RelationshipToUser'
14821482
integrations:
@@ -1969,7 +1969,7 @@ components:
19691969
description: The incident's relationships for an update request.
19701970
properties:
19711971
commander_user:
1972-
$ref: '#/components/schemas/RelationshipToUser'
1972+
$ref: '#/components/schemas/NullableRelationshipToUser'
19731973
created_by_user:
19741974
$ref: '#/components/schemas/RelationshipToUser'
19751975
integrations:
@@ -3638,6 +3638,28 @@ components:
36383638
type: array
36393639
readOnly: true
36403640
type: object
3641+
NullableRelationshipToUser:
3642+
description: Relationship to user.
3643+
properties:
3644+
data:
3645+
$ref: '#/components/schemas/NullableRelationshipToUserData'
3646+
required:
3647+
- data
3648+
type: object
3649+
NullableRelationshipToUserData:
3650+
description: Relationship to user object.
3651+
nullable: true
3652+
properties:
3653+
id:
3654+
description: A unique identifier that represents the user.
3655+
example: 00000000-0000-0000-0000-000000000000
3656+
type: string
3657+
type:
3658+
$ref: '#/components/schemas/UsersType'
3659+
required:
3660+
- id
3661+
- type
3662+
type: object
36413663
Organization:
36423664
description: Organization object.
36433665
properties:

api/v2/datadog/.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ docs/MetricVolumesResponse.md
245245
docs/MetricsAndMetricTagConfigurations.md
246246
docs/MetricsAndMetricTagConfigurationsResponse.md
247247
docs/MetricsApi.md
248+
docs/NullableRelationshipToUser.md
249+
docs/NullableRelationshipToUserData.md
248250
docs/Organization.md
249251
docs/OrganizationAttributes.md
250252
docs/OrganizationsType.md
@@ -599,6 +601,8 @@ model_metric_volumes.go
599601
model_metric_volumes_response.go
600602
model_metrics_and_metric_tag_configurations.go
601603
model_metrics_and_metric_tag_configurations_response.go
604+
model_nullable_relationship_to_user.go
605+
model_nullable_relationship_to_user_data.go
602606
model_organization.go
603607
model_organization_attributes.go
604608
model_organizations_type.go

api/v2/datadog/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ All URIs are relative to *https://api.datadoghq.com*
406406
- [MetricVolumesResponse](docs/MetricVolumesResponse.md)
407407
- [MetricsAndMetricTagConfigurations](docs/MetricsAndMetricTagConfigurations.md)
408408
- [MetricsAndMetricTagConfigurationsResponse](docs/MetricsAndMetricTagConfigurationsResponse.md)
409+
- [NullableRelationshipToUser](docs/NullableRelationshipToUser.md)
410+
- [NullableRelationshipToUserData](docs/NullableRelationshipToUserData.md)
409411
- [Organization](docs/Organization.md)
410412
- [OrganizationAttributes](docs/OrganizationAttributes.md)
411413
- [OrganizationsType](docs/OrganizationsType.md)

api/v2/datadog/docs/IncidentCreateRelationships.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Properties
44

5-
| Name | Type | Description | Notes |
6-
| ------------- | ----------------------------------------------- | ----------- | ----- |
7-
| **Commander** | [**RelationshipToUser**](RelationshipToUser.md) | |
5+
| Name | Type | Description | Notes |
6+
| ----------------- | --------------------------------------------------------------- | ----------- | ----- |
7+
| **CommanderUser** | [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | |
88

99
## Methods
1010

1111
### NewIncidentCreateRelationships
1212

13-
`func NewIncidentCreateRelationships(commander RelationshipToUser) *IncidentCreateRelationships`
13+
`func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships`
1414

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

28-
### GetCommander
28+
### GetCommanderUser
2929

30-
`func (o *IncidentCreateRelationships) GetCommander() RelationshipToUser`
30+
`func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser`
3131

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

34-
### GetCommanderOk
34+
### GetCommanderUserOk
3535

36-
`func (o *IncidentCreateRelationships) GetCommanderOk() (*RelationshipToUser, bool)`
36+
`func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`
3737

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

41-
### SetCommander
41+
### SetCommanderUser
4242

43-
`func (o *IncidentCreateRelationships) SetCommander(v RelationshipToUser)`
43+
`func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)`
4444

45-
SetCommander sets Commander field to given value.
45+
SetCommanderUser sets CommanderUser field to given value.
4646

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

api/v2/datadog/docs/IncidentResponseRelationships.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

3232
### GetCommanderUser
3333

34-
`func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser`
34+
`func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser`
3535

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

3838
### GetCommanderUserOk
3939

40-
`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
40+
`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`
4141

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

4545
### SetCommanderUser
4646

47-
`func (o *IncidentResponseRelationships) SetCommanderUser(v RelationshipToUser)`
47+
`func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)`
4848

4949
SetCommanderUser sets CommanderUser field to given value.
5050

api/v2/datadog/docs/IncidentUpdateRelationships.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

3232
### GetCommanderUser
3333

34-
`func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser`
34+
`func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser`
3535

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

3838
### GetCommanderUserOk
3939

40-
`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
40+
`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`
4141

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

4545
### SetCommanderUser
4646

47-
`func (o *IncidentUpdateRelationships) SetCommanderUser(v RelationshipToUser)`
47+
`func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)`
4848

4949
SetCommanderUser sets CommanderUser field to given value.
5050

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# NullableRelationshipToUser
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| -------- | ------------------------------------------------------------------------------- | ----------- | ----- |
7+
| **Data** | [**NullableNullableRelationshipToUserData**](NullableRelationshipToUserData.md) | |
8+
9+
## Methods
10+
11+
### NewNullableRelationshipToUser
12+
13+
`func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser`
14+
15+
NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object.
16+
This constructor will assign default values to properties that have it defined,
17+
and makes sure properties required by API are set, but the set of arguments
18+
will change when the set of required properties is changed.
19+
20+
### NewNullableRelationshipToUserWithDefaults
21+
22+
`func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser`
23+
24+
NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object.
25+
This constructor will only assign default values to properties that have it defined,
26+
but it doesn't guarantee that properties required by API are set.
27+
28+
### GetData
29+
30+
`func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData`
31+
32+
GetData returns the Data field if non-nil, zero value otherwise.
33+
34+
### GetDataOk
35+
36+
`func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool)`
37+
38+
GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
39+
and a boolean to check if the value has been set.
40+
41+
### SetData
42+
43+
`func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData)`
44+
45+
SetData sets Data field to given value.
46+
47+
### SetDataNil
48+
49+
`func (o *NullableRelationshipToUser) SetDataNil(b bool)`
50+
51+
SetDataNil sets the value for Data to be an explicit nil
52+
53+
### UnsetData
54+
55+
`func (o *NullableRelationshipToUser) UnsetData()`
56+
57+
UnsetData ensures that no value is present for Data, not even an explicit nil
58+
59+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# NullableRelationshipToUserData
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| -------- | ----------------------------- | --------------------------------------------- | ---------------------------- |
7+
| **Id** | **string** | A unique identifier that represents the user. |
8+
| **Type** | [**UsersType**](UsersType.md) | | [default to USERSTYPE_USERS] |
9+
10+
## Methods
11+
12+
### NewNullableRelationshipToUserData
13+
14+
`func NewNullableRelationshipToUserData(id string, type_ UsersType) *NullableRelationshipToUserData`
15+
16+
NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object.
17+
This constructor will assign default values to properties that have it defined,
18+
and makes sure properties required by API are set, but the set of arguments
19+
will change when the set of required properties is changed.
20+
21+
### NewNullableRelationshipToUserDataWithDefaults
22+
23+
`func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData`
24+
25+
NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object.
26+
This constructor will only assign default values to properties that have it defined,
27+
but it doesn't guarantee that properties required by API are set.
28+
29+
### GetId
30+
31+
`func (o *NullableRelationshipToUserData) GetId() string`
32+
33+
GetId returns the Id field if non-nil, zero value otherwise.
34+
35+
### GetIdOk
36+
37+
`func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool)`
38+
39+
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
40+
and a boolean to check if the value has been set.
41+
42+
### SetId
43+
44+
`func (o *NullableRelationshipToUserData) SetId(v string)`
45+
46+
SetId sets Id field to given value.
47+
48+
### GetType
49+
50+
`func (o *NullableRelationshipToUserData) GetType() UsersType`
51+
52+
GetType returns the Type field if non-nil, zero value otherwise.
53+
54+
### GetTypeOk
55+
56+
`func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool)`
57+
58+
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
59+
and a boolean to check if the value has been set.
60+
61+
### SetType
62+
63+
`func (o *NullableRelationshipToUserData) SetType(v UsersType)`
64+
65+
SetType sets Type field to given value.
66+
67+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

0 commit comments

Comments
 (0)