Skip to content

Commit

Permalink
[NetAppFiles] T2 netapp 2022 07 21 97452 (Azure#25465)
Browse files Browse the repository at this point in the history
* code and test

* add tests

* dev requirements

* dev requirements2

* dev requirements

* update tests

* Update CHANGELOG.md

Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: Jiefeng Chen <[email protected]>
  • Loading branch information
audunn and BigCat20196 authored Aug 2, 2022
1 parent 53bf5ce commit eb86a53
Show file tree
Hide file tree
Showing 101 changed files with 51,551 additions and 41,551 deletions.
11 changes: 11 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Release History

## 8.1.0 (2022-08-02)

**Features**

- Added operation VolumesOperations.begin_reestablish_replication
- Model CapacityPoolPatch has a new parameter cool_access
- Model Volume has a new parameter key_vault_private_endpoint_resource_id
- Model VolumeGroupVolumeProperties has a new parameter key_vault_private_endpoint_resource_id
- Model VolumePatch has a new parameter cool_access
- Model VolumePatch has a new parameter coolness_period

## 8.0.0 (2022-06-13)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-mgmt-netapp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include _meta.json
recursive-include tests *.py *.yaml
recursive-include tests *.py *.json
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
6 changes: 3 additions & 3 deletions sdk/netapp/azure-mgmt-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/[email protected]"
],
"commit": "9a6b5748f6ba9eeb2684497551226036c9d1da6b",
"commit": "c350a26aa5bd64ccc7a768f2cb5464a1cbe825e5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/netapp/resource-manager/readme.md"
}
13 changes: 9 additions & 4 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['NetAppManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-01-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -42,7 +42,7 @@ def __init__(
**kwargs: Any
) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-01-01") # type: str
api_version = kwargs.pop('api_version', "2022-03-01") # type: str

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 @@ -63,7 +63,7 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
: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 "2022-01-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-03-01". 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
Expand All @@ -84,21 +84,51 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.net_app_resource = NetAppResourceOperations(self._client, self._config, self._serialize, self._deserialize)
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(self._client, self._config, self._serialize, self._deserialize)
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
self.snapshots = SnapshotsOperations(self._client, self._config, self._serialize, self._deserialize)
self.snapshot_policies = SnapshotPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.volume_quota_rules = VolumeQuotaRulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.vaults = VaultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.net_app_resource = NetAppResourceOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.accounts = AccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.pools = PoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volumes = VolumesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.snapshots = SnapshotsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.snapshot_policies = SnapshotPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backups = BackupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.account_backups = AccountBackupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_policies = BackupPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volume_quota_rules = VolumeQuotaRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.vaults = VaultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volume_groups = VolumeGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.subvolumes = SubvolumesOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_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 = "8.0.0"
VERSION = "8.1.0"
13 changes: 9 additions & 4 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# --------------------------------------------------------------------------

from ._net_app_management_client import NetAppManagementClient

try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
__all__ = ['NetAppManagementClient']
__all__.extend([p for p in _patch_all if p not in __all__])

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-01-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -42,7 +42,7 @@ def __init__(
**kwargs: Any
) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-01-01") # type: str
api_version = kwargs.pop('api_version', "2022-03-01") # type: str

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 @@ -63,7 +63,7 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
: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 "2022-01-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-03-01". 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
Expand All @@ -84,21 +84,51 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.net_app_resource = NetAppResourceOperations(self._client, self._config, self._serialize, self._deserialize)
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(self._client, self._config, self._serialize, self._deserialize)
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
self.snapshots = SnapshotsOperations(self._client, self._config, self._serialize, self._deserialize)
self.snapshot_policies = SnapshotPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
self.volume_quota_rules = VolumeQuotaRulesOperations(self._client, self._config, self._serialize, self._deserialize)
self.vaults = VaultsOperations(self._client, self._config, self._serialize, self._deserialize)
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.net_app_resource = NetAppResourceOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.accounts = AccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.pools = PoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volumes = VolumesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.snapshots = SnapshotsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.snapshot_policies = SnapshotPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backups = BackupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.account_backups = AccountBackupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.backup_policies = BackupPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volume_quota_rules = VolumeQuotaRulesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.vaults = VaultsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.volume_groups = VolumeGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.subvolumes = SubvolumesOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from ._volume_groups_operations import VolumeGroupsOperations
from ._subvolumes_operations import SubvolumesOperations

from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk
__all__ = [
'Operations',
'NetAppResourceOperations',
Expand All @@ -39,3 +42,5 @@
'VolumeGroupsOperations',
'SubvolumesOperations',
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading

0 comments on commit eb86a53

Please sign in to comment.