Class: Azure::DataBox::Profiles::Latest::Mgmt::DataBoxManagementClass
- Inherits:
-
Object
- Object
- Azure::DataBox::Profiles::Latest::Mgmt::DataBoxManagementClass
- Defined in:
- lib/profiles/latest/modules/databox_profile_module.rb
Overview
DataBoxManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ DataBoxManagementClass
constructor
A new instance of DataBoxManagementClass.
- #method_missing(method, *args) ⇒ Object
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( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @client_0 = Azure::DataBox::Mgmt::V2018_01_01::DataBoxManagementClient.new(configurable.credentials, base_url, ) 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_url ⇒ Object (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 |
#configurable ⇒ Object (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 |
#jobs ⇒ Object (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_classes ⇒ Object (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 |
#operations ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
84 85 86 |
# File 'lib/profiles/latest/modules/databox_profile_module.rb', line 84 def @options end |
#service ⇒ Object (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 |