module Azure::ClientServices

The Azure::Configurable module provides quick access to the Azure services and initializes the service to use the configuration of the class it's mixed into.

Public Instance Methods

base_management(options = {}) click to toggle source

Azure Generic management service configured for this Azure client instance @return [Azure::BaseManagement::BaseManagementService]

# File lib/azure/client_services.rb, line 88
def base_management(options = {})
  Azure::BaseManagement::BaseManagementService.new(default_client(options))
end
blobs(options = {}) click to toggle source

Azure Blob service configured for this Azure client instance @return [Azure::Blob::BlobService]

# File lib/azure/client_services.rb, line 22
def blobs(options = {})
  Azure::Blob::BlobService.new(default_client(options))
end
cloud_service_management(options = {}) click to toggle source

Azure Cloud Service management service configured for this Azure client instance @return [Azure::CloudServiceManagement::CloudServiceManagementService]

# File lib/azure/client_services.rb, line 76
def cloud_service_management(options = {})
  Azure::CloudServiceManagement::CloudServiceManagementService.new(default_client(options))
end
network_management(options = {}) click to toggle source

Azure Network management service configured for this Azure client instance @return [Azure::VirtualNetworkManagement::VirtualNetworkManagementService]

# File lib/azure/client_services.rb, line 70
def network_management(options = {})
  Azure::VirtualNetworkManagement::VirtualNetworkManagementService.new(default_client(options))
end
queues(options = {}) click to toggle source

Azure Queue service configured for this Azure client instance @return [Azure::Queue::QueueService]

# File lib/azure/client_services.rb, line 28
def queues(options = {})
  Azure::Queue::QueueService.new(default_client(options))
end
service_bus(options = {}) click to toggle source

Azure Service Bus service configured for this Azure client instance @return [Azure::ServiceBus::ServiceBusService]

# File lib/azure/client_services.rb, line 40
def service_bus(options = {})
  Azure::ServiceBus::ServiceBusService.new(service_bus_host, default_client(options))
end
sql_database_management(options = {}) click to toggle source

Azure SQL Database management service configured for this Azure client instance @return [Azure::SqlDatabaseManagement::SqlDatabaseManagementService]

# File lib/azure/client_services.rb, line 64
def sql_database_management(options = {})
  Azure::SqlDatabaseManagement::SqlDatabaseManagementService.new(default_client(options))
end
storage_management(options = {}) click to toggle source

Azure Storage management service configured for this Azure client instance @return [Azure::StorageManagement::StorageManagementService]

# File lib/azure/client_services.rb, line 82
def storage_management(options = {})
  Azure::StorageManagement::StorageManagementService.new(default_client(options))
end
tables(options = {}) click to toggle source

Azure Table service configured for this Azure client instance @return [Azure::Table::TableService]

# File lib/azure/client_services.rb, line 34
def tables(options = {})
  Azure::Table::TableService.new(default_client(options))
end
vm_disk_management(options = {}) click to toggle source

Azure Virtual Machine disk management service configured for this Azure client instance @return [Azure::VirtualMachineImageManagement::VirtualMachineDiskManagementService]

# File lib/azure/client_services.rb, line 52
def vm_disk_management(options = {})
  Azure::VirtualMachineImageManagement::VirtualMachineDiskManagementService.new(default_client(options))
end
vm_image_management(options = {}) click to toggle source

Azure Virtual Image management service configured for this Azure client instance @return [Azure::VirtualMachineImageManagement::VirtualMachineImageManagementService]

# File lib/azure/client_services.rb, line 46
def vm_image_management(options = {})
  Azure::VirtualMachineImageManagement::VirtualMachineImageManagementService.new(default_client(options))
end
vm_management(options = {}) click to toggle source

Azure Virtual Machine management service configured for this Azure client instance @return [Azure::VirtualMachineManagement::VirtualMachineManagementService]

# File lib/azure/client_services.rb, line 58
def vm_management(options = {})
  Azure::VirtualMachineManagement::VirtualMachineManagementService.new(default_client(options))
end

Private Instance Methods

default_client(opts) click to toggle source
# File lib/azure/client_services.rb, line 94
def default_client(opts)
  !opts.empty? ? {client: Azure.client(opts)} : {client: self}
end