Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource

The "workspaces" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Dataform.v1beta1
Assembly: Google.Apis.Dataform.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource

Constructors

WorkspacesResource(IClientService)

Constructs a new resource.

Declaration
public WorkspacesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Commit(CommitWorkspaceChangesRequest, string)

Applies a Git commit for uncommitted files in a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.CommitRequest Commit(CommitWorkspaceChangesRequest body, string name)
Parameters
Type Name Description
CommitWorkspaceChangesRequest body

The body of the request.

string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.CommitRequest

Create(Workspace, string)

Creates a new Workspace in a given Repository.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.CreateRequest Create(Workspace body, string parent)
Parameters
Type Name Description
Workspace body

The body of the request.

string parent

Required. The repository in which to create the workspace. Must be in the format projects/*/locations/*/repositories/*.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.CreateRequest

Delete(string)

Deletes a single Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The workspace resource's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.DeleteRequest

FetchFileDiff(string)

Fetches Git diff for an uncommitted file in a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchFileDiffRequest FetchFileDiff(string workspace)
Parameters
Type Name Description
string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchFileDiffRequest

FetchFileGitStatuses(string)

Fetches Git statuses for the files in a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchFileGitStatusesRequest FetchFileGitStatuses(string name)
Parameters
Type Name Description
string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchFileGitStatusesRequest

FetchGitAheadBehind(string)

Fetches Git ahead/behind against a remote branch.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchGitAheadBehindRequest FetchGitAheadBehind(string name)
Parameters
Type Name Description
string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.FetchGitAheadBehindRequest

Get(string)

Fetches a single Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.GetRequest

GetIamPolicy(string)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.GetIamPolicyRequest

InstallNpmPackages(InstallNpmPackagesRequest, string)

Installs dependency NPM packages (inside a Workspace).

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.InstallNpmPackagesRequest InstallNpmPackages(InstallNpmPackagesRequest body, string workspace)
Parameters
Type Name Description
InstallNpmPackagesRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.InstallNpmPackagesRequest

List(string)

Lists Workspaces in a given Repository.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The repository in which to list workspaces. Must be in the format projects/*/locations/*/repositories/*.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ListRequest

MakeDirectory(MakeDirectoryRequest, string)

Creates a directory inside a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MakeDirectoryRequest MakeDirectory(MakeDirectoryRequest body, string workspace)
Parameters
Type Name Description
MakeDirectoryRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MakeDirectoryRequest

MoveDirectory(MoveDirectoryRequest, string)

Moves a directory (inside a Workspace), and all of its contents, to a new location.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MoveDirectoryRequest MoveDirectory(MoveDirectoryRequest body, string workspace)
Parameters
Type Name Description
MoveDirectoryRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MoveDirectoryRequest

MoveFile(MoveFileRequest, string)

Moves a file (inside a Workspace) to a new location.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MoveFileRequest MoveFile(MoveFileRequest body, string workspace)
Parameters
Type Name Description
MoveFileRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.MoveFileRequest

Pull(PullGitCommitsRequest, string)

Pulls Git commits from the Repository's remote into a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.PullRequest Pull(PullGitCommitsRequest body, string name)
Parameters
Type Name Description
PullGitCommitsRequest body

The body of the request.

string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.PullRequest

Push(PushGitCommitsRequest, string)

Pushes Git commits from a Workspace to the Repository's remote.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.PushRequest Push(PushGitCommitsRequest body, string name)
Parameters
Type Name Description
PushGitCommitsRequest body

The body of the request.

string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.PushRequest

QueryDirectoryContents(string)

Returns the contents of a given Workspace directory.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.QueryDirectoryContentsRequest QueryDirectoryContents(string workspace)
Parameters
Type Name Description
string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.QueryDirectoryContentsRequest

ReadFile(string)

Returns the contents of a file (inside a Workspace).

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ReadFileRequest ReadFile(string workspace)
Parameters
Type Name Description
string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ReadFileRequest

RemoveDirectory(RemoveDirectoryRequest, string)

Deletes a directory (inside a Workspace) and all of its contents.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.RemoveDirectoryRequest RemoveDirectory(RemoveDirectoryRequest body, string workspace)
Parameters
Type Name Description
RemoveDirectoryRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.RemoveDirectoryRequest

RemoveFile(RemoveFileRequest, string)

Deletes a file (inside a Workspace).

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.RemoveFileRequest RemoveFile(RemoveFileRequest body, string workspace)
Parameters
Type Name Description
RemoveFileRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.RemoveFileRequest

Reset(ResetWorkspaceChangesRequest, string)

Performs a Git reset for uncommitted files in a Workspace.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ResetRequest Reset(ResetWorkspaceChangesRequest body, string name)
Parameters
Type Name Description
ResetWorkspaceChangesRequest body

The body of the request.

string name

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.ResetRequest

SearchFiles(string)

Finds the contents of a given Workspace directory by filter.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.SearchFilesRequest SearchFiles(string workspace)
Parameters
Type Name Description
string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.SearchFilesRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

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.

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.TestIamPermissionsRequest

WriteFile(WriteFileRequest, string)

Writes to a file (inside a Workspace).

Declaration
public virtual ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.WriteFileRequest WriteFile(WriteFileRequest body, string workspace)
Parameters
Type Name Description
WriteFileRequest body

The body of the request.

string workspace

Required. The workspace's name.

Returns
Type Description
ProjectsResource.LocationsResource.RepositoriesResource.WorkspacesResource.WriteFileRequest
In this article
Back to top Generated by DocFX