
com.google.api.services.cloudasset.v1.model.EffectiveIamPolicy 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.cloudasset.v1.model;
/**
* The effective IAM policies on one resource.
*
* 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 EffectiveIamPolicy extends com.google.api.client.json.GenericJson {
/**
* The [full_resource_name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
* for which the policies are computed. This is one of the
* BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String fullResourceName;
/**
* The effective policies for the full_resource_name. These policies include the policy set on the
* full_resource_name and those set on its parents and ancestors up to the
* BatchGetEffectiveIamPoliciesRequest.scope. Note that these policies are not filtered according
* to the resource type of the full_resource_name. These policies are hierarchically ordered by
* PolicyInfo.attached_resource starting from full_resource_name itself to its parents and
* ancestors, such that policies[i]'s PolicyInfo.attached_resource is the child of policies[i+1]'s
* PolicyInfo.attached_resource, if policies[i+1] exists.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List policies;
/**
* The [full_resource_name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
* for which the policies are computed. This is one of the
* BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.
* @return value or {@code null} for none
*/
public java.lang.String getFullResourceName() {
return fullResourceName;
}
/**
* The [full_resource_name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
* for which the policies are computed. This is one of the
* BatchGetEffectiveIamPoliciesRequest.names the caller provides in the request.
* @param fullResourceName fullResourceName or {@code null} for none
*/
public EffectiveIamPolicy setFullResourceName(java.lang.String fullResourceName) {
this.fullResourceName = fullResourceName;
return this;
}
/**
* The effective policies for the full_resource_name. These policies include the policy set on the
* full_resource_name and those set on its parents and ancestors up to the
* BatchGetEffectiveIamPoliciesRequest.scope. Note that these policies are not filtered according
* to the resource type of the full_resource_name. These policies are hierarchically ordered by
* PolicyInfo.attached_resource starting from full_resource_name itself to its parents and
* ancestors, such that policies[i]'s PolicyInfo.attached_resource is the child of policies[i+1]'s
* PolicyInfo.attached_resource, if policies[i+1] exists.
* @return value or {@code null} for none
*/
public java.util.List getPolicies() {
return policies;
}
/**
* The effective policies for the full_resource_name. These policies include the policy set on the
* full_resource_name and those set on its parents and ancestors up to the
* BatchGetEffectiveIamPoliciesRequest.scope. Note that these policies are not filtered according
* to the resource type of the full_resource_name. These policies are hierarchically ordered by
* PolicyInfo.attached_resource starting from full_resource_name itself to its parents and
* ancestors, such that policies[i]'s PolicyInfo.attached_resource is the child of policies[i+1]'s
* PolicyInfo.attached_resource, if policies[i+1] exists.
* @param policies policies or {@code null} for none
*/
public EffectiveIamPolicy setPolicies(java.util.List policies) {
this.policies = policies;
return this;
}
@Override
public EffectiveIamPolicy set(String fieldName, Object value) {
return (EffectiveIamPolicy) super.set(fieldName, value);
}
@Override
public EffectiveIamPolicy clone() {
return (EffectiveIamPolicy) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy