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

com.google.api.services.cloudasset.v1.model.IamPolicyAnalysisQuery Maven / Gradle / Ivy

The 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.cloudasset.v1.model;

/**
 * IAM policy analysis query message.
 *
 * 

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 Asset 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 IamPolicyAnalysisQuery extends com.google.api.client.json.GenericJson { /** * Optional. Specifies roles or permissions for analysis. This is optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private AccessSelector accessSelector; /** * Optional. The hypothetical context for IAM conditions evaluation. * The value may be {@code null}. */ @com.google.api.client.util.Key private ConditionContext conditionContext; /** * Optional. Specifies an identity for analysis. * The value may be {@code null}. */ @com.google.api.client.util.Key private IdentitySelector identitySelector; /** * Optional. The query options. * The value may be {@code null}. */ @com.google.api.client.util.Key private Options options; /** * Optional. Specifies a resource for analysis. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceSelector resourceSelector; /** * Required. The relative name of the root asset. Only resources and IAM policies within the scope * will be analyzed. This can only be an organization number (such as "organizations/123"), a * folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a * project number (such as "projects/12345"). To know how to get organization ID, visit [here * ](https://cloud.google.com/resource-manager/docs/creating-managing- * organization#retrieving_your_organization_id). To know how to get folder or project ID, visit * [here ](https://cloud.google.com/resource-manager/docs/creating-managing- * folders#viewing_or_listing_folders_and_projects). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String scope; /** * Optional. Specifies roles or permissions for analysis. This is optional. * @return value or {@code null} for none */ public AccessSelector getAccessSelector() { return accessSelector; } /** * Optional. Specifies roles or permissions for analysis. This is optional. * @param accessSelector accessSelector or {@code null} for none */ public IamPolicyAnalysisQuery setAccessSelector(AccessSelector accessSelector) { this.accessSelector = accessSelector; return this; } /** * Optional. The hypothetical context for IAM conditions evaluation. * @return value or {@code null} for none */ public ConditionContext getConditionContext() { return conditionContext; } /** * Optional. The hypothetical context for IAM conditions evaluation. * @param conditionContext conditionContext or {@code null} for none */ public IamPolicyAnalysisQuery setConditionContext(ConditionContext conditionContext) { this.conditionContext = conditionContext; return this; } /** * Optional. Specifies an identity for analysis. * @return value or {@code null} for none */ public IdentitySelector getIdentitySelector() { return identitySelector; } /** * Optional. Specifies an identity for analysis. * @param identitySelector identitySelector or {@code null} for none */ public IamPolicyAnalysisQuery setIdentitySelector(IdentitySelector identitySelector) { this.identitySelector = identitySelector; return this; } /** * Optional. The query options. * @return value or {@code null} for none */ public Options getOptions() { return options; } /** * Optional. The query options. * @param options options or {@code null} for none */ public IamPolicyAnalysisQuery setOptions(Options options) { this.options = options; return this; } /** * Optional. Specifies a resource for analysis. * @return value or {@code null} for none */ public ResourceSelector getResourceSelector() { return resourceSelector; } /** * Optional. Specifies a resource for analysis. * @param resourceSelector resourceSelector or {@code null} for none */ public IamPolicyAnalysisQuery setResourceSelector(ResourceSelector resourceSelector) { this.resourceSelector = resourceSelector; return this; } /** * Required. The relative name of the root asset. Only resources and IAM policies within the scope * will be analyzed. This can only be an organization number (such as "organizations/123"), a * folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a * project number (such as "projects/12345"). To know how to get organization ID, visit [here * ](https://cloud.google.com/resource-manager/docs/creating-managing- * organization#retrieving_your_organization_id). To know how to get folder or project ID, visit * [here ](https://cloud.google.com/resource-manager/docs/creating-managing- * folders#viewing_or_listing_folders_and_projects). * @return value or {@code null} for none */ public java.lang.String getScope() { return scope; } /** * Required. The relative name of the root asset. Only resources and IAM policies within the scope * will be analyzed. This can only be an organization number (such as "organizations/123"), a * folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a * project number (such as "projects/12345"). To know how to get organization ID, visit [here * ](https://cloud.google.com/resource-manager/docs/creating-managing- * organization#retrieving_your_organization_id). To know how to get folder or project ID, visit * [here ](https://cloud.google.com/resource-manager/docs/creating-managing- * folders#viewing_or_listing_folders_and_projects). * @param scope scope or {@code null} for none */ public IamPolicyAnalysisQuery setScope(java.lang.String scope) { this.scope = scope; return this; } @Override public IamPolicyAnalysisQuery set(String fieldName, Object value) { return (IamPolicyAnalysisQuery) super.set(fieldName, value); } @Override public IamPolicyAnalysisQuery clone() { return (IamPolicyAnalysisQuery) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy