Skip to content

Commit 3b4749e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5570882 of spec repo (#222)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 577519d commit 3b4749e

16 files changed

+268
-74
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.4.1.dev2",
7-
"regenerated": "2021-01-11 15:35:16.792907",
8-
"spec_repo_commit": "bfe8474"
7+
"regenerated": "2021-01-12 13:55:07.392987",
8+
"spec_repo_commit": "5570882"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-01-11 15:35:27.197601",
13-
"spec_repo_commit": "bfe8474"
12+
"regenerated": "2021-01-12 13:55:17.956450",
13+
"spec_repo_commit": "5570882"
1414
}
1515
}
1616
}

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ datadog_api_client/v2/model/incident_field_attributes_single_value_type.py
7070
datadog_api_client/v2/model/incident_field_attributes_value_type.py
7171
datadog_api_client/v2/model/incident_integration_metadata_type.py
7272
datadog_api_client/v2/model/incident_postmortem_type.py
73+
datadog_api_client/v2/model/incident_related_object.py
7374
datadog_api_client/v2/model/incident_response.py
7475
datadog_api_client/v2/model/incident_response_attributes.py
7576
datadog_api_client/v2/model/incident_response_data.py
@@ -347,6 +348,7 @@ docs/IncidentFieldAttributesSingleValueType.md
347348
docs/IncidentFieldAttributesValueType.md
348349
docs/IncidentIntegrationMetadataType.md
349350
docs/IncidentPostmortemType.md
351+
docs/IncidentRelatedObject.md
350352
docs/IncidentResponse.md
351353
docs/IncidentResponseAttributes.md
352354
docs/IncidentResponseData.md
@@ -632,6 +634,7 @@ test/test_incident_field_attributes_single_value_type.py
632634
test/test_incident_field_attributes_value_type.py
633635
test/test_incident_integration_metadata_type.py
634636
test/test_incident_postmortem_type.py
637+
test/test_incident_related_object.py
635638
test/test_incident_response.py
636639
test/test_incident_response_attributes.py
637640
test/test_incident_response_data.py

docs/v2/IncidentRelatedObject.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IncidentRelatedObject
2+
3+
Object related to an incident.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Object related to an incident. | defaults to "users", must be one of ["users", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/IncidentServiceType.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# IncidentServiceType
22

3-
Incident Service resource type.
3+
Incident service resource type.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**value** | **str** | Incident Service resource type. | defaults to "services", must be one of ["services", ]
7+
**value** | **str** | Incident service resource type. | defaults to "services", must be one of ["services", ]
88

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

docs/v2/IncidentServicesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
252252
# Create an instance of the API class
253253
api_instance = incident_services_api.IncidentServicesApi(api_client)
254254
service_id = "service_id_example" # str | The ID of the incident service.
255-
include = "users" # str | Specifies which types of related objects should be included in the response. (optional) if omitted the server will use the default value of "users"
255+
include = IncidentRelatedObject("users") # IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
256256

257257
# example passing only required values which don't have defaults set
258258
try:
@@ -277,7 +277,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
277277
Name | Type | Description | Notes
278278
------------- | ------------- | ------------- | -------------
279279
**service_id** | **str**| The ID of the incident service. |
280-
**include** | **str**| Specifies which types of related objects should be included in the response. | [optional] if omitted the server will use the default value of "users"
280+
**include** | **IncidentRelatedObject**| Specifies which types of related objects should be included in the response. | [optional]
281281

282282
### Return type
283283

@@ -349,7 +349,7 @@ configuration.unstable_operations["list_incident_services"] = True
349349
with datadog_api_client.v2.ApiClient(configuration) as api_client:
350350
# Create an instance of the API class
351351
api_instance = incident_services_api.IncidentServicesApi(api_client)
352-
include = "users" # str | Specifies which types of related objects should be included in the response. (optional) if omitted the server will use the default value of "users"
352+
include = IncidentRelatedObject("users") # IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
353353
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
354354
page_offset = 0 # int | Specific offset to use as the beginning of the returned page. (optional) if omitted the server will use the default value of 0
355355
filter = "ExampleServiceName" # str | A search query that filters services by name. (optional)
@@ -368,7 +368,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
368368

369369
Name | Type | Description | Notes
370370
------------- | ------------- | ------------- | -------------
371-
**include** | **str**| Specifies which types of related objects should be included in the response. | [optional] if omitted the server will use the default value of "users"
371+
**include** | **IncidentRelatedObject**| Specifies which types of related objects should be included in the response. | [optional]
372372
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
373373
**page_offset** | **int**| Specific offset to use as the beginning of the returned page. | [optional] if omitted the server will use the default value of 0
374374
**filter** | **str**| A search query that filters services by name. | [optional]

docs/v2/IncidentTeamsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
252252
# Create an instance of the API class
253253
api_instance = incident_teams_api.IncidentTeamsApi(api_client)
254254
team_id = "team_id_example" # str | The ID of the incident team.
255-
include = "users" # str | Specifies which types of related objects should be included in the response. (optional) if omitted the server will use the default value of "users"
255+
include = IncidentRelatedObject("users") # IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
256256

257257
# example passing only required values which don't have defaults set
258258
try:
@@ -277,7 +277,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
277277
Name | Type | Description | Notes
278278
------------- | ------------- | ------------- | -------------
279279
**team_id** | **str**| The ID of the incident team. |
280-
**include** | **str**| Specifies which types of related objects should be included in the response. | [optional] if omitted the server will use the default value of "users"
280+
**include** | **IncidentRelatedObject**| Specifies which types of related objects should be included in the response. | [optional]
281281

282282
### Return type
283283

@@ -349,7 +349,7 @@ configuration.unstable_operations["list_incident_teams"] = True
349349
with datadog_api_client.v2.ApiClient(configuration) as api_client:
350350
# Create an instance of the API class
351351
api_instance = incident_teams_api.IncidentTeamsApi(api_client)
352-
include = "users" # str | Specifies which types of related objects should be included in the response. (optional) if omitted the server will use the default value of "users"
352+
include = IncidentRelatedObject("users") # IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
353353
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
354354
page_offset = 0 # int | Specific offset to use as the beginning of the returned page. (optional) if omitted the server will use the default value of 0
355355
filter = "ExampleTeamName" # str | A search query that filters teams by name. (optional)
@@ -368,7 +368,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
368368

369369
Name | Type | Description | Notes
370370
------------- | ------------- | ------------- | -------------
371-
**include** | **str**| Specifies which types of related objects should be included in the response. | [optional] if omitted the server will use the default value of "users"
371+
**include** | **IncidentRelatedObject**| Specifies which types of related objects should be included in the response. | [optional]
372372
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
373373
**page_offset** | **int**| Specific offset to use as the beginning of the returned page. | [optional] if omitted the server will use the default value of 0
374374
**filter** | **str**| A search query that filters teams by name. | [optional]

docs/v2/IncidentsApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
257257
api_instance = incidents_api.IncidentsApi(api_client)
258258
incident_id = "incident_id_example" # str | The UUID the incident.
259259
include = [
260-
"users",
261-
] # [str] | Specifies which types of related objects should be included in the response. (optional)
260+
IncidentRelatedObject("users"),
261+
] # [IncidentRelatedObject] | Specifies which types of related objects should be included in the response. (optional)
262262

