Class: Azure::Redis::Mgmt::V2017_02_01::Models::RedisRebootParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb

Overview

Specifies which Redis node(s) to reboot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#reboot_typeRebootType

value data loss is possible. Possible values include: ‘PrimaryNode’, ‘SecondaryNode’, ‘AllNodes’

Returns:

  • (RebootType)

    Which Redis node(s) to reboot. Depending on this



18
19
20
# File 'lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb', line 18

def reboot_type
  @reboot_type
end

#shard_idInteger

rebooted.

Returns:

  • (Integer)

    If clustering is enabled, the ID of the shard to be



22
23
24
# File 'lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb', line 22

def shard_id
  @shard_id
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb', line 29

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