Class: Google::Apis::CloudfunctionsV2beta::ServiceConfigOverrides
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2beta::ServiceConfigOverrides
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudfunctions_v2beta/classes.rb,
lib/google/apis/cloudfunctions_v2beta/representations.rb,
lib/google/apis/cloudfunctions_v2beta/representations.rb
Overview
Contains overrides related to the function's service configuration.
Instance Attribute Summary collapse
-
#max_instance_count ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceConfigOverrides
constructor
A new instance of ServiceConfigOverrides.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceConfigOverrides
Returns a new instance of ServiceConfigOverrides.
1935 1936 1937 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1935 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_instance_count ⇒ Fixnum
Optional. Specifies the maximum number of instances for the new Cloud Run
function. If provided, this overrides the max_instance_count setting of the
Gen1 function.
Corresponds to the JSON property maxInstanceCount
1933 1934 1935 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1933 def max_instance_count @max_instance_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1940 1941 1942 |
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1940 def update!(**args) @max_instance_count = args[:max_instance_count] if args.key?(:max_instance_count) end |