Google Cloud Eventarc V1 Client - Class GKE (2.1.0)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class GKE.

Represents a GKE destination.

Generated from protobuf message google.cloud.eventarc.v1.GKE

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cluster string

Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.

↳ location string

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.

↳ namespace string

Required. The namespace the GKE service is running in.

↳ service string

Required. Name of the GKE service.

↳ path string

Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

getCluster

Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.

Returns
Type Description
string

setCluster

Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.

Parameter
Name Description
var string
Returns
Type Description
$this

getLocation

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.

Returns
Type Description
string

setLocation

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.

Parameter
Name Description
var string
Returns
Type Description
$this

getNamespace

Required. The namespace the GKE service is running in.

Returns
Type Description
string

setNamespace

Required. The namespace the GKE service is running in.

Parameter
Name Description
var string
Returns
Type Description
$this

getService

Required. Name of the GKE service.

Returns
Type Description
string

setService

Required. Name of the GKE service.

Parameter
Name Description
var string
Returns
Type Description
$this

getPath

Optional. The relative path on the GKE service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

Returns
Type Description
string

setPath

Optional. The relative path on the GKE service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

Parameter
Name Description
var string
Returns
Type Description
$this