Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ExportRDBParameters(Model):
"""Parameters for redis export operation.
"""Parameters for Redis export operation.

:param format: File format.
:type format: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@


class ImportRDBParameters(Model):
"""Parameters for redis import operation.
"""Parameters for Redis import operation.

:param format: File format.
:type format: str
:param files: files to import
:param files: files to import.
:type files: list of str
"""

Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-redis/azure/mgmt/redis/models/redis_access_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class RedisAccessKeys(Model):
sending a request.

:ivar primary_key: The current primary key that clients can use to
authenticate with redis cache.
authenticate with Redis cache.
:vartype primary_key: str
:ivar secondary_key: The current secondary key that clients can use to
authenticate with redis cache.
authenticate with Redis cache.
:vartype secondary_key: str
"""

Expand Down
24 changes: 12 additions & 12 deletions azure-mgmt-redis/azure/mgmt/redis/models/redis_create_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,36 @@ class RedisCreateParameters(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type
:ivar type: Resource type.
:vartype type: str
:param location: Resource location
:param location: Resource location.
:type location: str
:param tags: Resource tags
:param tags: Resource tags.
:type tags: dict
:param redis_configuration: All Redis Settings. Few possible keys:
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.
:type redis_configuration: dict
:param enable_non_ssl_port: If the value is true, then the non-ssl redis
server port (6379) will be enabled.
:param enable_non_ssl_port: Specifies whether the non-ssl Redis server
port (6379) is enabled.
:type enable_non_ssl_port: bool
:param tenant_settings: tenantSettings
:type tenant_settings: dict
:param shard_count: The number of shards to be created on a Premium
Cluster Cache.
:type shard_count: int
:param subnet_id: The full resource ID of a subnet in a virtual network
to deploy the redis cache in. Example format:
to deploy the Redis cache in. Example format:
/subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
:type subnet_id: str
:param static_ip: Required when deploying a redis cache inside an
existing Azure Virtual Network.
:param static_ip: Static IP address. Required when deploying a Redis
cache inside an existing Azure Virtual Network.
:type static_ip: str
:param sku: What sku of redis cache to deploy.
:param sku: The SKU of the Redis cache to deploy.
:type sku: :class:`Sku <azure.mgmt.redis.models.Sku>`
"""

Expand All @@ -67,7 +67,7 @@ class RedisCreateParameters(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'redis_configuration': {'key': 'properties.redisConfiguration', 'type': '{str}'},
'redis_configuration': {'key': 'properties.RedisConfiguration', 'type': '{str}'},
'enable_non_ssl_port': {'key': 'properties.enableNonSslPort', 'type': 'bool'},
'tenant_settings': {'key': 'properties.tenantSettings', 'type': '{str}'},
'shard_count': {'key': 'properties.shardCount', 'type': 'int'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ class DayOfWeek(Enum):
friday = "Friday"
saturday = "Saturday"
sunday = "Sunday"
everyday = "Everyday"
weekend = "Weekend"
12 changes: 6 additions & 6 deletions azure-mgmt-redis/azure/mgmt/redis/models/redis_patch_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@


class RedisPatchSchedule(Model):
"""Response to put/get patch schedules for redis cache.
"""Response to put/get patch schedules for Redis cache.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type
:ivar type: Resource type.
:vartype type: str
:ivar location: Resource location
:ivar location: Resource location.
:vartype location: str
:param schedule_entries: List of patch schedules for redis cache.
:param schedule_entries: List of patch schedules for a Redis cache.
:type schedule_entries: list of :class:`ScheduleEntry
<azure.mgmt.redis.models.ScheduleEntry>`
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


class RedisRebootParameters(Model):
"""Specifies which redis node(s) to reboot.
"""Specifies which Redis node(s) to reboot.

:param reboot_type: Which redis node(s) to reboot. Depending on this
:param reboot_type: Which Redis node(s) to reboot. Depending on this
value data loss is possible. Possible values include: 'PrimaryNode',
'SecondaryNode', 'AllNodes'
:type reboot_type: str or :class:`RebootType
<azure.mgmt.redis.models.RebootType>`
:param shard_id: In case of cluster cache, this specifies shard id which
should be rebooted.
:param shard_id: If clustering is enabled, the ID of the shard to be
rebooted.
:type shard_id: int
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@


class RedisRegenerateKeyParameters(Model):
"""Specifies which redis access keys to reset.
"""Specifies which Redis access keys to reset.

:param key_type: Which redis access key to reset. Possible values
:param key_type: The Redis access key to regenerate. Possible values
include: 'Primary', 'Secondary'
:type key_type: str or :class:`RedisKeyType
<azure.mgmt.redis.models.RedisKeyType>`
Expand Down
38 changes: 19 additions & 19 deletions azure-mgmt-redis/azure/mgmt/redis/models/redis_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,51 @@


class RedisResource(Resource):
"""A single redis item in List or Get Operation.
"""A single Redis item in List or Get Operation.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type
:ivar type: Resource type.
:vartype type: str
:param location: Resource location
:param location: Resource location.
:type location: str
:param tags: Resource tags
:param tags: Resource tags.
:type tags: dict
:ivar redis_version: Redis Version.
:ivar redis_version: Redis version.
:vartype redis_version: str
:ivar provisioning_state: Redis instance provisioning status
:ivar provisioning_state: Redis instance provisioning status.
:vartype provisioning_state: str
:ivar host_name: Redis host name
:ivar host_name: Redis host name.
:vartype host_name: str
:ivar port: Redis non-ssl port
:ivar port: Redis non-SSL port.
:vartype port: int
:ivar ssl_port: Redis ssl port
:ivar ssl_port: Redis SSL port.
:vartype ssl_port: int
:param redis_configuration: All Redis Settings. Few possible keys:
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.
:type redis_configuration: dict
:param enable_non_ssl_port: If the value is true, then the non-ssl redis
server port (6379) will be enabled.
:param enable_non_ssl_port: Specifies whether the non-ssl Redis server
port (6379) is enabled.
:type enable_non_ssl_port: bool
:param tenant_settings: tenantSettings
:type tenant_settings: dict
:param shard_count: The number of shards to be created on a Premium
Cluster Cache.
:type shard_count: int
:param subnet_id: The full resource ID of a subnet in a virtual network
to deploy the redis cache in. Example format:
to deploy the Redis cache in. Example format:
/subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
:type subnet_id: str
:param static_ip: Required when deploying a redis cache inside an
existing Azure Virtual Network.
:param static_ip: Static IP address. Required when deploying a Redis
cache inside an existing Azure Virtual Network.
:type static_ip: str
:param sku: What sku of redis cache to deploy.
:param sku: The SKU of the Redis cache to deploy.
:type sku: :class:`Sku <azure.mgmt.redis.models.Sku>`
"""

Expand All @@ -82,12 +82,12 @@ class RedisResource(Resource):
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'redis_version': {'key': 'properties.redisVersion', 'type': 'str'},
'redis_version': {'key': 'properties.RedisVersion', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'host_name': {'key': 'properties.hostName', 'type': 'str'},
'port': {'key': 'properties.port', 'type': 'int'},
'ssl_port': {'key': 'properties.sslPort', 'type': 'int'},
'redis_configuration': {'key': 'properties.redisConfiguration', 'type': '{str}'},
'redis_configuration': {'key': 'properties.RedisConfiguration', 'type': '{str}'},
'enable_non_ssl_port': {'key': 'properties.enableNonSslPort', 'type': 'bool'},
'tenant_settings': {'key': 'properties.tenantSettings', 'type': '{str}'},
'shard_count': {'key': 'properties.shardCount', 'type': 'int'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ class RedisUpdateParameters(Model):
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.
:type redis_configuration: dict
:param enable_non_ssl_port: If the value is true, then the non-ssl redis
server port (6379) will be enabled.
:param enable_non_ssl_port: Specifies whether the non-ssl Redis server
port (6379) is enabled.
:type enable_non_ssl_port: bool
:param tenant_settings: tenantSettings
:type tenant_settings: dict
:param shard_count: The number of shards to be created on a Premium
Cluster Cache.
:type shard_count: int
:param subnet_id: The full resource ID of a subnet in a virtual network
to deploy the redis cache in. Example format:
to deploy the Redis cache in. Example format:
/subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
:type subnet_id: str
:param static_ip: Required when deploying a redis cache inside an
existing Azure Virtual Network.
:param static_ip: Static IP address. Required when deploying a Redis
cache inside an existing Azure Virtual Network.
:type static_ip: str
:param sku: What sku of redis cache to deploy.
:param sku: The SKU of the Redis cache to deploy.
:type sku: :class:`Sku <azure.mgmt.redis.models.Sku>`
:param tags: Resource tags
:param tags: Resource tags.
:type tags: dict
"""

Expand All @@ -46,7 +46,7 @@ class RedisUpdateParameters(Model):
}

_attribute_map = {
'redis_configuration': {'key': 'properties.redisConfiguration', 'type': '{str}'},
'redis_configuration': {'key': 'properties.RedisConfiguration', 'type': '{str}'},
'enable_non_ssl_port': {'key': 'properties.enableNonSslPort', 'type': 'bool'},
'tenant_settings': {'key': 'properties.tenantSettings', 'type': '{str}'},
'shard_count': {'key': 'properties.shardCount', 'type': 'int'},
Expand Down
10 changes: 5 additions & 5 deletions azure-mgmt-redis/azure/mgmt/redis/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class Resource(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type
:ivar type: Resource type.
:vartype type: str
:param location: Resource location
:param location: Resource location.
:type location: str
:param tags: Resource tags
:param tags: Resource tags.
:type tags: dict
"""

Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-redis/azure/mgmt/redis/models/schedule_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@


class ScheduleEntry(Model):
"""Patch schedule entry for Premium Redis Cache.
"""Patch schedule entry for a Premium Redis Cache.

:param day_of_week: Day of week when cache can be patched. Possible
:param day_of_week: Day of the week when a cache can be patched. Possible
values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
'Saturday', 'Sunday'
'Saturday', 'Sunday', 'Everyday', 'Weekend'
:type day_of_week: str or :class:`DayOfWeek
<azure.mgmt.redis.models.DayOfWeek>`
:param start_hour_utc: Start hour after which cache patching can start.
Expand Down
13 changes: 7 additions & 6 deletions azure-mgmt-redis/azure/mgmt/redis/models/sku.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@


class Sku(Model):
"""Sku parameters supplied to the create redis operation.
"""SKU parameters supplied to the create Redis operation.

:param name: What type of redis cache to deploy. Valid values: (Basic,
:param name: The type of Redis cache to deploy. Valid values: (Basic,
Standard, Premium). Possible values include: 'Basic', 'Standard',
'Premium'
:type name: str or :class:`SkuName <azure.mgmt.redis.models.SkuName>`
:param family: Which family to use. Valid values: (C, P). Possible values
include: 'C', 'P'
:param family: The SKU family to use. Valid values: (C, P). (C =
Basic/Standard, P = Premium). Possible values include: 'C', 'P'
:type family: str or :class:`SkuFamily
<azure.mgmt.redis.models.SkuFamily>`
:param capacity: What size of redis cache to deploy. Valid values: for C
family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4)
:param capacity: The size of the Redis cache to deploy. Valid values: for
C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family
(1, 2, 3, 4).
:type capacity: int
"""

Expand Down
Loading