Class ProjectsResource.ReposResource
The "repos" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudSourceRepositories.v1
Assembly: Google.Apis.CloudSourceRepositories.v1.dll
Syntax
public class ProjectsResource.ReposResource
Constructors
ReposResource(IClientService)
Constructs a new resource.
Declaration
public ReposResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Repo, string)
Creates a repo in the given project with the given name. If the named repository already exists,
CreateRepo
returns ALREADY_EXISTS
.
Declaration
public virtual ProjectsResource.ReposResource.CreateRequest Create(Repo body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Repo | body | The body of the request. |
string | parent | The project in which to create the repo. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.CreateRequest |
Delete(string)
Deletes a repo.
Declaration
public virtual ProjectsResource.ReposResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the repo to delete. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.DeleteRequest |
Get(string)
Returns information about a repo.
Declaration
public virtual ProjectsResource.ReposResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the requested repository. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.GetRequest |
GetIamPolicy(string)
Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.ReposResource.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.ReposResource.GetIamPolicyRequest |
List(string)
Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size of a repo, use GetRepo.
Declaration
public virtual ProjectsResource.ReposResource.ListRequest List(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The project ID whose repos should be listed. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.ListRequest |
Patch(UpdateRepoRequest, string)
Updates information about a repo.
Declaration
public virtual ProjectsResource.ReposResource.PatchRequest Patch(UpdateRepoRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
UpdateRepoRequest | body | The body of the request. |
string | name | The name of the requested repository. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the IAM policy on the specified resource. Replaces any existing policy.
Declaration
public virtual ProjectsResource.ReposResource.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.ReposResource.SetIamPolicyRequest |
Sync(SyncRepoRequest, string)
Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
Declaration
public virtual ProjectsResource.ReposResource.SyncRequest Sync(SyncRepoRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
SyncRepoRequest | body | The body of the request. |
string | name | The name of the repo to synchronize. Values are of the form |
Returns
Type | Description |
---|---|
ProjectsResource.ReposResource.SyncRequest |
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.
Declaration
public virtual ProjectsResource.ReposResource.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.ReposResource.TestIamPermissionsRequest |