com.google.api.services.run.v2.model.GoogleCloudRunV2VpcAccess Maven / Gradle / Ivy
/*
* 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 Access settings. For more information on sending traffic to a VPC network, visit
* https://cloud.google.com/run/docs/configuring/connecting-vpc.
*
* 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:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudRunV2VpcAccess extends com.google.api.client.json.GenericJson {
/**
* VPC Access connector name. Format:
* `projects/{project}/locations/{location}/connectors/{connector}`, where `{project}` can be
* project id or number. For more information on sending traffic to a VPC network via a connector,
* visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String connector;
/**
* Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String egress;
/**
* Optional. Direct VPC egress settings. Currently only single network interface is supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List 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 id or number. For more information on sending traffic to a VPC network via a connector,
* visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
* @return value or {@code null} for none
*/
public java.lang.String getConnector() {
return connector;
}
/**
* VPC Access connector name. Format:
* `projects/{project}/locations/{location}/connectors/{connector}`, where `{project}` can be
* project id or number. For more information on sending traffic to a VPC network via a connector,
* visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
* @param connector connector or {@code null} for none
*/
public GoogleCloudRunV2VpcAccess setConnector(java.lang.String connector) {
this.connector = connector;
return this;
}
/**
* Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
* @return value or {@code null} for none
*/
public java.lang.String getEgress() {
return egress;
}
/**
* Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
* @param egress egress or {@code null} for none
*/
public GoogleCloudRunV2VpcAccess setEgress(java.lang.String egress) {
this.egress = egress;
return this;
}
/**
* Optional. Direct VPC egress settings. Currently only single network interface is supported.
* @return value or {@code null} for none
*/
public java.util.List getNetworkInterfaces() {
return networkInterfaces;
}
/**
* Optional. Direct VPC egress settings. Currently only single network interface is supported.
* @param networkInterfaces networkInterfaces or {@code null} for none
*/
public GoogleCloudRunV2VpcAccess setNetworkInterfaces(java.util.List networkInterfaces) {
this.networkInterfaces = networkInterfaces;
return this;
}
@Override
public GoogleCloudRunV2VpcAccess set(String fieldName, Object value) {
return (GoogleCloudRunV2VpcAccess) super.set(fieldName, value);
}
@Override
public GoogleCloudRunV2VpcAccess clone() {
return (GoogleCloudRunV2VpcAccess) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy