Skip to content

Commit 2b7e6f0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Make google auth optional for Observability Pipelines (#3260)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9c6bc43 commit 2b7e6f0

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
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/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleChronicleDestination.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,11 @@ public ObservabilityPipelineGoogleChronicleDestination() {}
5959

6060
@JsonCreator
6161
public ObservabilityPipelineGoogleChronicleDestination(
62-
@JsonProperty(required = true, value = JSON_PROPERTY_AUTH) ObservabilityPipelineGcpAuth auth,
6362
@JsonProperty(required = true, value = JSON_PROPERTY_CUSTOMER_ID) String customerId,
6463
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
6564
@JsonProperty(required = true, value = JSON_PROPERTY_INPUTS) List<String> inputs,
6665
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
6766
ObservabilityPipelineGoogleChronicleDestinationType type) {
68-
this.auth = auth;
69-
this.unparsed |= auth.unparsed;
7067
this.customerId = customerId;
7168
this.id = id;
7269
this.inputs = inputs;
@@ -85,8 +82,9 @@ public ObservabilityPipelineGoogleChronicleDestination auth(ObservabilityPipelin
8582
*
8683
* @return auth
8784
*/
85+
@jakarta.annotation.Nullable
8886
@JsonProperty(JSON_PROPERTY_AUTH)
89-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
87+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9088
public ObservabilityPipelineGcpAuth getAuth() {
9189
return auth;
9290
}

src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGoogleCloudStorageDestination.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,13 @@ public ObservabilityPipelineGoogleCloudStorageDestination() {}
7070

7171
@JsonCreator
7272
public ObservabilityPipelineGoogleCloudStorageDestination(
73-
@JsonProperty(required = true, value = JSON_PROPERTY_ACL)
74-
ObservabilityPipelineGoogleCloudStorageDestinationAcl acl,
75-
@JsonProperty(required = true, value = JSON_PROPERTY_AUTH) ObservabilityPipelineGcpAuth auth,
7673
@JsonProperty(required = true, value = JSON_PROPERTY_BUCKET) String bucket,
7774
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
7875
@JsonProperty(required = true, value = JSON_PROPERTY_INPUTS) List<String> inputs,
7976
@JsonProperty(required = true, value = JSON_PROPERTY_STORAGE_CLASS)
8077
ObservabilityPipelineGoogleCloudStorageDestinationStorageClass storageClass,
8178
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
8279
ObservabilityPipelineGoogleCloudStorageDestinationType type) {
83-
this.acl = acl;
84-
this.unparsed |= !acl.isValid();
85-
this.auth = auth;
86-
this.unparsed |= auth.unparsed;
8780
this.bucket = bucket;
8881
this.id = id;
8982
this.inputs = inputs;
@@ -105,8 +98,9 @@ public ObservabilityPipelineGoogleCloudStorageDestination acl(
10598
*
10699
* @return acl
107100
*/
101+
@jakarta.annotation.Nullable
108102
@JsonProperty(JSON_PROPERTY_ACL)
109-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
103+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110104
public ObservabilityPipelineGoogleCloudStorageDestinationAcl getAcl() {
111105
return acl;
112106
}
@@ -130,8 +124,9 @@ public ObservabilityPipelineGoogleCloudStorageDestination auth(
130124
*
131125
* @return auth
132126
*/
127+
@jakarta.annotation.Nullable
133128
@JsonProperty(JSON_PROPERTY_AUTH)
134-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
129+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135130
public ObservabilityPipelineGcpAuth getAuth() {
136131
return auth;
137132
}

src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineGooglePubSubSource.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,13 @@ public ObservabilityPipelineGooglePubSubSource() {}
5757

5858
@JsonCreator
5959
public ObservabilityPipelineGooglePubSubSource(
60-
@JsonProperty(required = true, value = JSON_PROPERTY_AUTH) ObservabilityPipelineGcpAuth auth,
6160
@JsonProperty(required = true, value = JSON_PROPERTY_DECODING)
6261
ObservabilityPipelineDecoding decoding,
6362
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
6463
@JsonProperty(required = true, value = JSON_PROPERTY_PROJECT) String project,
6564
@JsonProperty(required = true, value = JSON_PROPERTY_SUBSCRIPTION) String subscription,
6665
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
6766
ObservabilityPipelineGooglePubSubSourceType type) {
68-
this.auth = auth;
69-
this.unparsed |= auth.unparsed;
7067
this.decoding = decoding;
7168
this.unparsed |= !decoding.isValid();
7269
this.id = id;
@@ -87,8 +84,9 @@ public ObservabilityPipelineGooglePubSubSource auth(ObservabilityPipelineGcpAuth
8784
*
8885
* @return auth
8986
*/
87+
@jakarta.annotation.Nullable
9088
@JsonProperty(JSON_PROPERTY_AUTH)
91-
@JsonInclude(value = JsonInclude.Include.ALWAYS)
89+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9290
public ObservabilityPipelineGcpAuth getAuth() {
9391
return auth;
9492
}

0 commit comments

Comments
 (0)