Class: Azure::KeyVault::Profiles::Latest::KeyVaultDataClass
- Inherits:
-
Object
- Object
- Azure::KeyVault::Profiles::Latest::KeyVaultDataClass
- Defined in:
- lib/profiles/latest/modules/keyvault_profile_module.rb
Overview
KeyVaultDataClass
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.
-
#hsmsecurity_domain ⇒ Object
readonly
Returns the value of attribute hsmsecurity_domain.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#role_assignments ⇒ Object
readonly
Returns the value of attribute role_assignments.
-
#role_definitions ⇒ Object
readonly
Returns the value of attribute role_definitions.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ KeyVaultDataClass
constructor
A new instance of KeyVaultDataClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ KeyVaultDataClass
Returns a new instance of KeyVaultDataClass.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 148 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::KeyVault::V7_2_preview::KeyVaultClient.new(configurable.credentials, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @role_definitions = @client_0.role_definitions @role_assignments = @client_0.role_assignments @hsmsecurity_domain = @client_0.hsmsecurity_domain @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
178 179 180 181 182 183 184 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 178 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.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def configurable @configurable end |
#hsmsecurity_domain ⇒ Object (readonly)
Returns the value of attribute hsmsecurity_domain.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def hsmsecurity_domain @hsmsecurity_domain end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def @options end |
#role_assignments ⇒ Object (readonly)
Returns the value of attribute role_assignments.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def role_assignments @role_assignments end |
#role_definitions ⇒ Object (readonly)
Returns the value of attribute role_definitions.
146 147 148 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146 def role_definitions @role_definitions end |
Instance Method Details
#add_telemetry(client) ⇒ Object
173 174 175 176 |
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 173 def add_telemetry(client) profile_information = 'Profiles/Latest/KeyVault' client.add_user_agent_information(profile_information) end |