Class: Google::Apis::DeveloperconnectV1::GkeWorkload
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::GkeWorkload
- 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
-
#cluster ⇒ String
Required.
-
#deployment ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeWorkload
constructor
A new instance of GkeWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#cluster ⇒ String
Required. Immutable. The name of the GKE cluster. Format: projects/project/
locations/location/clusters/cluster`.
Corresponds to the JSON propertycluster`
1069 1070 1071 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1069 def cluster @cluster end |
#deployment ⇒ String
Output only. The name of the GKE deployment. Format: projects/project/
locations/location/clusters/cluster/namespaces/namespace/deployments/
deployment`.
Corresponds to the JSON propertydeployment`
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 |