Skip to content

Document fields remote_config_read_enabled and category #1775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-21 19:36:29.340936",
"spec_repo_commit": "83154a77"
"regenerated": "2023-11-21 20:40:58.085799",
"spec_repo_commit": "be350e98"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-21 19:36:29.357035",
"spec_repo_commit": "83154a77"
"regenerated": "2023-11-21 20:40:58.099688",
"spec_repo_commit": "be350e98"
}
}
}
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6240,6 +6240,9 @@ components:
FullAPIKeyAttributes:
description: Attributes of a full API key.
properties:
category:
description: The category of the API key.
type: string
created_at:
description: Creation date of the API key.
example: '2020-11-23T10:00:00.000Z'
Expand All @@ -6265,6 +6268,9 @@ components:
description: Name of the API key.
example: API Key for submitting metrics
type: string
remote_config_read_enabled:
description: The remote config read enabled status.
type: boolean
type: object
FullApplicationKey:
description: Datadog application key.
Expand Down Expand Up @@ -11752,6 +11758,9 @@ components:
PartialAPIKeyAttributes:
description: Attributes of a partial API key.
properties:
category:
description: The category of the API key.
type: string
created_at:
description: Creation date of the API key.
example: '2020-11-23T10:00:00.000Z'
Expand All @@ -11773,6 +11782,9 @@ components:
description: Name of the API key.
example: API Key for submitting metrics
type: string
remote_config_read_enabled:
description: The remote config read enabled status.
type: boolean
type: object
PartialApplicationKey:
description: Partial Datadog application key.
Expand Down
16 changes: 16 additions & 0 deletions src/datadog_api_client/v2/model/full_api_key_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,23 @@ class FullAPIKeyAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"category": (str,),
"created_at": (str,),
"key": (str,),
"last4": (str,),
"modified_at": (str,),
"name": (str,),
"remote_config_read_enabled": (bool,),
}

attribute_map = {
"category": "category",
"created_at": "created_at",
"key": "key",
"last4": "last4",
"modified_at": "modified_at",
"name": "name",
"remote_config_read_enabled": "remote_config_read_enabled",
}
read_only_vars = {
"created_at",
Expand All @@ -47,16 +51,21 @@ def openapi_types(_):

def __init__(
self_,
category: Union[str, UnsetType] = unset,
created_at: Union[str, UnsetType] = unset,
key: Union[str, UnsetType] = unset,
last4: Union[str, UnsetType] = unset,
modified_at: Union[str, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
remote_config_read_enabled: Union[bool, UnsetType] = unset,
**kwargs,
):
"""
Attributes of a full API key.

:param category: The category of the API key.
:type category: str, optional

:param created_at: Creation date of the API key.
:type created_at: str, optional

Expand All @@ -71,7 +80,12 @@ def __init__(

:param name: Name of the API key.
:type name: str, optional

:param remote_config_read_enabled: The remote config read enabled status.
:type remote_config_read_enabled: bool, optional
"""
if category is not unset:
kwargs["category"] = category
if created_at is not unset:
kwargs["created_at"] = created_at
if key is not unset:
Expand All @@ -82,4 +96,6 @@ def __init__(
kwargs["modified_at"] = modified_at
if name is not unset:
kwargs["name"] = name
if remote_config_read_enabled is not unset:
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
super().__init__(kwargs)
16 changes: 16 additions & 0 deletions src/datadog_api_client/v2/model/partial_api_key_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ class PartialAPIKeyAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"category": (str,),
"created_at": (str,),
"last4": (str,),
"modified_at": (str,),
"name": (str,),
"remote_config_read_enabled": (bool,),
}

attribute_map = {
"category": "category",
"created_at": "created_at",
"last4": "last4",
"modified_at": "modified_at",
"name": "name",
"remote_config_read_enabled": "remote_config_read_enabled",
}
read_only_vars = {
"created_at",
Expand All @@ -44,15 +48,20 @@ def openapi_types(_):

def __init__(
self_,
category: Union[str, UnsetType] = unset,
created_at: Union[str, UnsetType] = unset,
last4: Union[str, UnsetType] = unset,
modified_at: Union[str, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
remote_config_read_enabled: Union[bool, UnsetType] = unset,
**kwargs,
):
"""
Attributes of a partial API key.

:param category: The category of the API key.
:type category: str, optional

:param created_at: Creation date of the API key.
:type created_at: str, optional

Expand All @@ -64,7 +73,12 @@ def __init__(

:param name: Name of the API key.
:type name: str, optional

:param remote_config_read_enabled: The remote config read enabled status.
:type remote_config_read_enabled: bool, optional
"""
if category is not unset:
kwargs["category"] = category
if created_at is not unset:
kwargs["created_at"] = created_at
if last4 is not unset:
Expand All @@ -73,4 +87,6 @@ def __init__(
kwargs["modified_at"] = modified_at
if name is not unset:
kwargs["name"] = name
if remote_config_read_enabled is not unset:
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
super().__init__(kwargs)