Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def create_or_update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param disk: Disk object supplied in the body of the Put disk
operation.
Expand Down Expand Up @@ -218,8 +220,10 @@ def update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param disk: Disk object supplied in the body of the Patch disk
operation.
Expand Down Expand Up @@ -287,8 +291,10 @@ def get(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -395,8 +401,10 @@ def delete(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -643,8 +651,10 @@ def grant_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param access: Possible values include: 'None', 'Read'
:type access: str or
Expand Down Expand Up @@ -762,8 +772,10 @@ def revoke_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def create_or_update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param disk: Disk object supplied in the body of the Put disk
operation.
Expand Down Expand Up @@ -218,8 +220,10 @@ def update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param disk: Disk object supplied in the body of the Patch disk
operation.
Expand Down Expand Up @@ -287,8 +291,10 @@ def get(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -395,8 +401,10 @@ def delete(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -643,8 +651,10 @@ def grant_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param access: Possible values include: 'None', 'Read'
:type access: str or
Expand Down Expand Up @@ -762,8 +772,10 @@ def revoke_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param disk_name: The name of the disk within the given subscription
and resource group.
:param disk_name: The name of the managed disk that is being created.
The name can't be changed after the disk is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The maximum name
length is 80 characters.
:type disk_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def create_or_update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param snapshot: Snapshot object supplied in the body of the Put disk
operation.
Expand Down Expand Up @@ -218,8 +220,10 @@ def update(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param snapshot: Snapshot object supplied in the body of the Patch
snapshot operation.
Expand Down Expand Up @@ -287,8 +291,10 @@ def get(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -395,8 +401,10 @@ def delete(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down Expand Up @@ -643,8 +651,10 @@ def grant_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param access: Possible values include: 'None', 'Read'
:type access: str or
Expand Down Expand Up @@ -762,8 +772,10 @@ def revoke_access(

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param snapshot_name: The name of the snapshot within the given
subscription and resource group.
:param snapshot_name: The name of the snapshot that is being created.
The name can't be changed after the snapshot is created. Supported
characters for the name are a-z, A-Z, 0-9 and _. The max name length
is 80 characters.
:type snapshot_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
from .resource import Resource
from .update_resource import UpdateResource
from .sub_resource_read_only import SubResourceReadOnly
from .recovery_walk_response import RecoveryWalkResponse
from .operation_status_response import OperationStatusResponse
from .run_command_input_parameter import RunCommandInputParameter
from .run_command_input import RunCommandInput
Expand Down Expand Up @@ -256,6 +257,7 @@
'Resource',
'UpdateResource',
'SubResourceReadOnly',
'RecoveryWalkResponse',
'OperationStatusResponse',
'RunCommandInputParameter',
'RunCommandInput',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class DataDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: Specifies how the virtual machine should be
created.<br><br> Possible values are:<br><br> **Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
Expand Down Expand Up @@ -63,18 +66,20 @@ class DataDisk(Model):
'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
}

def __init__(self, lun, create_option, name=None, vhd=None, image=None, caching=None, disk_size_gb=None, managed_disk=None):
def __init__(self, lun, create_option, name=None, vhd=None, image=None, caching=None, write_accelerator_enabled=None, disk_size_gb=None, managed_disk=None):
super(DataDisk, self).__init__()
self.lun = lun
self.name = name
self.vhd = vhd
self.image = image
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class OSDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: Specifies how the virtual machine should be
created.<br><br> Possible values are:<br><br> **Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
Expand Down Expand Up @@ -72,19 +75,21 @@ class OSDisk(Model):
'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
}

def __init__(self, create_option, os_type=None, encryption_settings=None, name=None, vhd=None, image=None, caching=None, disk_size_gb=None, managed_disk=None):
def __init__(self, create_option, os_type=None, encryption_settings=None, name=None, vhd=None, image=None, caching=None, write_accelerator_enabled=None, disk_size_gb=None, managed_disk=None):
super(OSDisk, self).__init__()
self.os_type = os_type
self.encryption_settings = encryption_settings
self.name = name
self.vhd = vhd
self.image = image
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 RecoveryWalkResponse(Model):
"""Response after calling a manual recovery walk.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar walk_performed: Whether the recovery walk was performed
:vartype walk_performed: bool
:ivar next_platform_update_domain: The next update domain that needs to be
walked. Null means walk spanning all update domains has been completed
:vartype next_platform_update_domain: int
"""

_validation = {
'walk_performed': {'readonly': True},
'next_platform_update_domain': {'readonly': True},
}

_attribute_map = {
'walk_performed': {'key': 'walkPerformed', 'type': 'bool'},
'next_platform_update_domain': {'key': 'nextPlatformUpdateDomain', 'type': 'int'},
}

def __init__(self):
super(RecoveryWalkResponse, self).__init__()
self.walk_performed = None
self.next_platform_update_domain = None
Loading