All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.accesscontextmanager.v1.model.IngressFrom Maven / Gradle / Ivy

There is a newer version: v1-rev20241113-2.0.0
Show newest version
/*
 * 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.accesscontextmanager.v1.model;

/**
 * Defines the conditions under which an IngressPolicy matches a request. Conditions are based on
 * information about the source of the request. The request must satisfy what is defined in
 * `sources` AND identity related fields in order to match.
 *
 * 

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 Access Context Manager 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 IngressFrom extends com.google.api.client.json.GenericJson { /** * A list of identities that are allowed access through [IngressPolicy]. Identities can be an * individual user, service account, Google group, or third-party identity. For third-party * identity, only single identities are supported and other identity types are not supported. The * `v1` identities that have the prefix `user`, `group`, `serviceAccount`, and `principal` in * https://cloud.google.com/iam/docs/principal-identifiers#v1 are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List identities; /** * Specifies the type of identities that are allowed access from outside the perimeter. If left * unspecified, then members of `identities` field will be allowed access. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String identityType; /** * Sources that this IngressPolicy authorizes access from. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List sources; /** * A list of identities that are allowed access through [IngressPolicy]. Identities can be an * individual user, service account, Google group, or third-party identity. For third-party * identity, only single identities are supported and other identity types are not supported. The * `v1` identities that have the prefix `user`, `group`, `serviceAccount`, and `principal` in * https://cloud.google.com/iam/docs/principal-identifiers#v1 are supported. * @return value or {@code null} for none */ public java.util.List getIdentities() { return identities; } /** * A list of identities that are allowed access through [IngressPolicy]. Identities can be an * individual user, service account, Google group, or third-party identity. For third-party * identity, only single identities are supported and other identity types are not supported. The * `v1` identities that have the prefix `user`, `group`, `serviceAccount`, and `principal` in * https://cloud.google.com/iam/docs/principal-identifiers#v1 are supported. * @param identities identities or {@code null} for none */ public IngressFrom setIdentities(java.util.List identities) { this.identities = identities; return this; } /** * Specifies the type of identities that are allowed access from outside the perimeter. If left * unspecified, then members of `identities` field will be allowed access. * @return value or {@code null} for none */ public java.lang.String getIdentityType() { return identityType; } /** * Specifies the type of identities that are allowed access from outside the perimeter. If left * unspecified, then members of `identities` field will be allowed access. * @param identityType identityType or {@code null} for none */ public IngressFrom setIdentityType(java.lang.String identityType) { this.identityType = identityType; return this; } /** * Sources that this IngressPolicy authorizes access from. * @return value or {@code null} for none */ public java.util.List getSources() { return sources; } /** * Sources that this IngressPolicy authorizes access from. * @param sources sources or {@code null} for none */ public IngressFrom setSources(java.util.List sources) { this.sources = sources; return this; } @Override public IngressFrom set(String fieldName, Object value) { return (IngressFrom) super.set(fieldName, value); } @Override public IngressFrom clone() { return (IngressFrom) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy