target.apidocs.com.google.api.services.cloudasset.v1.CloudAsset.EffectiveIamPolicies.BatchGet.html Maven / Gradle / Ivy
CloudAsset.EffectiveIamPolicies.BatchGet (Cloud Asset API v1-rev20241211-2.0.0)
com.google.api.services.cloudasset.v1
Class CloudAsset.EffectiveIamPolicies.BatchGet
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.cloudasset.v1.CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
- com.google.api.services.cloudasset.v1.CloudAsset.EffectiveIamPolicies.BatchGet
-
- Enclosing class:
- CloudAsset.EffectiveIamPolicies
public class CloudAsset.EffectiveIamPolicies.BatchGet
extends CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
BatchGet(String scope)
Gets effective IAM policies for a batch of resources.
-
Method Summary
-
Methods inherited from class com.google.api.services.cloudasset.v1.CloudAssetRequest
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
BatchGet
protected BatchGet(String scope)
Gets effective IAM policies for a batch of resources.
Create a request for the method "effectiveIamPolicies.batchGet".
This request holds the parameters needed by the the cloudasset server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
CloudAsset.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
- Parameters:
scope
- Required. Only IAM policies on or below the scope will be returned. 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).
- Since:
- 1.13
-
Method Detail
-
executeUsingHead
public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
- Overrides:
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<BatchGetEffectiveIamPoliciesResponse>
- Throws:
IOException
-
buildHttpRequestUsingHead
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
- Overrides:
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<BatchGetEffectiveIamPoliciesResponse>
- Throws:
IOException
-
set$Xgafv
public CloudAsset.EffectiveIamPolicies.BatchGet set$Xgafv(String $Xgafv)
Description copied from class: CloudAssetRequest
V1 error format.
- Overrides:
set$Xgafv
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setAccessToken
public CloudAsset.EffectiveIamPolicies.BatchGet setAccessToken(String accessToken)
Description copied from class: CloudAssetRequest
OAuth access token.
- Overrides:
setAccessToken
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setAlt
public CloudAsset.EffectiveIamPolicies.BatchGet setAlt(String alt)
Description copied from class: CloudAssetRequest
Data format for response.
- Overrides:
setAlt
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setCallback
public CloudAsset.EffectiveIamPolicies.BatchGet setCallback(String callback)
Description copied from class: CloudAssetRequest
JSONP
- Overrides:
setCallback
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setFields
public CloudAsset.EffectiveIamPolicies.BatchGet setFields(String fields)
Description copied from class: CloudAssetRequest
Selector specifying which fields to include in a partial response.
- Overrides:
setFields
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setKey
public CloudAsset.EffectiveIamPolicies.BatchGet setKey(String key)
Description copied from class: CloudAssetRequest
API key. Your API key identifies your project and provides you with API access, quota, and
reports. Required unless you provide an OAuth 2.0 token.
- Overrides:
setKey
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setOauthToken
public CloudAsset.EffectiveIamPolicies.BatchGet setOauthToken(String oauthToken)
Description copied from class: CloudAssetRequest
OAuth 2.0 token for the current user.
- Overrides:
setOauthToken
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setPrettyPrint
public CloudAsset.EffectiveIamPolicies.BatchGet setPrettyPrint(Boolean prettyPrint)
Description copied from class: CloudAssetRequest
Returns response with indentations and line breaks.
- Overrides:
setPrettyPrint
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setQuotaUser
public CloudAsset.EffectiveIamPolicies.BatchGet setQuotaUser(String quotaUser)
Description copied from class: CloudAssetRequest
Available to use for quota purposes for server-side applications. Can be any arbitrary string
assigned to a user, but should not exceed 40 characters.
- Overrides:
setQuotaUser
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setUploadType
public CloudAsset.EffectiveIamPolicies.BatchGet setUploadType(String uploadType)
Description copied from class: CloudAssetRequest
Legacy upload protocol for media (e.g. "media", "multipart").
- Overrides:
setUploadType
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
setUploadProtocol
public CloudAsset.EffectiveIamPolicies.BatchGet setUploadProtocol(String uploadProtocol)
Description copied from class: CloudAssetRequest
Upload protocol for media (e.g. "raw", "multipart").
- Overrides:
setUploadProtocol
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
-
getScope
public String getScope()
Required. Only IAM policies on or below the scope will be returned. 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).
-
setScope
public CloudAsset.EffectiveIamPolicies.BatchGet setScope(String scope)
Required. Only IAM policies on or below the scope will be returned. 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).
-
getNames
public List<String> getNames()
Required. The names refer to the [full_resource_names] (https://cloud.google.com/asset-
inventory/docs/resource-name-format) of the asset types [supported by search
APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). A maximum of 20
resources' effective policies can be retrieved in a batch.
-
setNames
public CloudAsset.EffectiveIamPolicies.BatchGet setNames(List<String> names)
Required. The names refer to the [full_resource_names] (https://cloud.google.com/asset-
inventory/docs/resource-name-format) of the asset types [supported by search
APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types). A maximum of 20
resources' effective policies can be retrieved in a batch.
-
set
public CloudAsset.EffectiveIamPolicies.BatchGet set(String parameterName,
Object value)
- Overrides:
set
in class CloudAssetRequest<BatchGetEffectiveIamPoliciesResponse>
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy