Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::CreateOSPolicyAssignmentRequest (v0.13.0)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::CreateOSPolicyAssignmentRequest.

A request message to create an OS policy assignment

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#os_policy_assignment

def os_policy_assignment() -> ::Google::Cloud::OsConfig::V1::OSPolicyAssignment
Returns

#os_policy_assignment=

def os_policy_assignment=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicyAssignment
Parameter
Returns

#os_policy_assignment_id

def os_policy_assignment_id() -> ::String
Returns
  • (::String) —

    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.

#os_policy_assignment_id=

def os_policy_assignment_id=(value) -> ::String
Parameter
  • value (::String) —

    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.
Returns
  • (::String) —

    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.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The parent resource name in the form: projects/{project}/locations/{location}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The parent resource name in the form: projects/{project}/locations/{location}
Returns
  • (::String) — Required. The parent resource name in the form: projects/{project}/locations/{location}