# Google Cloud OS Config v1alpha API - Class GetOSPolicyAssignmentRequest (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.GetOSPolicyAssignmentRequest)
- [2.0.0-alpha06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/2.0.0-alpha06/Google.Cloud.OsConfig.V1Alpha.GetOSPolicyAssignmentRequest)
- [1.0.0-alpha04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/1.0.0-alpha04/Google.Cloud.OsConfig.V1Alpha.GetOSPolicyAssignmentRequest)

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

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

A request message to get an OS policy assignment

## Inheritance

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

## Implements

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

### GetOSPolicyAssignmentRequest()

    public GetOSPolicyAssignmentRequest()

### GetOSPolicyAssignmentRequest(GetOSPolicyAssignmentRequest)

    public GetOSPolicyAssignmentRequest(GetOSPolicyAssignmentRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. The resource name of OS policy assignment.

Format:
`projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`

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

### OSPolicyAssignmentName

    public OSPolicyAssignmentName OSPolicyAssignmentName { get; set; }

[OSPolicyAssignmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.OSPolicyAssignmentName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsConfig.V1Alpha/latest/Google.Cloud.OsConfig.V1Alpha.GetOSPolicyAssignmentRequest#Google_Cloud_OsConfig_V1Alpha_GetOSPolicyAssignmentRequest_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.OSPolicyAssignmentName` |   |