Skip to content

Commit a32b30d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Make google auth optional for Observability Pipelines (#2961)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3948fc8 commit a32b30d

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34514,7 +34514,6 @@ components:
3451434514
- id
3451534515
- type
3451634516
- inputs
34517-
- auth
3451834517
- customer_id
3451934518
type: object
3452034519
ObservabilityPipelineGoogleChronicleDestinationEncoding:
@@ -34580,9 +34579,7 @@ components:
3458034579
- type
3458134580
- inputs
3458234581
- bucket
34583-
- auth
3458434582
- storage_class
34585-
- acl
3458634583
type: object
3458734584
ObservabilityPipelineGoogleCloudStorageDestinationAcl:
3458834585
description: Access control list setting for objects written to the bucket.
@@ -34713,7 +34710,6 @@ components:
3471334710
required:
3471434711
- id
3471534712
- type
34716-
- auth
3471734713
- decoding
3471834714
- project
3471934715
- subscription

src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, **kwargs):
4444
:type tls: ObservabilityPipelineTls, optional
4545
4646
:param acl: Access control list setting for objects written to the bucket.
47-
:type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl
47+
:type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, optional
4848
4949
:param metadata: Custom metadata to attach to each object uploaded to the GCS bucket.
5050
:type metadata: [ObservabilityPipelineMetadataEntry], optional

src/datadog_api_client/v2/model/observability_pipeline_google_chronicle_destination.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def openapi_types(_):
5656

5757
def __init__(
5858
self_,
59-
auth: ObservabilityPipelineGcpAuth,
6059
customer_id: str,
6160
id: str,
6261
inputs: List[str],
6362
type: ObservabilityPipelineGoogleChronicleDestinationType,
63+
auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset,
6464
encoding: Union[ObservabilityPipelineGoogleChronicleDestinationEncoding, UnsetType] = unset,
6565
log_type: Union[str, UnsetType] = unset,
6666
**kwargs,
@@ -69,7 +69,7 @@ def __init__(
6969
The ``google_chronicle`` destination sends logs to Google Chronicle.
7070
7171
:param auth: GCP credentials used to authenticate with Google Cloud Storage.
72-
:type auth: ObservabilityPipelineGcpAuth
72+
:type auth: ObservabilityPipelineGcpAuth, optional
7373
7474
:param customer_id: The Google Chronicle customer ID.
7575
:type customer_id: str
@@ -89,13 +89,14 @@ def __init__(
8989
:param type: The destination type. The value should always be ``google_chronicle``.
9090
:type type: ObservabilityPipelineGoogleChronicleDestinationType
9191
"""
92+
if auth is not unset:
93+
kwargs["auth"] = auth
9294
if encoding is not unset:
9395
kwargs["encoding"] = encoding
9496
if log_type is not unset:
9597
kwargs["log_type"] = log_type
9698
super().__init__(kwargs)
9799

98-
self_.auth = auth
99100
self_.customer_id = customer_id
100101
self_.id = id
101102
self_.inputs = inputs

src/datadog_api_client/v2/model/observability_pipeline_google_cloud_storage_destination.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ def openapi_types(_):
6868

6969
def __init__(
7070
self_,
71-
acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl,
72-
auth: ObservabilityPipelineGcpAuth,
7371
bucket: str,
7472
id: str,
7573
inputs: List[str],
7674
storage_class: ObservabilityPipelineGoogleCloudStorageDestinationStorageClass,
7775
type: ObservabilityPipelineGoogleCloudStorageDestinationType,
76+
acl: Union[ObservabilityPipelineGoogleCloudStorageDestinationAcl, UnsetType] = unset,
77+
auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset,
7878
key_prefix: Union[str, UnsetType] = unset,
7979
metadata: Union[List[ObservabilityPipelineMetadataEntry], UnsetType] = unset,
8080
**kwargs,
@@ -84,10 +84,10 @@ def __init__(
8484
It requires a bucket name, GCP authentication, and metadata fields.
8585
8686
:param acl: Access control list setting for objects written to the bucket.
87-
:type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl
87+
:type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, optional
8888
8989
:param auth: GCP credentials used to authenticate with Google Cloud Storage.
90-
:type auth: ObservabilityPipelineGcpAuth
90+
:type auth: ObservabilityPipelineGcpAuth, optional
9191
9292
:param bucket: Name of the GCS bucket.
9393
:type bucket: str
@@ -110,14 +110,16 @@ def __init__(
110110
:param type: The destination type. Always ``google_cloud_storage``.
111111
:type type: ObservabilityPipelineGoogleCloudStorageDestinationType
112112
"""
113+
if acl is not unset:
114+
kwargs["acl"] = acl
115+
if auth is not unset:
116+
kwargs["auth"] = auth
113117
if key_prefix is not unset:
114118
kwargs["key_prefix"] = key_prefix
115119
if metadata is not unset:
116120
kwargs["metadata"] = metadata
117121
super().__init__(kwargs)
118122

119-
self_.acl = acl
120-
self_.auth = auth
121123
self_.bucket = bucket
122124
self_.id = id
123125
self_.inputs = inputs

src/datadog_api_client/v2/model/observability_pipeline_google_pub_sub_source.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,20 @@ def openapi_types(_):
5454

5555
def __init__(
5656
self_,
57-
auth: ObservabilityPipelineGcpAuth,
5857
decoding: ObservabilityPipelineDecoding,
5958
id: str,
6059
project: str,
6160
subscription: str,
6261
type: ObservabilityPipelineGooglePubSubSourceType,
62+
auth: Union[ObservabilityPipelineGcpAuth, UnsetType] = unset,
6363
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
6464
**kwargs,
6565
):
6666
"""
6767
The ``google_pubsub`` source ingests logs from a Google Cloud Pub/Sub subscription.
6868
6969
:param auth: GCP credentials used to authenticate with Google Cloud Storage.
70-
:type auth: ObservabilityPipelineGcpAuth
70+
:type auth: ObservabilityPipelineGcpAuth, optional
7171
7272
:param decoding: The decoding format used to interpret incoming logs.
7373
:type decoding: ObservabilityPipelineDecoding
@@ -87,11 +87,12 @@ def __init__(
8787
:param type: The source type. The value should always be ``google_pubsub``.
8888
:type type: ObservabilityPipelineGooglePubSubSourceType
8989
"""
90+
if auth is not unset:
91+
kwargs["auth"] = auth
9092
if tls is not unset:
9193
kwargs["tls"] = tls
9294
super().__init__(kwargs)
9395

94-
self_.auth = auth
9596
self_.decoding = decoding
9697
self_.id = id
9798
self_.project = project

0 commit comments

Comments
 (0)