Class: Google::Apis::DeveloperconnectV1::GkeWorkload

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

Overview

GKEWorkload represents the Google Kubernetes Engine runtime.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeWorkload

Returns a new instance of GkeWorkload.



1078
1079
1080
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1078

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

Instance Attribute Details

#clusterString

Required. Immutable. The name of the GKE cluster. Format: projects/project/ locations/location/clusters/cluster`. Corresponds to the JSON propertycluster`

Returns:

  • (String)


1069
1070
1071
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1069

def cluster
  @cluster
end

#deploymentString

Output only. The name of the GKE deployment. Format: projects/project/ locations/location/clusters/cluster/namespaces/namespace/deployments/ deployment`. Corresponds to the JSON propertydeployment`

Returns:

  • (String)


1076
1077
1078
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1076

def deployment
  @deployment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1083
1084
1085
1086
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1083

def update!(**args)
  @cluster = args[:cluster] if args.key?(:cluster)
  @deployment = args[:deployment] if args.key?(:deployment)
end