Class: Azure::Resources2::Profiles::Latest::Mgmt::ResourcesManagementClass
- Inherits:
-
Object
- Object
- Azure::Resources2::Profiles::Latest::Mgmt::ResourcesManagementClass
- Defined in:
- lib/profiles2/latest/modules/resources_profile_module.rb
Overview
ResourcesManagementClass
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.
-
#deployment_operations ⇒ Object
readonly
Returns the value of attribute deployment_operations.
-
#deployments ⇒ Object
readonly
Returns the value of attribute deployments.
-
#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.
-
#providers ⇒ Object
readonly
Returns the value of attribute providers.
-
#resource_groups ⇒ Object
readonly
Returns the value of attribute resource_groups.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#tags_operations ⇒ Object
readonly
Returns the value of attribute tags_operations.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ ResourcesManagementClass
constructor
A new instance of ResourcesManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ ResourcesManagementClass
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 111 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::Resources2::Mgmt::V2020_06_01::ResourceManagementClient.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 @deployments = @client_0.deployments @providers = @client_0.providers @resources = @client_0.resources @resource_groups = @client_0.resource_groups = @client_0. @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
145 146 147 148 149 150 151 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 145 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.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def configurable @configurable end |
#deployment_operations ⇒ Object (readonly)
Returns the value of attribute deployment_operations.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def deployment_operations @deployment_operations end |
#deployments ⇒ Object (readonly)
Returns the value of attribute deployments.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def deployments @deployments end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def providers @providers end |
#resource_groups ⇒ Object (readonly)
Returns the value of attribute resource_groups.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def resource_groups @resource_groups end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def resources @resources end |
#tags_operations ⇒ Object (readonly)
Returns the value of attribute tags_operations.
109 110 111 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 109 def end |
Instance Method Details
#add_telemetry(client) ⇒ Object
140 141 142 143 |
# File 'lib/profiles2/latest/modules/resources_profile_module.rb', line 140 def add_telemetry(client) profile_information = 'Profiles/Latest/Resources/Mgmt' client.add_user_agent_information(profile_information) end |