diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 96bcf5becc..fdf68c4adb 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -104980,6 +104980,8 @@ components: id: description: The `RoleTemplateData` `id`. type: string + relationships: + $ref: "#/components/schemas/RoleResponseRelationships" type: $ref: "#/components/schemas/RoleTemplateDataType" required: @@ -216424,8 +216426,14 @@ paths: value: data: - attributes: + description: Role template with permissions for standard access. name: Datadog Standard Role - id: 00000000-0000-0000-0000-000000000012 + id: "2" + relationships: + permissions: + data: + - id: 984d2ee2-dbb1-11e8-a1b5-1b33e7f4e7a0 + type: permissions type: roles schema: $ref: "#/components/schemas/RoleTemplateArray" diff --git a/src/datadog_api_client/v2/model/role_template_data.py b/src/datadog_api_client/v2/model/role_template_data.py index c1822468d7..630c315b00 100644 --- a/src/datadog_api_client/v2/model/role_template_data.py +++ b/src/datadog_api_client/v2/model/role_template_data.py @@ -15,6 +15,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.role_template_data_attributes import RoleTemplateDataAttributes + from datadog_api_client.v2.model.role_response_relationships import RoleResponseRelationships from datadog_api_client.v2.model.role_template_data_type import RoleTemplateDataType @@ -22,17 +23,20 @@ class RoleTemplateData(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.role_template_data_attributes import RoleTemplateDataAttributes + from datadog_api_client.v2.model.role_response_relationships import RoleResponseRelationships from datadog_api_client.v2.model.role_template_data_type import RoleTemplateDataType return { "attributes": (RoleTemplateDataAttributes,), "id": (str,), + "relationships": (RoleResponseRelationships,), "type": (RoleTemplateDataType,), } attribute_map = { "attributes": "attributes", "id": "id", + "relationships": "relationships", "type": "type", } @@ -41,6 +45,7 @@ def __init__( type: RoleTemplateDataType, attributes: Union[RoleTemplateDataAttributes, UnsetType] = unset, id: Union[str, UnsetType] = unset, + relationships: Union[RoleResponseRelationships, UnsetType] = unset, **kwargs, ): """ @@ -52,6 +57,9 @@ def __init__( :param id: The ``RoleTemplateData`` ``id``. :type id: str, optional + :param relationships: Relationships of the role object returned by the API. + :type relationships: RoleResponseRelationships, optional + :param type: Roles resource type. :type type: RoleTemplateDataType """ @@ -59,6 +67,8 @@ def __init__( kwargs["attributes"] = attributes if id is not unset: kwargs["id"] = id + if relationships is not unset: + kwargs["relationships"] = relationships super().__init__(kwargs) self_.type = type