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.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setParent
Required. The parent resource name in the form: projects/{project}/locations/{location}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOsPolicyAssignment
Required. The OS policy assignment to be created.
Returns | |
---|---|
Type | Description |
Google\Cloud\OsConfig\V1\OSPolicyAssignment|null |
hasOsPolicyAssignment
clearOsPolicyAssignment
setOsPolicyAssignment
Required. The OS policy assignment to be created.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\OsConfig\V1\OSPolicyAssignment
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |