Skip to content

Commit

Permalink
CodeGen from PR 19534 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[NetAppFiles] Anf 20508 update for 2022-03-01 (Azure#19534)

* inital commit

* update readme

* keyVaultPrivateEndpointResourceId

* fix keyVaultPrivateEndpointResourceId

* Pretty

* Add enum value

* Add coolAccess to patchproperties

* Add coolnessPeriod to VolumePatchProperties

* Add coolAccess to patchproperties.
  • Loading branch information
SDKAuto committed Jul 20, 2022
1 parent 0cc2b50 commit e95259e
Show file tree
Hide file tree
Showing 46 changed files with 5,283 additions and 2,989 deletions.
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/modelerfour@4.19.3"
],
"commit": "9a6b5748f6ba9eeb2684497551226036c9d1da6b",
"commit": "8612e523f7d3d69945aec32f543f415d0adeb301",
"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/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --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 = "5.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 e95259e

Please sign in to comment.