Skip to content

Commit 738aa7d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e739ab9 of spec repo
1 parent 9c72a40 commit 738aa7d

File tree

37 files changed

+859
-204
lines changed

37 files changed

+859
-204
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-27 15:08:08.080469",
8-
"spec_repo_commit": "caffcc6"
7+
"regenerated": "2022-01-27 18:53:26.108164",
8+
"spec_repo_commit": "e739ab9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.1",
12-
"regenerated": "2022-01-27 15:08:08.094370",
13-
"spec_repo_commit": "caffcc6"
12+
"regenerated": "2022-01-27 18:53:26.121523",
13+
"spec_repo_commit": "e739ab9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 28 additions & 7 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,9 +1969,7 @@ 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'
19771975
last_modified_by_user:
@@ -3638,6 +3636,28 @@ components:
36383636
type: array
36393637
readOnly: true
36403638
type: object
3639+
NullableRelationshipToUser:
3640+
description: Relationship to user.
3641+
properties:
3642+
data:
3643+
$ref: '#/components/schemas/NullableRelationshipToUserData'
3644+
required:
3645+
- data
3646+
type: object
3647+
NullableRelationshipToUserData:
3648+
description: Relationship to user object.
3649+
nullable: true
3650+
properties:
3651+
id:
3652+
description: A unique identifier that represents the user.
3653+
example: 00000000-0000-0000-0000-000000000000
3654+
type: string
3655+
type:
3656+
$ref: '#/components/schemas/UsersType'
3657+
required:
3658+
- id
3659+
- type
3660+
type: object
36413661
Organization:
36423662
description: Organization object.
36433663
properties:
@@ -6529,6 +6549,7 @@ paths:
65296549
operationId: UpdateIncident
65306550
parameters:
65316551
- $ref: '#/components/parameters/IncidentIDPathParameter'
6552+
- $ref: '#/components/parameters/IncidentIncludeQueryParameter'
65326553
requestBody:
65336554
content:
65346555
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: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
7-
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
8-
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
7+
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
98
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
109
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
1110
| **Postmortem** | Pointer to [**RelationshipToIncidentPostmortem**](RelationshipToIncidentPostmortem.md) | | [optional] |
@@ -31,20 +30,20 @@ but it doesn't guarantee that properties required by API are set.
3130

3231
### GetCommanderUser
3332

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

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

3837
### GetCommanderUserOk
3938

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

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

4544
### SetCommanderUser
4645

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

4948
SetCommanderUser sets CommanderUser field to given value.
5049

@@ -54,31 +53,6 @@ SetCommanderUser sets CommanderUser field to given value.
5453

5554
HasCommanderUser returns a boolean if a field has been set.
5655

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-
8256
### GetIntegrations
8357

8458
`func (o *IncidentUpdateRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas`

api/v2/datadog/docs/IncidentsApi.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Other parameters are passed through a pointer to a ListIncidentsOptionalParamete
292292

293293
## UpdateIncident
294294

295-
> IncidentResponse UpdateIncident(ctx, incidentId, body)
295+
> IncidentResponse UpdateIncident(ctx, incidentId, body, datadog.UpdateIncidentOptionalParameters{})
296296
297297
Updates an incident. Provide only the attributes that should be updated as this request is a partial update.
298298

@@ -314,12 +314,16 @@ func main() {
314314

315315
incidentId := "incidentId_example" // string | The UUID of the incident.
316316
body := *datadog.NewIncidentUpdateRequest(*datadog.NewIncidentUpdateData("00000000-0000-0000-0000-000000000000", datadog.IncidentType("incidents"))) // IncidentUpdateRequest | Incident Payload.
317+
include := []datadog.IncidentRelatedObject{datadog.IncidentRelatedObject("users")} // []IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
318+
optionalParams := datadog.UpdateIncidentOptionalParameters{
319+
Include: &include,
320+
}
317321

318322
configuration := datadog.NewConfiguration()
319323
configuration.SetUnstableOperationEnabled("UpdateIncident", true)
320324

321325
apiClient := datadog.NewAPIClient(configuration)
322-
resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, incidentId, body)
326+
resp, r, err := apiClient.IncidentsApi.UpdateIncident(ctx, incidentId, body, optionalParams)
323327
if err != nil {
324328
fmt.Fprintf(os.Stderr, "Error when calling `IncidentsApi.UpdateIncident`: %v\n", err)
325329
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -340,7 +344,11 @@ func main() {
340344

341345
### Optional Parameters
342346

343-
This endpoint does not have optional parameters.
347+
Other parameters are passed through a pointer to a UpdateIncidentOptionalParameters struct.
348+
349+
| Name | Type | Description | Notes |
350+
| ----------- | ------------------------------------------------------- | ---------------------------------------------------------------------------- | ----- |
351+
| **include** | [**[]IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |
344352

345353
### Return type
346354

0 commit comments

Comments
 (0)