Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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_py3 import ImageTemplateCustomizer
class ImageTemplatePowerShellCustomizer(ImageTemplateCustomizer):
"""Runs the specified PowerShell on the VM (Windows). Corresponds to Packer
powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be
specified.
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_uri: URI of the PowerShell script to be run for customizing.
It can be a github link, SAS URI for Azure Storage, etc
:type script_uri: str
:param inline: Array of PowerShell commands to execute
:type inline: list[str]
def __init__(self, *, name: str=None, **kwargs) -> None:
super(ImageTemplateCustomizer, self).__init__(**kwargs)
self.name = name
self.type = None
# 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_py3 import ImageTemplateCustomizer
class ImageTemplateShellCustomizer(ImageTemplateCustomizer):
"""Runs a shell script during the customization phase (Linux). Corresponds to
Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be
specified.
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_uri: URI of the shell script to be run for customizing. It
can be a github link, SAS URI for Azure Storage, etc
:type script_uri: str
:param inline: Array of shell commands to execute
:type inline: list[str]
# 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_py3 import ImageTemplateCustomizer
class ImageTemplateFileCustomizer(ImageTemplateCustomizer):
"""Uploads files to VMs (Linux, Windows). Corresponds to Packer file
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 source_uri: The URI of the file to be uploaded for customizing the
VM. It can be a github link, SAS URI for Azure Storage, etc
:type source_uri: str
:param destination: The absolute path to a file (with nested directory
structures already created) where the file (from sourceUri) will be
uploaded to in the VM