Class: Google::Apis::RunV2::GoogleCloudRunV2RevisionScalingStatus

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

Effective settings for the current revision

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2RevisionScalingStatus

Returns a new instance of GoogleCloudRunV2RevisionScalingStatus.



1921
1922
1923
# File 'lib/google/apis/run_v2/classes.rb', line 1921

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

Instance Attribute Details

#desired_min_instance_countFixnum

The current number of min instances provisioned for this revision. Corresponds to the JSON property desiredMinInstanceCount

Returns:

  • (Fixnum)


1919
1920
1921
# File 'lib/google/apis/run_v2/classes.rb', line 1919

def desired_min_instance_count
  @desired_min_instance_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1926
1927
1928
# File 'lib/google/apis/run_v2/classes.rb', line 1926

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