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

[AutoPR netapp/resource-manager] New API version 2019-07-01 for ANF #7089

Merged
merged 1 commit into from
Sep 6, 2019
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
7 changes: 4 additions & 3 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .azure_net_app_files_management_client import AzureNetAppFilesManagementClient
from .version import VERSION
from ._configuration import AzureNetAppFilesManagementClientConfiguration
from ._azure_net_app_files_management_client import AzureNetAppFilesManagementClient
__all__ = ['AzureNetAppFilesManagementClient', 'AzureNetAppFilesManagementClientConfiguration']

__all__ = ['AzureNetAppFilesManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import AzureNetAppFilesManagementClientConfiguration
from .operations import AzureNetAppFilesManagementClientOperationsMixin
from .operations import Operations
from .operations import AccountsOperations
from .operations import PoolsOperations
from .operations import VolumesOperations
from .operations import MountTargetsOperations
from .operations import SnapshotsOperations
from . import models


class AzureNetAppFilesManagementClient(AzureNetAppFilesManagementClientOperationsMixin, SDKClient):
"""Microsoft NetApp Azure Resource Provider specification

:ivar config: Configuration for client.
:vartype config: AzureNetAppFilesManagementClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.netapp.operations.Operations
:ivar accounts: Accounts operations
:vartype accounts: azure.mgmt.netapp.operations.AccountsOperations
:ivar pools: Pools operations
:vartype pools: azure.mgmt.netapp.operations.PoolsOperations
:ivar volumes: Volumes operations
:vartype volumes: azure.mgmt.netapp.operations.VolumesOperations
:ivar mount_targets: MountTargets operations
:vartype mount_targets: azure.mgmt.netapp.operations.MountTargetsOperations
:ivar snapshots: Snapshots operations
:vartype snapshots: azure.mgmt.netapp.operations.SnapshotsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
: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 str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = AzureNetAppFilesManagementClientConfiguration(credentials, subscription_id, base_url)
super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-07-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
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.mount_targets = MountTargetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.snapshots = SnapshotsOperations(
self._client, self.config, self._serialize, self._deserialize)
50 changes: 50 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class AzureNetAppFilesManagementClientConfiguration(AzureConfiguration):
"""Configuration for AzureNetAppFilesManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
: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 str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(AzureNetAppFilesManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-netapp/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
120 changes: 60 additions & 60 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,80 +10,80 @@
# --------------------------------------------------------------------------

try:
from .operation_display_py3 import OperationDisplay
from .dimension_py3 import Dimension
from .metric_specification_py3 import MetricSpecification
from .service_specification_py3 import ServiceSpecification
from .operation_py3 import Operation
from .resource_name_availability_py3 import ResourceNameAvailability
from .resource_name_availability_request_py3 import ResourceNameAvailabilityRequest
from .active_directory_py3 import ActiveDirectory
from .net_app_account_py3 import NetAppAccount
from .net_app_account_patch_py3 import NetAppAccountPatch
from .capacity_pool_py3 import CapacityPool
from .capacity_pool_patch_py3 import CapacityPoolPatch
from .export_policy_rule_py3 import ExportPolicyRule
from .volume_properties_export_policy_py3 import VolumePropertiesExportPolicy
from .volume_py3 import Volume
from .volume_patch_properties_export_policy_py3 import VolumePatchPropertiesExportPolicy
from .volume_patch_py3 import VolumePatch
from .mount_target_py3 import MountTarget
from .snapshot_py3 import Snapshot
from .snapshot_patch_py3 import SnapshotPatch
from ._models_py3 import ActiveDirectory
from ._models_py3 import CapacityPool
from ._models_py3 import CapacityPoolPatch
from ._models_py3 import Dimension
from ._models_py3 import ExportPolicyRule
from ._models_py3 import MetricSpecification
from ._models_py3 import MountTarget
from ._models_py3 import NetAppAccount
from ._models_py3 import NetAppAccountPatch
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import ResourceNameAvailability
from ._models_py3 import ResourceNameAvailabilityRequest
from ._models_py3 import ServiceSpecification
from ._models_py3 import Snapshot
from ._models_py3 import SnapshotPatch
from ._models_py3 import Volume
from ._models_py3 import VolumePatch
from ._models_py3 import VolumePatchPropertiesExportPolicy
from ._models_py3 import VolumePropertiesExportPolicy
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .dimension import Dimension
from .metric_specification import MetricSpecification
from .service_specification import ServiceSpecification
from .operation import Operation
from .resource_name_availability import ResourceNameAvailability
from .resource_name_availability_request import ResourceNameAvailabilityRequest
from .active_directory import ActiveDirectory
from .net_app_account import NetAppAccount
from .net_app_account_patch import NetAppAccountPatch
from .capacity_pool import CapacityPool
from .capacity_pool_patch import CapacityPoolPatch
from .export_policy_rule import ExportPolicyRule
from .volume_properties_export_policy import VolumePropertiesExportPolicy
from .volume import Volume
from .volume_patch_properties_export_policy import VolumePatchPropertiesExportPolicy
from .volume_patch import VolumePatch
from .mount_target import MountTarget
from .snapshot import Snapshot
from .snapshot_patch import SnapshotPatch
from .operation_paged import OperationPaged
from .net_app_account_paged import NetAppAccountPaged
from .capacity_pool_paged import CapacityPoolPaged
from .volume_paged import VolumePaged
from .mount_target_paged import MountTargetPaged
from .snapshot_paged import SnapshotPaged
from .azure_net_app_files_management_client_enums import (
from ._models import ActiveDirectory
from ._models import CapacityPool
from ._models import CapacityPoolPatch
from ._models import Dimension
from ._models import ExportPolicyRule
from ._models import MetricSpecification
from ._models import MountTarget
from ._models import NetAppAccount
from ._models import NetAppAccountPatch
from ._models import Operation
from ._models import OperationDisplay
from ._models import ResourceNameAvailability
from ._models import ResourceNameAvailabilityRequest
from ._models import ServiceSpecification
from ._models import Snapshot
from ._models import SnapshotPatch
from ._models import Volume
from ._models import VolumePatch
from ._models import VolumePatchPropertiesExportPolicy
from ._models import VolumePropertiesExportPolicy
from ._paged_models import CapacityPoolPaged
from ._paged_models import MountTargetPaged
from ._paged_models import NetAppAccountPaged
from ._paged_models import OperationPaged
from ._paged_models import SnapshotPaged
from ._paged_models import VolumePaged
from ._azure_net_app_files_management_client_enums import (
InAvailabilityReasonType,
CheckNameResourceTypes,
ServiceLevel,
)

__all__ = [
'OperationDisplay',
'Dimension',
'MetricSpecification',
'ServiceSpecification',
'Operation',
'ResourceNameAvailability',
'ResourceNameAvailabilityRequest',
'ActiveDirectory',
'NetAppAccount',
'NetAppAccountPatch',
'CapacityPool',
'CapacityPoolPatch',
'Dimension',
'ExportPolicyRule',
'VolumePropertiesExportPolicy',
'Volume',
'VolumePatchPropertiesExportPolicy',
'VolumePatch',
'MetricSpecification',
'MountTarget',
'NetAppAccount',
'NetAppAccountPatch',
'Operation',
'OperationDisplay',
'ResourceNameAvailability',
'ResourceNameAvailabilityRequest',
'ServiceSpecification',
'Snapshot',
'SnapshotPatch',
'Volume',
'VolumePatch',
'VolumePatchPropertiesExportPolicy',
'VolumePropertiesExportPolicy',
'OperationPaged',
'NetAppAccountPaged',
'CapacityPoolPaged',
Expand Down
Loading