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

com.google.api.services.accesscontextmanager.v1.model.GcpUserAccessBinding 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;

/**
 * Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware
 * Access.
 *
 * 

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 GcpUserAccessBinding extends com.google.api.client.json.GenericJson { /** * Optional. Access level that a user must have to be granted access. Only one access level is * supported, not multiple. This repeated field must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List accessLevels; /** * Optional. Dry run access level that will be evaluated but will not be enforced. The access * denial based on dry run policy will be logged. Only one access level is supported, not * multiple. This list must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List dryRunAccessLevels; /** * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. * See "id" in the [G Suite Directory API's Groups resource] (https://developers.google.com/admin- * sdk/directory/v1/reference/groups#resource). If a group's email address/alias is changed, this * resource will continue to point at the changed group. This field does not accept group email * addresses or aliases. Example: "01d520gv4vjcrht" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String groupKey; /** * Immutable. Assigned by the server during creation. The last segment has an arbitrary length and * has only URI unreserved characters (as defined by [RFC 3986 Section * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client * during creation. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Optional. GCSL policy for the group key. * The value may be {@code null}. */ @com.google.api.client.util.Key private ReauthSettings reauthSettings; /** * Optional. A list of applications that are subject to this binding's restrictions. If the list * is empty, the binding restrictions will universally apply to all applications. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List restrictedClientApplications; static { // hack to force ProGuard to consider Application 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(Application.class); } /** * Optional. A list of scoped access settings that set this binding's restrictions on a subset of * applications. This field cannot be set if restricted_client_applications is set. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List scopedAccessSettings; /** * Optional. Access level that a user must have to be granted access. Only one access level is * supported, not multiple. This repeated field must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * @return value or {@code null} for none */ public java.util.List getAccessLevels() { return accessLevels; } /** * Optional. Access level that a user must have to be granted access. Only one access level is * supported, not multiple. This repeated field must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * @param accessLevels accessLevels or {@code null} for none */ public GcpUserAccessBinding setAccessLevels(java.util.List accessLevels) { this.accessLevels = accessLevels; return this; } /** * Optional. Dry run access level that will be evaluated but will not be enforced. The access * denial based on dry run policy will be logged. Only one access level is supported, not * multiple. This list must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * @return value or {@code null} for none */ public java.util.List getDryRunAccessLevels() { return dryRunAccessLevels; } /** * Optional. Dry run access level that will be evaluated but will not be enforced. The access * denial based on dry run policy will be logged. Only one access level is supported, not * multiple. This list must have exactly one element. Example: * "accessPolicies/9522/accessLevels/device_trusted" * @param dryRunAccessLevels dryRunAccessLevels or {@code null} for none */ public GcpUserAccessBinding setDryRunAccessLevels(java.util.List dryRunAccessLevels) { this.dryRunAccessLevels = dryRunAccessLevels; return this; } /** * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. * See "id" in the [G Suite Directory API's Groups resource] (https://developers.google.com/admin- * sdk/directory/v1/reference/groups#resource). If a group's email address/alias is changed, this * resource will continue to point at the changed group. This field does not accept group email * addresses or aliases. Example: "01d520gv4vjcrht" * @return value or {@code null} for none */ public java.lang.String getGroupKey() { return groupKey; } /** * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. * See "id" in the [G Suite Directory API's Groups resource] (https://developers.google.com/admin- * sdk/directory/v1/reference/groups#resource). If a group's email address/alias is changed, this * resource will continue to point at the changed group. This field does not accept group email * addresses or aliases. Example: "01d520gv4vjcrht" * @param groupKey groupKey or {@code null} for none */ public GcpUserAccessBinding setGroupKey(java.lang.String groupKey) { this.groupKey = groupKey; return this; } /** * Immutable. Assigned by the server during creation. The last segment has an arbitrary length and * has only URI unreserved characters (as defined by [RFC 3986 Section * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client * during creation. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Immutable. Assigned by the server during creation. The last segment has an arbitrary length and * has only URI unreserved characters (as defined by [RFC 3986 Section * 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client * during creation. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" * @param name name or {@code null} for none */ public GcpUserAccessBinding setName(java.lang.String name) { this.name = name; return this; } /** * Optional. GCSL policy for the group key. * @return value or {@code null} for none */ public ReauthSettings getReauthSettings() { return reauthSettings; } /** * Optional. GCSL policy for the group key. * @param reauthSettings reauthSettings or {@code null} for none */ public GcpUserAccessBinding setReauthSettings(ReauthSettings reauthSettings) { this.reauthSettings = reauthSettings; return this; } /** * Optional. A list of applications that are subject to this binding's restrictions. If the list * is empty, the binding restrictions will universally apply to all applications. * @return value or {@code null} for none */ public java.util.List getRestrictedClientApplications() { return restrictedClientApplications; } /** * Optional. A list of applications that are subject to this binding's restrictions. If the list * is empty, the binding restrictions will universally apply to all applications. * @param restrictedClientApplications restrictedClientApplications or {@code null} for none */ public GcpUserAccessBinding setRestrictedClientApplications(java.util.List restrictedClientApplications) { this.restrictedClientApplications = restrictedClientApplications; return this; } /** * Optional. A list of scoped access settings that set this binding's restrictions on a subset of * applications. This field cannot be set if restricted_client_applications is set. * @return value or {@code null} for none */ public java.util.List getScopedAccessSettings() { return scopedAccessSettings; } /** * Optional. A list of scoped access settings that set this binding's restrictions on a subset of * applications. This field cannot be set if restricted_client_applications is set. * @param scopedAccessSettings scopedAccessSettings or {@code null} for none */ public GcpUserAccessBinding setScopedAccessSettings(java.util.List scopedAccessSettings) { this.scopedAccessSettings = scopedAccessSettings; return this; } @Override public GcpUserAccessBinding set(String fieldName, Object value) { return (GcpUserAccessBinding) super.set(fieldName, value); } @Override public GcpUserAccessBinding clone() { return (GcpUserAccessBinding) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy