12
12
/** Google AdWords service linked service properties. */
13
13
@ Fluent
14
14
public final class GoogleAdWordsLinkedServiceTypeProperties {
15
- /*
16
- * Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked
17
- * service. Type: object.
18
- */
19
- @ JsonProperty (value = "connectionProperties" )
20
- private Object connectionProperties ;
21
-
22
15
/*
23
16
* The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or
24
17
* Expression with resultType string).
@@ -66,26 +59,34 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
66
59
private Object email ;
67
60
68
61
/*
69
- * The full path to the .p12 key file that is used to authenticate the service account email address and can only
70
- * be used on self-hosted IR. Type: string (or Expression with resultType string) .
62
+ * The private key that is used to authenticate the service account email address and can only be used on
63
+ * self-hosted IR.
71
64
*/
72
- @ JsonProperty (value = "keyFilePath " )
73
- private Object keyFilePath ;
65
+ @ JsonProperty (value = "privateKey " )
66
+ private SecretBase privateKey ;
74
67
75
68
/*
76
- * The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over
77
- * SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file
78
- * installed with the IR. Type: string (or Expression with resultType string).
69
+ * The customer ID of the Google Ads Manager account through which you want to fetch report data of specific
70
+ * Customer. Type: string (or Expression with resultType string).
79
71
*/
80
- @ JsonProperty (value = "trustedCertPath " )
81
- private Object trustedCertPath ;
72
+ @ JsonProperty (value = "loginCustomerID " )
73
+ private Object loginCustomerId ;
82
74
83
75
/*
84
- * Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default
85
- * value is false. Type: boolean (or Expression with resultType boolean).
76
+ * The Google Ads API major version such as v14. The supported major versions could be found on
77
+ * https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or Expression with
78
+ * resultType string).
86
79
*/
87
- @ JsonProperty (value = "useSystemTrustStore" )
88
- private Object useSystemTrustStore ;
80
+ @ JsonProperty (value = "googleAdsApiVersion" )
81
+ private Object googleAdsApiVersion ;
82
+
83
+ /*
84
+ * Specifies whether to use the legacy data type mappings, which maps float, int32 and int64 from Google to string.
85
+ * Do not set this to true unless you want to keep backward compatibility with legacy driver's data type mappings.
86
+ * Type: boolean (or Expression with resultType boolean).
87
+ */
88
+ @ JsonProperty (value = "supportLegacyDataTypes" )
89
+ private Object supportLegacyDataTypes ;
89
90
90
91
/*
91
92
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
@@ -98,28 +99,6 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
98
99
public GoogleAdWordsLinkedServiceTypeProperties () {
99
100
}
100
101
101
- /**
102
- * Get the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any
103
- * other properties in the linked service. Type: object.
104
- *
105
- * @return the connectionProperties value.
106
- */
107
- public Object connectionProperties () {
108
- return this .connectionProperties ;
109
- }
110
-
111
- /**
112
- * Set the connectionProperties property: Properties used to connect to GoogleAds. It is mutually exclusive with any
113
- * other properties in the linked service. Type: object.
114
- *
115
- * @param connectionProperties the connectionProperties value to set.
116
- * @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
117
- */
118
- public GoogleAdWordsLinkedServiceTypeProperties withConnectionProperties (Object connectionProperties ) {
119
- this .connectionProperties = connectionProperties ;
120
- return this ;
121
- }
122
-
123
102
/**
124
103
* Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report
125
104
* data for. Type: string (or Expression with resultType string).
@@ -274,70 +253,94 @@ public GoogleAdWordsLinkedServiceTypeProperties withEmail(Object email) {
274
253
}
275
254
276
255
/**
277
- * Get the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account
278
- * email address and can only be used on self-hosted IR. Type: string (or Expression with resultType string) .
256
+ * Get the privateKey property: The private key that is used to authenticate the service account email address and
257
+ * can only be used on self-hosted IR.
279
258
*
280
- * @return the keyFilePath value.
259
+ * @return the privateKey value.
281
260
*/
282
- public Object keyFilePath () {
283
- return this .keyFilePath ;
261
+ public SecretBase privateKey () {
262
+ return this .privateKey ;
284
263
}
285
264
286
265
/**
287
- * Set the keyFilePath property: The full path to the .p12 key file that is used to authenticate the service account
288
- * email address and can only be used on self-hosted IR. Type: string (or Expression with resultType string) .
266
+ * Set the privateKey property: The private key that is used to authenticate the service account email address and
267
+ * can only be used on self-hosted IR.
289
268
*
290
- * @param keyFilePath the keyFilePath value to set.
269
+ * @param privateKey the privateKey value to set.
291
270
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
292
271
*/
293
- public GoogleAdWordsLinkedServiceTypeProperties withKeyFilePath ( Object keyFilePath ) {
294
- this .keyFilePath = keyFilePath ;
272
+ public GoogleAdWordsLinkedServiceTypeProperties withPrivateKey ( SecretBase privateKey ) {
273
+ this .privateKey = privateKey ;
295
274
return this ;
296
275
}
297
276
298
277
/**
299
- * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
300
- * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
301
- * value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string).
278
+ * Get the loginCustomerId property: The customer ID of the Google Ads Manager account through which you want to
279
+ * fetch report data of specific Customer. Type: string (or Expression with resultType string).
302
280
*
303
- * @return the trustedCertPath value.
281
+ * @return the loginCustomerId value.
304
282
*/
305
- public Object trustedCertPath () {
306
- return this .trustedCertPath ;
283
+ public Object loginCustomerId () {
284
+ return this .loginCustomerId ;
307
285
}
308
286
309
287
/**
310
- * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
311
- * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
312
- * value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string).
288
+ * Set the loginCustomerId property: The customer ID of the Google Ads Manager account through which you want to
289
+ * fetch report data of specific Customer. Type: string (or Expression with resultType string).
313
290
*
314
- * @param trustedCertPath the trustedCertPath value to set.
291
+ * @param loginCustomerId the loginCustomerId value to set.
315
292
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
316
293
*/
317
- public GoogleAdWordsLinkedServiceTypeProperties withTrustedCertPath (Object trustedCertPath ) {
318
- this .trustedCertPath = trustedCertPath ;
294
+ public GoogleAdWordsLinkedServiceTypeProperties withLoginCustomerId (Object loginCustomerId ) {
295
+ this .loginCustomerId = loginCustomerId ;
319
296
return this ;
320
297
}
321
298
322
299
/**
323
- * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
324
- * from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean).
300
+ * Get the googleAdsApiVersion property: The Google Ads API major version such as v14. The supported major versions
301
+ * could be found on https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or
302
+ * Expression with resultType string).
325
303
*
326
- * @return the useSystemTrustStore value.
304
+ * @return the googleAdsApiVersion value.
327
305
*/
328
- public Object useSystemTrustStore () {
329
- return this .useSystemTrustStore ;
306
+ public Object googleAdsApiVersion () {
307
+ return this .googleAdsApiVersion ;
330
308
}
331
309
332
310
/**
333
- * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
334
- * from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean).
311
+ * Set the googleAdsApiVersion property: The Google Ads API major version such as v14. The supported major versions
312
+ * could be found on https://developers.google.com/google-ads/api/docs/sunset-dates#timetable. Type: string (or
313
+ * Expression with resultType string).
335
314
*
336
- * @param useSystemTrustStore the useSystemTrustStore value to set.
315
+ * @param googleAdsApiVersion the googleAdsApiVersion value to set.
337
316
* @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
338
317
*/
339
- public GoogleAdWordsLinkedServiceTypeProperties withUseSystemTrustStore (Object useSystemTrustStore ) {
340
- this .useSystemTrustStore = useSystemTrustStore ;
318
+ public GoogleAdWordsLinkedServiceTypeProperties withGoogleAdsApiVersion (Object googleAdsApiVersion ) {
319
+ this .googleAdsApiVersion = googleAdsApiVersion ;
320
+ return this ;
321
+ }
322
+
323
+ /**
324
+ * Get the supportLegacyDataTypes property: Specifies whether to use the legacy data type mappings, which maps
325
+ * float, int32 and int64 from Google to string. Do not set this to true unless you want to keep backward
326
+ * compatibility with legacy driver's data type mappings. Type: boolean (or Expression with resultType boolean).
327
+ *
328
+ * @return the supportLegacyDataTypes value.
329
+ */
330
+ public Object supportLegacyDataTypes () {
331
+ return this .supportLegacyDataTypes ;
332
+ }
333
+
334
+ /**
335
+ * Set the supportLegacyDataTypes property: Specifies whether to use the legacy data type mappings, which maps
336
+ * float, int32 and int64 from Google to string. Do not set this to true unless you want to keep backward
337
+ * compatibility with legacy driver's data type mappings. Type: boolean (or Expression with resultType boolean).
338
+ *
339
+ * @param supportLegacyDataTypes the supportLegacyDataTypes value to set.
340
+ * @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
341
+ */
342
+ public GoogleAdWordsLinkedServiceTypeProperties withSupportLegacyDataTypes (Object supportLegacyDataTypes ) {
343
+ this .supportLegacyDataTypes = supportLegacyDataTypes ;
341
344
return this ;
342
345
}
343
346
@@ -378,5 +381,8 @@ public void validate() {
378
381
if (clientSecret () != null ) {
379
382
clientSecret ().validate ();
380
383
}
384
+ if (privateKey () != null ) {
385
+ privateKey ().validate ();
386
+ }
381
387
}
382
388
}
0 commit comments