Class ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource
The "repositories" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudBuild.v2
Assembly: Google.Apis.CloudBuild.v2.dll
Syntax
public class ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource
Constructors
RepositoriesResource(IClientService)
Constructs a new resource.
Declaration
public RepositoriesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AccessReadToken(FetchReadTokenRequest, string)
Fetches read token of a given repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.AccessReadTokenRequest AccessReadToken(FetchReadTokenRequest body, string repository)
Parameters
Type | Name | Description |
---|---|---|
FetchReadTokenRequest | body | The body of the request. |
string | repository | Required. The resource name of the repository in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.AccessReadTokenRequest |
AccessReadWriteToken(FetchReadWriteTokenRequest, string)
Fetches read/write token of a given repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.AccessReadWriteTokenRequest AccessReadWriteToken(FetchReadWriteTokenRequest body, string repository)
Parameters
Type | Name | Description |
---|---|---|
FetchReadWriteTokenRequest | body | The body of the request. |
string | repository | Required. The resource name of the repository in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.AccessReadWriteTokenRequest |
BatchCreate(BatchCreateRepositoriesRequest, string)
Creates multiple repositories inside a connection.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.BatchCreateRequest BatchCreate(BatchCreateRepositoriesRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BatchCreateRepositoriesRequest | body | The body of the request. |
string | parent | Required. The connection to contain all the repositories being created. Format: projects//locations//connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.BatchCreateRequest |
Create(Repository, string)
Creates a Repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.CreateRequest Create(Repository body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Repository | body | The body of the request. |
string | parent | Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.CreateRequest |
Delete(string)
Deletes a single repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Repository to delete. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.DeleteRequest |
FetchGitRefs(string)
Fetch the list of branches or tags for a given repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest FetchGitRefs(string repository)
Parameters
Type | Name | Description |
---|---|---|
string | repository | Required. The resource name of the repository in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest |
Get(string)
Gets details of a single repository.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Repository to retrieve. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.GetRequest |
List(string)
Lists Repositories in a given connection.
Declaration
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of Repositories. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.ListRequest |