ProjectsLocationsRepositoriesWorkspaces
class ProjectsLocationsRepositoriesWorkspaces extends Resource (View source)
The "workspaces" collection of methods.
Typical usage is:
$dataformService = new Google\Service\Dataform(...);
$workspaces = $dataformService->projects_locations_repositories_workspaces;
Methods
Applies a Git commit for uncommitted files in a Workspace.
Deletes a single Workspace. (workspaces.delete)
Fetches Git diff for an uncommitted file in a Workspace.
Fetches Git statuses for the files in a Workspace.
Fetches Git ahead/behind against a remote branch.
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (workspaces.getIamPolicy)
Installs dependency NPM packages (inside a Workspace).
Lists Workspaces in a given Repository.
Creates a directory inside a Workspace. (workspaces.makeDirectory)
Moves a directory (inside a Workspace), and all of its contents, to a new location. (workspaces.moveDirectory)
Moves a file (inside a Workspace) to a new location. (workspaces.moveFile)
Pulls Git commits from the Repository's remote into a Workspace.
Pushes Git commits from a Workspace to the Repository's remote.
Returns the contents of a given Workspace directory.
Returns the contents of a file (inside a Workspace). (workspaces.readFile)
Deletes a directory (inside a Workspace) and all of its contents.
Deletes a file (inside a Workspace). (workspaces.removeFile)
Performs a Git reset for uncommitted files in a Workspace. (workspaces.reset)
Finds the contents of a given Workspace directory by filter.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (workspaces.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.
Writes to a file (inside a Workspace). (workspaces.writeFile)
Details
DataformEmpty
commit(string $name, CommitWorkspaceChangesRequest $postBody, array $optParams = [])
Applies a Git commit for uncommitted files in a Workspace.
(workspaces.commit)
Workspace
create(string $parent, Workspace $postBody, array $optParams = [])
Creates a new Workspace in a given Repository. (workspaces.create)
DataformEmpty
delete(string $name, array $optParams = [])
Deletes a single Workspace. (workspaces.delete)
FetchFileDiffResponse
fetchFileDiff(string $workspace, array $optParams = [])
Fetches Git diff for an uncommitted file in a Workspace.
(workspaces.fetchFileDiff)
FetchFileGitStatusesResponse
fetchFileGitStatuses(string $name, array $optParams = [])
Fetches Git statuses for the files in a Workspace.
(workspaces.fetchFileGitStatuses)
FetchGitAheadBehindResponse
fetchGitAheadBehind(string $name, array $optParams = [])
Fetches Git ahead/behind against a remote branch.
(workspaces.fetchGitAheadBehind)
Workspace
get(string $name, array $optParams = [])
Fetches a single Workspace. (workspaces.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. (workspaces.getIamPolicy)
InstallNpmPackagesResponse
installNpmPackages(string $workspace, InstallNpmPackagesRequest $postBody, array $optParams = [])
Installs dependency NPM packages (inside a Workspace).
(workspaces.installNpmPackages)
ListWorkspacesResponse
listProjectsLocationsRepositoriesWorkspaces(string $parent, array $optParams = [])
Lists Workspaces in a given Repository.
(workspaces.listProjectsLocationsRepositoriesWorkspaces)
MakeDirectoryResponse
makeDirectory(string $workspace, MakeDirectoryRequest $postBody, array $optParams = [])
Creates a directory inside a Workspace. (workspaces.makeDirectory)
MoveDirectoryResponse
moveDirectory(string $workspace, MoveDirectoryRequest $postBody, array $optParams = [])
Moves a directory (inside a Workspace), and all of its contents, to a new location. (workspaces.moveDirectory)
MoveFileResponse
moveFile(string $workspace, MoveFileRequest $postBody, array $optParams = [])
Moves a file (inside a Workspace) to a new location. (workspaces.moveFile)
DataformEmpty
pull(string $name, PullGitCommitsRequest $postBody, array $optParams = [])
Pulls Git commits from the Repository's remote into a Workspace.
(workspaces.pull)
DataformEmpty
push(string $name, PushGitCommitsRequest $postBody, array $optParams = [])
Pushes Git commits from a Workspace to the Repository's remote.
(workspaces.push)
QueryDirectoryContentsResponse
queryDirectoryContents(string $workspace, array $optParams = [])
Returns the contents of a given Workspace directory.
(workspaces.queryDirectoryContents)
ReadFileResponse
readFile(string $workspace, array $optParams = [])
Returns the contents of a file (inside a Workspace). (workspaces.readFile)
DataformEmpty
removeDirectory(string $workspace, RemoveDirectoryRequest $postBody, array $optParams = [])
Deletes a directory (inside a Workspace) and all of its contents.
(workspaces.removeDirectory)
DataformEmpty
removeFile(string $workspace, RemoveFileRequest $postBody, array $optParams = [])
Deletes a file (inside a Workspace). (workspaces.removeFile)
DataformEmpty
reset(string $name, ResetWorkspaceChangesRequest $postBody, array $optParams = [])
Performs a Git reset for uncommitted files in a Workspace. (workspaces.reset)
SearchFilesResponse
searchFiles(string $workspace, array $optParams = [])
Finds the contents of a given Workspace directory by filter.
(workspaces.searchFiles)
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. (workspaces.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. (workspaces.testIamPermissions)
WriteFileResponse
writeFile(string $workspace, WriteFileRequest $postBody, array $optParams = [])
Writes to a file (inside a Workspace). (workspaces.writeFile)