1212/** Google AdWords service linked service properties. */
1313@ Fluent
1414public 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-
2215 /*
2316 * The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or
2417 * Expression with resultType string).
@@ -66,26 +59,34 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
6659 private Object email ;
6760
6861 /*
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.
7164 */
72- @ JsonProperty (value = "keyFilePath " )
73- private Object keyFilePath ;
65+ @ JsonProperty (value = "privateKey " )
66+ private SecretBase privateKey ;
7467
7568 /*
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).
7971 */
80- @ JsonProperty (value = "trustedCertPath " )
81- private Object trustedCertPath ;
72+ @ JsonProperty (value = "loginCustomerID " )
73+ private Object loginCustomerId ;
8274
8375 /*
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).
8679 */
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 ;
8990
9091 /*
9192 * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
@@ -98,28 +99,6 @@ public final class GoogleAdWordsLinkedServiceTypeProperties {
9899 public GoogleAdWordsLinkedServiceTypeProperties () {
99100 }
100101
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-
123102 /**
124103 * Get the clientCustomerId property: The Client customer ID of the AdWords account that you want to fetch report
125104 * data for. Type: string (or Expression with resultType string).
@@ -274,70 +253,94 @@ public GoogleAdWordsLinkedServiceTypeProperties withEmail(Object email) {
274253 }
275254
276255 /**
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.
279258 *
280- * @return the keyFilePath value.
259+ * @return the privateKey value.
281260 */
282- public Object keyFilePath () {
283- return this .keyFilePath ;
261+ public SecretBase privateKey () {
262+ return this .privateKey ;
284263 }
285264
286265 /**
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.
289268 *
290- * @param keyFilePath the keyFilePath value to set.
269+ * @param privateKey the privateKey value to set.
291270 * @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
292271 */
293- public GoogleAdWordsLinkedServiceTypeProperties withKeyFilePath ( Object keyFilePath ) {
294- this .keyFilePath = keyFilePath ;
272+ public GoogleAdWordsLinkedServiceTypeProperties withPrivateKey ( SecretBase privateKey ) {
273+ this .privateKey = privateKey ;
295274 return this ;
296275 }
297276
298277 /**
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).
302280 *
303- * @return the trustedCertPath value.
281+ * @return the loginCustomerId value.
304282 */
305- public Object trustedCertPath () {
306- return this .trustedCertPath ;
283+ public Object loginCustomerId () {
284+ return this .loginCustomerId ;
307285 }
308286
309287 /**
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).
313290 *
314- * @param trustedCertPath the trustedCertPath value to set.
291+ * @param loginCustomerId the loginCustomerId value to set.
315292 * @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
316293 */
317- public GoogleAdWordsLinkedServiceTypeProperties withTrustedCertPath (Object trustedCertPath ) {
318- this .trustedCertPath = trustedCertPath ;
294+ public GoogleAdWordsLinkedServiceTypeProperties withLoginCustomerId (Object loginCustomerId ) {
295+ this .loginCustomerId = loginCustomerId ;
319296 return this ;
320297 }
321298
322299 /**
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).
325303 *
326- * @return the useSystemTrustStore value.
304+ * @return the googleAdsApiVersion value.
327305 */
328- public Object useSystemTrustStore () {
329- return this .useSystemTrustStore ;
306+ public Object googleAdsApiVersion () {
307+ return this .googleAdsApiVersion ;
330308 }
331309
332310 /**
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).
335314 *
336- * @param useSystemTrustStore the useSystemTrustStore value to set.
315+ * @param googleAdsApiVersion the googleAdsApiVersion value to set.
337316 * @return the GoogleAdWordsLinkedServiceTypeProperties object itself.
338317 */
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 ;
341344 return this ;
342345 }
343346
@@ -378,5 +381,8 @@ public void validate() {
378381 if (clientSecret () != null ) {
379382 clientSecret ().validate ();
380383 }
384+ if (privateKey () != null ) {
385+ privateKey ().validate ();
386+ }
381387 }
382388}
0 commit comments