Class: Google::Apis::ContainerV1beta1::Location

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location



1374
1375
1376
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1374

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

Instance Attribute Details

#nameString

Contains the name of the resource requested. Specified in the format 'projects//locations/'. Corresponds to the JSON property name

Returns:

  • (String)


1358
1359
1360
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1358

def name
  @name
end

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

Returns:

  • (Boolean)


1365
1366
1367
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1365

def recommended
  @recommended
end

#typeString

Contains the type of location this Location is for. Regional or Zonal. Corresponds to the JSON property type

Returns:

  • (String)


1372
1373
1374
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1372

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1379
1380
1381
1382
1383
# File 'generated/google/apis/container_v1beta1/classes.rb', line 1379

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