Class: Azure::VirtualMachineImageManagement::VirtualMachineImageManagementService
- Inherits:
-
BaseManagement::BaseManagementService
- Object
- BaseManagement::BaseManagementService
- Azure::VirtualMachineImageManagement::VirtualMachineImageManagementService
- Defined in:
- lib/azure/virtual_machine_image_management/virtual_machine_image_management_service.rb
Instance Attribute Summary
Attributes inherited from BaseManagement::BaseManagementService
Instance Method Summary collapse
-
#list_os_images ⇒ Object
Private: Gets a list of the operating system images that is associated with the specified subscription.
-
#list_virtual_machine_images ⇒ Object
Public: Gets a list of virtual machine images from the server.
-
#list_vm_images ⇒ Object
Private: Gets a list of the VM Images that is associated with the specified subscription.
Methods inherited from BaseManagement::BaseManagementService
#create_affinity_group, #delete_affinity_group, #get_affinity_group, #initialize, #list_affinity_groups, #list_locations, #list_role_sizes, #update_affinity_group, #validate_configuration!
Constructor Details
This class inherits a constructor from Azure::BaseManagement::BaseManagementService
Instance Method Details
#list_os_images ⇒ Object
Private: Gets a list of the operating system images that is associated with the specified subscription
See msdn.microsoft.com/en-us/library/azure/jj157191.aspx
Returns an array of Azure::VirtualMachineImageManagement::VirtualMachineImage objects
33 34 35 36 37 38 |
# File 'lib/azure/virtual_machine_image_management/virtual_machine_image_management_service.rb', line 33 def list_os_images request_path = '/services/images' request = client.management_request(:get, request_path, nil) response = request.call Serialization.virtual_machine_images_from_xml(response) end |
#list_virtual_machine_images ⇒ Object
Public: Gets a list of virtual machine images from the server
Returns an array of Azure::VirtualMachineImageManagement::VirtualMachineImage objects
24 25 26 |
# File 'lib/azure/virtual_machine_image_management/virtual_machine_image_management_service.rb', line 24 def list_virtual_machine_images list_os_images + list_vm_images end |
#list_vm_images ⇒ Object
Private: Gets a list of the VM Images that is associated with the specified subscription
See msdn.microsoft.com/en-us/library/azure/dn499770.aspx
Returns an array of Azure::VirtualMachineImageManagement::VirtualMachineImage objects
45 46 47 48 49 50 |
# File 'lib/azure/virtual_machine_image_management/virtual_machine_image_management_service.rb', line 45 def list_vm_images request_path = '/services/vmimages' request = client.management_request(:get, request_path) response = request.call Serialization.virtual_machine_vm_images_from_xml(response) end |