Class: Google::Apis::ContainerV1beta1::Location
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::Location
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
Location returns the location name, and if the location is recommended for GKE cluster scheduling.
Instance Attribute Summary collapse
-
#name ⇒ String
Contains the name of the resource requested.
-
#recommended ⇒ Boolean
(also: #recommended?)
Whether the location is recommended for GKE cluster scheduling.
-
#type ⇒ String
Contains the type of location this Location is for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
3896 3897 3898 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3896 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Contains the name of the resource requested. Specified in the format projects/
*/locations/*
.
Corresponds to the JSON property name
3883 3884 3885 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3883 def name @name end |
#recommended ⇒ Boolean Also known as: recommended?
Whether the location is recommended for GKE cluster scheduling.
Corresponds to the JSON property recommended
3888 3889 3890 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3888 def recommended @recommended end |
#type ⇒ String
Contains the type of location this Location is for. Regional or Zonal.
Corresponds to the JSON property type
3894 3895 3896 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3894 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3901 3902 3903 3904 3905 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3901 def update!(**args) @name = args[:name] if args.key?(:name) @recommended = args[:recommended] if args.key?(:recommended) @type = args[:type] if args.key?(:type) end |