forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade pipeline scripts version to 0.8.0 (#9457) Co-authored-by: Jianye Xi <[email protected]>
- Loading branch information
SDK Automation
and
Jianye Xi
committed
May 15, 2020
1 parent
f152b5f
commit 97b4364
Showing
18 changed files
with
5,210 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sdk/azure-mgmt-hybriddatamanager/azure/mgmt/hybriddatamanager/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 HybridDataManagementClientConfiguration | ||
from ._hybrid_data_management_client import HybridDataManagementClient | ||
__all__ = ['HybridDataManagementClient', 'HybridDataManagementClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
48 changes: 48 additions & 0 deletions
48
sdk/azure-mgmt-hybriddatamanager/azure/mgmt/hybriddatamanager/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# 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 HybridDataManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for HybridDataManagementClient | ||
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 | ||
: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(HybridDataManagementClientConfiguration, 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-hybriddatamanager/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
84 changes: 84 additions & 0 deletions
84
...ure-mgmt-hybriddatamanager/azure/mgmt/hybriddatamanager/_hybrid_data_management_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# 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 HybridDataManagementClientConfiguration | ||
from .operations import Operations | ||
from .operations import DataManagersOperations | ||
from .operations import DataServicesOperations | ||
from .operations import JobDefinitionsOperations | ||
from .operations import JobsOperations | ||
from .operations import DataStoresOperations | ||
from .operations import DataStoreTypesOperations | ||
from .operations import PublicKeysOperations | ||
from . import models | ||
|
||
|
||
class HybridDataManagementClient(SDKClient): | ||
"""HybridDataManagementClient | ||
:ivar config: Configuration for client. | ||
:vartype config: HybridDataManagementClientConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.hybriddatamanager.operations.Operations | ||
:ivar data_managers: DataManagers operations | ||
:vartype data_managers: azure.mgmt.hybriddatamanager.operations.DataManagersOperations | ||
:ivar data_services: DataServices operations | ||
:vartype data_services: azure.mgmt.hybriddatamanager.operations.DataServicesOperations | ||
:ivar job_definitions: JobDefinitions operations | ||
:vartype job_definitions: azure.mgmt.hybriddatamanager.operations.JobDefinitionsOperations | ||
:ivar jobs: Jobs operations | ||
:vartype jobs: azure.mgmt.hybriddatamanager.operations.JobsOperations | ||
:ivar data_stores: DataStores operations | ||
:vartype data_stores: azure.mgmt.hybriddatamanager.operations.DataStoresOperations | ||
:ivar data_store_types: DataStoreTypes operations | ||
:vartype data_store_types: azure.mgmt.hybriddatamanager.operations.DataStoreTypesOperations | ||
:ivar public_keys: PublicKeys operations | ||
:vartype public_keys: azure.mgmt.hybriddatamanager.operations.PublicKeysOperations | ||
: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 | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = HybridDataManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(HybridDataManagementClient, 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-06-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.data_managers = DataManagersOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.data_services = DataServicesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.job_definitions = JobDefinitionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.jobs = JobsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.data_stores = DataStoresOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.data_store_types = DataStoreTypesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.public_keys = PublicKeysOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
118 changes: 118 additions & 0 deletions
118
sdk/azure-mgmt-hybriddatamanager/azure/mgmt/hybriddatamanager/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# 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 AvailableProviderOperation | ||
from ._models_py3 import AvailableProviderOperationDisplay | ||
from ._models_py3 import CustomerSecret | ||
from ._models_py3 import DataManager | ||
from ._models_py3 import DataManagerUpdateParameter | ||
from ._models_py3 import DataService | ||
from ._models_py3 import DataStore | ||
from ._models_py3 import DataStoreFilter | ||
from ._models_py3 import DataStoreType | ||
from ._models_py3 import DmsBaseObject | ||
from ._models_py3 import Error | ||
from ._models_py3 import ErrorDetails | ||
from ._models_py3 import Job | ||
from ._models_py3 import JobDefinition | ||
from ._models_py3 import JobDefinitionFilter | ||
from ._models_py3 import JobDetails | ||
from ._models_py3 import JobFilter | ||
from ._models_py3 import JobStages | ||
from ._models_py3 import Key | ||
from ._models_py3 import PublicKey | ||
from ._models_py3 import Resource | ||
from ._models_py3 import RunParameters | ||
from ._models_py3 import Schedule | ||
from ._models_py3 import Sku | ||
except (SyntaxError, ImportError): | ||
from ._models import AvailableProviderOperation | ||
from ._models import AvailableProviderOperationDisplay | ||
from ._models import CustomerSecret | ||
from ._models import DataManager | ||
from ._models import DataManagerUpdateParameter | ||
from ._models import DataService | ||
from ._models import DataStore | ||
from ._models import DataStoreFilter | ||
from ._models import DataStoreType | ||
from ._models import DmsBaseObject | ||
from ._models import Error | ||
from ._models import ErrorDetails | ||
from ._models import Job | ||
from ._models import JobDefinition | ||
from ._models import JobDefinitionFilter | ||
from ._models import JobDetails | ||
from ._models import JobFilter | ||
from ._models import JobStages | ||
from ._models import Key | ||
from ._models import PublicKey | ||
from ._models import Resource | ||
from ._models import RunParameters | ||
from ._models import Schedule | ||
from ._models import Sku | ||
from ._paged_models import AvailableProviderOperationPaged | ||
from ._paged_models import DataManagerPaged | ||
from ._paged_models import DataServicePaged | ||
from ._paged_models import DataStorePaged | ||
from ._paged_models import DataStoreTypePaged | ||
from ._paged_models import JobDefinitionPaged | ||
from ._paged_models import JobPaged | ||
from ._paged_models import PublicKeyPaged | ||
from ._hybrid_data_management_client_enums import ( | ||
SupportedAlgorithm, | ||
State, | ||
JobStatus, | ||
IsJobCancellable, | ||
RunLocation, | ||
UserConfirmation, | ||
) | ||
|
||
__all__ = [ | ||
'AvailableProviderOperation', | ||
'AvailableProviderOperationDisplay', | ||
'CustomerSecret', | ||
'DataManager', | ||
'DataManagerUpdateParameter', | ||
'DataService', | ||
'DataStore', | ||
'DataStoreFilter', | ||
'DataStoreType', | ||
'DmsBaseObject', | ||
'Error', | ||
'ErrorDetails', | ||
'Job', | ||
'JobDefinition', | ||
'JobDefinitionFilter', | ||
'JobDetails', | ||
'JobFilter', | ||
'JobStages', | ||
'Key', | ||
'PublicKey', | ||
'Resource', | ||
'RunParameters', | ||
'Schedule', | ||
'Sku', | ||
'AvailableProviderOperationPaged', | ||
'DataManagerPaged', | ||
'DataServicePaged', | ||
'JobDefinitionPaged', | ||
'JobPaged', | ||
'DataStorePaged', | ||
'DataStoreTypePaged', | ||
'PublicKeyPaged', | ||
'SupportedAlgorithm', | ||
'State', | ||
'JobStatus', | ||
'IsJobCancellable', | ||
'RunLocation', | ||
'UserConfirmation', | ||
] |
82 changes: 82 additions & 0 deletions
82
...iddatamanager/azure/mgmt/hybriddatamanager/models/_hybrid_data_management_client_enums.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# 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 enum import Enum | ||
|
||
|
||
class SupportedAlgorithm(str, Enum): | ||
|
||
none = "None" | ||
rsa1_5 = "RSA1_5" | ||
rsa_oaep = "RSA_OAEP" | ||
plain_text = "PlainText" | ||
|
||
|
||
class State(str, Enum): | ||
|
||
disabled = "Disabled" | ||
enabled = "Enabled" | ||
supported = "Supported" | ||
|
||
|
||
class JobStatus(str, Enum): | ||
|
||
none = "None" | ||
in_progress = "InProgress" | ||
succeeded = "Succeeded" | ||
waiting_for_action = "WaitingForAction" | ||
failed = "Failed" | ||
cancelled = "Cancelled" | ||
cancelling = "Cancelling" | ||
partially_succeeded = "PartiallySucceeded" | ||
|
||
|
||
class IsJobCancellable(str, Enum): | ||
|
||
not_cancellable = "NotCancellable" | ||
cancellable = "Cancellable" | ||
|
||
|
||
class RunLocation(str, Enum): | ||
|
||
none = "none" | ||
australiaeast = "australiaeast" | ||
australiasoutheast = "australiasoutheast" | ||
brazilsouth = "brazilsouth" | ||
canadacentral = "canadacentral" | ||
canadaeast = "canadaeast" | ||
centralindia = "centralindia" | ||
centralus = "centralus" | ||
eastasia = "eastasia" | ||
eastus = "eastus" | ||
eastus2 = "eastus2" | ||
japaneast = "japaneast" | ||
japanwest = "japanwest" | ||
koreacentral = "koreacentral" | ||
koreasouth = "koreasouth" | ||
southeastasia = "southeastasia" | ||
southcentralus = "southcentralus" | ||
southindia = "southindia" | ||
northcentralus = "northcentralus" | ||
northeurope = "northeurope" | ||
uksouth = "uksouth" | ||
ukwest = "ukwest" | ||
westcentralus = "westcentralus" | ||
westeurope = "westeurope" | ||
westindia = "westindia" | ||
westus = "westus" | ||
westus2 = "westus2" | ||
|
||
|
||
class UserConfirmation(str, Enum): | ||
|
||
not_required = "NotRequired" | ||
required = "Required" |
Oops, something went wrong.