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

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

Direct Known Subclasses

Client::KeyVaultAdapter

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ KeyVaultDataClass

Returns a new instance of KeyVaultDataClass.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/latest/modules/keyvault_profile_module.rb', line 147

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



167
168
169
170
171
172
173
# File 'lib/latest/modules/keyvault_profile_module.rb', line 167

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.



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

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



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

def configurable
  @configurable
end

#hsmsecurity_domainObject (readonly)

Returns the value of attribute hsmsecurity_domain.



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

def hsmsecurity_domain
  @hsmsecurity_domain
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



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

def model_classes
  @model_classes
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#role_assignmentsObject (readonly)

Returns the value of attribute role_assignments.



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

def role_assignments
  @role_assignments
end

#role_definitionsObject (readonly)

Returns the value of attribute role_definitions.



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

def role_definitions
  @role_definitions
end

Instance Method Details

#add_telemetry(client) ⇒ Object



162
163
164
165
# File 'lib/latest/modules/keyvault_profile_module.rb', line 162

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/KeyVault"
  client.add_user_agent_information(profile_information)
end