Skip to content

Commit

Permalink
Generated storageimportexport (#10670)
Browse files Browse the repository at this point in the history
* generated storageimportexport

* generated tests

* fixed test

* Packaging update of azure-mgmt-storageimportexport

* test recording

* fixed test

* moved storageimportexport under storage

* fix changelog

* removed SERVICE_NAME

* Packaging update of azure-mgmt-storageimportexport

* fix test

* minor fix

* modified test

* invalid test

* Packaging update of azure-mgmt-storageimportexport

Co-authored-by: Azure SDK Bot <aspysdk2@microsoft.com>
  • Loading branch information
Zim Kalinowski and AutorestCI authored Apr 11, 2020
1 parent dcee774 commit 497cff4
Show file tree
Hide file tree
Showing 25 changed files with 3,156 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/storage/azure-mgmt-storageimportexport/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 0.1.0 (2020-04-11)

* Initial Release
5 changes: 5 additions & 0 deletions sdk/storage/azure-mgmt-storageimportexport/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py

21 changes: 21 additions & 0 deletions sdk/storage/azure-mgmt-storageimportexport/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure StorageImportExport Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)


# Usage

For code examples, see [StorageImportExport Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.


# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-storageimportexport%2FREADME.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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 ._configuration import StorageImportExportConfiguration
from ._storage_import_export import StorageImportExport
__all__ = ['StorageImportExport', 'StorageImportExportConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 StorageImportExportConfiguration(AzureConfiguration):
"""Configuration for StorageImportExport
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: The subscription ID for the Azure user.
:type subscription_id: str
:param accept_language: Specifies the preferred language for the response.
:type accept_language: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, accept_language=None, 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(StorageImportExportConfiguration, 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-storageimportexport/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
self.accept_language = accept_language
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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 StorageImportExportConfiguration
from .operations import LocationsOperations
from .operations import JobsOperations
from .operations import BitLockerKeysOperations
from .operations import Operations
from . import models


class StorageImportExport(SDKClient):
"""The Storage Import/Export Resource Provider API.
:ivar config: Configuration for client.
:vartype config: StorageImportExportConfiguration
:ivar locations: Locations operations
:vartype locations: azure.mgmt.storageimportexport.operations.LocationsOperations
:ivar jobs: Jobs operations
:vartype jobs: azure.mgmt.storageimportexport.operations.JobsOperations
:ivar bit_locker_keys: BitLockerKeys operations
:vartype bit_locker_keys: azure.mgmt.storageimportexport.operations.BitLockerKeysOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.storageimportexport.operations.Operations
: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: The subscription ID for the Azure user.
:type subscription_id: str
:param accept_language: Specifies the preferred language for the response.
:type accept_language: str
:param str base_url: Service URL
"""

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

self.config = StorageImportExportConfiguration(credentials, subscription_id, accept_language, base_url)
super(StorageImportExport, 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 = '2016-11-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.locations = LocationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.jobs = JobsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.bit_locker_keys = BitLockerKeysOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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.
# --------------------------------------------------------------------------

try:
from ._models_py3 import DriveBitLockerKey
from ._models_py3 import DriveStatus
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseErrorDetailsItem
from ._models_py3 import Export
from ._models_py3 import JobDetails
from ._models_py3 import JobResponse
from ._models_py3 import Location
from ._models_py3 import Operation
from ._models_py3 import PackageInfomation
from ._models_py3 import PutJobParameters
from ._models_py3 import ReturnAddress
from ._models_py3 import ReturnShipping
from ._models_py3 import ShippingInformation
from ._models_py3 import UpdateJobParameters
except (SyntaxError, ImportError):
from ._models import DriveBitLockerKey
from ._models import DriveStatus
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseErrorDetailsItem
from ._models import Export
from ._models import JobDetails
from ._models import JobResponse
from ._models import Location
from ._models import Operation
from ._models import PackageInfomation
from ._models import PutJobParameters
from ._models import ReturnAddress
from ._models import ReturnShipping
from ._models import ShippingInformation
from ._models import UpdateJobParameters
from ._paged_models import DriveBitLockerKeyPaged
from ._paged_models import JobResponsePaged
from ._paged_models import LocationPaged
from ._paged_models import OperationPaged
from ._storage_import_export_enums import (
DriveState,
)

__all__ = [
'DriveBitLockerKey',
'DriveStatus',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseErrorDetailsItem',
'Export',
'JobDetails',
'JobResponse',
'Location',
'Operation',
'PackageInfomation',
'PutJobParameters',
'ReturnAddress',
'ReturnShipping',
'ShippingInformation',
'UpdateJobParameters',
'LocationPaged',
'JobResponsePaged',
'DriveBitLockerKeyPaged',
'OperationPaged',
'DriveState',
]
Loading

0 comments on commit 497cff4

Please sign in to comment.