Sha256: 391258620bb07809ae36aa98618967f3c80282964756fde93ebc3b08a6a2bb6d

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

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

module Azure::Redis::Mgmt::V2017_10_01
  module Models
    #
    # Specifies which Redis node(s) to reboot.
    #
    class RedisRebootParameters

      include MsRestAzure

      # @return [RebootType] Which Redis node(s) to reboot. Depending on this
      # value data loss is possible. Possible values include: 'PrimaryNode',
      # 'SecondaryNode', 'AllNodes'
      attr_accessor :reboot_type

      # @return [Integer] If clustering is enabled, the ID of the shard to be
      # rebooted.
      attr_accessor :shard_id


      #
      # Mapper for RedisRebootParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RedisRebootParameters',
          type: {
            name: 'Composite',
            class_name: 'RedisRebootParameters',
            model_properties: {
              reboot_type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'rebootType',
                type: {
                  name: 'String'
                }
              },
              shard_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'shardId',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
azure_mgmt_redis-0.17.4 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.17.3 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.17.2 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.17.1 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.17.0 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.16.0 lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb