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

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

/**
 * `AuthorizedOrgsDesc` contains data for an organization's authorization policy.
 *
 * 

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 AuthorizedOrgsDesc extends com.google.api.client.json.GenericJson { /** * The asset type of this authorized orgs desc. Valid values are `ASSET_TYPE_DEVICE`, and * `ASSET_TYPE_CREDENTIAL_STRENGTH`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String assetType; /** * The direction of the authorization relationship between this organization and the organizations * listed in the `orgs` field. The valid values for this field include the following: * `AUTHORIZATION_DIRECTION_FROM`: Allows this organization to evaluate traffic in the * organizations listed in the `orgs` field. `AUTHORIZATION_DIRECTION_TO`: Allows the * organizations listed in the `orgs` field to evaluate the traffic in this organization. For the * authorization relationship to take effect, all of the organizations must authorize and specify * the appropriate relationship direction. For example, if organization A authorized organization * B and C to evaluate its traffic, by specifying `AUTHORIZATION_DIRECTION_TO` as the * authorization direction, organizations B and C must specify `AUTHORIZATION_DIRECTION_FROM` as * the authorization direction in their `AuthorizedOrgsDesc` resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String authorizationDirection; /** * A granular control type for authorization levels. Valid value is `AUTHORIZATION_TYPE_TRUST`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String authorizationType; /** * Identifier. Resource name for the `AuthorizedOrgsDesc`. Format: * `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The * `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters * or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The list of organization ids in this AuthorizedOrgsDesc. Format: `organizations/` Example: * `organizations/123456` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List orgs; /** * The asset type of this authorized orgs desc. Valid values are `ASSET_TYPE_DEVICE`, and * `ASSET_TYPE_CREDENTIAL_STRENGTH`. * @return value or {@code null} for none */ public java.lang.String getAssetType() { return assetType; } /** * The asset type of this authorized orgs desc. Valid values are `ASSET_TYPE_DEVICE`, and * `ASSET_TYPE_CREDENTIAL_STRENGTH`. * @param assetType assetType or {@code null} for none */ public AuthorizedOrgsDesc setAssetType(java.lang.String assetType) { this.assetType = assetType; return this; } /** * The direction of the authorization relationship between this organization and the organizations * listed in the `orgs` field. The valid values for this field include the following: * `AUTHORIZATION_DIRECTION_FROM`: Allows this organization to evaluate traffic in the * organizations listed in the `orgs` field. `AUTHORIZATION_DIRECTION_TO`: Allows the * organizations listed in the `orgs` field to evaluate the traffic in this organization. For the * authorization relationship to take effect, all of the organizations must authorize and specify * the appropriate relationship direction. For example, if organization A authorized organization * B and C to evaluate its traffic, by specifying `AUTHORIZATION_DIRECTION_TO` as the * authorization direction, organizations B and C must specify `AUTHORIZATION_DIRECTION_FROM` as * the authorization direction in their `AuthorizedOrgsDesc` resource. * @return value or {@code null} for none */ public java.lang.String getAuthorizationDirection() { return authorizationDirection; } /** * The direction of the authorization relationship between this organization and the organizations * listed in the `orgs` field. The valid values for this field include the following: * `AUTHORIZATION_DIRECTION_FROM`: Allows this organization to evaluate traffic in the * organizations listed in the `orgs` field. `AUTHORIZATION_DIRECTION_TO`: Allows the * organizations listed in the `orgs` field to evaluate the traffic in this organization. For the * authorization relationship to take effect, all of the organizations must authorize and specify * the appropriate relationship direction. For example, if organization A authorized organization * B and C to evaluate its traffic, by specifying `AUTHORIZATION_DIRECTION_TO` as the * authorization direction, organizations B and C must specify `AUTHORIZATION_DIRECTION_FROM` as * the authorization direction in their `AuthorizedOrgsDesc` resource. * @param authorizationDirection authorizationDirection or {@code null} for none */ public AuthorizedOrgsDesc setAuthorizationDirection(java.lang.String authorizationDirection) { this.authorizationDirection = authorizationDirection; return this; } /** * A granular control type for authorization levels. Valid value is `AUTHORIZATION_TYPE_TRUST`. * @return value or {@code null} for none */ public java.lang.String getAuthorizationType() { return authorizationType; } /** * A granular control type for authorization levels. Valid value is `AUTHORIZATION_TYPE_TRUST`. * @param authorizationType authorizationType or {@code null} for none */ public AuthorizedOrgsDesc setAuthorizationType(java.lang.String authorizationType) { this.authorizationType = authorizationType; return this; } /** * Identifier. Resource name for the `AuthorizedOrgsDesc`. Format: * `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The * `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters * or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Identifier. Resource name for the `AuthorizedOrgsDesc`. Format: * `accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}`. The * `authorized_orgs_desc` component must begin with a letter, followed by alphanumeric characters * or `_`. After you create an `AuthorizedOrgsDesc`, you cannot change its `name`. * @param name name or {@code null} for none */ public AuthorizedOrgsDesc setName(java.lang.String name) { this.name = name; return this; } /** * The list of organization ids in this AuthorizedOrgsDesc. Format: `organizations/` Example: * `organizations/123456` * @return value or {@code null} for none */ public java.util.List getOrgs() { return orgs; } /** * The list of organization ids in this AuthorizedOrgsDesc. Format: `organizations/` Example: * `organizations/123456` * @param orgs orgs or {@code null} for none */ public AuthorizedOrgsDesc setOrgs(java.util.List orgs) { this.orgs = orgs; return this; } @Override public AuthorizedOrgsDesc set(String fieldName, Object value) { return (AuthorizedOrgsDesc) super.set(fieldName, value); } @Override public AuthorizedOrgsDesc clone() { return (AuthorizedOrgsDesc) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy