Sha256: 9fb5e63ed20820838667e9b637338fe93037baf1670f5492aafc590c8ca5e00e

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Scheduler
  module Models
    #
    # Model object.
    #
    #
    class RetryPolicy

      include MsRestAzure

      # @return [RetryType] Gets or sets the retry strategy to be used.
      # Possible values include: 'None', 'Fixed'
      attr_accessor :retry_type

      # @return [Duration] Gets or sets the retry interval between retries,
      # specify duration in ISO 8601 format.
      attr_accessor :retry_interval

      # @return [Integer] Gets or sets the number of times a retry should be
      # attempted.
      attr_accessor :retry_count


      #
      # Mapper for RetryPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'RetryPolicy',
          type: {
            name: 'Composite',
            class_name: 'RetryPolicy',
            model_properties: {
              retry_type: {
                required: false,
                serialized_name: 'retryType',
                type: {
                  name: 'Enum',
                  module: 'RetryType'
                }
              },
              retry_interval: {
                required: false,
                serialized_name: 'retryInterval',
                type: {
                  name: 'TimeSpan'
                }
              },
              retry_count: {
                required: false,
                serialized_name: 'retryCount',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_scheduler-0.9.0 lib/generated/azure_mgmt_scheduler/models/retry_policy.rb