Skip to content

chore: regenerate compute client #27013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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-rev20250415-2.0.0</version>
<version>alpha-rev20250511-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-rev20250415-2.0.0'
implementation 'com.google.apis:google-api-services-compute:alpha-rev20250511-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson
* are added/removed from the destination service. This field specifies parameters that control
* consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or
* RING_HASH. This field is applicable to either: - A regional backend service with the
* service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to
* service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
* INTERNAL_SELF_MANAGED.
* The value may be {@code null}.
Expand Down Expand Up @@ -336,7 +336,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
* selection times. For more information about Maglev, see
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
* backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
Expand Down Expand Up @@ -394,7 +394,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson
* The URL of the network to which this backend service belongs. This field must be set for
* Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External
* Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only
* be specified when the load balancing scheme is set to INTERNAL.
* be specified when the load balancing scheme is set to INTERNAL, or when the load balancing
* scheme is set to EXTERNAL and haPolicy fastIpMove is enabled.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -424,9 +425,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson
* managed regional API endpoints or managed services published using Private Service Connect
* Applicable backend service types can be: - A global backend service with the
* loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend
* service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to
* INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the
* backend service is referenced by a URL map that is bound to target gRPC proxy that has
* service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set
* to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when
* the backend service is referenced by a URL map that is bound to target gRPC proxy that has
* validateForProxyless field set to true.
* The value may be {@code null}.
*/
Expand Down Expand Up @@ -455,10 +456,10 @@ public final class BackendService extends com.google.api.client.json.GenericJson

