Google Cloud OS Config v1 API - Class CreateOSPolicyAssignmentRequest (2.3.0)

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

Reference documentation and code samples for the Google Cloud OS Config v1 API class CreateOSPolicyAssignmentRequest.

A request message to create an OS policy assignment

Inheritance

object > CreateOSPolicyAssignmentRequest

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

CreateOSPolicyAssignmentRequest()

public CreateOSPolicyAssignmentRequest()

CreateOSPolicyAssignmentRequest(CreateOSPolicyAssignmentRequest)

public CreateOSPolicyAssignmentRequest(CreateOSPolicyAssignmentRequest other)
Parameter
Name Description
other CreateOSPolicyAssignmentRequest

Properties

OsPolicyAssignment

public OSPolicyAssignment OsPolicyAssignment { get; set; }

Required. The OS policy assignment to be created.

Property Value
Type Description
OSPolicyAssignment

OsPolicyAssignmentId

public string OsPolicyAssignmentId { get; set; }

Required. The logical name of the OS policy assignment in the project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.
Property Value
Type Description
string

Parent

public string Parent { get; set; }

Required. The parent resource name in the form: projects/{project}/locations/{location}

Property Value
Type Description
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
Type Description
LocationName