ProjectsLocationsDeployments
class ProjectsLocationsDeployments extends Resource (View source)
The "deployments" collection of methods.
Typical usage is:
$configService = new Google\Service\Config(...);
$deployments = $configService->projects_locations_deployments;
Methods
Creates a Deployment. (deployments.create)
Deletes Terraform state file in a given deployment. (deployments.deleteState)
Exports the lock info on a locked deployment. (deployments.exportLock)
Exports Terraform state file from a given deployment.
Gets details about a Deployment. (deployments.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (deployments.getIamPolicy)
Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked. (deployments.importState)
Lists Deployments in a given project and location.
Locks a deployment. (deployments.lock)
Updates a Deployment. (deployments.patch)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (deployments.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Unlocks a locked deployment. (deployments.unlock)
Details
Operation
create(string $parent, Deployment $postBody, array $optParams = [])
Creates a Deployment. (deployments.create)
Operation
delete(string $name, array $optParams = [])
Deletes a Deployment. (deployments.delete)
ConfigEmpty
deleteState(string $name, DeleteStatefileRequest $postBody, array $optParams = [])
Deletes Terraform state file in a given deployment. (deployments.deleteState)
LockInfo
exportLock(string $name, array $optParams = [])
Exports the lock info on a locked deployment. (deployments.exportLock)
Statefile
exportState(string $parent, ExportDeploymentStatefileRequest $postBody, array $optParams = [])
Exports Terraform state file from a given deployment.
(deployments.exportState)
Deployment
get(string $name, array $optParams = [])
Gets details about a Deployment. (deployments.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (deployments.getIamPolicy)
Statefile
importState(string $parent, ImportStatefileRequest $postBody, array $optParams = [])
Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked. (deployments.importState)
ListDeploymentsResponse
listProjectsLocationsDeployments(string $parent, array $optParams = [])
Lists Deployments in a given project and location.
(deployments.listProjectsLocationsDeployments)
Operation
lock(string $name, LockDeploymentRequest $postBody, array $optParams = [])
Locks a deployment. (deployments.lock)
Operation
patch(string $name, Deployment $postBody, array $optParams = [])
Updates a Deployment. (deployments.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (deployments.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (deployments.testIamPermissions)
Operation
unlock(string $name, UnlockDeploymentRequest $postBody, array $optParams = [])
Unlocks a locked deployment. (deployments.unlock)