Skip to content

Commit b24f59a

Browse files
dd-octo-sts[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit f2e1f26 of spec repo (#4082)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6edcb5d commit b24f59a

4 files changed

Lines changed: 66 additions & 34 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95624,6 +95624,12 @@ components:
9562495624
format: date-time
9562595625
readOnly: true
9562695626
type: string
95627+
default_permissions_opt_out:
95628+
description: |-
95629+
Whether to exclude restricted default permissions from this role.
95630+
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
95631+
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
95632+
type: boolean
9562795633
modified_at:
9562895634
description: Time of last role modification.
9562995635
format: date-time
@@ -95755,6 +95761,12 @@ components:
9575595761
format: date-time
9575695762
readOnly: true
9575795763
type: string
95764+
default_permissions_opt_out:
95765+
description: |-
95766+
Whether to exclude restricted default permissions from this role.
95767+
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
95768+
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
95769+
type: boolean
9575895770
modified_at:
9575995771
description: Time of last role modification.
9576095772
format: date-time

‎src/datadog_api_client/v2/model/role_create_attributes.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ class RoleCreateAttributes(ModelNormal):
1919
def openapi_types(_):
2020
return {
2121
"created_at": (datetime,),
22+
"default_permissions_opt_out": (bool,),
2223
"modified_at": (datetime,),
2324
"name": (str,),
2425
"receives_permissions_from": ([str],),
2526
}
2627

2728
attribute_map = {
2829
"created_at": "created_at",
30+
"default_permissions_opt_out": "default_permissions_opt_out",
2931
"modified_at": "modified_at",
3032
"name": "name",
3133
"receives_permissions_from": "receives_permissions_from",
@@ -39,6 +41,7 @@ def __init__(
3941
self_,
4042
name: str,
4143
created_at: Union[datetime, UnsetType] = unset,
44+
default_permissions_opt_out: Union[bool, UnsetType] = unset,
4245
modified_at: Union[datetime, UnsetType] = unset,
4346
receives_permissions_from: Union[List[str], UnsetType] = unset,
4447
**kwargs,
@@ -49,6 +52,11 @@ def __init__(
4952
:param created_at: Creation time of the role.
5053
:type created_at: datetime, optional
5154
55+
:param default_permissions_opt_out: Whether to exclude restricted default permissions from this role.
56+
Restricted default permissions are automatically assigned to every role by default. Set this field to ``true`` to exclude them.
57+
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
58+
:type default_permissions_opt_out: bool, optional
59+
5260
:param modified_at: Time of last role modification.
5361
:type modified_at: datetime, optional
5462
@@ -62,6 +70,8 @@ def __init__(
6270
"""
6371
if created_at is not unset:
6472
kwargs["created_at"] = created_at
73+
if default_permissions_opt_out is not unset:
74+
kwargs["default_permissions_opt_out"] = default_permissions_opt_out
6575
if modified_at is not unset:
6676
kwargs["modified_at"] = modified_at
6777
if receives_permissions_from is not unset:

‎src/datadog_api_client/v2/model/role_update_attributes.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class RoleUpdateAttributes(ModelNormal):
2525
def openapi_types(_):
2626
return {
2727
"created_at": (datetime,),
28+
"default_permissions_opt_out": (bool,),
2829
"modified_at": (datetime,),
2930
"name": (str,),
3031
"receives_permissions_from": ([str],),
@@ -33,6 +34,7 @@ def openapi_types(_):
3334

3435
attribute_map = {
3536
"created_at": "created_at",
37+
"default_permissions_opt_out": "default_permissions_opt_out",
3638
"modified_at": "modified_at",
3739
"name": "name",
3840
"receives_permissions_from": "receives_permissions_from",
@@ -46,6 +48,7 @@ def openapi_types(_):
4648
def __init__(
4749
self_,
4850
created_at: Union[datetime, UnsetType] = unset,
51+
default_permissions_opt_out: Union[bool, UnsetType] = unset,
4952
modified_at: Union[datetime, UnsetType] = unset,
5053
name: Union[str, UnsetType] = unset,
5154
receives_permissions_from: Union[List[str], UnsetType] = unset,
@@ -58,6 +61,11 @@ def __init__(
5861
:param created_at: Creation time of the role.
5962
:type created_at: datetime, optional
6063
64+
:param default_permissions_opt_out: Whether to exclude restricted default permissions from this role.
65+
Restricted default permissions are automatically assigned to every role by default. Set this field to ``true`` to exclude them.
66+
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
67+
:type default_permissions_opt_out: bool, optional
68+
6169
:param modified_at: Time of last role modification.
6270
:type modified_at: datetime, optional
6371
@@ -74,6 +82,8 @@ def __init__(
7482
"""
7583
if created_at is not unset:
7684
kwargs["created_at"] = created_at
85+
if default_permissions_opt_out is not unset:
86+
kwargs["default_permissions_opt_out"] = default_permissions_opt_out
7787
if modified_at is not unset:
7888
kwargs["modified_at"] = modified_at
7989
if name is not unset:

0 commit comments

Comments
 (0)