Class: Ansible::Ruby::Modules::Azure_rm_managed_disk

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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).

Returns:

  • (:empty, :import, :copy, nil)

    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_gbInteger?

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.

Returns:

  • (Integer, nil)

    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

#locationString?

Returns Valid Azure location. Defaults to location of the resource group.

Returns:

  • (String, nil)

    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_byString?

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.

Returns:

  • (String, nil)

    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

#nameString

Returns Name of the managed disk.

Returns:

  • (String)

    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.

Returns:

  • (:linux, :windows, nil)

    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_groupString

Returns Name of a resource group where the managed disk exists or will be created.

Returns:

  • (String)

    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_uriObject?

Returns The resource ID of the managed disk to copy when I(create_option) is C(copy).

Returns:

  • (Object, nil)

    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_uriObject?

Returns URI to a valid VHD file to be used when I(create_option) is C(import).

Returns:

  • (Object, nil)

    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.

Returns:

  • (:absent, :present, nil)

    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).

Returns:

  • (:Standard_LRS, :Premium_LRS, nil)

    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

#tagsObject?

Returns Tags to assign to the managed disk.

Returns:

  • (Object, nil)

    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