Class: Ansible::Ruby::Modules::Azure_rm_image

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb

Overview

Create, delete an image from virtual machine, blob uri, managed disk or snapshot.

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

#data_disk_sourcesArray<String>, ...

Returns List of data disk sources, including unmanaged blob uri, managed disk id or name, or snapshot id or name.

Returns:

  • (Array<String>, String, nil)

    List of data disk sources, including unmanaged blob uri, managed disk id or name, or snapshot id or name.



24
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 24

attribute :data_disk_sources

#locationObject?

Returns Location of the image. Derived from I(resource_group) if not specified.

Returns:

  • (Object, nil)

    Location of the image. Derived from I(resource_group) if not specified.



28
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 28

attribute :location

#nameString

Returns Name of the image.

Returns:

  • (String)

    Name of the image.



16
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 16

attribute :name

#os_type:Windows, ...

Returns The OS type of image.

Returns:

  • (:Windows, :Linux, nil)

    The OS type of image.



31
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 31

attribute :os_type

#resource_groupString

Returns Name of resource group.

Returns:

  • (String)

    Name of resource group.



12
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 12

attribute :resource_group

#sourceString

Returns OS disk source from the same region, including a virtual machine id or name, OS disk blob uri, managed OS disk id or name, or OS snapshot id or name.

Returns:

  • (String)

    OS disk source from the same region, including a virtual machine id or name, OS disk blob uri, managed OS disk id or name, or OS snapshot id or name.



20
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 20

attribute :source

#state:absent, ...

Returns Assert the state of the image. Use C(present) to create or update a image and C(absent) to delete an image.

Returns:

  • (:absent, :present, nil)

    Assert the state of the image. Use C(present) to create or update a image and C(absent) to delete an image.



35
# File 'lib/ansible/ruby/modules/generated/cloud/azure/azure_rm_image.rb', line 35

attribute :state