Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed May 11, 2020
1 parent 7cedad5 commit e40054e
Show file tree
Hide file tree
Showing 9 changed files with 463 additions and 179 deletions.
30 changes: 11 additions & 19 deletions sdk/compute/azure-mgmt-imagebuilder/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Image Builder 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/)

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.
For code examples, see [Image Builder](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.

## Usage
# Provide Feedback

For code examples, see [Image
Builder](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)
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.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-imagebuilder%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-imagebuilder%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
super(ImageBuilderClient, 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-05-01-preview'
self.api_version = '2020-02-14'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from ._models_py3 import ImageTemplateFileCustomizer
from ._models_py3 import ImageTemplateIdentity
from ._models_py3 import ImageTemplateIdentityUserAssignedIdentitiesValue
from ._models_py3 import ImageTemplateIsoSource
from ._models_py3 import ImageTemplateLastRunStatus
from ._models_py3 import ImageTemplateManagedImageDistributor
from ._models_py3 import ImageTemplateManagedImageSource
Expand All @@ -32,13 +31,16 @@
from ._models_py3 import ImageTemplateUpdateParameters
from ._models_py3 import ImageTemplateVhdDistributor
from ._models_py3 import ImageTemplateVmProfile
from ._models_py3 import ImageTemplateWindowsUpdateCustomizer
from ._models_py3 import InnerError
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import PlatformImagePurchasePlan
from ._models_py3 import ProvisioningError
from ._models_py3 import Resource
from ._models_py3 import RunOutput
from ._models_py3 import SubResource
from ._models_py3 import VirtualNetworkConfig
except (SyntaxError, ImportError):
from ._models import ApiError, ApiErrorException
from ._models import ApiErrorBase
Expand All @@ -48,7 +50,6 @@
from ._models import ImageTemplateFileCustomizer
from ._models import ImageTemplateIdentity
from ._models import ImageTemplateIdentityUserAssignedIdentitiesValue
from ._models import ImageTemplateIsoSource
from ._models import ImageTemplateLastRunStatus
from ._models import ImageTemplateManagedImageDistributor
from ._models import ImageTemplateManagedImageSource
Expand All @@ -62,13 +63,16 @@
from ._models import ImageTemplateUpdateParameters
from ._models import ImageTemplateVhdDistributor
from ._models import ImageTemplateVmProfile
from ._models import ImageTemplateWindowsUpdateCustomizer
from ._models import InnerError
from ._models import Operation
from ._models import OperationDisplay
from ._models import PlatformImagePurchasePlan
from ._models import ProvisioningError
from ._models import Resource
from ._models import RunOutput
from ._models import SubResource
from ._models import VirtualNetworkConfig
from ._paged_models import ImageTemplatePaged
from ._paged_models import OperationPaged
from ._paged_models import RunOutputPaged
Expand All @@ -78,6 +82,7 @@
RunState,
RunSubState,
ResourceIdentityType,
SharedImageStorageAccountType,
)

__all__ = [
Expand All @@ -89,7 +94,6 @@
'ImageTemplateFileCustomizer',
'ImageTemplateIdentity',
'ImageTemplateIdentityUserAssignedIdentitiesValue',
'ImageTemplateIsoSource',
'ImageTemplateLastRunStatus',
'ImageTemplateManagedImageDistributor',
'ImageTemplateManagedImageSource',
Expand All @@ -103,13 +107,16 @@
'ImageTemplateUpdateParameters',
'ImageTemplateVhdDistributor',
'ImageTemplateVmProfile',
'ImageTemplateWindowsUpdateCustomizer',
'InnerError',
'Operation',
'OperationDisplay',
'PlatformImagePurchasePlan',
'ProvisioningError',
'Resource',
'RunOutput',
'SubResource',
'VirtualNetworkConfig',
'ImageTemplatePaged',
'RunOutputPaged',
'OperationPaged',
Expand All @@ -118,4 +125,5 @@
'RunState',
'RunSubState',
'ResourceIdentityType',
'SharedImageStorageAccountType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ 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"
Expand All @@ -40,9 +39,11 @@ class ProvisioningErrorCode(str, Enum):
class RunState(str, Enum):

running = "Running"
canceling = "Canceling"
succeeded = "Succeeded"
partially_succeeded = "PartiallySucceeded"
failed = "Failed"
canceled = "Canceled"


class RunSubState(str, Enum):
Expand All @@ -57,3 +58,9 @@ class ResourceIdentityType(str, Enum):

user_assigned = "UserAssigned"
none = "None"


class SharedImageStorageAccountType(str, Enum):

standard_lrs = "Standard_LRS"
standard_zrs = "Standard_ZRS"
Loading

0 comments on commit e40054e

Please sign in to comment.