Skip to content

Commit

Permalink
Regenerate client from commit fdf5ecf0 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Nov 20, 2023
1 parent 237cd1b commit b2deea3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
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-20 19:20:13.651946",
"spec_repo_commit": "55cf29a4"
"regenerated": "2023-11-20 20:17:15.999658",
"spec_repo_commit": "fdf5ecf0"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-20 19:20:13.666926",
"spec_repo_commit": "55cf29a4"
"regenerated": "2023-11-20 20:17:16.020685",
"spec_repo_commit": "fdf5ecf0"
}
}
}
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)

0 comments on commit b2deea3

Please sign in to comment.