diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2e4fe1e0cc..99e479d824 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -216654,6 +216659,7 @@ paths: data: attributes: name: developers + team_count: 0 id: 00000000-0000-0000-0000-000000000004 type: roles schema: diff --git a/src/datadog_api_client/v2/model/role_update_attributes.py b/src/datadog_api_client/v2/model/role_update_attributes.py index 27961a0aac..f01786164e 100644 --- a/src/datadog_api_client/v2/model/role_update_attributes.py +++ b/src/datadog_api_client/v2/model/role_update_attributes.py @@ -29,6 +29,7 @@ def openapi_types(_): "modified_at": (datetime,), "name": (str,), "receives_permissions_from": ([str],), + "team_count": (int,), "user_count": (int,), } @@ -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__( @@ -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, ): @@ -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 """ @@ -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)