# Google Cloud OS Config v1alpha API - Class GetInstanceOSPoliciesComplianceRequest (2.0.0-alpha07)

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

- [2.0.0-alpha07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest)
- [2.0.0-alpha06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/2.0.0-alpha06/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest)
- [1.0.0-alpha04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/1.0.0-alpha04/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest)

    [Obsolete]
    public sealed class GetInstanceOSPoliciesComplianceRequest : IMessage<GetInstanceOSPoliciesComplianceRequest>, IEquatable<GetInstanceOSPoliciesComplianceRequest>, IDeepCloneable<GetInstanceOSPoliciesComplianceRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1alpha API class GetInstanceOSPoliciesComplianceRequest.

A request message for getting OS policies compliance data for the given
Compute Engine VM instance.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetInstanceOSPoliciesComplianceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetInstanceOSPoliciesComplianceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetInstanceOSPoliciesComplianceRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest), [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.OsConfig.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha)

## Assembly

Google.Cloud.OsConfig.V1Alpha.dll

## Constructors

### GetInstanceOSPoliciesComplianceRequest()

    public GetInstanceOSPoliciesComplianceRequest()

### GetInstanceOSPoliciesComplianceRequest(GetInstanceOSPoliciesComplianceRequest)

    public GetInstanceOSPoliciesComplianceRequest(GetInstanceOSPoliciesComplianceRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest` |

## Properties

### InstanceOSPoliciesComplianceName

    [Obsolete]
    public InstanceOSPoliciesComplianceName InstanceOSPoliciesComplianceName { get; set; }

[InstanceOSPoliciesComplianceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesComplianceName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetInstanceOSPoliciesComplianceRequest#Google_Cloud_OsConfig_V1Alpha_GetInstanceOSPoliciesComplianceRequest_Name) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.InstanceOSPoliciesComplianceName` |   |

### Name

    public string Name { get; set; }

Required. API resource name for instance OS policies compliance resource.

Format:
`projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}`

For `{project}`, either Compute Engine project-number or project-id can be
provided.
For `{instance}`, either Compute Engine VM instance-id or instance-name can
be provided.

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