Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-webcontentpublisher</artifactId>
<version>v1-rev20260724-2.0.0</version>
<version>v1-rev20260801-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260724-2.0.0'
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260801-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,162 @@ public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Updates a CTA.
*
* Create a request for the method "ctas.patch".
*
* This request holds the parameters needed by the webcontentpublisher server. After setting any
* optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
* @param name Identifier. The resource name of the Cta. Format:
* organizations/{organization}/publications/{publication}/ctas/{cta}
* @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Cta}
* @return the request
*/
public Patch patch(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.Cta content) throws java.io.IOException {
Patch result = new Patch(name, content);
initialize(result);
return result;
}

public class Patch extends WebContentPublisherRequest<com.google.api.services.webcontentpublisher.v1.model.Cta> {

private static final String REST_PATH = "v1/{+name}";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$");

/**
* Updates a CTA.
*
* Create a request for the method "ctas.patch".
*
* This request holds the parameters needed by the the webcontentpublisher server. After setting
* any optional parameters, call the {@link Patch#execute()} method to invoke the remote
* operation. <p> {@link
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Identifier. The resource name of the Cta. Format:
* organizations/{organization}/publications/{publication}/ctas/{cta}
* @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Cta}
* @since 1.13
*/
protected Patch(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.Cta content) {
super(WebContentPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.webcontentpublisher.v1.model.Cta.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 " +
"^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$");
}
}

@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. The resource name of the Cta. Format:
* organizations/{organization}/publications/{publication}/ctas/{cta}
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Identifier. The resource name of the Cta. Format:
organizations/{organization}/publications/{publication}/ctas/{cta}
*/
public java.lang.String getName() {
return name;
}

/**
* Identifier. The resource name of the Cta. Format:
* organizations/{organization}/publications/{publication}/ctas/{cta}
*/
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 " +
"^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$");
}
this.name = name;
return this;
}

/** Optional. The list of fields to update. */
@com.google.api.client.util.Key
private String updateMask;

/** Optional. The list of fields to update.
*/
public String getUpdateMask() {
return updateMask;
}

/** Optional. The list of fields to update. */
public Patch setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}

@Override
public Patch set(String parameterName, Object value) {
return (Patch) super.set(parameterName, value);
}
}

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-webcontentpublisher</artifactId>
<version>v1-rev20260724-2.0.0</version>
<name>Web Content Publisher API v1-rev20260724-2.0.0</name>
<version>v1-rev20260801-2.0.0</version>
<name>Web Content Publisher API v1-rev20260801-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-webcontentpublisher</artifactId>
<version>v1-rev20260724-2.0.0</version>
<version>v1-rev20260801-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260724-2.0.0'
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260801-2.0.0'
}
```

Expand Down
Loading