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.
Generated from 79f6835e39fcd2a729d549b1c9f2045aba50488f
- Loading branch information
SDK Automation
committed
Sep 29, 2020
1 parent
e4b5296
commit e7ffb48
Showing
37 changed files
with
5,861 additions
and
33 deletions.
There are no files selected for viewing
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
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
19 changes: 19 additions & 0 deletions
19
...azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/__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 DeploymentScriptsClientConfiguration | ||
from ._deployment_scripts_client import DeploymentScriptsClient | ||
__all__ = ['DeploymentScriptsClient', 'DeploymentScriptsClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
49 changes: 49 additions & 0 deletions
49
...mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_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,49 @@ | ||
# 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 DeploymentScriptsClientConfiguration(AzureConfiguration): | ||
"""Configuration for DeploymentScriptsClient | ||
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 Id which 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(DeploymentScriptsClientConfiguration, 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-resource/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
50 changes: 50 additions & 0 deletions
50
...e/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_deployment_scripts_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,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 msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import DeploymentScriptsClientConfiguration | ||
from .operations import DeploymentScriptsOperations | ||
from . import models | ||
|
||
|
||
class DeploymentScriptsClient(SDKClient): | ||
"""The APIs listed in this specification can be used to manage Deployment Scripts resource through the Azure Resource Manager. | ||
:ivar config: Configuration for client. | ||
:vartype config: DeploymentScriptsClientConfiguration | ||
:ivar deployment_scripts: DeploymentScripts operations | ||
:vartype deployment_scripts: azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.operations.DeploymentScriptsOperations | ||
: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 Id which 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 = DeploymentScriptsClientConfiguration(credentials, subscription_id, base_url) | ||
super(DeploymentScriptsClient, 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-10-01-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.deployment_scripts = DeploymentScriptsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
79 changes: 79 additions & 0 deletions
79
...gmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/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,79 @@ | ||
# 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 AzureCliScript | ||
from ._models_py3 import AzurePowerShellScript | ||
from ._models_py3 import AzureResourceBase | ||
from ._models_py3 import ContainerConfiguration | ||
from ._models_py3 import DeploymentScript | ||
from ._models_py3 import DeploymentScriptsError, DeploymentScriptsErrorException | ||
from ._models_py3 import DeploymentScriptUpdateParameter | ||
from ._models_py3 import EnvironmentVariable | ||
from ._models_py3 import ErrorAdditionalInfo | ||
from ._models_py3 import ErrorResponse | ||
from ._models_py3 import ManagedServiceIdentity | ||
from ._models_py3 import ScriptLog | ||
from ._models_py3 import ScriptLogsList | ||
from ._models_py3 import ScriptStatus | ||
from ._models_py3 import StorageAccountConfiguration | ||
from ._models_py3 import SystemData | ||
from ._models_py3 import UserAssignedIdentity | ||
except (SyntaxError, ImportError): | ||
from ._models import AzureCliScript | ||
from ._models import AzurePowerShellScript | ||
from ._models import AzureResourceBase | ||
from ._models import ContainerConfiguration | ||
from ._models import DeploymentScript | ||
from ._models import DeploymentScriptsError, DeploymentScriptsErrorException | ||
from ._models import DeploymentScriptUpdateParameter | ||
from ._models import EnvironmentVariable | ||
from ._models import ErrorAdditionalInfo | ||
from ._models import ErrorResponse | ||
from ._models import ManagedServiceIdentity | ||
from ._models import ScriptLog | ||
from ._models import ScriptLogsList | ||
from ._models import ScriptStatus | ||
from ._models import StorageAccountConfiguration | ||
from ._models import SystemData | ||
from ._models import UserAssignedIdentity | ||
from ._paged_models import DeploymentScriptPaged | ||
from ._deployment_scripts_client_enums import ( | ||
ManagedServiceIdentityType, | ||
CreatedByType, | ||
CleanupOptions, | ||
ScriptProvisioningState, | ||
) | ||
|
||
__all__ = [ | ||
'AzureCliScript', | ||
'AzurePowerShellScript', | ||
'AzureResourceBase', | ||
'ContainerConfiguration', | ||
'DeploymentScript', | ||
'DeploymentScriptsError', 'DeploymentScriptsErrorException', | ||
'DeploymentScriptUpdateParameter', | ||
'EnvironmentVariable', | ||
'ErrorAdditionalInfo', | ||
'ErrorResponse', | ||
'ManagedServiceIdentity', | ||
'ScriptLog', | ||
'ScriptLogsList', | ||
'ScriptStatus', | ||
'StorageAccountConfiguration', | ||
'SystemData', | ||
'UserAssignedIdentity', | ||
'DeploymentScriptPaged', | ||
'ManagedServiceIdentityType', | ||
'CreatedByType', | ||
'CleanupOptions', | ||
'ScriptProvisioningState', | ||
] |
42 changes: 42 additions & 0 deletions
42
...resource/deploymentscripts/v2019_10_01_preview/models/_deployment_scripts_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,42 @@ | ||
# 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 ManagedServiceIdentityType(str, Enum): | ||
|
||
user_assigned = "UserAssigned" | ||
|
||
|
||
class CreatedByType(str, Enum): | ||
|
||
user = "User" | ||
application = "Application" | ||
managed_identity = "ManagedIdentity" | ||
key = "Key" | ||
|
||
|
||
class CleanupOptions(str, Enum): | ||
|
||
always = "Always" | ||
on_success = "OnSuccess" | ||
on_expiration = "OnExpiration" | ||
|
||
|
||
class ScriptProvisioningState(str, Enum): | ||
|
||
creating = "Creating" | ||
provisioning_resources = "ProvisioningResources" | ||
running = "Running" | ||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" |
Oops, something went wrong.