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
4 changes: 2 additions & 2 deletions clients/google-api-services-compute/alpha/2.0.0/README.md
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-compute</artifactId>
<version>alpha-rev20260530-2.0.0</version>
<version>alpha-rev20260612-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-compute:alpha-rev20260530-2.0.0'
implementation 'com.google.apis:google-api-services-compute:alpha-rev20260612-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240906,6 +240906,248 @@ public ReportFaulty set(String parameterName, Object value) {
return (ReportFaulty) super.set(parameterName, value);
}
}
/**
* Updates a reservation subBlock.
*
* Create a request for the method "reservationSubBlocks.update".
*
* This request holds the parameters needed by the compute server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation.
*
* @param project The project ID for this request.
* @param zone The name of the zone for this request.
* @param parentName The name of the parent reservation and parent block. In the format of
* reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
* @param reservationSubBlock The name of the subBlock resource.
* @param content the {@link com.google.api.services.compute.model.ReservationSubBlock}
* @return the request
*/
public Update update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlock content) throws java.io.IOException {
Update result = new Update(project, zone, parentName, reservationSubBlock, content);
initialize(result);
return result;
}

public class Update extends ComputeRequest<com.google.api.services.compute.model.Operation> {

private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}";

private final java.util.regex.Pattern PARENT_NAME_PATTERN =
java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$");

/**
* Updates a reservation subBlock.
*
* Create a request for the method "reservationSubBlocks.update".
*
* This request holds the parameters needed by the the compute server. After setting any optional
* parameters, call the {@link Update#execute()} method to invoke the remote operation. <p> {@link
* Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param project The project ID for this request.
* @param zone The name of the zone for this request.
* @param parentName The name of the parent reservation and parent block. In the format of
* reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
* @param reservationSubBlock The name of the subBlock resource.
* @param content the {@link com.google.api.services.compute.model.ReservationSubBlock}
* @since 1.13
*/
protected Update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlock content) {
super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class);
this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified.");
this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(),
"Parameter parentName must conform to the pattern " +
"^reservations/[^/]+/reservationBlocks/[^/]+$");
}
this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified.");
}

@Override
public Update set$Xgafv(java.lang.String $Xgafv) {
return (Update) super.set$Xgafv($Xgafv);
}

@Override
public Update setAccessToken(java.lang.String accessToken) {
return (Update) super.setAccessToken(accessToken);
}

@Override
public Update setAlt(java.lang.String alt) {
return (Update) super.setAlt(alt);
}

@Override
public Update setCallback(java.lang.String callback) {
return (Update) super.setCallback(callback);
}

@Override
public Update setFields(java.lang.String fields) {
return (Update) super.setFields(fields);
}

@Override
public Update setKey(java.lang.String key) {
return (Update) super.setKey(key);
}

@Override
public Update setOauthToken(java.lang.String oauthToken) {
return (Update) super.setOauthToken(oauthToken);
}

@Override
public Update setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Update) super.setPrettyPrint(prettyPrint);
}

@Override
public Update setQuotaUser(java.lang.String quotaUser) {
return (Update) super.setQuotaUser(quotaUser);
}

@Override
public Update setUploadType(java.lang.String uploadType) {
return (Update) super.setUploadType(uploadType);
}

@Override
public Update setUploadProtocol(java.lang.String uploadProtocol) {
return (Update) super.setUploadProtocol(uploadProtocol);
}

@Override
public Update setUserIp(java.lang.String userIp) {
return (Update) super.setUserIp(userIp);
}

/** The project ID for this request. */
@com.google.api.client.util.Key
private java.lang.String project;

/** The project ID for this request.
*/
public java.lang.String getProject() {
return project;
}

/** The project ID for this request. */
public Update setProject(java.lang.String project) {
this.project = project;
return this;
}

/** The name of the zone for this request. */
@com.google.api.client.util.Key
private java.lang.String zone;

/** The name of the zone for this request.
*/
public java.lang.String getZone() {
return zone;
}

/** The name of the zone for this request. */
public Update setZone(java.lang.String zone) {
this.zone = zone;
return this;
}

/**
* The name of the parent reservation and parent block. In the format of
* reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
*/
@com.google.api.client.util.Key
private java.lang.String parentName;

/** The name of the parent reservation and parent block. In the format of
reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
*/
public java.lang.String getParentName() {
return parentName;
}

/**
* The name of the parent reservation and parent block. In the format of
* reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
*/
public Update setParentName(java.lang.String parentName) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(),
"Parameter parentName must conform to the pattern " +
"^reservations/[^/]+/reservationBlocks/[^/]+$");
}
this.parentName = parentName;
return this;
}

