Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, **kwargs):
super(SubResource, self).__init__(**kwargs)
self.id = kwargs.get('id', 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 .sub_resource import SubResource
class VirtualMachineImageResource(SubResource):
"""Virtual machine image resource information.
All required parameters must be populated in order to send to Azure.
:param id: Resource Id
:type id: str
:param name: Required. The name of the resource.
:type name: str
:param location: Required. The supported Azure location of the resource.
:type location: str
:param tags: Specifies the tags that are assigned to the virtual machine.
For more information about using tags, see [Using tags to organize your
Azure
resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).
:type tags: dict[str, 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 .sub_resource import SubResource
class NetworkInterfaceReference(SubResource):
"""Describes a network interface reference.
:param id: Resource Id
:type id: str
:param primary: Specifies the primary network interface in case the
virtual machine has more than 1 network interface.
:type primary: bool
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'primary': {'key': 'properties.primary', 'type': 'bool'},
}
def __init__(self, **kwargs):
super(NetworkInterfaceReference, self).__init__(**kwargs)
# 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 .sub_resource import SubResource
class VirtualMachineImageResource(SubResource):
"""Virtual machine image resource information.
:param id: Resource Id
:type id: str
:param name: The name of the resource.
:type name: str
:param location: The supported Azure location of the resource.
:type location: str
:param tags: The tags attached to the resource.
:type tags: dict
"""
_validation = {
'name': {'required': True},
'location': {'required': True},
}
# 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 .sub_resource import SubResource
class VirtualMachineScaleSetIPConfiguration(SubResource):
"""Describes a virtual machine scale set network profile's IP configuration.
All required parameters must be populated in order to send to Azure.
:param id: Resource Id
:type id: str
:param name: Required. The IP configuration name.
:type name: str
:param subnet: Required. The subnet.
:type subnet: ~azure.mgmt.compute.v2015_06_15.models.ApiEntityReference
:param load_balancer_backend_address_pools: The load balancer backend
address pools.
:type load_balancer_backend_address_pools:
list[~azure.mgmt.compute.v2015_06_15.models.SubResource]
:param load_balancer_inbound_nat_pools: The load balancer inbound nat
pools.
# 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 .sub_resource import SubResource
class VirtualMachineScaleSetNetworkConfiguration(SubResource):
"""Describes a virtual machine scale set network profile's network
configurations.
All required parameters must be populated in order to send to Azure.
:param id: Resource Id
:type id: str
:param name: Required. The network configuration name.
:type name: str
:param primary: Whether this is a primary NIC on a virtual machine.
:type primary: bool
:param ip_configurations: Required. The virtual machine scale set IP
Configuration.
:type ip_configurations:
list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetIPConfiguration]
"""
# 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 .sub_resource import SubResource
class VirtualMachineCaptureResult(SubResource):
"""Resource Id.
:param id: Resource Id
:type id: str
:param output: Operation output data (raw JSON)
:type output: object
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'output': {'key': 'properties.output', 'type': 'object'},
}
def __init__(self, **kwargs):
super(VirtualMachineCaptureResult, self).__init__(**kwargs)
self.output = kwargs.get('output', None)