Google Cloud OsConfig V1 Client - Class CreateOSPolicyAssignmentRequest (1.1.1)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class CreateOSPolicyAssignmentRequest.

A request message to create an OS policy assignment

Generated from protobuf message google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ os_policy_assignment Google\Cloud\OsConfig\V1\OSPolicyAssignment

Required. The OS policy assignment to be created.

↳ os_policy_assignment_id 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.

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOsPolicyAssignment

Required. The OS policy assignment to be created.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicyAssignment|null

hasOsPolicyAssignment

clearOsPolicyAssignment

setOsPolicyAssignment

Required. The OS policy assignment to be created.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicyAssignment
Returns
TypeDescription
$this

getOsPolicyAssignmentId

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
TypeDescription
string

setOsPolicyAssignmentId

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.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent resource name in the form: projects/{project}/locations/{location} Please see Google\Cloud\OsConfig\V1\OsConfigZonalServiceClient::locationName() for help formatting this field.

osPolicyAssignment Google\Cloud\OsConfig\V1\OSPolicyAssignment

Required. The OS policy assignment to be created.

osPolicyAssignmentId 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
TypeDescription
Google\Cloud\OsConfig\V1\CreateOSPolicyAssignmentRequest