diff --git a/.apigentools-info b/.apigentools-info index 24ccbd5244..a1f09daffb 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-07 17:48:38.382305", - "spec_repo_commit": "e6f88173" + "regenerated": "2023-04-10 11:13:51.597147", + "spec_repo_commit": "04eeb6ee" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-07 17:48:38.394465", - "spec_repo_commit": "e6f88173" + "regenerated": "2023-04-10 11:13:51.609315", + "spec_repo_commit": "04eeb6ee" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6fd306effc..fb5a70c9a7 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2405,6 +2405,8 @@ components: items: type: string type: array + required: + - resource_type type: object ConfluentAccountResponse: description: The expected response schema when getting a Confluent account. @@ -2539,6 +2541,8 @@ components: items: type: string type: array + required: + - resource_type type: object ConfluentResourceRequestData: description: JSON:API request for updating a Confluent resource. diff --git a/src/datadog_api_client/v2/model/confluent_account_resource_attributes.py b/src/datadog_api_client/v2/model/confluent_account_resource_attributes.py index 7d71d8a789..d2bbbcd780 100644 --- a/src/datadog_api_client/v2/model/confluent_account_resource_attributes.py +++ b/src/datadog_api_client/v2/model/confluent_account_resource_attributes.py @@ -30,8 +30,8 @@ def openapi_types(_): def __init__( self_, + resource_type: str, id: Union[str, UnsetType] = unset, - resource_type: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs, ): @@ -42,15 +42,15 @@ def __init__( :type id: str, optional :param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``. - :type resource_type: str, optional + :type resource_type: str :param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. :type tags: [str], optional """ if id is not unset: kwargs["id"] = id - if resource_type is not unset: - kwargs["resource_type"] = resource_type if tags is not unset: kwargs["tags"] = tags super().__init__(kwargs) + + self_.resource_type = resource_type diff --git a/src/datadog_api_client/v2/model/confluent_resource_request_attributes.py b/src/datadog_api_client/v2/model/confluent_resource_request_attributes.py index 40b58000dc..e09eb4eac9 100644 --- a/src/datadog_api_client/v2/model/confluent_resource_request_attributes.py +++ b/src/datadog_api_client/v2/model/confluent_resource_request_attributes.py @@ -26,20 +26,18 @@ def openapi_types(_): "tags": "tags", } - def __init__( - self_, resource_type: Union[str, UnsetType] = unset, tags: Union[List[str], UnsetType] = unset, **kwargs - ): + def __init__(self_, resource_type: str, tags: Union[List[str], UnsetType] = unset, **kwargs): """ Attributes object for updating a Confluent resource. :param resource_type: The resource type of the Resource. Can be ``kafka`` , ``connector`` , ``ksql`` , or ``schema_registry``. - :type resource_type: str, optional + :type resource_type: str :param tags: A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon. :type tags: [str], optional """ - if resource_type is not unset: - kwargs["resource_type"] = resource_type if tags is not unset: kwargs["tags"] = tags super().__init__(kwargs) + + self_.resource_type = resource_type