Class: Google::Apis::ServicenetworkingV1::LongRunning
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::LongRunning
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Describes settings to use when generating API methods that use the long- running operation pattern. All default values below are from those used in the client library generators (e.g. Java).
Instance Attribute Summary collapse
-
#initial_poll_delay ⇒ String
Initial delay after which the first poll request will be made.
-
#max_poll_delay ⇒ String
Maximum time between two subsequent poll requests.
-
#poll_delay_multiplier ⇒ Float
Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay.
-
#total_poll_timeout ⇒ String
Total polling timeout.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LongRunning
constructor
A new instance of LongRunning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LongRunning
Returns a new instance of LongRunning.
2632 2633 2634 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#initial_poll_delay ⇒ String
Initial delay after which the first poll request will be made. Default value:
5 seconds.
Corresponds to the JSON property initialPollDelay
2614 2615 2616 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2614 def initial_poll_delay @initial_poll_delay end |
#max_poll_delay ⇒ String
Maximum time between two subsequent poll requests. Default value: 45 seconds.
Corresponds to the JSON property maxPollDelay
2619 2620 2621 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2619 def max_poll_delay @max_poll_delay end |
#poll_delay_multiplier ⇒ Float
Multiplier to gradually increase delay between subsequent polls until it
reaches max_poll_delay. Default value: 1.5.
Corresponds to the JSON property pollDelayMultiplier
2625 2626 2627 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2625 def poll_delay_multiplier @poll_delay_multiplier end |
#total_poll_timeout ⇒ String
Total polling timeout. Default value: 5 minutes.
Corresponds to the JSON property totalPollTimeout
2630 2631 2632 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2630 def total_poll_timeout @total_poll_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2637 2638 2639 2640 2641 2642 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 2637 def update!(**args) @initial_poll_delay = args[:initial_poll_delay] if args.key?(:initial_poll_delay) @max_poll_delay = args[:max_poll_delay] if args.key?(:max_poll_delay) @poll_delay_multiplier = args[:poll_delay_multiplier] if args.key?(:poll_delay_multiplier) @total_poll_timeout = args[:total_poll_timeout] if args.key?(:total_poll_timeout) end |