Class: Azure::KeyVault::Profiles::Latest::KeyVaultDataClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/keyvault_profile_module.rb

Overview

KeyVaultDataClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::KeyVault::V7_2_preview::KeyVaultClient.new(configurable.credentials, options)
  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_urlObject (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

#configurableObject (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_domainObject (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_classesObject (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

#optionsObject (readonly)

Returns the value of attribute options.



146
147
148
# File 'lib/profiles/latest/modules/keyvault_profile_module.rb', line 146

def options
  @options
end

#role_assignmentsObject (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_definitionsObject (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