Class: Azure::Resources::Profiles::Latest::Mgmt::ResourcesManagementClass
- Inherits:
-
Object
- Object
- Azure::Resources::Profiles::Latest::Mgmt::ResourcesManagementClass
- Defined in:
- lib/profiles/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 ⇒ Object
readonly
Returns the value of attribute tags.
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
Returns a new instance of ResourcesManagementClass.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 91 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::Resources::Mgmt::V2019_07_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
125 126 127 128 129 130 131 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 125 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.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def configurable @configurable end |
#deployment_operations ⇒ Object (readonly)
Returns the value of attribute deployment_operations.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def deployment_operations @deployment_operations end |
#deployments ⇒ Object (readonly)
Returns the value of attribute deployments.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def deployments @deployments end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def providers @providers end |
#resource_groups ⇒ Object (readonly)
Returns the value of attribute resource_groups.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def resource_groups @resource_groups end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def resources @resources end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
89 90 91 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 89 def end |
Instance Method Details
#add_telemetry(client) ⇒ Object
120 121 122 123 |
# File 'lib/profiles/latest/modules/resources_profile_module.rb', line 120 def add_telemetry(client) profile_information = 'Profiles/Latest/Resources/Mgmt' client.add_user_agent_information(profile_information) end |