|
| 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 |
| 7 | + |
| 8 | +from datadog_api_client.model_utils import ( |
| 9 | + ModelNormal, |
| 10 | + cached_property, |
| 11 | + unset, |
| 12 | + UnsetType, |
| 13 | +) |
| 14 | + |
| 15 | + |
| 16 | +class CustomFrameworkMetadata(ModelNormal): |
| 17 | + @cached_property |
| 18 | + def openapi_types(_): |
| 19 | + return { |
| 20 | + "created_at": (int,), |
| 21 | + "created_by": (str,), |
| 22 | + "description": (str,), |
| 23 | + "handle": (str,), |
| 24 | + "icon_url": (str,), |
| 25 | + "id": (str,), |
| 26 | + "name": (str,), |
| 27 | + "org_id": (int,), |
| 28 | + "updated_at": (int,), |
| 29 | + "version": (str,), |
| 30 | + } |
| 31 | + |
| 32 | + attribute_map = { |
| 33 | + "created_at": "created_at", |
| 34 | + "created_by": "created_by", |
| 35 | + "description": "description", |
| 36 | + "handle": "handle", |
| 37 | + "icon_url": "icon_url", |
| 38 | + "id": "id", |
| 39 | + "name": "name", |
| 40 | + "org_id": "org_id", |
| 41 | + "updated_at": "updated_at", |
| 42 | + "version": "version", |
| 43 | + } |
| 44 | + |
| 45 | + def __init__( |
| 46 | + self_, |
| 47 | + handle: str, |
| 48 | + id: str, |
| 49 | + name: str, |
| 50 | + org_id: int, |
| 51 | + version: str, |
| 52 | + created_at: Union[int, UnsetType] = unset, |
| 53 | + created_by: Union[str, UnsetType] = unset, |
| 54 | + description: Union[str, UnsetType] = unset, |
| 55 | + icon_url: Union[str, UnsetType] = unset, |
| 56 | + updated_at: Union[int, UnsetType] = unset, |
| 57 | + **kwargs, |
| 58 | + ): |
| 59 | + """ |
| 60 | + Response object for an organization's custom frameworks. |
| 61 | +
|
| 62 | + :param created_at: Framework Creation Date |
| 63 | + :type created_at: int, optional |
| 64 | +
|
| 65 | + :param created_by: Framework Creator |
| 66 | + :type created_by: str, optional |
| 67 | +
|
| 68 | + :param description: Framework Description |
| 69 | + :type description: str, optional |
| 70 | +
|
| 71 | + :param handle: Framework Handle |
| 72 | + :type handle: str |
| 73 | +
|
| 74 | + :param icon_url: Framework Icon URL |
| 75 | + :type icon_url: str, optional |
| 76 | +
|
| 77 | + :param id: Custom Framework ID |
| 78 | + :type id: str |
| 79 | +
|
| 80 | + :param name: Framework Name |
| 81 | + :type name: str |
| 82 | +
|
| 83 | + :param org_id: Org ID |
| 84 | + :type org_id: int |
| 85 | +
|
| 86 | + :param updated_at: Framework Update Date |
| 87 | + :type updated_at: int, optional |
| 88 | +
|
| 89 | + :param version: Framework Version |
| 90 | + :type version: str |
| 91 | + """ |
| 92 | + if created_at is not unset: |
| 93 | + kwargs["created_at"] = created_at |
| 94 | + if created_by is not unset: |
| 95 | + kwargs["created_by"] = created_by |
| 96 | + if description is not unset: |
| 97 | + kwargs["description"] = description |
| 98 | + if icon_url is not unset: |
| 99 | + kwargs["icon_url"] = icon_url |
| 100 | + if updated_at is not unset: |
| 101 | + kwargs["updated_at"] = updated_at |
| 102 | + super().__init__(kwargs) |
| 103 | + |
| 104 | + self_.handle = handle |
| 105 | + self_.id = id |
| 106 | + self_.name = name |
| 107 | + self_.org_id = org_id |
| 108 | + self_.version = version |
0 commit comments