Class: Google::Apis::ContainerV1beta1::Location
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContainerV1beta1::Location
 
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
 generated/google/apis/container_v1beta1/representations.rb,
 generated/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?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Recommended is a bool combining the drain state of the location (ie- has the region been drained manually?), and the stockout status of any zone according to Zone Advisor. 
- 
  
    
      #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. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location
| 1231 1232 1233 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 1231 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#name ⇒ String
Contains the name of the resource requested.
Specific in the format 'projects//locations/'.
Corresponds to the JSON property name
| 1215 1216 1217 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 1215 def name @name end | 
#recommended ⇒ Boolean Also known as: recommended?
Recommended is a bool combining the drain state of the location (ie- has
the region been drained manually?), and the stockout status of any zone
according to Zone Advisor. This will be internal only for use by pantheon.
Corresponds to the JSON property recommended
| 1222 1223 1224 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 1222 def recommended @recommended end | 
#type ⇒ String
Contains the type of location this Location is for.
Regional or Zonal.
Corresponds to the JSON property type
| 1229 1230 1231 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 1229 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1236 1237 1238 1239 1240 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 1236 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 |