Class ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest
Fetch the list of branches or tags for a given repository.
Inheritance
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest
Inherited Members
Namespace: Google.Apis.CloudBuild.v2
Assembly: Google.Apis.CloudBuild.v2.dll
Syntax
public class ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest : CloudBuildBaseServiceRequest<FetchGitRefsResponse>, IClientServiceRequest<FetchGitRefsResponse>, IClientServiceRequest
Constructors
FetchGitRefsRequest(IClientService, string)
Constructs a new FetchGitRefs request.
Declaration
public FetchGitRefsRequest(IClientService service, string repository)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | repository |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
PageSize
Optional. Number of results to return in the list. Default to 20.
Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type | Description |
---|---|
int? |
PageToken
Optional. Page start.
Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type | Description |
---|---|
string |
RefType
Type of refs to fetch
Declaration
[RequestParameter("refType", RequestParameterType.Query)]
public virtual ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest.RefTypeEnum? RefType { get; set; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ConnectionsResource.RepositoriesResource.FetchGitRefsRequest.RefTypeEnum? |
Repository
Required. The resource name of the repository in the format
projects/*/locations/*/connections/*/repositories/*
.
Declaration
[RequestParameter("repository", RequestParameterType.Path)]
public virtual string Repository { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes FetchGitRefs parameter list.
Declaration
protected override void InitParameters()