Class: Google::Apis::EventarcV1::Gke

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb

Overview

Represents a GKE destination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Gke

Returns a new instance of Gke.



359
360
361
# File 'lib/google/apis/eventarc_v1/classes.rb', line 359

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#clusterString

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. Corresponds to the JSON property cluster

Returns:

  • (String)


333
334
335
# File 'lib/google/apis/eventarc_v1/classes.rb', line 333

def cluster
  @cluster
end

#locationString

Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (e.g. us-central1-a) for the zonal clusters or region (e.g. us-central1) for regional clusters. Corresponds to the JSON property location

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/eventarc_v1/classes.rb', line 340

def location
  @location
end

#namespaceString

Required. The namespace the GKE service is running in. Corresponds to the JSON property namespace

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/eventarc_v1/classes.rb', line 345

def namespace
  @namespace
end

#pathString

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

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/eventarc_v1/classes.rb', line 352

def path
  @path
end

#serviceString

Required. Name of the GKE service. Corresponds to the JSON property service

Returns:

  • (String)


357
358
359
# File 'lib/google/apis/eventarc_v1/classes.rb', line 357

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



364
365
366
367
368
369
370
# File 'lib/google/apis/eventarc_v1/classes.rb', line 364

def update!(**args)
  @cluster = args[:cluster] if args.key?(:cluster)
  @location = args[:location] if args.key?(:location)
  @namespace = args[:namespace] if args.key?(:namespace)
  @path = args[:path] if args.key?(:path)
  @service = args[:service] if args.key?(:service)
end