Skip to content

Commit

Permalink
Regenerate client from commit 45d9634c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Aug 8, 2024
1 parent 2e7dc23 commit 432e804
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 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": "2024-08-08 08:10:16.011231",
"spec_repo_commit": "c8305c07"
"regenerated": "2024-08-08 18:24:12.431520",
"spec_repo_commit": "45d9634c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-08 08:10:16.028642",
"spec_repo_commit": "c8305c07"
"regenerated": "2024-08-08 18:24:12.448266",
"spec_repo_commit": "45d9634c"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8493,6 +8493,7 @@ components:
created_at:
description: Creation date of the application key.
example: '2020-11-23T10:00:00.000Z'
format: date-time
readOnly: true
type: string
key:
Expand Down Expand Up @@ -23413,6 +23414,10 @@ components:
icon:
description: URL of the user's icon.
type: string
mfa_enabled:
description: If user has MFA enabled.
readOnly: true
type: boolean
modified_at:
description: Time that the user was last modified.
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
datetime,
none_type,
unset,
UnsetType,
Expand All @@ -25,7 +26,7 @@ class FullApplicationKeyAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"created_at": (str,),
"created_at": (datetime,),
"key": (str,),
"last4": (str,),
"name": (str,),
Expand All @@ -47,7 +48,7 @@ def openapi_types(_):

def __init__(
self_,
created_at: Union[str, UnsetType] = unset,
created_at: Union[datetime, UnsetType] = unset,
key: Union[str, UnsetType] = unset,
last4: Union[str, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
Expand All @@ -58,7 +59,7 @@ def __init__(
Attributes of a full application key.
:param created_at: Creation date of the application key.
:type created_at: str, optional
:type created_at: datetime, optional
:param key: The application key.
:type key: str, optional
Expand Down
11 changes: 11 additions & 0 deletions src/datadog_api_client/v2/model/user_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def openapi_types(_):
"email": (str,),
"handle": (str,),
"icon": (str,),
"mfa_enabled": (bool,),
"modified_at": (datetime,),
"name": (str, none_type),
"service_account": (bool,),
Expand All @@ -38,13 +39,17 @@ def openapi_types(_):
"email": "email",
"handle": "handle",
"icon": "icon",
"mfa_enabled": "mfa_enabled",
"modified_at": "modified_at",
"name": "name",
"service_account": "service_account",
"status": "status",
"title": "title",
"verified": "verified",
}
read_only_vars = {
"mfa_enabled",
}

def __init__(
self_,
Expand All @@ -53,6 +58,7 @@ def __init__(
email: Union[str, UnsetType] = unset,
handle: Union[str, UnsetType] = unset,
icon: Union[str, UnsetType] = unset,
mfa_enabled: Union[bool, UnsetType] = unset,
modified_at: Union[datetime, UnsetType] = unset,
name: Union[str, none_type, UnsetType] = unset,
service_account: Union[bool, UnsetType] = unset,
Expand All @@ -79,6 +85,9 @@ def __init__(
:param icon: URL of the user's icon.
:type icon: str, optional
:param mfa_enabled: If user has MFA enabled.
:type mfa_enabled: bool, optional
:param modified_at: Time that the user was last modified.
:type modified_at: datetime, optional
Expand Down Expand Up @@ -107,6 +116,8 @@ def __init__(
kwargs["handle"] = handle
if icon is not unset:
kwargs["icon"] = icon
if mfa_enabled is not unset:
kwargs["mfa_enabled"] = mfa_enabled
if modified_at is not unset:
kwargs["modified_at"] = modified_at
if name is not unset:
Expand Down

0 comments on commit 432e804

Please sign in to comment.