Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-elasticsan-2024-10-11-66809(can only be merged by SDK owner) #37855

Merged
merged 1 commit into from
Oct 21, 2024
Merged
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
10 changes: 10 additions & 0 deletions sdk/elasticsan/azure-mgmt-elasticsan/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 1.2.0b1 (2024-10-20)

### Features Added

- Model `ElasticSanProperties` added property `auto_scale_properties`
- Model `ElasticSanUpdateProperties` added property `auto_scale_properties`
- Added enum `AutoScalePolicyEnforcement`
- Added model `AutoScaleProperties`
- Added model `ScaleUpProperties`

## 1.1.0 (2024-09-23)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/elasticsan/azure-mgmt-elasticsan/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "cd41ba31a6af51dae34b0a5930eeb2e77a04b481",
"commit": "fda3d5e4ae4c69aa72ddfdf5ca1b6d5795a03e71",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.17.0",
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/elasticsan/resource-manager/readme.md --generate-sample=True --generate-test=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.17.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/elasticsan/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/elasticsan/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-at
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-05-01")
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keywor
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down
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 = "1.1.0"
VERSION = "1.2.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-at
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-05-01")
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keywor
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._models_py3 import AutoScaleProperties
from ._models_py3 import ElasticSan
from ._models_py3 import ElasticSanList
from ._models_py3 import ElasticSanProperties
Expand Down Expand Up @@ -35,6 +36,7 @@
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import SKUCapability
from ._models_py3 import ScaleUpProperties
from ._models_py3 import Sku
from ._models_py3 import SkuInformation
from ._models_py3 import SkuInformationList
Expand All @@ -61,6 +63,7 @@

from ._elastic_san_mgmt_client_enums import Action
from ._elastic_san_mgmt_client_enums import ActionType
from ._elastic_san_mgmt_client_enums import AutoScalePolicyEnforcement
from ._elastic_san_mgmt_client_enums import CreatedByType
from ._elastic_san_mgmt_client_enums import EncryptionType
from ._elastic_san_mgmt_client_enums import IdentityType
Expand All @@ -80,6 +83,7 @@
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AutoScaleProperties",
"ElasticSan",
"ElasticSanList",
"ElasticSanProperties",
Expand Down Expand Up @@ -109,6 +113,7 @@
"ProxyResource",
"Resource",
"SKUCapability",
"ScaleUpProperties",
"Sku",
"SkuInformation",
"SkuInformationList",
Expand All @@ -134,6 +139,7 @@
"VolumeUpdateProperties",
"Action",
"ActionType",
"AutoScalePolicyEnforcement",
"CreatedByType",
"EncryptionType",
"IdentityType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
INTERNAL = "Internal"