/** The name of the subBlock resource. */
@com.google.api.client.util.Key
private java.lang.String reservationSubBlock;

/** The name of the subBlock resource.
*/
public java.lang.String getReservationSubBlock() {
return reservationSubBlock;
}

/** The name of the subBlock resource. */
public Update setReservationSubBlock(java.lang.String reservationSubBlock) {
this.reservationSubBlock = reservationSubBlock;
return this;
}

/**
* An optional request ID to identify requests. Specify a unique request ID so that if you
* must retry your request, the server will know to ignore the request if it has already been
* completed.
*/
@com.google.api.client.util.Key
private java.lang.String requestId;

/** An optional request ID to identify requests. Specify a unique request ID so that if you must retry
your request, the server will know to ignore the request if it has already been completed.
*/
public java.lang.String getRequestId() {
return requestId;
}

/**
* An optional request ID to identify requests. Specify a unique request ID so that if you
* must retry your request, the server will know to ignore the request if it has already been
* completed.
*/
public Update setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}

/** The fields to be updated as part of this request. */
@com.google.api.client.util.Key
private String updateMask;

/** The fields to be updated as part of this request.
*/
public String getUpdateMask() {
return updateMask;
}

/** The fields to be updated as part of this request. */
public Update setUpdateMask(String updateMask) {
this.updateMask = updateMask;
return this;
}

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

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ
@com.google.api.client.util.Key
private java.lang.Boolean autoDeleteAutoCreatedReservations;

/**
* Full or partial URL of an existing future reservation to indicate intent for reserving capacity
* in the same cluster as the colocation resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String colocationResource;

/**
* If not present, then FR will not deliver a new commitment or update an existing commitment.
* The value may be {@code null}.
Expand Down Expand Up @@ -359,6 +367,25 @@ public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean
return this;
}

/**
* Full or partial URL of an existing future reservation to indicate intent for reserving capacity
* in the same cluster as the colocation resource.
* @return value or {@code null} for none
*/
public java.lang.String getColocationResource() {
return colocationResource;
}

/**
* Full or partial URL of an existing future reservation to indicate intent for reserving capacity
* in the same cluster as the colocation resource.
* @param colocationResource colocationResource or {@code null} for none
*/
public FutureReservation setColocationResource(java.lang.String colocationResource) {
this.colocationResource = colocationResource;
return this;
}

/**
* If not present, then FR will not deliver a new commitment or update an existing commitment.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl
/**
* The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is
* `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by
* recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does
* not repair a failed VM.
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed
* VM by recreating it. For more information, see About repairing VMs in a MIG. -
* DO_NOTHING: MIG does not repair a failed VM.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -91,9 +91,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl
/**
* The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is
* `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by
* recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does
* not repair a failed VM.
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed
* VM by recreating it. For more information, see About repairing VMs in a MIG. -
* DO_NOTHING: MIG does not repair a failed VM.
* @return value or {@code null} for none
*/
public java.lang.String getDefaultActionOnFailure() {
Expand All @@ -103,9 +103,9 @@ public java.lang.String getDefaultActionOnFailure() {
/**
* The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is
* `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by
* recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does
* not repair a failed VM.
* a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed
* VM by recreating it. For more information, see About repairing VMs in a MIG. -
* DO_NOTHING: MIG does not repair a failed VM.
* @param defaultActionOnFailure defaultActionOnFailure or {@code null} for none
*/
public InstanceGroupManagerInstanceLifecyclePolicy setDefaultActionOnFailure(java.lang.String defaultActionOnFailure) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ public final class InterconnectMacsec extends com.google.api.client.json.Generic
@com.google.api.client.util.Key
private java.lang.Boolean failOpen;

/**
* Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format:
* projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String interconnectKeyGroup;

/**
* Required. A keychain placeholder describing a set of named key objects along with their start
* times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically
Expand Down Expand Up @@ -76,6 +84,25 @@ public InterconnectMacsec setFailOpen(java.lang.Boolean failOpen) {
return this;
}

/**
* Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format:
* projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}.
* @return value or {@code null} for none
*/
public java.lang.String getInterconnectKeyGroup() {
return interconnectKeyGroup;
}

/**
* Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format:
* projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}.
* @param interconnectKeyGroup interconnectKeyGroup or {@code null} for none
*/
public InterconnectMacsec setInterconnectKeyGroup(java.lang.String interconnectKeyGroup) {
this.interconnectKeyGroup = interconnectKeyGroup;
return this;
}

/**
* Required. A keychain placeholder describing a set of named key objects along with their start
* times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically
Expand Down
Loading
Loading