263263
# example passing only required values which don't have defaults set
264264
try:
@@ -283,7 +283,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
283283
Name | Type | Description | Notes
284284
------------- | ------------- | ------------- | -------------
285285
**incident_id** | **str**| The UUID the incident. |
286-
**include** | **[str]**| Specifies which types of related objects should be included in the response. | [optional]
286+
**include** | [**[IncidentRelatedObject]**](IncidentRelatedObject.md)| Specifies which types of related objects should be included in the response. | [optional]
287287

288288
### Return type
289289

@@ -356,8 +356,8 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
356356
# Create an instance of the API class
357357
api_instance = incidents_api.IncidentsApi(api_client)
358358
include = [
359-
"users",
360-
] # [str] | Specifies which types of related objects should be included in the response. (optional)
359+
IncidentRelatedObject("users"),
360+
] # [IncidentRelatedObject] | Specifies which types of related objects should be included in the response. (optional)
361361
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
362362
page_offset = 0 # int | Specific offset to use as the beginning of the returned page. (optional) if omitted the server will use the default value of 0
363363

@@ -375,7 +375,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
375375

376376
Name | Type | Description | Notes
377377
------------- | ------------- | ------------- | -------------
378-
**include** | **[str]**| Specifies which types of related objects should be included in the response. | [optional]
378+
**include** | [**[IncidentRelatedObject]**](IncidentRelatedObject.md)| Specifies which types of related objects should be included in the response. | [optional]
379379
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
380380
**page_offset** | **int**| Specific offset to use as the beginning of the returned page. | [optional] if omitted the server will use the default value of 0
381381

docs/v2/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ Class | Method | HTTP request | Description
245245
- [IncidentFieldAttributesValueType](IncidentFieldAttributesValueType.md)
246246
- [IncidentIntegrationMetadataType](IncidentIntegrationMetadataType.md)
247247
- [IncidentPostmortemType](IncidentPostmortemType.md)
248+
- [IncidentRelatedObject](IncidentRelatedObject.md)
248249
- [IncidentResponse](IncidentResponse.md)
249250
- [IncidentResponseAttributes](IncidentResponseAttributes.md)
250251
- [IncidentResponseData](IncidentResponseData.md)