class AutoScalePolicyEnforcement(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Enable or Disable scale up setting on Elastic San Appliance."""

NONE = "None"
ENABLED = "Enabled"
DISABLED = "Disabled"


class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of identity that created the resource."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@
from .. import models as _models


class AutoScaleProperties(_serialization.Model):
"""The auto scale settings on Elastic San Appliance.

:ivar scale_up_properties: Scale up settings on Elastic San Appliance.
:vartype scale_up_properties: ~azure.mgmt.elasticsan.models.ScaleUpProperties
"""

_attribute_map = {
"scale_up_properties": {"key": "scaleUpProperties", "type": "ScaleUpProperties"},
}

def __init__(self, *, scale_up_properties: Optional["_models.ScaleUpProperties"] = None, **kwargs: Any) -> None:
"""
:keyword scale_up_properties: Scale up settings on Elastic San Appliance.
:paramtype scale_up_properties: ~azure.mgmt.elasticsan.models.ScaleUpProperties
"""
super().__init__(**kwargs)
self.scale_up_properties = scale_up_properties


class Resource(_serialization.Model):
"""Common fields that are returned in the response for all Azure Resource Manager resources.

Expand Down Expand Up @@ -242,6 +262,8 @@ class ElasticSanProperties(_serialization.Model): # pylint: disable=too-many-in
optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are: "Enabled" and
"Disabled".
:vartype public_network_access: str or ~azure.mgmt.elasticsan.models.PublicNetworkAccess
:ivar auto_scale_properties: Auto Scale Properties for Elastic San Appliance.
:vartype auto_scale_properties: ~azure.mgmt.elasticsan.models.AutoScaleProperties
"""

_validation = {
Expand Down Expand Up @@ -270,6 +292,7 @@ class ElasticSanProperties(_serialization.Model): # pylint: disable=too-many-in
"total_size_ti_b": {"key": "totalSizeTiB", "type": "int"},
"private_endpoint_connections": {"key": "privateEndpointConnections", "type": "[PrivateEndpointConnection]"},
"public_network_access": {"key": "publicNetworkAccess", "type": "str"},
"auto_scale_properties": {"key": "autoScaleProperties", "type": "AutoScaleProperties"},
}

def __init__(
Expand All @@ -280,6 +303,7 @@ def __init__(
extended_capacity_size_ti_b: int,
availability_zones: Optional[List[str]] = None,
public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None,
auto_scale_properties: Optional["_models.AutoScaleProperties"] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -296,6 +320,8 @@ def __init__(
optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are: "Enabled" and
"Disabled".
:paramtype public_network_access: str or ~azure.mgmt.elasticsan.models.PublicNetworkAccess
:keyword auto_scale_properties: Auto Scale Properties for Elastic San Appliance.
:paramtype auto_scale_properties: ~azure.mgmt.elasticsan.models.AutoScaleProperties
"""
super().__init__(**kwargs)
self.sku = sku
Expand All @@ -310,6 +336,7 @@ def __init__(
self.total_size_ti_b = None
self.private_endpoint_connections = None
self.public_network_access = public_network_access
self.auto_scale_properties = auto_scale_properties


class ElasticSanUpdate(_serialization.Model):
Expand Down Expand Up @@ -355,12 +382,15 @@ class ElasticSanUpdateProperties(_serialization.Model):
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are:
"Enabled" and "Disabled".
:vartype public_network_access: str or ~azure.mgmt.elasticsan.models.PublicNetworkAccess
:ivar auto_scale_properties: Auto Scale Properties for Elastic San Appliance.
:vartype auto_scale_properties: ~azure.mgmt.elasticsan.models.AutoScaleProperties
"""

_attribute_map = {
"base_size_ti_b": {"key": "baseSizeTiB", "type": "int"},
"extended_capacity_size_ti_b": {"key": "extendedCapacitySizeTiB", "type": "int"},
"public_network_access": {"key": "publicNetworkAccess", "type": "str"},
"auto_scale_properties": {"key": "autoScaleProperties", "type": "AutoScaleProperties"},
}

def __init__(
Expand All @@ -369,6 +399,7 @@ def __init__(
base_size_ti_b: Optional[int] = None,
extended_capacity_size_ti_b: Optional[int] = None,
public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None,
auto_scale_properties: Optional["_models.AutoScaleProperties"] = None,
**kwargs: Any
) -> None:
"""
Expand All @@ -380,11 +411,14 @@ def __init__(
Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Known values are:
"Enabled" and "Disabled".
:paramtype public_network_access: str or ~azure.mgmt.elasticsan.models.PublicNetworkAccess
:keyword auto_scale_properties: Auto Scale Properties for Elastic San Appliance.
:paramtype auto_scale_properties: ~azure.mgmt.elasticsan.models.AutoScaleProperties
"""
super().__init__(**kwargs)
self.base_size_ti_b = base_size_ti_b
self.extended_capacity_size_ti_b = extended_capacity_size_ti_b
self.public_network_access = public_network_access
self.auto_scale_properties = auto_scale_properties


class EncryptionIdentity(_serialization.Model):
Expand Down Expand Up @@ -1202,6 +1236,59 @@ class ProxyResource(Resource):
"""


class ScaleUpProperties(_serialization.Model):
"""Scale up properties on Elastic San Appliance.

:ivar unused_size_ti_b: Unused size on Elastic San appliance in TiB.
:vartype unused_size_ti_b: int
:ivar increase_capacity_unit_by_ti_b: Unit to increase Capacity Unit on Elastic San appliance
in TiB.
:vartype increase_capacity_unit_by_ti_b: int
:ivar capacity_unit_scale_up_limit_ti_b: Maximum scale up size on Elastic San appliance in TiB.
:vartype capacity_unit_scale_up_limit_ti_b: int
:ivar auto_scale_policy_enforcement: Enable or Disable scale up setting on Elastic San
Appliance. Known values are: "None", "Enabled", and "Disabled".
:vartype auto_scale_policy_enforcement: str or
~azure.mgmt.elasticsan.models.AutoScalePolicyEnforcement
"""

_attribute_map = {
"unused_size_ti_b": {"key": "unusedSizeTiB", "type": "int"},
"increase_capacity_unit_by_ti_b": {"key": "increaseCapacityUnitByTiB", "type": "int"},
"capacity_unit_scale_up_limit_ti_b": {"key": "capacityUnitScaleUpLimitTiB", "type": "int"},
"auto_scale_policy_enforcement": {"key": "autoScalePolicyEnforcement", "type": "str"},
}

def __init__(
self,
*,
unused_size_ti_b: Optional[int] = None,
increase_capacity_unit_by_ti_b: Optional[int] = None,
capacity_unit_scale_up_limit_ti_b: Optional[int] = None,
auto_scale_policy_enforcement: Optional[Union[str, "_models.AutoScalePolicyEnforcement"]] = None,
**kwargs: Any
) -> None:
"""
:keyword unused_size_ti_b: Unused size on Elastic San appliance in TiB.
:paramtype unused_size_ti_b: int
:keyword increase_capacity_unit_by_ti_b: Unit to increase Capacity Unit on Elastic San
appliance in TiB.
:paramtype increase_capacity_unit_by_ti_b: int
:keyword capacity_unit_scale_up_limit_ti_b: Maximum scale up size on Elastic San appliance in
TiB.
:paramtype capacity_unit_scale_up_limit_ti_b: int
:keyword auto_scale_policy_enforcement: Enable or Disable scale up setting on Elastic San
Appliance. Known values are: "None", "Enabled", and "Disabled".
:paramtype auto_scale_policy_enforcement: str or
~azure.mgmt.elasticsan.models.AutoScalePolicyEnforcement
"""
super().__init__(**kwargs)
self.unused_size_ti_b = unused_size_ti_b
self.increase_capacity_unit_by_ti_b = increase_capacity_unit_by_ti_b
self.capacity_unit_scale_up_limit_ti_b = capacity_unit_scale_up_limit_ti_b
self.auto_scale_policy_enforcement = auto_scale_policy_enforcement


class Sku(_serialization.Model):
"""The SKU name. Required for account creation; optional for update.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand All @@ -72,7 +72,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -104,7 +104,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -147,7 +147,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -190,7 +190,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -230,7 +230,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-05-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview"))
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down
Loading