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

t2-netapp-2021-03-16 #17361

Merged
merged 2 commits into from
Mar 16, 2021
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
19 changes: 19 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Release History

## 2.0.0 (2021-03-16)

**Features**

- Model Volume has a new parameter ldap_enabled
- Model Backup has a new parameter volume_name
- Model ActiveDirectory has a new parameter allow_local_nfs_users_with_ldap
- Model BackupPatch has a new parameter volume_name
- Added operation BackupsOperations.begin_update
- Added operation group VolumeBackupStatusOperations

**Breaking changes**

- Model SnapshotPolicyDetails no longer has parameter name_properties_name
- Model SnapshotPolicyPatch no longer has parameter name_properties_name
- Model Volume no longer has parameter name_properties_name
- Model SnapshotPolicy no longer has parameter name_properties_name
- Removed operation BackupsOperations.update

## 1.0.0 (2021-02-04)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-11-01"
self.api_version = "2020-12-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
7 changes: 4 additions & 3 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"chosen_version": "2020-11-01",
"total_api_version_list": ["2020-11-01"],
"chosen_version": "2020-12-01",
"total_api_version_list": ["2020-12-01"],
"client": {
"name": "NetAppManagementClient",
"filename": "_net_app_management_client",
"description": "Microsoft NetApp Azure Resource Provider specification.",
"description": "Microsoft NetApp Files Azure Resource Provider specification.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
Expand Down Expand Up @@ -59,6 +59,7 @@
"volumes": "VolumesOperations",
"snapshots": "SnapshotsOperations",
"snapshot_policies": "SnapshotPoliciesOperations",
"volume_backup_status": "VolumeBackupStatusOperations",
"account_backups": "AccountBackupsOperations",
"backups": "BackupsOperations",
"backup_policies": "BackupPoliciesOperations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .operations import VolumesOperations
from .operations import SnapshotsOperations
from .operations import SnapshotPoliciesOperations
from .operations import VolumeBackupStatusOperations
from .operations import AccountBackupsOperations
from .operations import BackupsOperations
from .operations import BackupPoliciesOperations
Expand All @@ -33,7 +34,7 @@


class NetAppManagementClient(object):
"""Microsoft NetApp Azure Resource Provider specification.
"""Microsoft NetApp Files Azure Resource Provider specification.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.netapp.operations.Operations
Expand All @@ -49,6 +50,8 @@ class NetAppManagementClient(object):
:vartype snapshots: azure.mgmt.netapp.operations.SnapshotsOperations
:ivar snapshot_policies: SnapshotPoliciesOperations operations
:vartype snapshot_policies: azure.mgmt.netapp.operations.SnapshotPoliciesOperations
:ivar volume_backup_status: VolumeBackupStatusOperations operations
:vartype volume_backup_status: azure.mgmt.netapp.operations.VolumeBackupStatusOperations
:ivar account_backups: AccountBackupsOperations operations
:vartype account_backups: azure.mgmt.netapp.operations.AccountBackupsOperations
:ivar backups: BackupsOperations operations
Expand Down Expand Up @@ -96,6 +99,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.snapshot_policies = SnapshotPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.volume_backup_status = VolumeBackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.account_backups = AccountBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backups = BackupsOperations(
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 = "1.0.0"
VERSION = "2.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-11-01"
self.api_version = "2020-12-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .operations import VolumesOperations
from .operations import SnapshotsOperations
from .operations import SnapshotPoliciesOperations
from .operations import VolumeBackupStatusOperations
from .operations import AccountBackupsOperations
from .operations import BackupsOperations
from .operations import BackupPoliciesOperations
Expand All @@ -31,7 +32,7 @@


class NetAppManagementClient(object):
"""Microsoft NetApp Azure Resource Provider specification.
"""Microsoft NetApp Files Azure Resource Provider specification.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.netapp.aio.operations.Operations
Expand All @@ -47,6 +48,8 @@ class NetAppManagementClient(object):
:vartype snapshots: azure.mgmt.netapp.aio.operations.SnapshotsOperations
:ivar snapshot_policies: SnapshotPoliciesOperations operations
:vartype snapshot_policies: azure.mgmt.netapp.aio.operations.SnapshotPoliciesOperations
:ivar volume_backup_status: VolumeBackupStatusOperations operations
:vartype volume_backup_status: azure.mgmt.netapp.aio.operations.VolumeBackupStatusOperations
:ivar account_backups: AccountBackupsOperations operations
:vartype account_backups: azure.mgmt.netapp.aio.operations.AccountBackupsOperations
:ivar backups: BackupsOperations operations
Expand Down Expand Up @@ -93,6 +96,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.snapshot_policies = SnapshotPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.volume_backup_status = VolumeBackupStatusOperations(
self._client, self._config, self._serialize, self._deserialize)
self.account_backups = AccountBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backups = BackupsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from ._volumes_operations import VolumesOperations
from ._snapshots_operations import SnapshotsOperations
from ._snapshot_policies_operations import SnapshotPoliciesOperations
from ._volume_backup_status_operations import VolumeBackupStatusOperations
from ._account_backups_operations import AccountBackupsOperations
from ._backups_operations import BackupsOperations
from ._backup_policies_operations import BackupPoliciesOperations
Expand All @@ -26,6 +27,7 @@
'VolumesOperations',
'SnapshotsOperations',
'SnapshotPoliciesOperations',
'VolumeBackupStatusOperations',
'AccountBackupsOperations',
'BackupsOperations',
'BackupPoliciesOperations',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -129,7 +129,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -178,7 +178,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -267,7 +267,7 @@ def get_long_running_output(pipeline_response):
'backupName': self._serialize.url("backup_name", backup_name, 'str'),
}

if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -139,7 +139,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -187,7 +187,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -291,7 +291,7 @@ def get_long_running_output(pipeline_response):
'accountName': self._serialize.url("account_name", account_name, 'str'),
}

if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
Expand All @@ -316,7 +316,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -399,7 +399,7 @@ def get_long_running_output(pipeline_response):
'accountName': self._serialize.url("account_name", account_name, 'str'),
}

if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
Expand All @@ -425,7 +425,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -146,7 +146,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -196,7 +196,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -307,7 +307,7 @@ def get_long_running_output(pipeline_response):
'backupPolicyName': self._serialize.url("backup_policy_name", backup_policy_name, 'str'),
}

if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
Expand Down Expand Up @@ -351,7 +351,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -409,7 +409,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-11-01"
api_version = "2020-12-01"

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -498,7 +498,7 @@ def get_long_running_output(pipeline_response):
'backupPolicyName': self._serialize.url("backup_policy_name", backup_policy_name, 'str'),
}

if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
Expand Down
Loading