|
| 1 | +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. |
| 2 | +# This product includes software developed at Datadog (https://www.datadoghq.com/). |
| 3 | +# Copyright 2019-Present Datadog, Inc. |
| 4 | +from __future__ import annotations |
| 5 | + |
| 6 | +from typing import Union, TYPE_CHECKING |
| 7 | + |
| 8 | +from datadog_api_client.model_utils import ( |
| 9 | + ModelNormal, |
| 10 | + cached_property, |
| 11 | + unset, |
| 12 | + UnsetType, |
| 13 | +) |
| 14 | + |
| 15 | + |
| 16 | +if TYPE_CHECKING: |
| 17 | + from datadog_api_client.v2.model.aws_integration_iam_permissions_response_attributes import ( |
| 18 | + AWSIntegrationIamPermissionsResponseAttributes, |
| 19 | + ) |
| 20 | + from datadog_api_client.v2.model.aws_integration_iam_permissions_response_data_type import ( |
| 21 | + AWSIntegrationIamPermissionsResponseDataType, |
| 22 | + ) |
| 23 | + |
| 24 | + |
| 25 | +class AWSIntegrationIamPermissionsResponseData(ModelNormal): |
| 26 | + @cached_property |
| 27 | + def openapi_types(_): |
| 28 | + from datadog_api_client.v2.model.aws_integration_iam_permissions_response_attributes import ( |
| 29 | + AWSIntegrationIamPermissionsResponseAttributes, |
| 30 | + ) |
| 31 | + from datadog_api_client.v2.model.aws_integration_iam_permissions_response_data_type import ( |
| 32 | + AWSIntegrationIamPermissionsResponseDataType, |
| 33 | + ) |
| 34 | + |
| 35 | + return { |
| 36 | + "attributes": (AWSIntegrationIamPermissionsResponseAttributes,), |
| 37 | + "id": (str,), |
| 38 | + "type": (AWSIntegrationIamPermissionsResponseDataType,), |
| 39 | + } |
| 40 | + |
| 41 | + attribute_map = { |
| 42 | + "attributes": "attributes", |
| 43 | + "id": "id", |
| 44 | + "type": "type", |
| 45 | + } |
| 46 | + |
| 47 | + def __init__( |
| 48 | + self_, |
| 49 | + attributes: Union[AWSIntegrationIamPermissionsResponseAttributes, UnsetType] = unset, |
| 50 | + id: Union[str, UnsetType] = unset, |
| 51 | + type: Union[AWSIntegrationIamPermissionsResponseDataType, UnsetType] = unset, |
| 52 | + **kwargs, |
| 53 | + ): |
| 54 | + """ |
| 55 | + AWS Integration IAM Permissions response data. |
| 56 | +
|
| 57 | + :param attributes: AWS Integration IAM Permissions response attributes. |
| 58 | + :type attributes: AWSIntegrationIamPermissionsResponseAttributes, optional |
| 59 | +
|
| 60 | + :param id: The ``AWSIntegrationIamPermissionsResponseData`` ``id``. |
| 61 | + :type id: str, optional |
| 62 | +
|
| 63 | + :param type: The ``AWSIntegrationIamPermissionsResponseData`` ``type``. |
| 64 | + :type type: AWSIntegrationIamPermissionsResponseDataType, optional |
| 65 | + """ |
| 66 | + if attributes is not unset: |
| 67 | + kwargs["attributes"] = attributes |
| 68 | + if id is not unset: |
| 69 | + kwargs["id"] = id |
| 70 | + if type is not unset: |
| 71 | + kwargs["type"] = type |
| 72 | + super().__init__(kwargs) |
0 commit comments