Skip to content
Open
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
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49104,6 +49104,12 @@ components:
name:
description: Name of the permission.
type: string
name_aliases:
description: List of alias names for the permission.
items:
type: string
nullable: true
type: array
restricted:
description: Whether or not the permission is restricted.
type: boolean
Expand Down
11 changes: 10 additions & 1 deletion src/datadog_api_client/v2/model/permission_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union
from typing import List, Union

from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
datetime,
none_type,
unset,
UnsetType,
)
Expand All @@ -24,6 +25,7 @@ def openapi_types(_):
"display_type": (str,),
"group_name": (str,),
"name": (str,),
"name_aliases": ([str], none_type),
"restricted": (bool,),
}

Expand All @@ -34,6 +36,7 @@ def openapi_types(_):
"display_type": "display_type",
"group_name": "group_name",
"name": "name",
"name_aliases": "name_aliases",
"restricted": "restricted",
}

Expand All @@ -45,6 +48,7 @@ def __init__(
display_type: Union[str, UnsetType] = unset,
group_name: Union[str, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
name_aliases: Union[List[str], none_type, UnsetType] = unset,
restricted: Union[bool, UnsetType] = unset,
**kwargs,
):
Expand All @@ -69,6 +73,9 @@ def __init__(
:param name: Name of the permission.
:type name: str, optional

:param name_aliases: List of alias names for the permission.
:type name_aliases: [str], none_type, optional

:param restricted: Whether or not the permission is restricted.
:type restricted: bool, optional
"""
Expand All @@ -84,6 +91,8 @@ def __init__(
kwargs["group_name"] = group_name
if name is not unset:
kwargs["name"] = name
if name_aliases is not unset:
kwargs["name_aliases"] = name_aliases
if restricted is not unset:
kwargs["restricted"] = restricted
super().__init__(kwargs)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-01-06T00:52:01.679Z
2026-03-11T21:52:08.857Z
Loading
Loading