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
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105071,6 +105071,11 @@ components:
description: Name of a managed role to inherit permissions from.
type: string
type: array
team_count:
description: Number of teams with that role.
format: int64
readOnly: true
type: integer
user_count:
description: The user count.
format: int32
Expand Down Expand Up @@ -216654,6 +216659,7 @@ paths:
data:
attributes:
name: developers
team_count: 0
id: 00000000-0000-0000-0000-000000000004
type: roles
schema:
Expand Down
9 changes: 9 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 @@ -29,6 +29,7 @@ def openapi_types(_):
"modified_at": (datetime,),
"name": (str,),
"receives_permissions_from": ([str],),
"team_count": (int,),
"user_count": (int,),
}

Expand All @@ -38,11 +39,13 @@ def openapi_types(_):
"modified_at": "modified_at",
"name": "name",
"receives_permissions_from": "receives_permissions_from",
"team_count": "team_count",
"user_count": "user_count",
}
read_only_vars = {
"created_at",
"modified_at",
"team_count",
}

def __init__(
Expand All @@ -52,6 +55,7 @@ def __init__(
modified_at: Union[datetime, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
receives_permissions_from: Union[List[str], UnsetType] = unset,
team_count: Union[int, UnsetType] = unset,
user_count: Union[int, UnsetType] = unset,
**kwargs,
):
Expand All @@ -77,6 +81,9 @@ def __init__(
If empty or not specified, the role does not automatically inherit permissions from any managed role.
:type receives_permissions_from: [str], optional

:param team_count: Number of teams with that role.
:type team_count: int, optional

:param user_count: The user count.
:type user_count: int, optional
"""
Expand All @@ -90,6 +97,8 @@ def __init__(
kwargs["name"] = name
if receives_permissions_from is not unset:
kwargs["receives_permissions_from"] = receives_permissions_from
if team_count is not unset:
kwargs["team_count"] = team_count
if user_count is not unset:
kwargs["user_count"] = user_count
super().__init__(kwargs)
Loading