Skip to content

Commit 3eccade

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 45ed7ff of spec repo
1 parent f5bf354 commit 3eccade

File tree

8 files changed

+71
-75
lines changed

8 files changed

+71
-75
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,14 +4180,14 @@ components:
41804180
type: boolean
41814181
type: object
41824182
HostTags:
4183-
description: Set of tags to associate with your host.
4183+
description: Host name and an array of its tags
41844184
properties:
41854185
host:
41864186
description: Your host name.
41874187
example: test.host
41884188
type: string
41894189
tags:
4190-
description: A list of tags to apply to the host.
4190+
description: A list of tags associated with a host.
41914191
items:
41924192
description: A given tag in a list.
41934193
example: environment:production
@@ -18703,18 +18703,18 @@ components:
1870318703
- match
1870418704
type: object
1870518705
TagToHosts:
18706-
description: In this object, the key is the tag, the value is a list of host
18707-
names that are reporting that tag.
18706+
description: In this object, the key is the tag, and the value is a list of
18707+
host names that are reporting that tag.
1870818708
properties:
1870918709
tags:
1871018710
additionalProperties:
18711-
description: A list of additional properties for tags.
18711+
description: A list of host names which contain this tag
1871218712
items:
1871318713
description: A given tag in a list.
1871418714
example: test.metric.host
1871518715
type: string
1871618716
type: array
18717-
description: A list of tags to apply to the host.
18717+
description: A mapping of tags to host names
1871818718
type: object
1871918719
type: object
1872018720
TargetFormatType:
@@ -35726,11 +35726,13 @@ paths:
3572635726
- synthetics_global_variable_write
3572735727
/api/v1/tags/hosts:
3572835728
get:
35729-
description: Return a mapping of tags to hosts for your whole infrastructure.
35729+
description: Returns a mapping of tags to hosts. For each tag, the response
35730+
returns a list of host names that contain this tag. There is a restriction
35731+
of 10k total host names from the org that can be attached to tags and returned.
3573035732
operationId: ListHostTags
3573135733
parameters:
35732-
- description: When specified, filters host list to those tags with the specified
35733-
source.
35734+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35735+
Use "user" source for custom-defined tags.
3573435736
in: query
3573535737
name: source
3573635738
required: false
@@ -35761,29 +35763,29 @@ paths:
3576135763
- apiKeyAuth: []
3576235764
appKeyAuth: []
3576335765
- AuthZ: []
35764-
summary: Get Tags
35766+
summary: Get All Host Tags
3576535767
tags:
3576635768
- Tags
3576735769
x-permission:
3576835770
operator: OPEN
3576935771
permissions: []
3577035772
/api/v1/tags/hosts/{host_name}:
3577135773
delete:
35772-
description: 'This endpoint allows you to remove all user-assigned tags
35774+
description: 'This endpoint allows you to remove all tags
3577335775

