Class: Azure::Compute::Profiles::V2017_03_09::Mgmt::ComputeManagementClass
- Inherits:
-
Object
- Object
- Azure::Compute::Profiles::V2017_03_09::Mgmt::ComputeManagementClass
- Defined in:
- lib/profiles/v2017_03_09/modules/compute_profile_module.rb
Overview
ComputeManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#availability_sets ⇒ Object
readonly
Returns the value of attribute availability_sets.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#usage_operations ⇒ Object
readonly
Returns the value of attribute usage_operations.
-
#virtual_machine_extension_images ⇒ Object
readonly
Returns the value of attribute virtual_machine_extension_images.
-
#virtual_machine_extensions ⇒ Object
readonly
Returns the value of attribute virtual_machine_extensions.
-
#virtual_machine_images ⇒ Object
readonly
Returns the value of attribute virtual_machine_images.
-
#virtual_machine_scale_set_vms ⇒ Object
readonly
Returns the value of attribute virtual_machine_scale_set_vms.
-
#virtual_machine_scale_sets ⇒ Object
readonly
Returns the value of attribute virtual_machine_scale_sets.
-
#virtual_machine_sizes ⇒ Object
readonly
Returns the value of attribute virtual_machine_sizes.
-
#virtual_machines ⇒ Object
readonly
Returns the value of attribute virtual_machines.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ ComputeManagementClass
constructor
A new instance of ComputeManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ComputeManagementClass
Returns a new instance of ComputeManagementClass.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 129 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::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @availability_sets = @client_0.availability_sets @virtual_machine_extension_images = @client_0.virtual_machine_extension_images @virtual_machine_extensions = @client_0.virtual_machine_extensions @virtual_machines = @client_0.virtual_machines @virtual_machine_images = @client_0.virtual_machine_images @usage_operations = @client_0.usage_operations @virtual_machine_sizes = @client_0.virtual_machine_sizes @virtual_machine_scale_sets = @client_0.virtual_machine_scale_sets @virtual_machine_scale_set_vms = @client_0.virtual_machine_scale_set_vms @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
165 166 167 168 169 170 171 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 165 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#availability_sets ⇒ Object (readonly)
Returns the value of attribute availability_sets.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def availability_sets @availability_sets end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def @options end |
#usage_operations ⇒ Object (readonly)
Returns the value of attribute usage_operations.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def usage_operations @usage_operations end |
#virtual_machine_extension_images ⇒ Object (readonly)
Returns the value of attribute virtual_machine_extension_images.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_extension_images @virtual_machine_extension_images end |
#virtual_machine_extensions ⇒ Object (readonly)
Returns the value of attribute virtual_machine_extensions.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_extensions @virtual_machine_extensions end |
#virtual_machine_images ⇒ Object (readonly)
Returns the value of attribute virtual_machine_images.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_images @virtual_machine_images end |
#virtual_machine_scale_set_vms ⇒ Object (readonly)
Returns the value of attribute virtual_machine_scale_set_vms.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_scale_set_vms @virtual_machine_scale_set_vms end |
#virtual_machine_scale_sets ⇒ Object (readonly)
Returns the value of attribute virtual_machine_scale_sets.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_scale_sets @virtual_machine_scale_sets end |
#virtual_machine_sizes ⇒ Object (readonly)
Returns the value of attribute virtual_machine_sizes.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machine_sizes @virtual_machine_sizes end |
#virtual_machines ⇒ Object (readonly)
Returns the value of attribute virtual_machines.
127 128 129 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 127 def virtual_machines @virtual_machines end |
Instance Method Details
#add_telemetry(client) ⇒ Object
160 161 162 163 |
# File 'lib/profiles/v2017_03_09/modules/compute_profile_module.rb', line 160 def add_telemetry(client) profile_information = 'Profiles/V2017_03_09/Compute/Mgmt' client.add_user_agent_information(profile_information) end |