src/datadog_api_client/v2/api/incident_services_api.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
validate_and_convert_types
1818
)
1919
from datadog_api_client.v2.model.api_error_response import APIErrorResponse
20+
from datadog_api_client.v2.model.incident_related_object import IncidentRelatedObject
2021
from datadog_api_client.v2.model.incident_service_create_request import IncidentServiceCreateRequest
2122
from datadog_api_client.v2.model.incident_service_response import IncidentServiceResponse
2223
from datadog_api_client.v2.model.incident_service_update_request import IncidentServiceUpdateRequest
@@ -294,7 +295,7 @@ def __get_incident_service(
294295
service_id (str): The ID of the incident service.
295296
296297
Keyword Args:
297-
include (str): Specifies which types of related objects should be included in the response.. [optional] if omitted the server will use the default value of "users"
298+
include (IncidentRelatedObject): Specifies which types of related objects should be included in the response.. [optional]
298299
_return_http_data_only (bool): response data without head status
299300
code and headers. Default is True.
300301
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -366,7 +367,6 @@ def __get_incident_service(
366367
'nullable': [
367368
],
368369
'enum': [
369-
'include',
370370
],
371371
'validation': [
372372
]
@@ -375,16 +375,12 @@ def __get_incident_service(
375375
'validations': {
376376
},
377377
'allowed_values': {
378-
('include',): {
379-
380-
"USERS": "users"
381-
},
382378
},
383379
'openapi_types': {
384380
'service_id':
385381
(str,),
386382
'include':
387-
(str,),
383+
(IncidentRelatedObject,),
388384
},
389385
'attribute_map': {
390386
'service_id': 'service_id',
@@ -422,7 +418,7 @@ def __list_incident_services(
422418
423419
424420
Keyword Args:
425-
include (str): Specifies which types of related objects should be included in the response.. [optional] if omitted the server will use the default value of "users"
421+
include (IncidentRelatedObject): Specifies which types of related objects should be included in the response.. [optional]
426422
page_size (int): Size for a given page.. [optional] if omitted the server will use the default value of 10
427423
page_offset (int): Specific offset to use as the beginning of the returned page.. [optional] if omitted the server will use the default value of 0
428424
filter (str): A search query that filters services by name.. [optional]
@@ -495,7 +491,6 @@ def __list_incident_services(
495491
'nullable': [
496492
],
497493
'enum': [
498-
'include',
499494
],
500495
'validation': [
501496
]
@@ -504,14 +499,10 @@ def __list_incident_services(
504499
'validations': {
505500
},
506501
'allowed_values': {
507-
('include',): {
508-
509-
"USERS": "users"
510-
},
511502
},
512503
'openapi_types': {
513504
'include':
514-
(str,),
505+
(IncidentRelatedObject,),
515506
'page_size':
516507
(int,),
517508
'page_offset':

src/datadog_api_client/v2/api/incident_teams_api.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
validate_and_convert_types
1818
)
1919
from datadog_api_client.v2.model.api_error_response import APIErrorResponse
20+
from datadog_api_client.v2.model.incident_related_object import IncidentRelatedObject
2021
from datadog_api_client.v2.model.incident_team_create_request import IncidentTeamCreateRequest
2122
from datadog_api_client.v2.model.incident_team_response import IncidentTeamResponse
2223
from datadog_api_client.v2.model.incident_team_update_request import IncidentTeamUpdateRequest
@@ -294,7 +295,7 @@ def __get_incident_team(
294295
team_id (str): The ID of the incident team.
295296
296297
Keyword Args:
297-
include (str): Specifies which types of related objects should be included in the response.. [optional] if omitted the server will use the default value of "users"
298+
include (IncidentRelatedObject): Specifies which types of related objects should be included in the response.. [optional]
298299
_return_http_data_only (bool): response data without head status
299300
code and headers. Default is True.
300301
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -366,7 +367,6 @@ def __get_incident_team(
366367
'nullable': [
367368
],
368369
'enum': [
369-
'include',
370370
],
371371
'validation': [
372372
]
@@ -375,16 +375,12 @@ def __get_incident_team(
375375
'validations': {
376376
},
377377
'allowed_values': {
378-
('include',): {
379-
380-
"USERS": "users"
381-
},
382378
},
383379
'openapi_types': {
384380
'team_id':
385381
(str,),
386382
'include':
387-
(str,),
383+
(IncidentRelatedObject,),
388384
},
389385
'attribute_map': {
390386
'team_id': 'team_id',
@@ -422,7 +418,7 @@ def __list_incident_teams(
422418
423419
424420
Keyword Args:
425-
include (str): Specifies which types of related objects should be included in the response.. [optional] if omitted the server will use the default value of "users"
421+
include (IncidentRelatedObject): Specifies which types of related objects should be included in the response.. [optional]
426422
page_size (int): Size for a given page.. [optional] if omitted the server will use the default value of 10
427423
page_offset (int): Specific offset to use as the beginning of the returned page.. [optional] if omitted the server will use the default value of 0
428424
filter (str): A search query that filters teams by name.. [optional]
@@ -495,7 +491,6 @@ def __list_incident_teams(
495491
'nullable': [
496492
],
497493
'enum': [
498-
'include',
499494
],
500495
'validation': [
501496
]
@@ -504,14 +499,10 @@ def __list_incident_teams(
504499
'validations': {
505500
},
506501
'allowed_values': {
507-
('include',): {
508-
509-
"USERS": "users"
510-
},
511502
},
512503
'openapi_types': {
513504
'include':
514-
(str,),
505+
(IncidentRelatedObject,),
515506
'page_size':
516507
(int,),
517508
'page_offset':

0 commit comments

Comments
 (0)