Sha256: be53077085057feb54adbc84a4e6e4c0c4b5d498e8b136c020f215e20d6fd19c

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

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

module Azure::ARM::Redis
  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] In case of cluster cache, this specifies shard id
      # which should be rebooted.
      attr_accessor :shard_id


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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_redis-0.7.0 lib/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.6.0 lib/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.5.0 lib/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb
azure_mgmt_redis-0.4.0 lib/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb