Skip to content

Commit ce78f77

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 538f9e1 of spec repo
1 parent beba5f3 commit ce78f77

File tree

11 files changed

+228
-96
lines changed

11 files changed

+228
-96
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4154,7 +4154,7 @@ components:
41544154
example: false
41554155
type: boolean
41564156
type: object
4157-
HostTags:
4157+
HostTagsInput:
41584158
description: Set of tags to associate with your host.
41594159
properties:
41604160
host:
@@ -4169,6 +4169,21 @@ components:
41694169
type: string
41704170
type: array
41714171
type: object
4172+
HostTagsOutput:
4173+
description: Set of tags to associate with your host.
4174+
properties:
4175+
host:
4176+
description: Your host name.
4177+
example: test.host
4178+
type: string
4179+
tags:
4180+
description: A list of tags attached to a given host.
4181+
items:
4182+
description: A given tag in a list.
4183+
example: environment:production
4184+
type: string
4185+
type: array
4186+
type: object
41724187
HostTotals:
41734188
description: Total number of host currently monitored by Datadog.
41744189
properties:
@@ -18664,18 +18679,18 @@ components:
1866418679
- match
1866518680
type: object
1866618681
TagToHosts:
18667-
description: In this object, the key is the tag, the value is a list of host
18668-
names that are reporting that tag.
18682+
description: In this object, the key is the tag, and the value is a list of
18683+
host names that are reporting that tag.
1866918684
properties:
1867018685
tags:
1867118686
additionalProperties:
18672-
description: A list of additional properties for tags.
18687+
description: A list of host names which contain this tag
1867318688
items:
1867418689
description: A given tag in a list.
1867518690
example: test.metric.host
1867618691
type: string
1867718692
type: array
18678-
description: A list of tags to apply to the host.
18693+
description: A mapping of tags
1867918694
type: object
1868018695
type: object
1868118696
TargetFormatType:
@@ -35627,11 +35642,13 @@ paths:
3562735642
- synthetics_global_variable_write
3562835643
/api/v1/tags/hosts:
3562935644
get:
35630-
description: Return a mapping of tags to hosts for your whole infrastructure.
35645+
description: Returns a mapping of tags to hosts. For each tag, the response
35646+
returns a list of host names that contain this tag. There is a restriction
35647+
of 10k host names from the org that can be attached to tags and returned.
3563135648
operationId: ListHostTags
3563235649
parameters:
35633-
- description: When specified, filters host list to those tags with the specified
35634-
source.
35650+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35651+
Use "user" source for custom-defined tags.
3563535652
in: query
3563635653
name: source
3563735654
required: false
@@ -35662,7 +35679,7 @@ paths:
3566235679
- apiKeyAuth: []
3566335680
appKeyAuth: []
3566435681
- AuthZ: []
35665-
summary: Get Tags
35682+
summary: Get All Host Tags
3566635683
tags:
3566735684
- Tags
3566835685
x-permission:
@@ -35675,16 +35692,14 @@ paths:
3567535692
for a single host.'
3567635693
operationId: DeleteHostTags
3567735694
parameters:
35678-
- description: This endpoint allows you to remove all user-assigned tags for
35679-
a single host.
35695+
- description: Specified host name to delete tags
3568035696
in: path
3568135697
name: host_name
3568235698
required: true
3568335699
schema:
3568435700
type: string
35685-
- description: 'The source of the tags (for example chef, puppet).
35686-
35687-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35701+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35702+
Use "user" source for custom-defined tags.
3568835703
in: query
3568935704
name: source
3569035705
required: false
@@ -35714,14 +35729,14 @@ paths:
3571435729
description: Return the list of tags that apply to a given host.
3571535730
operationId: GetHostTags
3571635731
parameters:
35717-
- description: When specified, filters list of tags to those tags with the specified
35718-
source.
35732+
- description: Specified host name to view tags
3571935733
in: path
3572035734
name: host_name
3572135735
required: true
3572235736
schema:
3572335737
type: string
35724-
- description: Source to filter.
35738+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35739+
Use "user" source for custom-defined tags.
3572535740
in: query
3572635741
name: source
3572735742
required: false
@@ -35732,7 +35747,7 @@ paths:
3573235747
content:
3573335748
application/json:
3573435749
schema:
35735-
$ref: '#/components/schemas/HostTags'
35750+
$ref: '#/components/schemas/HostTagsOutput'
3573635751
description: OK
3573735752
'403':
3573835753
content:
@@ -35748,25 +35763,23 @@ paths:
3574835763
description: Not Found
3574935764
'429':
3575035765
$ref: '#/components/responses/TooManyRequestsResponse'
35751-
summary: Get host tags
35766+
summary: Get Host Tags
3575235767
tags:
3575335768
- Tags
3575435769
post:
3575535770
description: 'This endpoint allows you to add new tags to a host,
3575635771

