diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 71b4528bc8..5c692d0701 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -34514,7 +34514,6 @@ components: - id - type - inputs - - auth - customer_id type: object ObservabilityPipelineGoogleChronicleDestinationEncoding: @@ -34580,9 +34579,7 @@ components: - type - inputs - bucket - - auth - storage_class - - acl type: object ObservabilityPipelineGoogleCloudStorageDestinationAcl: description: Access control list setting for objects written to the bucket. @@ -34713,7 +34710,6 @@ components: required: - id - type - - auth - decoding - project - subscription diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py index ad7cdf4a89..df018bec4e 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py @@ -44,7 +44,7 @@ def __init__(self, **kwargs): :type tls: ObservabilityPipelineTls, optional :param acl: Access control list setting for objects written to the bucket. - :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl + :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, optional :param metadata: Custom metadata to attach to each object uploaded to the GCS bucket. :type metadata: [ObservabilityPipelineMetadataEntry], optional diff --git a/src/datadog_api_client/v2/model/observability_pipeline_google_chronicle_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_google_chronicle_destination.py index cdfbc1b816..964a09e959 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_google_chronicle_destination.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_google_chronicle_destination.py @@ -56,11 +56,11 @@ def openapi_types(_): def __init__( self_, - auth: ObservabilityPipelineGcpAuth, customer_id: str, id: str, inputs: List[str], type: ObservabilityPipelineGoogleChronicleDestinationType, + auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset, encoding: Union[ObservabilityPipelineGoogleChronicleDestinationEncoding, UnsetType] = unset, log_type: Union[str, UnsetType] = unset, **kwargs, @@ -69,7 +69,7 @@ def __init__( The ``google_chronicle`` destination sends logs to Google Chronicle. :param auth: GCP credentials used to authenticate with Google Cloud Storage. - :type auth: ObservabilityPipelineGcpAuth + :type auth: ObservabilityPipelineGcpAuth, optional :param customer_id: The Google Chronicle customer ID. :type customer_id: str @@ -89,13 +89,14 @@ def __init__( :param type: The destination type. The value should always be ``google_chronicle``. :type type: ObservabilityPipelineGoogleChronicleDestinationType """ + if auth is not unset: + kwargs["auth"] = auth if encoding is not unset: kwargs["encoding"] = encoding if log_type is not unset: kwargs["log_type"] = log_type super().__init__(kwargs) - self_.auth = auth self_.customer_id = customer_id self_.id = id self_.inputs = inputs diff --git a/src/datadog_api_client/v2/model/observability_pipeline_google_cloud_storage_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_google_cloud_storage_destination.py index baf750038b..a2e8b0c337 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_google_cloud_storage_destination.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_google_cloud_storage_destination.py @@ -68,13 +68,13 @@ def openapi_types(_): def __init__( self_, - acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, - auth: ObservabilityPipelineGcpAuth, bucket: str, id: str, inputs: List[str], storage_class: ObservabilityPipelineGoogleCloudStorageDestinationStorageClass, type: ObservabilityPipelineGoogleCloudStorageDestinationType, + acl: Union[ObservabilityPipelineGoogleCloudStorageDestinationAcl, UnsetType] = unset, + auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset, key_prefix: Union[str, UnsetType] = unset, metadata: Union[List[ObservabilityPipelineMetadataEntry], UnsetType] = unset, **kwargs, @@ -84,10 +84,10 @@ def __init__( It requires a bucket name, GCP authentication, and metadata fields. :param acl: Access control list setting for objects written to the bucket. - :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl + :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, optional :param auth: GCP credentials used to authenticate with Google Cloud Storage. - :type auth: ObservabilityPipelineGcpAuth + :type auth: ObservabilityPipelineGcpAuth, optional :param bucket: Name of the GCS bucket. :type bucket: str @@ -110,14 +110,16 @@ def __init__( :param type: The destination type. Always ``google_cloud_storage``. :type type: ObservabilityPipelineGoogleCloudStorageDestinationType """ + if acl is not unset: + kwargs["acl"] = acl + if auth is not unset: + kwargs["auth"] = auth if key_prefix is not unset: kwargs["key_prefix"] = key_prefix if metadata is not unset: kwargs["metadata"] = metadata super().__init__(kwargs) - self_.acl = acl - self_.auth = auth self_.bucket = bucket self_.id = id self_.inputs = inputs diff --git a/src/datadog_api_client/v2/model/observability_pipeline_google_pub_sub_source.py b/src/datadog_api_client/v2/model/observability_pipeline_google_pub_sub_source.py index 4cb4395cda..6135892ad0 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_google_pub_sub_source.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_google_pub_sub_source.py @@ -54,12 +54,12 @@ def openapi_types(_): def __init__( self_, - auth: ObservabilityPipelineGcpAuth, decoding: ObservabilityPipelineDecoding, id: str, project: str, subscription: str, type: ObservabilityPipelineGooglePubSubSourceType, + auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset, tls: Union[ObservabilityPipelineTls, UnsetType] = unset, **kwargs, ): @@ -67,7 +67,7 @@ def __init__( The ``google_pubsub`` source ingests logs from a Google Cloud Pub/Sub subscription. :param auth: GCP credentials used to authenticate with Google Cloud Storage. - :type auth: ObservabilityPipelineGcpAuth + :type auth: ObservabilityPipelineGcpAuth, optional :param decoding: The decoding format used to interpret incoming logs. :type decoding: ObservabilityPipelineDecoding @@ -87,11 +87,12 @@ def __init__( :param type: The source type. The value should always be ``google_pubsub``. :type type: ObservabilityPipelineGooglePubSubSourceType """ + if auth is not unset: + kwargs["auth"] = auth if tls is not unset: kwargs["tls"] = tls super().__init__(kwargs) - self_.auth = auth self_.decoding = decoding self_.id = id self_.project = project