Google Cloud Eventarc V1 Client - Class GKE (1.1.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getNamespace

Required. The namespace the GKE service is running in.

Returns
TypeDescription
string

setNamespace

Required. The namespace the GKE service is running in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getService

Required. Name of the GKE service.

Returns
TypeDescription
string

setService

Required. Name of the GKE service.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this