Class: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

A transient resource used in compute.regionInstances.recommendLocations. This resource is not saved anywhere and used only to process the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionInstancesRecommendLocationsResource

Returns a new instance of RegionInstancesRecommendLocationsResource.



31554
31555
31556
# File 'lib/google/apis/compute_alpha/classes.rb', line 31554

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

Instance Attribute Details

#instance_specsHash<String,Google::Apis::ComputeAlpha::BulkInsertInstanceResource>

Specification of named homogeneous instance sets to find location for. Keys of this map are arbitrary (but must be different), defined by the caller used only in the response. They must follow RFC 1035 name standard. Specifically, they must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Values are trimmed BulkInsertInstanceResource messages, without the following fields:

  • min_count
  • predefined_name
  • name_pattern
  • per_instance_properties
  • instance
  • secure_tag
  • location_policy Corresponds to the JSON property instanceSpecs


31546
31547
31548
# File 'lib/google/apis/compute_alpha/classes.rb', line 31546

def instance_specs
  @instance_specs
end

#location_policyGoogle::Apis::ComputeAlpha::LocationPolicy

Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region). Corresponds to the JSON property locationPolicy



31552
31553
31554
# File 'lib/google/apis/compute_alpha/classes.rb', line 31552

def location_policy
  @location_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31559
31560
31561
31562
# File 'lib/google/apis/compute_alpha/classes.rb', line 31559

def update!(**args)
  @instance_specs = args[:instance_specs] if args.key?(:instance_specs)
  @location_policy = args[:location_policy] if args.key?(:location_policy)
end