Google Cloud OS Config v1alpha API - Class CreateOSPolicyAssignmentRequest (2.0.0-alpha05)

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

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

A request message to create an OS policy assignment

Inheritance

object > CreateOSPolicyAssignmentRequest

Namespace

Google.Cloud.OsConfig.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.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