-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] imagebuilder/resource-manager (#4846)
* Generated from d097ecaaa7e9e76be9d2edf40052fd25b8a3e300 (#4845) ImageBuilder May preview for Python * 0.2.0
- Loading branch information
1 parent
15b4c25
commit c839e53
Showing
33 changed files
with
515 additions
and
77 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
18 changes: 18 additions & 0 deletions
18
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,18 @@ | ||
# 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 ResourceIdentityType(str, Enum): | ||
|
||
user_assigned = "UserAssigned" | ||
none = "None" |
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
49 changes: 49 additions & 0 deletions
49
azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_file_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,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 .image_template_customizer 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 (with existing directory structure) | ||
where the file will be uploaded to in the VM | ||
:type destination: str | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'source_uri': {'key': 'sourceUri', 'type': 'str'}, | ||
'destination': {'key': 'destination', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImageTemplateFileCustomizer, self).__init__(**kwargs) | ||
self.source_uri = kwargs.get('source_uri', None) | ||
self.destination = kwargs.get('destination', None) | ||
self.type = 'File' |
49 changes: 49 additions & 0 deletions
49
azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_file_customizer_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,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 .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 (with existing directory structure) | ||
where the file will be uploaded to in the VM | ||
:type destination: str | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'source_uri': {'key': 'sourceUri', 'type': 'str'}, | ||
'destination': {'key': 'destination', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, source_uri: str=None, destination: str=None, **kwargs) -> None: | ||
super(ImageTemplateFileCustomizer, self).__init__(name=name, **kwargs) | ||
self.source_uri = source_uri | ||
self.destination = destination | ||
self.type = 'File' |
38 changes: 38 additions & 0 deletions
38
azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_identity.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,38 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class ImageTemplateIdentity(Model): | ||
"""Identity for the image template. | ||
:param type: The type of identity used for the image template. The type | ||
'None' will remove any identities from the image template. Possible values | ||
include: 'UserAssigned', 'None' | ||
:type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the image template. The user identity dictionary key references will | ||
be ARM resource ids in the form: | ||
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
:type user_assigned_identities: dict[str, | ||
~azure.mgmt.imagebuilder.models.ImageTemplateIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'ResourceIdentityType'}, | ||
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ImageTemplateIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ImageTemplateIdentity, self).__init__(**kwargs) | ||
self.type = kwargs.get('type', None) | ||
self.user_assigned_identities = kwargs.get('user_assigned_identities', None) |
38 changes: 38 additions & 0 deletions
38
azure-mgmt-imagebuilder/azure/mgmt/imagebuilder/models/image_template_identity_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,38 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class ImageTemplateIdentity(Model): | ||
"""Identity for the image template. | ||
:param type: The type of identity used for the image template. The type | ||
'None' will remove any identities from the image template. Possible values | ||
include: 'UserAssigned', 'None' | ||
:type type: str or ~azure.mgmt.imagebuilder.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the image template. The user identity dictionary key references will | ||
be ARM resource ids in the form: | ||
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
:type user_assigned_identities: dict[str, | ||
~azure.mgmt.imagebuilder.models.ImageTemplateIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_attribute_map = { | ||
'type': {'key': 'type', 'type': 'ResourceIdentityType'}, | ||
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ImageTemplateIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: | ||
super(ImageTemplateIdentity, self).__init__(**kwargs) | ||
self.type = type | ||
self.user_assigned_identities = user_assigned_identities |
Oops, something went wrong.