-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 796ebc9f7d0be44caec229a6dccaeafaa80d72e6
Add imagebuilder/2019-02-01-preview
- Loading branch information
1 parent
fbe44de
commit 2b76a36
Showing
36 changed files
with
473 additions
and
74 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
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
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
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
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
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
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
40 changes: 40 additions & 0 deletions
40
...e-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_managed_image_source.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,40 @@ | ||
# 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 .image_template_source import ImageTemplateSource | ||
|
||
|
||
class ImageTemplateManagedImageSource(ImageTemplateSource): | ||
"""Describes an image source that is a managed image in customer subscription. | ||
All required parameters must be populated in order to send to Azure. | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param image_id: Required. ARM resource id of the managed image in | ||
customer subscription | ||
:type image_id: str | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
'image_id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'image_id': {'key': 'imageId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImageTemplateManagedImageSource, self).__init__(**kwargs) | ||
self.image_id = kwargs.get('image_id', None) | ||
self.type = 'ManagedImage' |
40 changes: 40 additions & 0 deletions
40
...mt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_managed_image_source_py3.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,40 @@ | ||
# 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 .image_template_source_py3 import ImageTemplateSource | ||
|
||
|
||
class ImageTemplateManagedImageSource(ImageTemplateSource): | ||
"""Describes an image source that is a managed image in customer subscription. | ||
All required parameters must be populated in order to send to Azure. | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param image_id: Required. ARM resource id of the managed image in | ||
customer subscription | ||
:type image_id: str | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
'image_id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'image_id': {'key': 'imageId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, image_id: str, **kwargs) -> None: | ||
super(ImageTemplateManagedImageSource, self).__init__(**kwargs) | ||
self.image_id = image_id | ||
self.type = 'ManagedImage' |
48 changes: 48 additions & 0 deletions
48
...mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_power_shell_customizer.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 .image_template_customizer import ImageTemplateCustomizer | ||
|
||
|
||
class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer): | ||
"""Runs the specified PowerSehll on the VM (Windows). Corresponds to Packer | ||
powershell provisioner. | ||
All required parameters must be populated in order to send to Azure. | ||
:param name: Friendly Name to provide context on what this customization | ||
step does | ||
:type name: str | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param script: The PowerShell script to be run for customizing. It can be | ||
a github link, SAS URI for Azure Storage, etc | ||
:type script: str | ||
:param valid_exit_codes: | ||
:type valid_exit_codes: list[int] | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'script': {'key': 'script', 'type': 'str'}, | ||
'valid_exit_codes': {'key': 'validExitCodes', 'type': '[int]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImageTemplatePowerShellCustomizer, self).__init__(**kwargs) | ||
self.script = kwargs.get('script', None) | ||
self.valid_exit_codes = kwargs.get('valid_exit_codes', None) | ||
self.type = 'PowerShell' |
Oops, something went wrong.