35774-
for a single host.'
35776+
for a single host. If no source is specified, only deletes from the source
35777+
"User".'
3577535778
operationId: DeleteHostTags
3577635779
parameters:
35777-
- description: This endpoint allows you to remove all user-assigned tags for
35778-
a single host.
35780+
- description: Specified host name to delete tags
3577935781
in: path
3578035782
name: host_name
3578135783
required: true
3578235784
schema:
3578335785
type: string
35784-
- description: 'The source of the tags (for example chef, puppet).
35785-
35786-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35786+
- description: Source of the tags to be deleted. [Complete list of source attribute
35787+
values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35788+
Use "user" source for custom-defined tags.
3578735789
in: query
3578835790
name: source
3578935791
required: false
@@ -35813,14 +35815,14 @@ paths:
3581335815
description: Return the list of tags that apply to a given host.
3581435816
operationId: GetHostTags
3581535817
parameters:
35816-
- description: When specified, filters list of tags to those tags with the specified
35817-
source.
35818+
- description: Name of the host to retrieve tags for
3581835819
in: path
3581935820
name: host_name
3582035821
required: true
3582135822
schema:
3582235823
type: string
35823-
- description: Source to filter.
35824+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35825+
Use "user" source for custom-defined tags.
3582435826
in: query
3582535827
name: source
3582635828
required: false
@@ -35847,25 +35849,25 @@ paths:
3584735849
description: Not Found
3584835850
'429':
3584935851
$ref: '#/components/responses/TooManyRequestsResponse'
35850-
summary: Get host tags
35852+
summary: Get Host Tags
3585135853
tags:
3585235854
- Tags
3585335855
post:
3585435856
description: 'This endpoint allows you to add new tags to a host,
3585535857

35856-
optionally specifying where these tags come from.'
35858+
optionally specifying what source these tags come from. If tags exist, appends
35859+
tags to the end of the existing tag list'
3585735860
operationId: CreateHostTags
3585835861
parameters:
35859-
- description: This endpoint allows you to add new tags to a host, optionally
35860-
specifying where the tags came from.
35862+
- description: Specified host name to add new tags
3586135863
in: path
3586235864
name: host_name
3586335865
required: true
3586435866
schema:
3586535867
type: string
35866-
- description: 'The source of the tags.
35867-
35868-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35868+
- description: Source to add tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35869+
Use "user" source for custom-defined tags. If no source is specified, defaults
35870+
to "user".
3586935871
example: chef
3587035872
in: query
3587135873
name: source
@@ -35910,16 +35912,15 @@ paths:
3591035912
an integration source with those supplied in the request.'
3591135913
operationId: UpdateHostTags
3591235914
parameters:
35913-
- description: This endpoint allows you to update/replace all in an integration
35914-
source with those supplied in the request.
35915+
- description: Specified host name to change tags
3591535916
in: path
3591635917
name: host_name
3591735918
required: true
3591835919
schema:
3591935920
type: string
35920-
- description: 'The source of the tags (for example chef, puppet).
35921-
35922-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
35921+
- description: Source to update tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35922+
Use "user" source for custom-defined tags. If no source specified, defaults
35923+
to "user".
3592335924
in: query
3592435925
name: source
3592535926
required: false
@@ -38935,7 +38936,8 @@ tags:
3893538936

3893638937
by a source. For example, some valid sources include nagios, hudson, jenkins,
3893738938

38938-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
38939+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete
38940+
list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
3893938941

3894038942

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

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;

src/datadogV1/api/api_tags.rs

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ use std::io::Write;
1414
#[non_exhaustive]
1515
#[derive(Clone, Default, Debug)]
1616
pub struct CreateHostTagsOptionalParams {
17-
/// The source of the tags.
18-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
17+
/// Source to add tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source is specified, defaults to "user".
1918
pub source: Option<String>,
2019
}
2120

2221
impl CreateHostTagsOptionalParams {
23-
/// The source of the tags.
24-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
22+
/// Source to add tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source is specified, defaults to "user".
2523
pub fn source(mut self, value: String) -> Self {
2624
self.source = Some(value);
2725
self
@@ -32,14 +30,12 @@ impl CreateHostTagsOptionalParams {
3230
#[non_exhaustive]
3331
#[derive(Clone, Default, Debug)]
3432
pub struct DeleteHostTagsOptionalParams {
35-
/// The source of the tags (for example chef, puppet).
36-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
33+
/// Source of the tags to be deleted. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
3734
pub source: Option<String>,
3835
}
3936

4037
impl DeleteHostTagsOptionalParams {
41-
/// The source of the tags (for example chef, puppet).
42-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
38+
/// Source of the tags to be deleted. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
4339
pub fn source(mut self, value: String) -> Self {
4440
self.source = Some(value);
4541
self
@@ -50,12 +46,12 @@ impl DeleteHostTagsOptionalParams {
5046
#[non_exhaustive]
5147
#[derive(Clone, Default, Debug)]
5248
pub struct GetHostTagsOptionalParams {
53-
/// Source to filter.
49+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
5450
pub source: Option<String>,
5551
}
5652

5753
impl GetHostTagsOptionalParams {
58-
/// Source to filter.
54+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
5955
pub fn source(mut self, value: String) -> Self {
6056
self.source = Some(value);
6157
self
@@ -66,12 +62,12 @@ impl GetHostTagsOptionalParams {
6662
#[non_exhaustive]
6763
#[derive(Clone, Default, Debug)]
6864
pub struct ListHostTagsOptionalParams {
69-
/// When specified, filters host list to those tags with the specified source.
65+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
7066
pub source: Option<String>,
7167
}
7268

7369
impl ListHostTagsOptionalParams {
74-
/// When specified, filters host list to those tags with the specified source.
70+
/// Source to filter. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags.
7571
pub fn source(mut self, value: String) -> Self {
7672
self.source = Some(value);
7773
self
@@ -82,14 +78,12 @@ impl ListHostTagsOptionalParams {
8278
#[non_exhaustive]
8379
#[derive(Clone, Default, Debug)]
8480
pub struct UpdateHostTagsOptionalParams {
85-
/// The source of the tags (for example chef, puppet).
86-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>)
81+
/// Source to update tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source specified, defaults to "user".
8782
pub source: Option<String>,
8883
}
8984

9085
impl UpdateHostTagsOptionalParams {
91-
/// The source of the tags (for example chef, puppet).
92-
/// [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>)
86+
/// Source to update tags. [Complete list of source attribute values](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>). Use "user" source for custom-defined tags. If no source specified, defaults to "user".
9387
pub fn source(mut self, value: String) -> Self {
9488
self.source = Some(value);
9589
self
@@ -144,7 +138,7 @@ pub enum UpdateHostTagsError {
144138
///
145139
/// The component of your infrastructure responsible for a tag is identified
146140
/// by a source. For example, some valid sources include nagios, hudson, jenkins,
147-
/// users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
141+
/// users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete list of source type names under [API Source Attributes](<https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value>).
148142
///
149143
/// Read more about tags on [Getting Started with Tags](<https://docs.datadoghq.com/getting_started/tagging/>).
150144
#[derive(Debug, Clone)]
@@ -212,7 +206,7 @@ impl TagsAPI {
212206
}
213207

214208
/// This endpoint allows you to add new tags to a host,
215-
/// optionally specifying where these tags come from.
209+
/// optionally specifying what source these tags come from. If tags exist, appends tags to the end of the existing tag list
216210
pub async fn create_host_tags(
217211
&self,
218212
host_name: String,
@@ -237,7 +231,7 @@ impl TagsAPI {
237231
}
238232

239233
/// This endpoint allows you to add new tags to a host,
240-
/// optionally specifying where these tags come from.
234+
/// optionally specifying what source these tags come from. If tags exist, appends tags to the end of the existing tag list
241235
pub async fn create_host_tags_with_http_info(
242236
&self,
243237
host_name: String,
@@ -378,8 +372,8 @@ impl TagsAPI {
378372
}
379373
}
380374

381-
/// This endpoint allows you to remove all user-assigned tags
382-
/// for a single host.
375+
/// This endpoint allows you to remove all tags
376+
/// for a single host. If no source is specified, only deletes from the source "User".
383377
pub async fn delete_host_tags(
384378
&self,
385379
host_name: String,
@@ -394,8 +388,8 @@ impl TagsAPI {
394388
}
395389
}
396390

397-
/// This endpoint allows you to remove all user-assigned tags
398-
/// for a single host.
391+
/// This endpoint allows you to remove all tags
392+
/// for a single host. If no source is specified, only deletes from the source "User".
399393
pub async fn delete_host_tags_with_http_info(
400394
&self,
401395
host_name: String,
@@ -594,7 +588,7 @@ impl TagsAPI {
594588
}
595589
}
596590

597-
/// Return a mapping of tags to hosts for your whole infrastructure.
591+
/// Returns a mapping of tags to hosts. For each tag, the response returns a list of host names that contain this tag. There is a restriction of 10k total host names from the org that can be attached to tags and returned.
598592
pub async fn list_host_tags(
599593
&self,
600594
params: ListHostTagsOptionalParams,
@@ -613,7 +607,7 @@ impl TagsAPI {
613607
}
614608
}
615609

616-
/// Return a mapping of tags to hosts for your whole infrastructure.
610+
/// Returns a mapping of tags to hosts. For each tag, the response returns a list of host names that contain this tag. There is a restriction of 10k total host names from the org that can be attached to tags and returned.
617611
pub async fn list_host_tags_with_http_info(
618612
&self,
619613
params: ListHostTagsOptionalParams,

src/datadogV1/model/model_host_tags.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Set of tags to associate with your host.
9+
/// Host name and an array of its tags
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct HostTags {
1414
/// Your host name.
1515
#[serde(rename = "host")]
1616
pub host: Option<String>,
17-
/// A list of tags to apply to the host.
17+
/// A list of tags associated with a host.
1818
#[serde(rename = "tags")]
1919
pub tags: Option<Vec<String>>,
2020
#[serde(flatten)]

src/datadogV1/model/model_tag_to_hosts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// In this object, the key is the tag, the value is a list of host names that are reporting that tag.
9+
/// In this object, the key is the tag, and the value is a list of host names that are reporting that tag.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct TagToHosts {
14-
/// A list of tags to apply to the host.
14+
/// A mapping of tags to host names
1515
#[serde(rename = "tags")]
1616
pub tags: Option<std::collections::BTreeMap<String, Vec<String>>>,
1717
#[serde(flatten)]

0 commit comments

Comments
 (0)