Skip to content

Commit cd1e45e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 79bb469 of spec repo
1 parent a28777b commit cd1e45e

File tree

37 files changed

+869
-278
lines changed

37 files changed

+869
-278
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.2",
7-
"regenerated": "2022-02-02 15:54:36.385436",
8-
"spec_repo_commit": "3b52f9a"
7+
"regenerated": "2022-02-02 17:09:23.179677",
8+
"spec_repo_commit": "79bb469"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-02-02 15:54:36.397022",
13-
"spec_repo_commit": "3b52f9a"
12+
"regenerated": "2022-02-02 17:09:23.193128",
13+
"spec_repo_commit": "79bb469"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 28 additions & 9 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,13 +1969,9 @@ components:
19691969
description: The incident's relationships for an update request.
19701970
properties:
19711971
commander_user:
1972-
$ref: '#/components/schemas/RelationshipToUser'
1973-
created_by_user:
1974-
$ref: '#/components/schemas/RelationshipToUser'
1972+
$ref: '#/components/schemas/NullableRelationshipToUser'
19751973
integrations:
19761974
$ref: '#/components/schemas/RelationshipToIncidentIntegrationMetadatas'
1977-
last_modified_by_user:
1978-
$ref: '#/components/schemas/RelationshipToUser'
19791975
postmortem:
19801976
$ref: '#/components/schemas/RelationshipToIncidentPostmortem'
19811977
type: object
@@ -3638,6 +3634,28 @@ components:
36383634
type: array
36393635
readOnly: true
36403636
type: object
3637+
NullableRelationshipToUser:
3638+
description: Relationship to user.
3639+
properties:
3640+
data:
3641+
$ref: '#/components/schemas/NullableRelationshipToUserData'
3642+
required:
3643+
- data
3644+
type: object
3645+
NullableRelationshipToUserData:
3646+
description: Relationship to user object.
3647+
nullable: true
3648+
properties:
3649+
id:
3650+
description: A unique identifier that represents the user.
3651+
example: 00000000-0000-0000-0000-000000000000
3652+
type: string
3653+
type:
3654+
$ref: '#/components/schemas/UsersType'
3655+
required:
3656+
- id
3657+
- type
3658+
type: object
36413659
Organization:
36423660
description: Organization object.
36433661
properties:
@@ -6530,6 +6548,7 @@ paths:
65306548
operationId: UpdateIncident
65316549
parameters:
65326550
- $ref: '#/components/parameters/IncidentIDPathParameter'
6551+
- $ref: '#/components/parameters/IncidentIncludeQueryParameter'
65336552
requestBody:
65346553
content:
65356554
application/json:

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/api_incidents.go

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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: 8 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## Properties
44

5-
| Name | Type | Description | Notes |
6-
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
7-
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
8-
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
9-
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
10-
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
11-
| **Postmortem** | Pointer to [**RelationshipToIncidentPostmortem**](RelationshipToIncidentPostmortem.md) | | [optional] |
5+
| Name | Type | Description | Notes |
6+
| ----------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
7+
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
8+
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
9+
| **Postmortem** | Pointer to [**RelationshipToIncidentPostmortem**](RelationshipToIncidentPostmortem.md) | | [optional] |
1210

1311
## Methods
1412

@@ -31,20 +29,20 @@ but it doesn't guarantee that properties required by API are set.
3129

3230
### GetCommanderUser
3331

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

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

3836
### GetCommanderUserOk
3937

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

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

4543
### SetCommanderUser
4644

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

4947
SetCommanderUser sets CommanderUser field to given value.
5048

@@ -54,31 +52,6 @@ SetCommanderUser sets CommanderUser field to given value.
5452

5553
HasCommanderUser returns a boolean if a field has been set.
5654

57-
### GetCreatedByUser
58-
59-
`func (o *IncidentUpdateRelationships) GetCreatedByUser() RelationshipToUser`
60-
61-
GetCreatedByUser returns the CreatedByUser field if non-nil, zero value otherwise.
62-
63-
### GetCreatedByUserOk
64-
65-
`func (o *IncidentUpdateRelationships) GetCreatedByUserOk() (*RelationshipToUser, bool)`
66-
67-
GetCreatedByUserOk returns a tuple with the CreatedByUser field if it's non-nil, zero value otherwise
68-
and a boolean to check if the value has been set.
69-
70-
### SetCreatedByUser
71-
72-
`func (o *IncidentUpdateRelationships) SetCreatedByUser(v RelationshipToUser)`
73-
74-
SetCreatedByUser sets CreatedByUser field to given value.
75-
76-
### HasCreatedByUser
77-
78-
`func (o *IncidentUpdateRelationships) HasCreatedByUser() bool`
79-
80-
HasCreatedByUser returns a boolean if a field has been set.
81-
8255
### GetIntegrations
8356

8457
`func (o *IncidentUpdateRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas`
@@ -104,31 +77,6 @@ SetIntegrations sets Integrations field to given value.
10477

10578
HasIntegrations returns a boolean if a field has been set.
10679

107-
### GetLastModifiedByUser
108-
109-
`func (o *IncidentUpdateRelationships) GetLastModifiedByUser() RelationshipToUser`
110-
111-
GetLastModifiedByUser returns the LastModifiedByUser field if non-nil, zero value otherwise.
112-
113-
### GetLastModifiedByUserOk
114-
115-
`func (o *IncidentUpdateRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)`
116-
117-
GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field if it's non-nil, zero value otherwise
118-
and a boolean to check if the value has been set.
119-
120-
### SetLastModifiedByUser
121-
122-
`func (o *IncidentUpdateRelationships) SetLastModifiedByUser(v RelationshipToUser)`
123-
124-
SetLastModifiedByUser sets LastModifiedByUser field to given value.
125-
126-
### HasLastModifiedByUser
127-
128-
`func (o *IncidentUpdateRelationships) HasLastModifiedByUser() bool`
129-
130-
HasLastModifiedByUser returns a boolean if a field has been set.
131-
13280
### GetPostmortem
13381

13482
`func (o *IncidentUpdateRelationships) GetPostmortem() RelationshipToIncidentPostmortem`

0 commit comments

Comments
 (0)