ProjectsLocationsOsPolicyAssignments
class ProjectsLocationsOsPolicyAssignments extends Resource (View source)
The "osPolicyAssignments" collection of methods.
Typical usage is:
$osconfigService = new Google\Service\OSConfig(...);
$osPolicyAssignments = $osconfigService->projects_locations_osPolicyAssignments;
Methods
Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osP olicyAssignments.operations.cancel.
Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see Method: proj ects.locations.osPolicyAssignments.operations.cancel. (osPolicyAssignments.delete)
Retrieve an existing OS policy assignment. This method always returns the
latest revision. In order to retrieve a previous revision of the assignment,
also provide the revision ID in the name
parameter.
List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
List the OS policy assignment revisions for a given OS policy assignment.
Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osP olicyAssignments.operations.cancel.
Details
Operation
create(string $parent, OSPolicyAssignment $postBody, array $optParams = [])
Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osP olicyAssignments.operations.cancel.
(osPolicyAssignments.create)
Operation
delete(string $name, array $optParams = [])
Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see Method: proj ects.locations.osPolicyAssignments.operations.cancel. (osPolicyAssignments.delete)
OSPolicyAssignment
get(string $name, array $optParams = [])
Retrieve an existing OS policy assignment. This method always returns the
latest revision. In order to retrieve a previous revision of the assignment,
also provide the revision ID in the name
parameter.
(osPolicyAssignments.get)
ListOSPolicyAssignmentsResponse
listProjectsLocationsOsPolicyAssignments(string $parent, array $optParams = [])
List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
(osPolicyAssignments.listProjectsLocationsOsPolicyAssignments)
ListOSPolicyAssignmentRevisionsResponse
listRevisions(string $name, array $optParams = [])
List the OS policy assignment revisions for a given OS policy assignment.
(osPolicyAssignments.listRevisions)
Operation
patch(string $name, OSPolicyAssignment $postBody, array $optParams = [])
Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations.osP olicyAssignments.operations.cancel.
(osPolicyAssignments.patch)