Google Cloud Config Delivery V1beta Client - Class CloudBuildRepository (0.2.0)

Reference documentation and code samples for the Google Cloud Config Delivery V1beta Client class CloudBuildRepository.

CloudBuildRepository contains information about fetching Kubernetes configuration from a CloudBuildRepository.

Generated from protobuf message google.cloud.configdelivery.v1beta.FleetPackage.CloudBuildRepository

Namespace

Google \ Cloud \ ConfigDelivery \ V1beta \ FleetPackage

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ variants_pattern string

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

↳ name string

Required. Name of the cloud build repository. Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

↳ path string

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

↳ tag string

Required. git tag of the underlying git repository. The git tag must be in the semantic version format vX.Y.Z.

↳ service_account string

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

getVariantsPattern

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

Returns
Type Description
string

hasVariantsPattern

setVariantsPattern

Optional. variants_pattern is a glob pattern that will be used to find variants in the repository. Examples: variants/*.yaml, us-*

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Required. Name of the cloud build repository.

Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

Returns
Type Description
string

setName

Required. Name of the cloud build repository.

Format is projects/{p}/locations/{l}/connections/{c}/repositories/{r}.

Parameter
Name Description
var string
Returns
Type Description
$this

getPath

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

Returns
Type Description
string

setPath

Optional. path to the directory or file within the repository that contains the kubernetes configuration. If unspecified, path is assumed to the top level root directory of the repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getTag

Required. git tag of the underlying git repository.

The git tag must be in the semantic version format vX.Y.Z.

Returns
Type Description
string

setTag

Required. git tag of the underlying git repository.

The git tag must be in the semantic version format vX.Y.Z.

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceAccount

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

Returns
Type Description
string

setServiceAccount

Required. Google service account to use in CloudBuild triggers to fetch and store kubernetes configuration.

Parameter
Name Description
var string
Returns
Type Description
$this

getVariants

Returns
Type Description
string