Class: Google::Apis::RunV2::GoogleCloudRunV2ServiceScaling

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

Overview

Scaling settings that apply to the service as a whole rather than the individual revision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2ServiceScaling

Returns a new instance of GoogleCloudRunV2ServiceScaling.



2118
2119
2120
# File 'lib/google/apis/run_v2/classes.rb', line 2118

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

Instance Attribute Details

#min_instance_countFixnum

total min instances for the service. This number of instances will be divide among all revisions with specified traffic based on the percent of traffic they are receiving. (ALPHA) Corresponds to the JSON property minInstanceCount

Returns:

  • (Fixnum)


2116
2117
2118
# File 'lib/google/apis/run_v2/classes.rb', line 2116

def min_instance_count
  @min_instance_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2123
2124
2125
# File 'lib/google/apis/run_v2/classes.rb', line 2123

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