Class: Azure::DataBoxEdge::Profiles::Latest::Mgmt::DataBoxEdgeManagementClass
- Inherits:
-
Object
- Object
- Azure::DataBoxEdge::Profiles::Latest::Mgmt::DataBoxEdgeManagementClass
- Defined in:
- lib/profiles/latest/modules/databoxedge_profile_module.rb
Overview
DataBoxEdgeManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#alerts ⇒ Object
readonly
Returns the value of attribute alerts.
-
#bandwidth_schedules ⇒ Object
readonly
Returns the value of attribute bandwidth_schedules.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#containers ⇒ Object
readonly
Returns the value of attribute containers.
-
#devices ⇒ Object
readonly
Returns the value of attribute devices.
-
#jobs ⇒ Object
readonly
Returns the value of attribute jobs.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#operations_status ⇒ Object
readonly
Returns the value of attribute operations_status.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#orders ⇒ Object
readonly
Returns the value of attribute orders.
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
-
#shares ⇒ Object
readonly
Returns the value of attribute shares.
-
#skus ⇒ Object
readonly
Returns the value of attribute skus.
-
#storage_account_credentials ⇒ Object
readonly
Returns the value of attribute storage_account_credentials.
-
#storage_accounts ⇒ Object
readonly
Returns the value of attribute storage_accounts.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ DataBoxEdgeManagementClass
constructor
A new instance of DataBoxEdgeManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DataBoxEdgeManagementClass
Returns a new instance of DataBoxEdgeManagementClass.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 150 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::DataBoxEdge::Mgmt::V2019_08_01::DataBoxEdgeManagementClient.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 @devices = @client_0.devices @alerts = @client_0.alerts @bandwidth_schedules = @client_0.bandwidth_schedules @jobs = @client_0.jobs @nodes = @client_0.nodes @operations_status = @client_0.operations_status @orders = @client_0.orders @roles = @client_0.roles @shares = @client_0.shares @storage_account_credentials = @client_0.storage_account_credentials @storage_accounts = @client_0.storage_accounts @containers = @client_0.containers @triggers = @client_0.triggers @users = @client_0.users @skus = @client_0.skus @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
193 194 195 196 197 198 199 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 193 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#alerts ⇒ Object (readonly)
Returns the value of attribute alerts.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def alerts @alerts end |
#bandwidth_schedules ⇒ Object (readonly)
Returns the value of attribute bandwidth_schedules.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def bandwidth_schedules @bandwidth_schedules end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def configurable @configurable end |
#containers ⇒ Object (readonly)
Returns the value of attribute containers.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def containers @containers end |
#devices ⇒ Object (readonly)
Returns the value of attribute devices.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def devices @devices end |
#jobs ⇒ Object (readonly)
Returns the value of attribute jobs.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def jobs @jobs end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def model_classes @model_classes end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def nodes @nodes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def operations @operations end |
#operations_status ⇒ Object (readonly)
Returns the value of attribute operations_status.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def operations_status @operations_status end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def @options end |
#orders ⇒ Object (readonly)
Returns the value of attribute orders.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def orders @orders end |
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def roles @roles end |
#shares ⇒ Object (readonly)
Returns the value of attribute shares.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def shares @shares end |
#skus ⇒ Object (readonly)
Returns the value of attribute skus.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def skus @skus end |
#storage_account_credentials ⇒ Object (readonly)
Returns the value of attribute storage_account_credentials.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def storage_account_credentials @storage_account_credentials end |
#storage_accounts ⇒ Object (readonly)
Returns the value of attribute storage_accounts.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def storage_accounts @storage_accounts end |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def triggers @triggers end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
148 149 150 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 148 def users @users end |
Instance Method Details
#add_telemetry(client) ⇒ Object
188 189 190 191 |
# File 'lib/profiles/latest/modules/databoxedge_profile_module.rb', line 188 def add_telemetry(client) profile_information = 'Profiles/Latest/DataBoxEdge/Mgmt' client.add_user_agent_information(profile_information) end |