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 202c280ac47ce63c6d4480d4c271da833821378b
bump python sdk version to 0.3.0
- Loading branch information
SDK Automation
committed
Oct 29, 2019
1 parent
93f738b
commit 880b17a
Showing
70 changed files
with
2,420 additions
and
2,905 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
50 changes: 50 additions & 0 deletions
50
sdk/compute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/_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,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 ImageBuilderClientConfiguration(AzureConfiguration): | ||
"""Configuration for ImageBuilderClient | ||
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(ImageBuilderClientConfiguration, 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-imagebuilder/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
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
59 changes: 59 additions & 0 deletions
59
...ute/azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/_image_builder_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,59 @@ | ||
# 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 ProvisioningState(str, Enum): | ||
|
||
creating = "Creating" | ||
updating = "Updating" | ||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
deleting = "Deleting" | ||
|
||
|
||
class ProvisioningErrorCode(str, Enum): | ||
|
||
bad_source_type = "BadSourceType" | ||
bad_pir_source = "BadPIRSource" | ||
bad_iso_source = "BadISOSource" | ||
bad_managed_image_source = "BadManagedImageSource" | ||
bad_shared_image_version_source = "BadSharedImageVersionSource" | ||
bad_customizer_type = "BadCustomizerType" | ||
unsupported_customizer_type = "UnsupportedCustomizerType" | ||
no_customizer_script = "NoCustomizerScript" | ||
bad_distribute_type = "BadDistributeType" | ||
bad_shared_image_distribute = "BadSharedImageDistribute" | ||
server_error = "ServerError" | ||
other = "Other" | ||
|
||
|
||
class RunState(str, Enum): | ||
|
||
running = "Running" | ||
succeeded = "Succeeded" | ||
partially_succeeded = "PartiallySucceeded" | ||
failed = "Failed" | ||
|
||
|
||
class RunSubState(str, Enum): | ||
|
||
queued = "Queued" | ||
building = "Building" | ||
customizing = "Customizing" | ||
distributing = "Distributing" | ||
|
||
|
||
class ResourceIdentityType(str, Enum): | ||
|
||
user_assigned = "UserAssigned" | ||
none = "None" |
Oops, something went wrong.