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

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ DataBoxManagementClass

Returns a new instance of DataBoxManagementClass.



84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/latest/modules/databox_profile_module.rb', line 84

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



104
105
106
107
108
109
110
# File 'lib/latest/modules/databox_profile_module.rb', line 104

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.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def configurable
  @configurable
end

#jobsObject (readonly)

Returns the value of attribute jobs.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def jobs
  @jobs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def options
  @options
end

#serviceObject (readonly)

Returns the value of attribute service.



82
83
84
# File 'lib/latest/modules/databox_profile_module.rb', line 82

def service
  @service
end

Instance Method Details

#add_telemetry(client) ⇒ Object



99
100
101
102
# File 'lib/latest/modules/databox_profile_module.rb', line 99

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/DataBox/Mgmt"
  client.add_user_agent_information(profile_information)
end