Skip to content

Commit

Permalink
CodeGen from PR 19390 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add missing x-ms-pageable (Azure#19390)
  • Loading branch information
SDKAuto committed Jun 10, 2022
1 parent 6d22152 commit 2e51739
Show file tree
Hide file tree
Showing 42 changed files with 5,948 additions and 1,802 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.12.0",
"@autorest/python@5.13.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "25a8355d4094595edf9b58b13e8c95b0b0c9c50c",
"commit": "74ed6778513041716e8cf8c72e3f06c1371a3e18",
"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/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.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.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/netapp/resource-manager/readme.md"
}
12 changes: 9 additions & 3 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from azure.core.credentials import TokenCredential


class NetAppManagementClientConfiguration(Configuration):
class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for NetAppManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
: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
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +42,16 @@ def __init__(
**kwargs: Any
) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-01-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-10-01"
self.api_version = api_version
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
115 changes: 0 additions & 115 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, Optional, TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

from . import models
from ._configuration import NetAppManagementClientConfiguration
from .operations import AccountBackupsOperations, AccountsOperations, BackupPoliciesOperations, BackupsOperations, NetAppResourceOperations, NetAppResourceQuotaLimitsOperations, Operations, PoolsOperations, SnapshotPoliciesOperations, SnapshotsOperations, SubvolumesOperations, VaultsOperations, VolumeGroupsOperations, VolumesOperations
from .operations import AccountBackupsOperations, AccountsOperations, BackupPoliciesOperations, BackupsOperations, NetAppResourceOperations, NetAppResourceQuotaLimitsOperations, Operations, PoolsOperations, SnapshotPoliciesOperations, SnapshotsOperations, SubvolumesOperations, VaultsOperations, VolumeGroupsOperations, VolumeQuotaRulesOperations, VolumesOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential

class NetAppManagementClient:
class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
"""Microsoft NetApp Files Azure Resource Provider specification.
:ivar operations: Operations operations
Expand All @@ -47,6 +48,8 @@ class NetAppManagementClient:
:vartype account_backups: azure.mgmt.netapp.operations.AccountBackupsOperations
:ivar backup_policies: BackupPoliciesOperations operations
:vartype backup_policies: azure.mgmt.netapp.operations.BackupPoliciesOperations
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
:vartype volume_quota_rules: azure.mgmt.netapp.operations.VolumeQuotaRulesOperations
:ivar vaults: VaultsOperations operations
:vartype vaults: azure.mgmt.netapp.operations.VaultsOperations
:ivar volume_groups: VolumeGroupsOperations operations
Expand All @@ -58,8 +61,11 @@ class NetAppManagementClient:
: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
:param base_url: Service URL. Default value is 'https://management.azure.com'.
: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
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 Expand Up @@ -89,14 +95,15 @@ def __init__(
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(
self,
request, # type: HttpRequest
request: HttpRequest,
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
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 = "7.0.0"
VERSION = "5.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from azure.core.credentials_async import AsyncTokenCredential


class NetAppManagementClientConfiguration(Configuration):
class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for NetAppManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
: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
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
Expand All @@ -38,14 +42,16 @@ def __init__(
**kwargs: Any
) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-01-01") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-10-01"
self.api_version = api_version
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 @@ -7,21 +7,22 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, Awaitable, Optional, TYPE_CHECKING
from typing import Any, Awaitable, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core.rest import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

from .. import models
from ._configuration import NetAppManagementClientConfiguration
from .operations import AccountBackupsOperations, AccountsOperations, BackupPoliciesOperations, BackupsOperations, NetAppResourceOperations, NetAppResourceQuotaLimitsOperations, Operations, PoolsOperations, SnapshotPoliciesOperations, SnapshotsOperations, SubvolumesOperations, VaultsOperations, VolumeGroupsOperations, VolumesOperations
from .operations import AccountBackupsOperations, AccountsOperations, BackupPoliciesOperations, BackupsOperations, NetAppResourceOperations, NetAppResourceQuotaLimitsOperations, Operations, PoolsOperations, SnapshotPoliciesOperations, SnapshotsOperations, SubvolumesOperations, VaultsOperations, VolumeGroupsOperations, VolumeQuotaRulesOperations, VolumesOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

class NetAppManagementClient:
class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
"""Microsoft NetApp Files Azure Resource Provider specification.
:ivar operations: Operations operations
Expand All @@ -47,6 +48,8 @@ class NetAppManagementClient:
:vartype account_backups: azure.mgmt.netapp.aio.operations.AccountBackupsOperations
:ivar backup_policies: BackupPoliciesOperations operations
:vartype backup_policies: azure.mgmt.netapp.aio.operations.BackupPoliciesOperations
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
:vartype volume_quota_rules: azure.mgmt.netapp.aio.operations.VolumeQuotaRulesOperations
:ivar vaults: VaultsOperations operations
:vartype vaults: azure.mgmt.netapp.aio.operations.VaultsOperations
:ivar volume_groups: VolumeGroupsOperations operations
Expand All @@ -58,8 +61,11 @@ class NetAppManagementClient:
: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
:param base_url: Service URL. Default value is 'https://management.azure.com'.
: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
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 Expand Up @@ -89,6 +95,7 @@ def __init__(
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)
Expand Down
Loading

0 comments on commit 2e51739

Please sign in to comment.