Class: Azure::Redis::Mgmt::V2015_08_01::Models::RedisCreateOrUpdateParameters

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb

Overview

Parameters supplied to the CreateOrUpdate Redis operation.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #location, #name, #tags, #type

Class Method Summary collapse

Instance Attribute Details

#enable_non_ssl_portBoolean

port (6379) will be enabled.

Returns:

  • (Boolean)

    If the value is true, then the non-SLL Redis server



30
31
32
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 30

def enable_non_ssl_port
  @enable_non_ssl_port
end

#redis_configurationHash{String => String}

rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.

Returns:

  • (Hash{String => String})

    All Redis Settings. Few possible keys:



26
27
28
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 26

def redis_configuration
  @redis_configuration
end

#redis_versionString

it is no longer necessary to provide this parameter and any value specified is ignored.

Returns:

  • (String)

    RedisVersion parameter has been deprecated. As such,



18
19
20
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 18

def redis_version
  @redis_version
end

#shard_countInteger

Cluster Cache.

Returns:

  • (Integer)

    The number of shards to be created on a Premium



37
38
39
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 37

def shard_count
  @shard_count
end

#skuSku

Returns What SKU of Redis cache to deploy.

Returns:

  • (Sku)

    What SKU of Redis cache to deploy.



21
22
23
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 21

def sku
  @sku
end

#static_ipString

existing Azure Virtual Network.

Returns:

  • (String)

    Required when deploying a Redis cache inside an



50
51
52
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 50

def static_ip
  @static_ip
end

#subnetString

existing Azure Virtual Network.

Returns:

  • (String)

    Required when deploying a Redis cache inside an



46
47
48
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 46

def subnet
  @subnet
end

#tenant_settingsHash{String => String}

Returns tenantSettings.

Returns:

  • (Hash{String => String})

    tenantSettings



33
34
35
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 33

def tenant_settings
  @tenant_settings
end

#virtual_networkString

deploy the Redis cache in. Example format: /subscriptions/subid/resourceGroups/resourceGroupName/Microsoft.ClassicNetwork/VirtualNetworks/vnet1

Returns:

  • (String)

    The exact ARM resource ID of the virtual network to



42
43
44
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 42

def virtual_network
  @virtual_network
end

Class Method Details

.mapperObject

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



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb', line 57

def self.mapper()
  {
    required: false,
    serialized_name: 'RedisCreateOrUpdateParameters',
    type: {
      name: 'Composite',
      class_name: 'RedisCreateOrUpdateParameters',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        redis_version: {
          required: false,
          serialized_name: 'properties.redisVersion',
          type: {
            name: 'String'
          }
        },
        sku: {
          required: true,
          serialized_name: 'properties.sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        redis_configuration: {
          required: false,
          serialized_name: 'properties.redisConfiguration',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        enable_non_ssl_port: {
          required: false,
          serialized_name: 'properties.enableNonSslPort',
          type: {
            name: 'Boolean'
          }
        },
        tenant_settings: {
          required: false,
          serialized_name: 'properties.tenantSettings',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        shard_count: {
          required: false,
          serialized_name: 'properties.shardCount',
          type: {
            name: 'Number'
          }
        },
        virtual_network: {
          required: false,
          serialized_name: 'properties.virtualNetwork',
          type: {
            name: 'String'
          }
        },
        subnet: {
          required: false,
          serialized_name: 'properties.subnet',
          type: {
            name: 'String'
          }
        },
        static_ip: {
          required: false,
          serialized_name: 'properties.staticIP',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end