Class: Azure::ContainerInstance::Profiles::Latest::Mgmt::ContainerInstanceManagementClass
- Inherits:
-
Object
- Object
- Azure::ContainerInstance::Profiles::Latest::Mgmt::ContainerInstanceManagementClass
- Defined in:
- lib/profiles/latest/modules/containerinstance_profile_module.rb
Overview
ContainerInstanceManagementClass
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.
-
#container_groups ⇒ Object
readonly
Returns the value of attribute container_groups.
-
#containers ⇒ Object
readonly
Returns the value of attribute containers.
-
#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.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ ContainerInstanceManagementClass
constructor
A new instance of ContainerInstanceManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ContainerInstanceManagementClass
Returns a new instance of ContainerInstanceManagementClass.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 84 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::ContainerInstance::Mgmt::V2020_11_01::ContainerInstanceManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @container_groups = @client_0.container_groups @operations = @client_0.operations @location = @client_0.location @containers = @client_0.containers @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
115 116 117 118 119 120 121 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 115 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.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def configurable @configurable end |
#container_groups ⇒ Object (readonly)
Returns the value of attribute container_groups.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def container_groups @container_groups end |
#containers ⇒ Object (readonly)
Returns the value of attribute containers.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def containers @containers end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def location @location end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
82 83 84 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 82 def end |
Instance Method Details
#add_telemetry(client) ⇒ Object
110 111 112 113 |
# File 'lib/profiles/latest/modules/containerinstance_profile_module.rb', line 110 def add_telemetry(client) profile_information = 'Profiles/Latest/ContainerInstance/Mgmt' client.add_user_agent_information(profile_information) end |