Class: Azure::Client

Inherits:
Object
  • Object
show all
Includes:
ClientServices, Configurable, HttpClient
Defined in:
lib/azure/client.rb

Instance Attribute Summary

Attributes included from Configurable

#acs_host, #ca_file, #http_certificate_key, #http_private_key, #management_certificate, #management_endpoint, #sb_access_key, #sb_issuer, #sb_namespace, #sb_sas_key, #sb_sas_key_name, #service_bus_host, #sql_database_management_endpoint, #storage_access_key, #storage_account_name, #storage_blob_host, #storage_queue_host, #storage_table_host, #subscription_id

Instance Method Summary collapse

Methods included from ClientServices

#base_management, #blobs, #cloud_service_management, #network_management, #queues, #service_bus, #sql_database_management, #storage_management, #tables, #vm_disk_management, #vm_image_management, #vm_management

Methods included from HttpClient

#agents, #management_request, #sql_management_request

Methods included from Configurable

#config, #configure, keys, #reset!

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



22
23
24
# File 'lib/azure/client.rb', line 22

def initialize(options = {})
  reset!(options)
end

Instance Method Details

#same_options?(opts) ⇒ Boolean

Check if this client is configured with the same options

Returns:

  • (Boolean)


27
28
29
# File 'lib/azure/client.rb', line 27

def same_options?(opts)
  opts.hash == options.hash
end