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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



3408
3409
3410
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3408

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)


3395
3396
3397
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3395

def name
  @name
end

Whether the location is recommended for GKE cluster scheduling. Corresponds to the JSON property recommended

Returns:

  • (Boolean)


3400
3401
3402
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3400

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)


3406
3407
3408
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3406

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3413
3414
3415
3416
3417
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3413

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