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

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

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

Get a report of the OS policy assignment for a VM instance.

## Inheritance

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

## Implements

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

### GetOSPolicyAssignmentReportRequest()

    public GetOSPolicyAssignmentReportRequest()

### GetOSPolicyAssignmentReportRequest(GetOSPolicyAssignmentReportRequest)

    public GetOSPolicyAssignmentReportRequest(GetOSPolicyAssignmentReportRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. API resource name for OS policy assignment report.

Format:
`/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`

For `{project}`, either `project-number` or `project-id` can be provided.
For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
can be provided.
For `{assignment_id}`, the OSPolicyAssignment id must be provided.

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

### OSPolicyAssignmentReportName

    public OSPolicyAssignmentReportName OSPolicyAssignmentReportName { get; set; }

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