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
Methods
__construct
Constructor.
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
↳ 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}
string
setParent
Required. The parent resource name in the form: projects/{project}/locations/{location}
var
string
$this
getOsPolicyAssignment
Required. The OS policy assignment to be created.
hasOsPolicyAssignment
clearOsPolicyAssignment
setOsPolicyAssignment
Required. The OS policy assignment to be created.
$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.
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.
var
string
$this