Skip to content

Commit 7a8ff34

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 34f647e of spec repo (#176)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent fefae5b commit 7a8ff34

17 files changed

+212
-215
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.3.0",
7-
"regenerated": "2020-12-01 09:39:53.924096",
8-
"spec_repo_commit": "0e7cbcd"
7+
"regenerated": "2020-12-01 11:05:09.268295",
8+
"spec_repo_commit": "34f647e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-12-01 09:40:05.139237",
13-
"spec_repo_commit": "0e7cbcd"
12+
"regenerated": "2020-12-01 11:05:19.520168",
13+
"spec_repo_commit": "34f647e"
1414
}
1515
}
1616
}

docs/v1/HostsApi.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Name | Type | Description | Notes
195195
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
196196

197197
# **mute_host**
198-
> HostMuteResponse mute_host(host_name)
198+
> HostMuteResponse mute_host(host_name, body)
199199
200200
Mute a host
201201

@@ -244,21 +244,12 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
244244
end=1579098130,
245245
message="Muting this host for a test!",
246246
override=False,
247-
) # HostMuteSettings | Mute a host request body. (optional)
247+
) # HostMuteSettings | Mute a host request body.
248248

249249
# example passing only required values which don't have defaults set
250250
try:
251251
# Mute a host
252-
api_response = api_instance.mute_host(host_name)
253-
pprint(api_response)
254-
except datadog_api_client.v1.ApiException as e:
255-
print("Exception when calling HostsApi->mute_host: %s\n" % e)
256-
257-
# example passing only required values which don't have defaults set
258-
# and optional values
259-
try:
260-
# Mute a host
261-
api_response = api_instance.mute_host(host_name, body=body)
252+
api_response = api_instance.mute_host(host_name, body)
262253
pprint(api_response)
263254
except datadog_api_client.v1.ApiException as e:
264255
print("Exception when calling HostsApi->mute_host: %s\n" % e)
@@ -269,7 +260,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
269260
Name | Type | Description | Notes
270261
------------- | ------------- | ------------- | -------------
271262
**host_name** | **str**| Name of the host to mute. |
272-
**body** | [**HostMuteSettings**](HostMuteSettings.md)| Mute a host request body. | [optional]
263+
**body** | [**HostMuteSettings**](HostMuteSettings.md)| Mute a host request body. |
273264

274265
### Return type
275266

docs/v1/LogsIndexesApi.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ This endpoint does not need any parameter.
254254
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
255255

256256
# **update_logs_index**
257-
> LogsIndex update_logs_index(name)
257+
> LogsIndex update_logs_index(name, body)
258258
259259
Update an index
260260

@@ -316,21 +316,12 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
316316
query="source:python",
317317
),
318318
num_retention_days=1,
319-
) # LogsIndexUpdateRequest | Object containing the new `LogsIndexUpdateRequest`. (optional)
319+
) # LogsIndexUpdateRequest | Object containing the new `LogsIndexUpdateRequest`.
320320

321321
# example passing only required values which don't have defaults set
322322
try:
323323
# Update an index
324-
api_response = api_instance.update_logs_index(name)
325-
pprint(api_response)
326-
except datadog_api_client.v1.ApiException as e:
327-
print("Exception when calling LogsIndexesApi->update_logs_index: %s\n" % e)
328-
329-
# example passing only required values which don't have defaults set
330-
# and optional values
331-
try:
332-
# Update an index
333-
api_response = api_instance.update_logs_index(name, body=body)
324+
api_response = api_instance.update_logs_index(name, body)
334325
pprint(api_response)
335326
except datadog_api_client.v1.ApiException as e:
336327
print("Exception when calling LogsIndexesApi->update_logs_index: %s\n" % e)
@@ -341,7 +332,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
341332
Name | Type | Description | Notes
342333
------------- | ------------- | ------------- | -------------
343334
**name** | **str**| Name of the log index. |
344-
**body** | [**LogsIndexUpdateRequest**](LogsIndexUpdateRequest.md)| Object containing the new &#x60;LogsIndexUpdateRequest&#x60;. | [optional]
335+
**body** | [**LogsIndexUpdateRequest**](LogsIndexUpdateRequest.md)| Object containing the new &#x60;LogsIndexUpdateRequest&#x60;. |
345336

346337
### Return type
347338

@@ -367,7 +358,7 @@ Name | Type | Description | Notes
367358
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
368359

369360
# **update_logs_index_order**
370-
> LogsIndexesOrder update_logs_index_order()
361+
> LogsIndexesOrder update_logs_index_order(body)
371362
372363
Update indexes order
373364

@@ -413,13 +404,12 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
413404
api_instance = logs_indexes_api.LogsIndexesApi(api_client)
414405
body = LogsIndexesOrder(
415406
["main","payments","web"],
416-
) # LogsIndexesOrder | Object containing the new ordered list of index names (optional)
407+
) # LogsIndexesOrder | Object containing the new ordered list of index names
417408

418409
# example passing only required values which don't have defaults set
419-
# and optional values
420410
try:
421411
# Update indexes order
422-
api_response = api_instance.update_logs_index_order(body=body)
412+
api_response = api_instance.update_logs_index_order(body)
423413
pprint(api_response)
424414
except datadog_api_client.v1.ApiException as e:
425415
print("Exception when calling LogsIndexesApi->update_logs_index_order: %s\n" % e)
@@ -429,7 +419,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
429419

