Class: Azure::DataBox::Profiles::Latest::Mgmt::DataBoxManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/databox_profile_module.rb

Overview

DataBoxManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DataBoxManagementClass

Returns a new instance of DataBoxManagementClass.



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 86

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

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::DataBox::Mgmt::V2018_01_01::DataBoxManagementClient.new(configurable.credentials, base_url, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @operations = @client_0.operations
  @jobs = @client_0.jobs
  @service = @client_0.service

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



116
117
118
119
120
121
122
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 116

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def configurable
  @configurable
end

#jobsObject (readonly)

Returns the value of attribute jobs.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def jobs
  @jobs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def options
  @options
end

#serviceObject (readonly)

Returns the value of attribute service.



84
85
86
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84

def service
  @service
end

Instance Method Details

#add_telemetry(client) ⇒ Object



111
112
113
114
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 111

def add_telemetry(client)
  profile_information = 'Profiles/Latest/DataBox/Mgmt'
  client.add_user_agent_information(profile_information)
end