Class: Azure::Profiles::V2020_09_01_Hybrid::Client

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure::Common::Configurable
Defined in:
lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb

Overview

Client class for the V2020_09_01_Hybrid profile SDK.

Defined Under Namespace

Classes: AuthorizationAdapter, CommerceAdapter, ComputeAdapter, DataBoxEdgeAdapter, DnsAdapter, EventHubAdapter, IotHubAdapter, KeyVaultAdapter, LocksAdapter, MonitorAdapter, NetworkAdapter, PolicyAdapter, ResourcesAdapter, StorageAdapter, WebAdapter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Initializes a new instance of the Client class.

'credentials' are optional and if not passed in the hash, will be obtained
from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.

Also, base_url, active_directory_settings & options are optional.

Parameters:

  • options (Hash) (defaults to: {})

    hash of client options. options =

    tenant_id: 'YOUR TENANT ID',
    client_id: 'YOUR CLIENT ID',
    client_secret: 'YOUR CLIENT SECRET',
    subscription_id: 'YOUR SUBSCRIPTION ID',
    credentials: credentials,
    active_directory_settings: active_directory_settings,
    base_url: 'YOUR BASE URL',
    options: options
    



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 49

def initialize(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  base_url = options[:base_url].nil? ? nil:options[:base_url]
  sdk_options = options[:options].nil? ? nil:options[:options]

  @authorization = AuthorizationAdapter.new(self, base_url, sdk_options)
  @locks = LocksAdapter.new(self, base_url, sdk_options)
  @policy = PolicyAdapter.new(self, base_url, sdk_options)
  @commerce = CommerceAdapter.new(self, base_url, sdk_options)
  @compute = ComputeAdapter.new(self, base_url, sdk_options)
  @data_box_edge = DataBoxEdgeAdapter.new(self, base_url, sdk_options)
  @iot_hub = IotHubAdapter.new(self, base_url, sdk_options)
  @event_hub = EventHubAdapter.new(self, base_url, sdk_options)
  @monitor = MonitorAdapter.new(self, base_url, sdk_options)
  @key_vault = KeyVaultAdapter.new(self, base_url, sdk_options)
  @network = NetworkAdapter.new(self, base_url, sdk_options)
  @dns = DnsAdapter.new(self, base_url, sdk_options)
  @resources = ResourcesAdapter.new(self, base_url, sdk_options)
  @storage = StorageAdapter.new(self, base_url, sdk_options)
  @web = WebAdapter.new(self, base_url, sdk_options)
end

Instance Attribute Details

#authorizationObject (readonly)

Returns the value of attribute authorization.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def authorization
  @authorization
end

#commerceObject (readonly)

Returns the value of attribute commerce.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def commerce
  @commerce
end

#computeObject (readonly)

Returns the value of attribute compute.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def compute
  @compute
end

#data_box_edgeObject (readonly)

Returns the value of attribute data_box_edge.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def data_box_edge
  @data_box_edge
end

#dnsObject (readonly)

Returns the value of attribute dns.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def dns
  @dns
end

#event_hubObject (readonly)

Returns the value of attribute event_hub.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def event_hub
  @event_hub
end

#iot_hubObject (readonly)

Returns the value of attribute iot_hub.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def iot_hub
  @iot_hub
end

#key_vaultObject (readonly)

Returns the value of attribute key_vault.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def key_vault
  @key_vault
end

#locksObject (readonly)

Returns the value of attribute locks.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def locks
  @locks
end

#monitorObject (readonly)

Returns the value of attribute monitor.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def monitor
  @monitor
end

#networkObject (readonly)

Returns the value of attribute network.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def network
  @network
end

#policyObject (readonly)

Returns the value of attribute policy.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def policy
  @policy
end

#resourcesObject (readonly)

Returns the value of attribute resources.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def resources
  @resources
end

#storageObject (readonly)

Returns the value of attribute storage.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def storage
  @storage
end

#webObject (readonly)

Returns the value of attribute web.



29
30
31
# File 'lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb', line 29

def web
  @web
end