Class: Azure::Kusto::Profiles::Latest::Mgmt::KustoManagementClass

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

Overview

KustoManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ KustoManagementClass

Returns a new instance of KustoManagementClass.



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 103

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::Kusto::Mgmt::V2020_09_18::KustoManagementClient.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)
  @clusters = @client_0.clusters
  @cluster_principal_assignments = @client_0.cluster_principal_assignments
  @databases = @client_0.databases
  @database_principal_assignments = @client_0.database_principal_assignments
  @attached_database_configurations = @client_0.attached_database_configurations
  @data_connections = @client_0.data_connections
  @operations = @client_0.operations

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



137
138
139
140
141
142
143
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 137

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#attached_database_configurationsObject (readonly)

Returns the value of attribute attached_database_configurations.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def attached_database_configurations
  @attached_database_configurations
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def base_url
  @base_url
end

#cluster_principal_assignmentsObject (readonly)

Returns the value of attribute cluster_principal_assignments.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def cluster_principal_assignments
  @cluster_principal_assignments
end

#clustersObject (readonly)

Returns the value of attribute clusters.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def clusters
  @clusters
end

#configurableObject (readonly)

Returns the value of attribute configurable.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def configurable
  @configurable
end

#data_connectionsObject (readonly)

Returns the value of attribute data_connections.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def data_connections
  @data_connections
end

#database_principal_assignmentsObject (readonly)

Returns the value of attribute database_principal_assignments.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def database_principal_assignments
  @database_principal_assignments
end

#databasesObject (readonly)

Returns the value of attribute databases.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def databases
  @databases
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



101
102
103
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 101

def options
  @options
end

Instance Method Details

#add_telemetry(client) ⇒ Object



132
133
134
135
# File 'lib/profiles/latest/modules/kusto_profile_module.rb', line 132

def add_telemetry(client)
  profile_information = 'Profiles/Latest/Kusto/Mgmt'
  client.add_user_agent_information(profile_information)
end