Class: Azure::Profiles::Latest::StorageCache::Mgmt::StorageCacheManagementClass

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of StorageCacheManagementClass.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/latest/modules/storagecache_profile_module.rb', line 62

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::StorageCache::Mgmt::V2020_03_01::StorageCacheManagementClient.new(configurable.credentials, base_url, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @operations = @client_0.operations
  @skus = @client_0.skus
  @usage_models = @client_0.usage_models
  @caches = @client_0.caches
  @storage_targets = @client_0.storage_targets

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



84
85
86
87
88
89
90
# File 'lib/latest/modules/storagecache_profile_module.rb', line 84

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.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def base_url
  @base_url
end

#cachesObject (readonly)

Returns the value of attribute caches.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def caches
  @caches
end

#configurableObject (readonly)

Returns the value of attribute configurable.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def options
  @options
end

#skusObject (readonly)

Returns the value of attribute skus.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def skus
  @skus
end

#storage_targetsObject (readonly)

Returns the value of attribute storage_targets.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def storage_targets
  @storage_targets
end

#usage_modelsObject (readonly)

Returns the value of attribute usage_models.



60
61
62
# File 'lib/latest/modules/storagecache_profile_module.rb', line 60

def usage_models
  @usage_models
end

Instance Method Details

#add_telemetry(client) ⇒ Object



79
80
81
82
# File 'lib/latest/modules/storagecache_profile_module.rb', line 79

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