Skip to content

Commit 33eb6fc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b6dc4b8 of spec repo
1 parent 58dc88d commit 33eb6fc

File tree

5 files changed

+661
-180
lines changed

5 files changed

+661
-180
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49104,6 +49104,12 @@ components:
4910449104
name:
4910549105
description: Name of the permission.
4910649106
type: string
49107+
name_aliases:
49108+
description: List of alias names for the permission.
49109+
items:
49110+
type: string
49111+
nullable: true
49112+
type: array
4910749113
restricted:
4910849114
description: Whether or not the permission is restricted.
4910949115
type: boolean

src/datadog_api_client/v2/model/permission_attributes.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
1111
datetime,
12+
none_type,
1213
unset,
1314
UnsetType,
1415
)
@@ -24,6 +25,7 @@ def openapi_types(_):
2425
"display_type": (str,),
2526
"group_name": (str,),
2627
"name": (str,),
28+
"name_aliases": ([str], none_type),
2729
"restricted": (bool,),
2830
}
2931

@@ -34,6 +36,7 @@ def openapi_types(_):
3436
"display_type": "display_type",
3537
"group_name": "group_name",
3638
"name": "name",
39+
"name_aliases": "name_aliases",
3740
"restricted": "restricted",
3841
}
3942

@@ -45,6 +48,7 @@ def __init__(
4548
display_type: Union[str, UnsetType] = unset,
4649
group_name: Union[str, UnsetType] = unset,
4750
name: Union[str, UnsetType] = unset,
51+
name_aliases: Union[List[str], none_type, UnsetType] = unset,
4852
restricted: Union[bool, UnsetType] = unset,
4953
**kwargs,
5054
):
@@ -69,6 +73,9 @@ def __init__(
6973
:param name: Name of the permission.
7074
:type name: str, optional
7175
76+
:param name_aliases: List of alias names for the permission.
77+
:type name_aliases: [str], none_type, optional
78+
7279
:param restricted: Whether or not the permission is restricted.
7380
:type restricted: bool, optional
7481
"""
@@ -84,6 +91,8 @@ def __init__(
8491
kwargs["group_name"] = group_name
8592
if name is not unset:
8693
kwargs["name"] = name
94+
if name_aliases is not unset:
95+
kwargs["name_aliases"] = name_aliases
8796
if restricted is not unset:
8897
kwargs["restricted"] = restricted
8998
super().__init__(kwargs)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:52:01.679Z
1+
2026-03-11T21:52:08.857Z

0 commit comments

Comments
 (0)