コード例 #1
0
def delete(**_):
    '''Deletes a Virtual Network'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualNetwork(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)
        ))
コード例 #2
0
def delete(**_):
    '''Deletes a Public IP Address'''
    # Delete the resource
    utils.task_resource_delete(
        PublicIPAddress(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)
        ))
コード例 #3
0
def delete(**_):
    '''Deletes a Subnet'''
    # Delete the resource
    utils.task_resource_delete(
        Subnet(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)
        )
    )
コード例 #4
0
def delete(**_):
    '''Deletes a Virtual Machine'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualMachine(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
    for prop in ['public_ip', 'public_ip_address', 'ip',
                 'name', 'async_op', 'public_ip_address']:
        try:
            del ctx.instance.runtime_properties[prop]
        except KeyError:
            pass
コード例 #5
0
def delete(**_):
    '''Deletes a Virtual Machine'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualMachine(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
    for prop in [
            'public_ip', 'public_ip_address', 'ip', 'name', 'async_op',
            'public_ip_address'
    ]:
        try:
            del ctx.instance.runtime_properties[prop]
        except KeyError:
            pass
コード例 #6
0
def delete(**_):
    '''Deletes a Public IP Address'''
    # Delete the resource
    utils.task_resource_delete(
        PublicIPAddress())
コード例 #7
0
def delete(**_):
    '''Deletes a Public IP Address'''
    # Delete the resource
    utils.task_resource_delete(PublicIPAddress())
コード例 #8
0
def delete(**_):
    '''Deletes a Availability Set'''
    # Delete the resource
    utils.task_resource_delete(AvailabilitySet())
コード例 #9
0
def delete(**_):
    '''Deletes a Virtual Machine Extension'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualMachineExtension(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
コード例 #10
0
def delete(**_):
    '''Deletes a Virtual Network'''
    # Delete the resource
    utils.task_resource_delete(VirtualNetwork())
コード例 #11
0
def delete(**_):
    '''Deletes a Availability Set'''
    # Delete the resource
    utils.task_resource_delete(
        AvailabilitySet())
コード例 #12
0
def delete(**_):
    '''Deletes a Virtual Machine'''
    # Delete the resource
    utils.task_resource_delete(VirtualMachine())
コード例 #13
0
def delete(**_):
    '''Deletes a Resource Group'''
    # Delete the resource
    utils.task_resource_delete(ResourceGroup())
コード例 #14
0
def delete(**_):
    '''Deletes a Network Security Group'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkSecurityGroup(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #15
0
def delete(**_):
    '''Deletes a Route Table'''
    # Delete the resource
    utils.task_resource_delete(
        RouteTable(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #16
0
def delete(**_):
    '''Deletes a Network Interface Card'''
    # Delete the resource
    utils.task_resource_delete(NetworkInterfaceCard())
コード例 #17
0
def delete(**_):
    '''Deletes a Subnet'''
    # Delete the resource
    utils.task_resource_delete(
        Subnet())
コード例 #18
0
def delete(**_):
    '''Deletes a Network Security Group'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkSecurityGroup())
コード例 #19
0
def delete(**_):
    '''Deletes a Resource Group'''
    # Delete the resource
    utils.task_resource_delete(
        ResourceGroup(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_RESOURCES)))
コード例 #20
0
def delete(**_):
    '''Deletes a Route Table'''
    # Delete the resource
    utils.task_resource_delete(
        RouteTable())
コード例 #21
0
def delete(**_):
    '''Deletes a Load Balancer'''
    # Delete the resource
    utils.task_resource_delete(
        LoadBalancer())
コード例 #22
0
def delete(**_):
    '''Deletes a Virtual Machine'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualMachine(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
コード例 #23
0
def delete(**_):
    '''Deletes a Storage Account'''
    # Delete the resource
    utils.task_resource_delete(
        StorageAccount())
コード例 #24
0
def delete(**_):
    '''Deletes a Network Interface Card'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkInterfaceCard())
コード例 #25
0
def delete(**_):
    '''Deletes a Virtual Network'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualNetwork(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #26
0
def delete(**_):
    '''Deletes a Network Interface Card'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkInterfaceCard(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #27
0
def delete(**_):
    '''Deletes a Resource Group'''
    # Delete the resource
    utils.task_resource_delete(
        ResourceGroup(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_RESOURCES)))
コード例 #28
0
def delete(**_):
    '''Deletes a Availability Set'''
    # Delete the resource
    utils.task_resource_delete(
        AvailabilitySet(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
コード例 #29
0
def delete(**_):
    '''Deletes a Virtual Machine'''
    # Delete the resource
    utils.task_resource_delete(
        VirtualMachine())
コード例 #30
0
def delete(**_):
    '''Deletes a Network Interface Card'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkInterfaceCard(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #31
0
def delete(**_):
    '''Deletes a Resource Group'''
    # Delete the resource
    utils.task_resource_delete(
        ResourceGroup())
コード例 #32
0
def delete(**_):
    '''Deletes a Route Table'''
    # Delete the resource
    utils.task_resource_delete(RouteTable())
コード例 #33
0
def delete(**_):
    '''Deletes a Subnet'''
    # Delete the resource
    utils.task_resource_delete(Subnet())
コード例 #34
0
def delete(**_):
    '''Deletes a Load Balancer'''
    # Delete the resource
    utils.task_resource_delete(
        LoadBalancer(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #35
0
def delete(**_):
    '''Deletes a Storage Account'''
    # Delete the resource
    utils.task_resource_delete(StorageAccount())
コード例 #36
0
def delete(**_):
    '''Deletes a Network Security Group'''
    # Delete the resource
    utils.task_resource_delete(
        NetworkSecurityGroup(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_NETWORK)))
コード例 #37
0
def delete(**_):
    '''Deletes a Storage Account'''
    # Delete the resource
    utils.task_resource_delete(
        StorageAccount(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_STORAGE)))
コード例 #38
0
def delete(**_):
    '''Deletes a Availability Set'''
    # Delete the resource
    utils.task_resource_delete(
        AvailabilitySet(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_COMPUTE)))
コード例 #39
0
def delete(**_):
    '''Deletes a Storage Account'''
    # Delete the resource
    utils.task_resource_delete(
        StorageAccount(api_version=ctx.node.properties.get(
            'api_version', constants.API_VER_STORAGE)))