From 6404acee257fb043833bbdd7c7b63c9b4c4a1508 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:56:21 -0800 Subject: [PATCH] chore: regenerate adsenseplatform client (#24979) Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml --- .../v1alpha/2.0.0/README.md | 4 +- .../v1alpha/AdSensePlatform.java | 163 ++++++++++++++++++ .../v1alpha/2.0.0/pom.xml | 4 +- .../v1alpha/README.md | 4 +- 4 files changed, 169 insertions(+), 6 deletions(-) diff --git a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/README.md b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/README.md index 0e561000ec5..8d15147b161 100644 --- a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-adsenseplatform - v1alpha-rev20250115-2.0.0 + v1alpha-rev20250120-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250115-2.0.0' + implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250120-2.0.0' } ``` diff --git a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java index d43c272fc2a..b9f623882c6 100644 --- a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java +++ b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java @@ -747,6 +747,169 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Update a Platform Child Site. + * + * Create a request for the method "sites.patch". + * + * This request holds the parameters needed by the adsenseplatform server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Format: + * accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite} + * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends AdSensePlatformRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$"); + + /** + * Update a Platform Child Site. + * + * Create a request for the method "sites.patch". + * + * This request holds the parameters needed by the the adsenseplatform server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Format: + * accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite} + * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite content) { + super(AdSensePlatform.this, "PATCH", REST_PATH, content, com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sit + * es/{platformChildSite} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Format: + accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sit + * es/{platformChildSite} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The list of fields to update - currently only supports updating the + * `platform_group` field. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update - currently only supports updating the `platform_group` + field. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. The list of fields to update - currently only supports updating the + * `platform_group` field. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } } } diff --git a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/pom.xml b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/pom.xml index 512bad3e77f..c80afc8c19f 100644 --- a/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-adsenseplatform/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-adsenseplatform - v1alpha-rev20250115-2.0.0 - AdSense Platform API v1alpha-rev20250115-2.0.0 + v1alpha-rev20250120-2.0.0 + AdSense Platform API v1alpha-rev20250120-2.0.0 jar 2011 diff --git a/clients/google-api-services-adsenseplatform/v1alpha/README.md b/clients/google-api-services-adsenseplatform/v1alpha/README.md index 0e561000ec5..8d15147b161 100644 --- a/clients/google-api-services-adsenseplatform/v1alpha/README.md +++ b/clients/google-api-services-adsenseplatform/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-adsenseplatform - v1alpha-rev20250115-2.0.0 + v1alpha-rev20250120-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250115-2.0.0' + implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250120-2.0.0' } ```