35757-
optionally specifying where these tags come from.'
35772+
optionally specifying what source these tags come from.'
3575835773
operationId: CreateHostTags
3575935774
parameters:
35760-
- description: This endpoint allows you to add new tags to a host, optionally
35761-
specifying where the tags came from.
35775+
- description: Specified host name to add new tags
3576235776
in: path
3576335777
name: host_name
3576435778
required: true
3576535779
schema:
3576635780
type: string
35767-
- description: 'The source of the tags.
35768-
35769-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35781+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35782+
Use "user" source for custom-defined tags.
3577035783
example: chef
3577135784
in: query
3577235785
name: source
@@ -35777,15 +35790,15 @@ paths:
3577735790
content:
3577835791
application/json:
3577935792
schema:
35780-
$ref: '#/components/schemas/HostTags'
35793+
$ref: '#/components/schemas/HostTagsInput'
3578135794
description: Update host tags request body.
3578235795
required: true
3578335796
responses:
3578435797
'201':
3578535798
content:
3578635799
application/json:
3578735800
schema:
35788-
$ref: '#/components/schemas/HostTags'
35801+
$ref: '#/components/schemas/HostTagsOutput'
3578935802
description: Created
3579035803
'403':
3579135804
content:
@@ -35811,16 +35824,14 @@ paths:
3581135824
an integration source with those supplied in the request.'
3581235825
operationId: UpdateHostTags
3581335826
parameters:
35814-
- description: This endpoint allows you to update/replace all in an integration
35815-
source with those supplied in the request.
35827+
- description: Specified host name to change tags
3581635828
in: path
3581735829
name: host_name
3581835830
required: true
3581935831
schema:
3582035832
type: string
35821-
- description: 'The source of the tags (for example chef, puppet).
35822-
35823-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
35833+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35834+
Use "user" source for custom-defined tags.
3582435835
in: query
3582535836
name: source
3582635837
required: false
@@ -35830,15 +35841,15 @@ paths:
3583035841
content:
3583135842
application/json:
3583235843
schema:
35833-
$ref: '#/components/schemas/HostTags'
35844+
$ref: '#/components/schemas/HostTagsInput'
3583435845
description: Add tags to host
3583535846
required: true
3583635847
responses:
3583735848
'201':
3583835849
content:
3583935850
application/json:
3584035851
schema:
35841-
$ref: '#/components/schemas/HostTags'
35852+
$ref: '#/components/schemas/HostTagsOutput'
3584235853
description: OK
3584335854
'403':
3584435855
content:
@@ -38833,7 +38844,8 @@ tags:
3883338844

3883438845
by a source. For example, some valid sources include nagios, hudson, jenkins,
3883538846

38836-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
38847+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. [Complete
38848+
list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)
3883738849

3883838850

3883938851
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).'

examples/v1_tags_CreateHostTags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
use datadog_api_client::datadog;
33
use datadog_api_client::datadogV1::api_tags::CreateHostTagsOptionalParams;
44
use datadog_api_client::datadogV1::api_tags::TagsAPI;
5-
use datadog_api_client::datadogV1::model::HostTags;
5+
use datadog_api_client::datadogV1::model::HostTagsInput;
66

77
#[tokio::main]
88
async fn main() {
9-
let body = HostTags::new()
9+
let body = HostTagsInput::new()
1010
.host("test.host".to_string())
1111
.tags(vec!["environment:production".to_string()]);
1212
let configuration = datadog::Configuration::new();

examples/v1_tags_GetHostTags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Get host tags returns "OK" response
1+
// Get Host Tags returns "OK" response
22
use datadog_api_client::datadog;
33
use datadog_api_client::datadogV1::api_tags::GetHostTagsOptionalParams;
44
use datadog_api_client::datadogV1::api_tags::TagsAPI;

examples/v1_tags_ListHostTags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Get Tags returns "OK" response
1+
// Get All Host Tags returns "OK" response
22
use datadog_api_client::datadog;
33
use datadog_api_client::datadogV1::api_tags::ListHostTagsOptionalParams;
44
use datadog_api_client::datadogV1::api_tags::TagsAPI;

examples/v1_tags_UpdateHostTags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
use datadog_api_client::datadog;
33
use datadog_api_client::datadogV1::api_tags::TagsAPI;
44
use datadog_api_client::datadogV1::api_tags::UpdateHostTagsOptionalParams;
5-
use datadog_api_client::datadogV1::model::HostTags;
5+
use datadog_api_client::datadogV1::model::HostTagsInput;
66

77
#[tokio::main]
88
async fn main() {
9-
let body = HostTags::new()
9+
let body = HostTagsInput::new()
1010
.host("test.host".to_string())
1111
.tags(vec!["environment:production".to_string()]);
1212
let configuration = datadog::Configuration::new();

0 commit comments

Comments
 (0)