Class: Azure::Batch::Profiles::Latest::Mgmt::BatchManagementClass
- Inherits:
-
Object
- Object
- Azure::Batch::Profiles::Latest::Mgmt::BatchManagementClass
- Defined in:
- lib/profiles/latest/modules/batch_profile_module.rb
Overview
BatchManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#application_operations ⇒ Object
readonly
Returns the value of attribute application_operations.
-
#application_package_operations ⇒ Object
readonly
Returns the value of attribute application_package_operations.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#batch_account_operations ⇒ Object
readonly
Returns the value of attribute batch_account_operations.
-
#certificate_operations ⇒ Object
readonly
Returns the value of attribute certificate_operations.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#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.
-
#pool_operations ⇒ Object
readonly
Returns the value of attribute pool_operations.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ BatchManagementClass
constructor
A new instance of BatchManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ BatchManagementClass
Returns a new instance of BatchManagementClass.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 115 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::Batch::Mgmt::V2019_08_01::BatchManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @batch_account_operations = @client_0.batch_account_operations @application_package_operations = @client_0.application_package_operations @application_operations = @client_0.application_operations @location = @client_0.location @operations = @client_0.operations @certificate_operations = @client_0.certificate_operations @pool_operations = @client_0.pool_operations @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
149 150 151 152 153 154 155 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 149 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#application_operations ⇒ Object (readonly)
Returns the value of attribute application_operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def application_operations @application_operations end |
#application_package_operations ⇒ Object (readonly)
Returns the value of attribute application_package_operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def application_package_operations @application_package_operations end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def base_url @base_url end |
#batch_account_operations ⇒ Object (readonly)
Returns the value of attribute batch_account_operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def batch_account_operations @batch_account_operations end |
#certificate_operations ⇒ Object (readonly)
Returns the value of attribute certificate_operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def certificate_operations @certificate_operations end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def configurable @configurable end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def location @location end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def @options end |
#pool_operations ⇒ Object (readonly)
Returns the value of attribute pool_operations.
113 114 115 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 113 def pool_operations @pool_operations end |
Instance Method Details
#add_telemetry(client) ⇒ Object
144 145 146 147 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 144 def add_telemetry(client) profile_information = 'Profiles/Latest/Batch/Mgmt' client.add_user_agent_information(profile_information) end |