Skip to content

Commit

Permalink
CodeGen from PR 24729 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4d8b16729b1cf8d3076e9ef13d304bc6298151cb into 83eb6fffa205037f1c9675ff0c098656db6fc6dd
  • Loading branch information
SDKAuto committed Jul 7, 2023
1 parent c15c084 commit e26422c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 33 deletions.
6 changes: 3 additions & 3 deletions sdk/redis/azure-mgmt-redis/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c183bb012de8e9e1d0d2e67a0994748df4747d2c",
"commit": "e123d889c8c5d207b4312b4a64e925c354a269ff",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.4.12",
"@autorest/python@6.6.0",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/redis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/redis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.6.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/redis/resource-manager/readme.md"
}
2 changes: 1 addition & 1 deletion sdk/redis/azure-mgmt-redis/azure/mgmt/redis/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "14.2.0"
VERSION = "12.0.0b1"
77 changes: 49 additions & 28 deletions sdk/redis/azure-mgmt-redis/azure/mgmt/redis/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,9 @@ class RedisCommonProperties(_serialization.Model):
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
"""

Expand Down Expand Up @@ -1077,8 +1078,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
"""
super().__init__(**kwargs)
Expand Down Expand Up @@ -1295,8 +1298,9 @@ class RedisCreateParameters(_serialization.Model): # pylint: disable=too-many-i
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy. Required.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -1395,8 +1399,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy. Required.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -1455,8 +1461,9 @@ class RedisCreateProperties(RedisCommonProperties): # pylint: disable=too-many-
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy. Required.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -1535,8 +1542,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy. Required.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2226,8 +2235,9 @@ class RedisProperties(RedisCreateProperties): # pylint: disable=too-many-instan
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy. Required.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2342,8 +2352,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy. Required.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2546,8 +2558,9 @@ class RedisResource(TrackedResource): # pylint: disable=too-many-instance-attri
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy. Required.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2691,8 +2704,10 @@ def __init__( # pylint: disable=too-many-locals
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy. Required.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2759,8 +2774,9 @@ class RedisUpdateParameters(_serialization.Model): # pylint: disable=too-many-i
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2831,8 +2847,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2878,8 +2896,9 @@ class RedisUpdateProperties(RedisCommonProperties):
:vartype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:ivar public_network_access: Whether or not public endpoint access is allowed for this cache.
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private
endpoints are the exclusive access method. Default value is 'Enabled'. Known values are:
"Enabled" and "Disabled".
endpoints are the exclusive access method. Default value is 'Enabled'. Note: this setting is
important for caches with private endpoints; but has *no effect* on caches that are joined to,
or injected into, a virtual network subnet. Known values are: "Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:ivar sku: The SKU of the Redis cache to deploy.
:vartype sku: ~azure.mgmt.redis.models.Sku
Expand Down Expand Up @@ -2939,8 +2958,10 @@ def __init__(
:paramtype minimum_tls_version: str or ~azure.mgmt.redis.models.TlsVersion
:keyword public_network_access: Whether or not public endpoint access is allowed for this
cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled',
private endpoints are the exclusive access method. Default value is 'Enabled'. Known values
are: "Enabled" and "Disabled".
private endpoints are the exclusive access method. Default value is 'Enabled'. Note: this
setting is important for caches with private endpoints; but has *no effect* on caches that are
joined to, or injected into, a virtual network subnet. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.redis.models.PublicNetworkAccess
:keyword sku: The SKU of the Redis cache to deploy.
:paramtype sku: ~azure.mgmt.redis.models.Sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Whether or not public endpoint access is allowed for this cache. Value is optional but if
passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive
access method. Default value is 'Enabled'.
access method. Default value is 'Enabled'. Note: this setting is important for caches with
private endpoints; but has *no effect* on caches that are joined to, or injected into, a
virtual network subnet.
"""

ENABLED = "Enabled"
Expand Down

0 comments on commit e26422c

Please sign in to comment.