Skip to content

Commit

Permalink
chore: regenerate run client (#18064)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 12, 2023
1 parent b77b540 commit d8a9d67
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 10 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-run/v2/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-run</artifactId>
<version>v2-rev20230806-2.0.0</version>
<version>v2-rev20230910-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-run:v2-rev20230806-2.0.0'
implementation 'com.google.apis:google-api-services-run:v2-rev20230910-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public final class GoogleCloudRunV2GRPCAction extends com.google.api.client.json

/**
* Service is the name of the service to place in the gRPC HealthCheckRequest (see
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the
* default behavior is defined by gRPC.
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified,
* the default behavior is defined by gRPC.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -70,8 +70,8 @@ public GoogleCloudRunV2GRPCAction setPort(java.lang.Integer port) {

/**
* Service is the name of the service to place in the gRPC HealthCheckRequest (see
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the
* default behavior is defined by gRPC.
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified,
* the default behavior is defined by gRPC.
* @return value or {@code null} for none
*/
public java.lang.String getService() {
Expand All @@ -80,8 +80,8 @@ public java.lang.String getService() {

/**
* Service is the name of the service to place in the gRPC HealthCheckRequest (see
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the
* default behavior is defined by gRPC.
* https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified,
* the default behavior is defined by gRPC.
* @param service service or {@code null} for none
*/
public GoogleCloudRunV2GRPCAction setService(java.lang.String service) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* 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.run.v2.model;

/**
* VPC network settings.
*
* <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 Cloud Run Admin 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 GoogleCloudRunV2NetworkInterface extends com.google.api.client.json.GenericJson {

/**
* The VPC network name to access to. Defaults to "default" network.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String network;

/**
* The VPC subnetwork name to access to. Defaults to the same vaule of network.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String subnetwork;

/**
* Network tags applied to this VPC network.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> tags;

/**
* The VPC network name to access to. Defaults to "default" network.
* @return value or {@code null} for none
*/
public java.lang.String getNetwork() {
return network;
}

/**
* The VPC network name to access to. Defaults to "default" network.
* @param network network or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setNetwork(java.lang.String network) {
this.network = network;
return this;
}

/**
* The VPC subnetwork name to access to. Defaults to the same vaule of network.
* @return value or {@code null} for none
*/
public java.lang.String getSubnetwork() {
return subnetwork;
}

/**
* The VPC subnetwork name to access to. Defaults to the same vaule of network.
* @param subnetwork subnetwork or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setSubnetwork(java.lang.String subnetwork) {
this.subnetwork = subnetwork;
return this;
}

/**
* Network tags applied to this VPC network.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getTags() {
return tags;
}

/**
* Network tags applied to this VPC network.
* @param tags tags or {@code null} for none
*/
public GoogleCloudRunV2NetworkInterface setTags(java.util.List<java.lang.String> tags) {
this.tags = tags;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ public final class GoogleCloudRunV2VpcAccess extends com.google.api.client.json.
@com.google.api.client.util.Key
private java.lang.String egress;

/**
* VPC network to access to. Currently only single network interface is supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<GoogleCloudRunV2NetworkInterface> networkInterfaces;

static {
// hack to force ProGuard to consider GoogleCloudRunV2NetworkInterface used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GoogleCloudRunV2NetworkInterface.class);
}

/**
* VPC Access connector name. Format:
* projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project
Expand Down Expand Up @@ -86,6 +99,23 @@ public GoogleCloudRunV2VpcAccess setEgress(java.lang.String egress) {
return this;
}

/**
* VPC network to access to. Currently only single network interface is supported.
* @return value or {@code null} for none
*/
public java.util.List<GoogleCloudRunV2NetworkInterface> getNetworkInterfaces() {
return networkInterfaces;
}

/**
* VPC network to access to. Currently only single network interface is supported.
* @param networkInterfaces networkInterfaces or {@code null} for none
*/
public GoogleCloudRunV2VpcAccess setNetworkInterfaces(java.util.List<GoogleCloudRunV2NetworkInterface> networkInterfaces) {
this.networkInterfaces = networkInterfaces;
return this;
}

@Override
public GoogleCloudRunV2VpcAccess set(String fieldName, Object value) {
return (GoogleCloudRunV2VpcAccess) super.set(fieldName, value);
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-run/v2/2.0.0/pom.xml
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-run</artifactId>
<version>v2-rev20230806-2.0.0</version>
<name>Cloud Run Admin API v2-rev20230806-2.0.0</name>
<version>v2-rev20230910-2.0.0</version>
<name>Cloud Run Admin API v2-rev20230910-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down

0 comments on commit d8a9d67

Please sign in to comment.