# Google Cloud Asset Inventory v1 API - Class BatchGetEffectiveIamPoliciesRequest (3.14.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.14.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.13.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)

    public sealed class BatchGetEffectiveIamPoliciesRequest : IMessage<BatchGetEffectiveIamPoliciesRequest>, IEquatable<BatchGetEffectiveIamPoliciesRequest>, IDeepCloneable<BatchGetEffectiveIamPoliciesRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class BatchGetEffectiveIamPoliciesRequest.

A request message for
\[AssetService.BatchGetEffectiveIamPolicies\]\[google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> BatchGetEffectiveIamPoliciesRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchGetEffectiveIamPoliciesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchGetEffectiveIamPoliciesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchGetEffectiveIamPoliciesRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Asset.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)

## Assembly

Google.Cloud.Asset.V1.dll

## Constructors

### BatchGetEffectiveIamPoliciesRequest()

    public BatchGetEffectiveIamPoliciesRequest()

### BatchGetEffectiveIamPoliciesRequest(BatchGetEffectiveIamPoliciesRequest)

    public BatchGetEffectiveIamPoliciesRequest(BatchGetEffectiveIamPoliciesRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest` |

## Properties

### Names

    public RepeatedField<string> Names { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### ResourceNames

    public ResourceNameList<IResourceName> ResourceNames { get; }

[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Names](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest#Google_Cloud_Asset_V1_BatchGetEffectiveIamPoliciesRequest_Names) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNameList-1.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` |   |

### Scope

    public string Scope { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ScopeAsResourceName

    public IResourceName ScopeAsResourceName { get; set; }

[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Scope](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest#Google_Cloud_Asset_V1_BatchGetEffectiveIamPoliciesRequest_Scope) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` |   |