Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95624,6 +95624,12 @@ components:
format: date-time
readOnly: true
type: string
default_permissions_opt_out:
description: |-
Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
type: boolean
modified_at:
description: Time of last role modification.
format: date-time
Expand Down Expand Up @@ -95755,6 +95761,12 @@ components:
format: date-time
readOnly: true
type: string
default_permissions_opt_out:
description: |-
Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to `true` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
type: boolean
modified_at:
description: Time of last role modification.
format: date-time
Expand Down
10 changes: 10 additions & 0 deletions src/datadog_api_client/v2/model/role_create_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ class RoleCreateAttributes(ModelNormal):
def openapi_types(_):
return {
"created_at": (datetime,),
"default_permissions_opt_out": (bool,),
"modified_at": (datetime,),
"name": (str,),
"receives_permissions_from": ([str],),
}

attribute_map = {
"created_at": "created_at",
"default_permissions_opt_out": "default_permissions_opt_out",
"modified_at": "modified_at",
"name": "name",
"receives_permissions_from": "receives_permissions_from",
Expand All @@ -39,6 +41,7 @@ def __init__(
self_,
name: str,
created_at: Union[datetime, UnsetType] = unset,
default_permissions_opt_out: Union[bool, UnsetType] = unset,
modified_at: Union[datetime, UnsetType] = unset,
receives_permissions_from: Union[List[str], UnsetType] = unset,
**kwargs,
Expand All @@ -49,6 +52,11 @@ def __init__(
:param created_at: Creation time of the role.
:type created_at: datetime, optional

:param default_permissions_opt_out: Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to ``true`` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
:type default_permissions_opt_out: bool, optional

:param modified_at: Time of last role modification.
:type modified_at: datetime, optional

Expand All @@ -62,6 +70,8 @@ def __init__(
"""
if created_at is not unset:
kwargs["created_at"] = created_at
if default_permissions_opt_out is not unset:
kwargs["default_permissions_opt_out"] = default_permissions_opt_out
if modified_at is not unset:
kwargs["modified_at"] = modified_at
if receives_permissions_from is not unset:
Expand Down
10 changes: 10 additions & 0 deletions src/datadog_api_client/v2/model/role_update_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class RoleUpdateAttributes(ModelNormal):
def openapi_types(_):
return {
"created_at": (datetime,),
"default_permissions_opt_out": (bool,),
"modified_at": (datetime,),
"name": (str,),
"receives_permissions_from": ([str],),
Expand All @@ -33,6 +34,7 @@ def openapi_types(_):

attribute_map = {
"created_at": "created_at",
"default_permissions_opt_out": "default_permissions_opt_out",
"modified_at": "modified_at",
"name": "name",
"receives_permissions_from": "receives_permissions_from",
Expand All @@ -46,6 +48,7 @@ def openapi_types(_):
def __init__(
self_,
created_at: Union[datetime, UnsetType] = unset,
default_permissions_opt_out: Union[bool, UnsetType] = unset,
modified_at: Union[datetime, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
receives_permissions_from: Union[List[str], UnsetType] = unset,
Expand All @@ -58,6 +61,11 @@ def __init__(
:param created_at: Creation time of the role.
:type created_at: datetime, optional

:param default_permissions_opt_out: Whether to exclude restricted default permissions from this role.
Restricted default permissions are automatically assigned to every role by default. Set this field to ``true`` to exclude them.
Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
:type default_permissions_opt_out: bool, optional

:param modified_at: Time of last role modification.
:type modified_at: datetime, optional

Expand All @@ -74,6 +82,8 @@ def __init__(
"""
if created_at is not unset:
kwargs["created_at"] = created_at
if default_permissions_opt_out is not unset:
kwargs["default_permissions_opt_out"] = default_permissions_opt_out
if modified_at is not unset:
kwargs["modified_at"] = modified_at
if name is not unset:
Expand Down
Loading
Loading