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-update-to-2021-06-01 #20453

Merged
merged 46 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
6ffbc9b
CodeGen from PR 15691 in Azure/azure-rest-api-specs
Aug 19, 2021
29bc795
version,CHANGELOG
Aug 20, 2021
708b36e
test
Aug 20, 2021
041aa8a
bump node version (#20353)
iscai-msft Aug 19, 2021
2067cef
Remove old unused update changelog script (#20357)
azure-sdk Aug 19, 2021
9e13708
Handle value types for results (#20358)
Aug 19, 2021
88c8f7e
[rest] change text from a property to a method (#20290)
iscai-msft Aug 20, 2021
dff7616
[ServiceBus] update migration guide with message count info (#20360)
swathipil Aug 20, 2021
aeb570b
Update CODEOWNERS (#20366)
mccoyp Aug 20, 2021
1f2071a
More Renaming in query (#20303)
Aug 20, 2021
45f5e36
Fix Monitor opentelemetry exporter readme issues (#19038)
v-xuto Aug 20, 2021
88eab49
[Key Vault] Add 7.3-preview support for administration (#20364)
mccoyp Aug 20, 2021
4e99dc6
Update metadata values (#20365)
Aug 20, 2021
24d66c9
Bug fix for pipeline downloading incorrect package ver (#20294)
ckairen Aug 20, 2021
a82f520
CertificateCredential supports PKCS12 certs (#16384)
chlowell Aug 20, 2021
b9645e1
[rest] use azure json encoder for json input bodies (#20361)
iscai-msft Aug 20, 2021
83388de
Document Pod Identity's special use of client_id (#20377)
chlowell Aug 20, 2021
b62e704
Consistency related changes (#20385)
Aug 23, 2021
eab62a6
Add Cloud Configuration section to Identity readme (#20373)
chlowell Aug 23, 2021
e05c2e5
keyvault and storage have a conflict between mindependency and what l…
scbedd Aug 24, 2021
438da9c
[AutoRelease] t2-costmanagement-2021-07-27-84467 (#19949)
Aug 24, 2021
2899d1f
[AutoRelease] t2-servicebus-2021-08-19-00756 (#20350)
Aug 24, 2021
e523e30
[AutoRelease] t2-policyinsights-2021-08-23-78735 (#20381)
Aug 24, 2021
2a0efb8
[AutoRelease] t2-datamigration-2021-08-19-04035 (#20349)
Aug 24, 2021
b1511e5
Chain exceptions from LibsecretPersistence (#20380)
chlowell Aug 24, 2021
ee3e395
[translation] fix poller.details (#20392)
kristapratico Aug 24, 2021
215110f
improve begin_translation docstring (#20401)
kristapratico Aug 24, 2021
0121a77
Update .docsettings.yml (#20402)
kristapratico Aug 24, 2021
c4c4f35
Sync eng/common directory with azure-sdk-tools for PR 1918 (#20342)
azure-sdk Aug 24, 2021
8fb444d
improve docs and samples for glossaries and custom models (#18587)
Aug 24, 2021
b820ff2
[purview account] first release for azure-purview-account (#20335)
msyyc Aug 25, 2021
e72f1d5
skip custom translation model samples (#20414)
kristapratico Aug 25, 2021
5cfae83
Address API view issues (#20407)
Aug 25, 2021
ff54452
[translation] naming alignment (#20406)
kristapratico Aug 25, 2021
4f84957
make core tests offline (#19986)
xiangyan99 Aug 25, 2021
93549d1
Get rid of LogsBatchQueryResult (#20418)
Aug 25, 2021
d468198
[AutoRelease] t2-iothub-2021-08-25-25696 (#20409)
Aug 26, 2021
e388620
[AutoRelease] t2-healthcareapis-2021-08-26-27542 (#20422)
Aug 26, 2021
183f502
Stip empty changelog sections before release (#20437)
azure-sdk Aug 26, 2021
6eabc35
Update question-answering readme links (#20439)
annatisch Aug 27, 2021
aefee41
ensure test principal creation succeeds properly (#20446)
azure-sdk Aug 27, 2021
f00a26d
New dummy password in README (#20328)
mccoyp Aug 27, 2021
b6bb78b
Sync eng/common directory with azure-sdk-tools for PR 1943 (#20450)
azure-sdk Aug 27, 2021
f189dfd
[AutoRelease] t2-keyvault-2021-08-26-55443 (#20423)
Aug 30, 2021
75e8d6c
Merge branch 'master' of github.com:hildurhodd/azure-sdk-for-python
hildurhodd Aug 30, 2021
3ca052d
new recordings
hildurhodd Aug 30, 2021
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
34 changes: 34 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Release History

## 5.0.0 (2021-08-20)

**Features**

- Model BackupPolicy has a new parameter etag
- Model BackupPolicy has a new parameter backup_policy_id
- Model BackupPolicyPatch has a new parameter backup_policy_id
- Model NetAppAccount has a new parameter etag
- Model VolumePatch has a new parameter is_default_quota_enabled
- Model VolumePatch has a new parameter default_user_quota_in_ki_bs
- Model VolumePatch has a new parameter default_group_quota_in_ki_bs
- Model BackupPolicyDetails has a new parameter backup_policy_id
- Model Volume has a new parameter clone_progress
- Model Volume has a new parameter default_group_quota_in_ki_bs
- Model Volume has a new parameter is_default_quota_enabled
- Model Volume has a new parameter default_user_quota_in_ki_bs
- Model Volume has a new parameter avs_data_store
- Model Volume has a new parameter etag
- Model MetricSpecification has a new parameter supported_aggregation_types
- Model MetricSpecification has a new parameter supported_time_grain_types
- Model MetricSpecification has a new parameter internal_metric_name
- Model MetricSpecification has a new parameter source_mdm_namespace
- Model MetricSpecification has a new parameter source_mdm_account
- Model CapacityPool has a new parameter encryption_type
- Model CapacityPool has a new parameter etag
- Model SnapshotPolicy has a new parameter etag
- Added operation AccountsOperations.list_by_subscription

**Breaking changes**

- Model BackupPolicy no longer has parameter yearly_backups_to_keep
- Model BackupPolicyPatch no longer has parameter yearly_backups_to_keep
- Model BackupPolicyDetails no longer has parameter yearly_backups_to_keep

## 4.0.0 (2021-06-11)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/netapp/azure-mgmt-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.0",
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "2359ae379dcf396ef2eb389b050ac4972595fa6c",
"commit": "1a5e9c6601a9611ac23c58bc9857693dcd9884f3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/netapp/resource-manager/readme.md"
}
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 = "2021-04-01"
self.api_version = "2021-06-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
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-04-01",
"total_api_version_list": ["2021-04-01"],
"chosen_version": "2021-06-01",
"total_api_version_list": ["2021-06-01"],
"client": {
"name": "NetAppManagementClient",
"filename": "_net_app_management_client",
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 = "4.0.0"
VERSION = "5.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 = "2021-04-01"
self.api_version = "2021-06-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 @@ -67,7 +67,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-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 = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

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

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,74 @@ def __init__(self, client, config, serializer, deserializer) -> None:
self._deserialize = deserializer
self._config = config

def list_by_subscription(
self,
**kwargs: Any
) -> AsyncIterable["_models.NetAppAccountList"]:
"""Describe all NetApp Accounts in a subscription.

List and describe all NetApp accounts in the subscription.

:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either NetAppAccountList or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.netapp.models.NetAppAccountList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.NetAppAccountList"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

if not next_link:
# Construct URL
url = self.list_by_subscription.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request

async def extract_data(pipeline_response):
deserialized = self._deserialize('NetAppAccountList', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)

async def get_next(next_link=None):
request = prepare_request(next_link)

pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

return pipeline_response

return AsyncItemPaged(
get_next, extract_data
)
list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts'} # type: ignore

def list(
self,
resource_group_name: str,
Expand All @@ -64,7 +132,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

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

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

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

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down Expand Up @@ -425,7 +493,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-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 = "2021-04-01"
api_version = "2021-06-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 = "2021-04-01"
api_version = "2021-06-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 = "2021-04-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -334,7 +334,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def get_status(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -141,7 +141,7 @@ async def get_volume_restore_status(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -209,7 +209,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

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

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

Expand Down Expand Up @@ -502,7 +502,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

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

# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def check_name_availability(
error_map.update(kwargs.pop('error_map', {}))

_body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group)
api_version = "2021-04-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -142,7 +142,7 @@ async def check_file_path_availability(
error_map.update(kwargs.pop('error_map', {}))

_body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id)
api_version = "2021-04-01"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -214,7 +214,7 @@ async def check_quota_availability(
error_map.update(kwargs.pop('error_map', {}))

_body = _models.QuotaAvailabilityRequest(name=name, type=type, resource_group=resource_group)
api_version = "2021-04-01"
api_version = "2021-06-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 @@ -59,7 +59,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01"
api_version = "2021-06-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading