class Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters

Specifies which Redis node(s) to reboot.

Attributes

reboot_type[RW]

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

shard_id[RW]

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

Private Class Methods

mapper() click to toggle source

Mapper for RedisRebootParameters class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-03-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb, line 29
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