Google Cloud Secure Source Manager V1 Client - Class FetchRefsRequest (1.11.1)

Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class FetchRefsRequest.

Request message for fetching git references from a repository.

Generated from protobuf message google.cloud.securesourcemanager.v1.FetchRefsRequest

Namespace

Google \ Cloud \ SecureSourceManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ repository string

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository to fetch the references from.

↳ type int

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

↳ page_size int

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

↳ page_token string

Optional. A token identifying a page of results the server should return.

getRepository

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

Specifies the repository to fetch the references from.

Returns
Type Description
string

setRepository

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}.

Specifies the repository to fetch the references from.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

Returns
Type Description
int Enum of type RefType.

setType

Optional. The type of reference to fetch (eg. branch, tag). By default, all references are returned.

Parameter
Name Description
var int

Enum of type RefType.

Returns
Type Description
$this

getPageSize

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

Returns
Type Description
int

setPageSize

Optional. Requested page size. If unspecified, a default size of 30 will be used. The maximum value is 100; values above 100 will be coerced to 100.

Parameter
Name Description
var int
Returns
Type Description
$this

getPageToken

Optional. A token identifying a page of results the server should return.

Returns
Type Description
string

setPageToken

Optional. A token identifying a page of results the server should return.

Parameter
Name Description
var string
Returns
Type Description
$this