430420
Name | Type | Description | Notes
431421
------------- | ------------- | ------------- | -------------
432-
**body** | [**LogsIndexesOrder**](LogsIndexesOrder.md)| Object containing the new ordered list of index names | [optional]
422+
**body** | [**LogsIndexesOrder**](LogsIndexesOrder.md)| Object containing the new ordered list of index names |
433423

434424
### Return type
435425

docs/v2/LogsApi.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010

1111

1212
# **aggregate_logs**
13-
> LogsAggregateResponse aggregate_logs()
13+
> LogsAggregateResponse aggregate_logs(body)
1414
1515
Aggregate events
1616

@@ -95,13 +95,12 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
9595
paging=LogsAggregateRequestPaging(
9696
after="eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==",
9797
),
98-
) # LogsAggregateRequest | (optional)
98+
) # LogsAggregateRequest |
9999

100100
# example passing only required values which don't have defaults set
101-
# and optional values
102101
try:
103102
# Aggregate events
104-
api_response = api_instance.aggregate_logs(body=body)
103+
api_response = api_instance.aggregate_logs(body)
105104
pprint(api_response)
106105
except datadog_api_client.v2.ApiException as e:
107106
print("Exception when calling LogsApi->aggregate_logs: %s\n" % e)
@@ -111,7 +110,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
111110

112111
Name | Type | Description | Notes
113112
------------- | ------------- | ------------- | -------------
114-
**body** | [**LogsAggregateRequest**](LogsAggregateRequest.md)| | [optional]
113+
**body** | [**LogsAggregateRequest**](LogsAggregateRequest.md)| |
115114

116115
### Return type
117116

docs/v2/LogsArchivesApi.md

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Method | HTTP request | Description
1717

1818

1919
# **add_read_role_to_archive**
20-
> add_read_role_to_archive(archive_id)
20+
> add_read_role_to_archive(archive_id, body)
2121
2222
Grant role to an archive
2323

@@ -67,20 +67,12 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
6767
id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
6868
type=RolesType("roles"),
6969
),
70-
) # RelationshipToRole | (optional)
70+
) # RelationshipToRole |
7171

7272
# example passing only required values which don't have defaults set
7373
try:
7474
# Grant role to an archive
75-
api_instance.add_read_role_to_archive(archive_id)
76-
except datadog_api_client.v2.ApiException as e:
77-
print("Exception when calling LogsArchivesApi->add_read_role_to_archive: %s\n" % e)
78-
79-
# example passing only required values which don't have defaults set
80-
# and optional values
81-
try:
82-
# Grant role to an archive
83-
api_instance.add_read_role_to_archive(archive_id, body=body)
75+
api_instance.add_read_role_to_archive(archive_id, body)
8476
except datadog_api_client.v2.ApiException as e:
8577
print("Exception when calling LogsArchivesApi->add_read_role_to_archive: %s\n" % e)
8678
```
@@ -90,7 +82,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
9082
Name | Type | Description | Notes
9183
------------- | ------------- | ------------- | -------------
9284
**archive_id** | **str**| The ID of the archive. |
93-
**body** | [**RelationshipToRole**](RelationshipToRole.md)| | [optional]
85+
**body** | [**RelationshipToRole**](RelationshipToRole.md)| |
9486

9587
### Return type
9688

@@ -623,7 +615,7 @@ This endpoint does not need any parameter.
623615
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
624616

625617
# **remove_role_from_archive**
626-
> remove_role_from_archive(archive_id)
618+
> remove_role_from_archive(archive_id, body)
627619
628620
Revoke role from an archive
629621

@@ -673,20 +665,12 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
673665
id="3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
674666
type=RolesType("roles"),
675667
),
676-
) # RelationshipToRole | (optional)
677-
678-
# example passing only required values which don't have defaults set
679-
try:
680-
# Revoke role from an archive
681-
api_instance.remove_role_from_archive(archive_id)
682-
except datadog_api_client.v2.ApiException as e:
683-
print("Exception when calling LogsArchivesApi->remove_role_from_archive: %s\n" % e)
668+
) # RelationshipToRole |
684669

685670
# example passing only required values which don't have defaults set
686-
# and optional values
687671
try:
688672
# Revoke role from an archive
689-
api_instance.remove_role_from_archive(archive_id, body=body)
673+
api_instance.remove_role_from_archive(archive_id, body)
690674
except datadog_api_client.v2.ApiException as e:
691675
print("Exception when calling LogsArchivesApi->remove_role_from_archive: %s\n" % e)
692676
```
@@ -696,7 +680,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
696680
Name | Type | Description | Notes
697681
------------- | ------------- | ------------- | -------------
698682
**archive_id** | **str**| The ID of the archive. |
699-
**body** | [**RelationshipToRole**](RelationshipToRole.md)| | [optional]
683+
**body** | [**RelationshipToRole**](RelationshipToRole.md)| |
700684

701685
### Return type
702686

0 commit comments

Comments
 (0)