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.
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 105 def initialize( = {}) if .is_a?(Hash) && .length == 0 = else = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:options[:base_url] = [:options].nil? ? nil:options[:options] @client_0 = Azure::Batch::Mgmt::V2017_09_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
139 140 141 142 143 144 145 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 139 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.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def application_operations @application_operations end |
#application_package_operations ⇒ Object (readonly)
Returns the value of attribute application_package_operations.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def application_package_operations @application_package_operations end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def base_url @base_url end |
#batch_account_operations ⇒ Object (readonly)
Returns the value of attribute batch_account_operations.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def batch_account_operations @batch_account_operations end |
#certificate_operations ⇒ Object (readonly)
Returns the value of attribute certificate_operations.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def certificate_operations @certificate_operations end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def configurable @configurable end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def location @location end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def end |
#pool_operations ⇒ Object (readonly)
Returns the value of attribute pool_operations.
103 104 105 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 103 def pool_operations @pool_operations end |
Instance Method Details
#add_telemetry(client) ⇒ Object
134 135 136 137 |
# File 'lib/profiles/latest/modules/batch_profile_module.rb', line 134 def add_telemetry(client) profile_information = 'Profiles/Latest/Batch/Mgmt' client.add_user_agent_information(profile_information) end |