/**
* The protocol this BackendService uses to communicate with backends. Possible values are HTTP,
* HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director
* configuration. Refer to the documentation for the load balancers or for Traffic Director for
* more information. Must be set to GRPC when the backend service is referenced by a URL map that
* is bound to target gRPC proxy.
* HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic
* Director configuration. Refer to the documentation for the load balancers or for Traffic
* Director for more information. Must be set to GRPC when the backend service is referenced by a
* URL map that is bound to target gRPC proxy.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -726,7 +727,7 @@ public BackendService setConnectionTrackingPolicy(BackendServiceConnectionTracki
* are added/removed from the destination service. This field specifies parameters that control
* consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or
* RING_HASH. This field is applicable to either: - A regional backend service with the
* service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to
* service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
* INTERNAL_SELF_MANAGED.
* @return value or {@code null} for none
Expand All @@ -742,7 +743,7 @@ public ConsistentHashLoadBalancerSettings getConsistentHash() {
* are added/removed from the destination service. This field specifies parameters that control
* consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or
* RING_HASH. This field is applicable to either: - A regional backend service with the
* service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to
* service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to
* INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to
* INTERNAL_SELF_MANAGED.
* @param consistentHash consistentHash or {@code null} for none
Expand Down Expand Up @@ -1276,7 +1277,7 @@ public BackendService setLocalityLbPolicies(java.util.List<BackendServiceLocalit
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
* selection times. For more information about Maglev, see
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
* backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
Expand Down Expand Up @@ -1305,7 +1306,7 @@ public java.lang.String getLocalityLbPolicy() {
* balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host
* selection times. For more information about Maglev, see
* https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional
* backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and
* backend service with the service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and
* load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the
* load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or EXTERNAL_MANAGED. If
* sessionAffinity is not configured—that is, if session affinity remains at the default value of
Expand Down Expand Up @@ -1417,7 +1418,8 @@ public BackendService setName(java.lang.String name) {
* The URL of the network to which this backend service belongs. This field must be set for
* Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External
* Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only
* be specified when the load balancing scheme is set to INTERNAL.
* be specified when the load balancing scheme is set to INTERNAL, or when the load balancing
* scheme is set to EXTERNAL and haPolicy fastIpMove is enabled.
* @return value or {@code null} for none
*/
public java.lang.String getNetwork() {
Expand All @@ -1428,7 +1430,8 @@ public java.lang.String getNetwork() {
* The URL of the network to which this backend service belongs. This field must be set for
* Internal Passthrough Network Load Balancers when the haPolicy is enabled, and for External
* Passthrough Network Load Balancers when the haPolicy fastIpMove is enabled. This field can only
* be specified when the load balancing scheme is set to INTERNAL.
* be specified when the load balancing scheme is set to INTERNAL, or when the load balancing
* scheme is set to EXTERNAL and haPolicy fastIpMove is enabled.
* @param network network or {@code null} for none
*/
public BackendService setNetwork(java.lang.String network) {
Expand Down Expand Up @@ -1471,9 +1474,9 @@ public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetwork
* managed regional API endpoints or managed services published using Private Service Connect
* Applicable backend service types can be: - A global backend service with the
* loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend
* service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to
* INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the
* backend service is referenced by a URL map that is bound to target gRPC proxy that has
* service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set
* to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when
* the backend service is referenced by a URL map that is bound to target gRPC proxy that has
* validateForProxyless field set to true.
* @return value or {@code null} for none
*/
Expand All @@ -1497,9 +1500,9 @@ public OutlierDetection getOutlierDetection() {
* managed regional API endpoints or managed services published using Private Service Connect
* Applicable backend service types can be: - A global backend service with the
* loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend
* service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to
* INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the
* backend service is referenced by a URL map that is bound to target gRPC proxy that has
* service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set
* to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when
* the backend service is referenced by a URL map that is bound to target gRPC proxy that has
* validateForProxyless field set to true.
* @param outlierDetection outlierDetection or {@code null} for none
*/
Expand Down Expand Up @@ -1556,10 +1559,10 @@ public BackendService setPortName(java.lang.String portName) {

/**
* The protocol this BackendService uses to communicate with backends. Possible values are HTTP,
* HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director
* configuration. Refer to the documentation for the load balancers or for Traffic Director for
* more information. Must be set to GRPC when the backend service is referenced by a URL map that
* is bound to target gRPC proxy.
* HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic
* Director configuration. Refer to the documentation for the load balancers or for Traffic
* Director for more information. Must be set to GRPC when the backend service is referenced by a
* URL map that is bound to target gRPC proxy.
* @return value or {@code null} for none
*/
public java.lang.String getProtocol() {
Expand All @@ -1568,10 +1571,10 @@ public java.lang.String getProtocol() {

/**
* The protocol this BackendService uses to communicate with backends. Possible values are HTTP,
* HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director
* configuration. Refer to the documentation for the load balancers or for Traffic Director for
* more information. Must be set to GRPC when the backend service is referenced by a URL map that
* is bound to target gRPC proxy.
* HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic
* Director configuration. Refer to the documentation for the load balancers or for Traffic
* Director for more information. Must be set to GRPC when the backend service is referenced by a
* URL map that is bound to target gRPC proxy.
* @param protocol protocol or {@code null} for none
*/
public BackendService setProtocol(java.lang.String protocol) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.compute.model;

/**
* A request to provide Assistant Scores. These scores determine VM obtainability and preemption
* likelihood.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CapacityAdviceRequest extends com.google.api.client.json.GenericJson {

/**
* Policy specifying the distribution of instances across zones within the requested region.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CapacityAdviceRequestDistributionPolicy distributionPolicy;

/**
* Policy for instance selectors.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy;

/**
* Instance properties for this request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private CapacityAdviceRequestInstanceProperties instanceProperties;

/**
* Policy specifying the distribution of instances across zones within the requested region.
* @return value or {@code null} for none
*/
public CapacityAdviceRequestDistributionPolicy getDistributionPolicy() {
return distributionPolicy;
}

/**
* Policy specifying the distribution of instances across zones within the requested region.
* @param distributionPolicy distributionPolicy or {@code null} for none
*/
public CapacityAdviceRequest setDistributionPolicy(CapacityAdviceRequestDistributionPolicy distributionPolicy) {
this.distributionPolicy = distributionPolicy;
return this;
}

/**
* Policy for instance selectors.
* @return value or {@code null} for none
*/
public CapacityAdviceRequestInstanceFlexibilityPolicy getInstanceFlexibilityPolicy() {
return instanceFlexibilityPolicy;
}

/**
* Policy for instance selectors.
* @param instanceFlexibilityPolicy instanceFlexibilityPolicy or {@code null} for none
*/
public CapacityAdviceRequest setInstanceFlexibilityPolicy(CapacityAdviceRequestInstanceFlexibilityPolicy instanceFlexibilityPolicy) {
this.instanceFlexibilityPolicy = instanceFlexibilityPolicy;
return this;
}

/**
* Instance properties for this request.
* @return value or {@code null} for none
*/
public CapacityAdviceRequestInstanceProperties getInstanceProperties() {
return instanceProperties;
}

/**
* Instance properties for this request.
* @param instanceProperties instanceProperties or {@code null} for none
*/
public CapacityAdviceRequest setInstanceProperties(CapacityAdviceRequestInstanceProperties instanceProperties) {
this.instanceProperties = instanceProperties;
return this;
}

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

@Override
public CapacityAdviceRequest clone() {
return (CapacityAdviceRequest) super.clone();
}

}
Loading