Class: Ansible::Ruby::Modules::Azure_rm_managed_disk
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Azure_rm_managed_disk
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb
Overview
Create, update and delete an Azure Managed Disk
Instance Method Summary collapse
-
#create_option ⇒ :empty, ...
Allowed values: empty, import, copy.
-
#disk_size_gb ⇒ Integer?
Size in GB of the managed disk to be created.
-
#location ⇒ String?
Valid Azure location.
-
#managed_by ⇒ String?
Name of an existing virtual machine with which the disk is or will be associated, this VM should be in the same resource group.,To detach a disk from a vm, keep undefined.
-
#name ⇒ String
Name of the managed disk.
-
#os_type ⇒ :linux, ...
Type of Operating System: C(linux) or C(windows).
-
#resource_group ⇒ String
Name of a resource group where the managed disk exists or will be created.
-
#source_resource_uri ⇒ Object?
The resource ID of the managed disk to copy when I(create_option) is C(copy).
-
#source_uri ⇒ Object?
URI to a valid VHD file to be used when I(create_option) is C(import).
-
#state ⇒ :absent, ...
Assert the state of the managed disk.
-
#storage_account_type ⇒ :Standard_LRS, ...
Type of storage for the managed disk: C(Standard_LRS) or C(Premium_LRS).
-
#tags ⇒ Object?
Tags to assign to the managed disk.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#create_option ⇒ :empty, ...
Returns Allowed values: empty, import, copy. C(import) from a VHD file in I(source_uri) and C(copy) from previous managed disk I(source_resource_uri).
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 32 attribute :create_option |
#disk_size_gb ⇒ Integer?
Returns Size in GB of the managed disk to be created. If I(create_option) is C(copy) then the value must be greater than or equal to the source’s size.
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 46 attribute :disk_size_gb |
#location ⇒ String?
Returns Valid Azure location. Defaults to location of the resource group.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 24 attribute :location |
#managed_by ⇒ String?
Returns Name of an existing virtual machine with which the disk is or will be associated, this VM should be in the same resource group.,To detach a disk from a vm, keep undefined.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 50 attribute :managed_by |
#name ⇒ String
Returns Name of the managed disk.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 16 attribute :name |
#os_type ⇒ :linux, ...
Returns Type of Operating System: C(linux) or C(windows). Used when I(create_option) is either C(copy) or C(import) and the source is an OS disk.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 42 attribute :os_type |
#resource_group ⇒ String
Returns Name of a resource group where the managed disk exists or will be created.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 12 attribute :resource_group |
#source_resource_uri ⇒ Object?
Returns The resource ID of the managed disk to copy when I(create_option) is C(copy).
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 39 attribute :source_resource_uri |
#source_uri ⇒ Object?
Returns URI to a valid VHD file to be used when I(create_option) is C(import).
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 36 attribute :source_uri |
#state ⇒ :absent, ...
Returns Assert the state of the managed disk. Use C(present) to create or update a managed disk and ‘absent’ to delete a managed disk.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 20 attribute :state |
#storage_account_type ⇒ :Standard_LRS, ...
Returns Type of storage for the managed disk: C(Standard_LRS) or C(Premium_LRS). If not specified the disk is created C(Standard_LRS).
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 28 attribute :storage_account_type |
#tags ⇒ Object?
Returns Tags to assign to the managed disk.
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_managed_disk.rb', line 54 attribute :tags |