class Azure::Cosmosdb::Profiles::Latest::Mgmt::CosmosdbManagementClass

CosmosdbManagementClass

Attributes

base_url[R]
cassandra_resources[R]
collection[R]
collection_partition[R]
collection_partition_region[R]
collection_region[R]
configurable[R]
database[R]
database_account_region[R]
database_accounts[R]
gremlin_resources[R]
model_classes[R]
mongo_dbresources[R]
notebook_workspaces[R]
operations[R]
options[R]
partition_key_range_id[R]
partition_key_range_id_region[R]
percentile[R]
percentile_source_target[R]
percentile_target[R]
private_endpoint_connections[R]
sql_resources[R]
table_resources[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/profiles/latest/modules/cosmosdb_profile_module.rb, line 220
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::Cosmosdb::Mgmt::V2021_01_15::CosmosDBManagementClient.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)
  @database_accounts = @client_0.database_accounts
  @operations = @client_0.operations
  @database = @client_0.database
  @collection = @client_0.collection
  @collection_region = @client_0.collection_region
  @database_account_region = @client_0.database_account_region
  @percentile_source_target = @client_0.percentile_source_target
  @percentile_target = @client_0.percentile_target
  @percentile = @client_0.percentile
  @collection_partition_region = @client_0.collection_partition_region
  @collection_partition = @client_0.collection_partition
  @partition_key_range_id = @client_0.partition_key_range_id
  @partition_key_range_id_region = @client_0.partition_key_range_id_region
  @sql_resources = @client_0.sql_resources
  @mongo_dbresources = @client_0.mongo_dbresources
  @table_resources = @client_0.table_resources
  @cassandra_resources = @client_0.cassandra_resources
  @gremlin_resources = @client_0.gremlin_resources
  @notebook_workspaces = @client_0.notebook_workspaces
  @private_link_resources = @client_0.private_link_resources
  @private_endpoint_connections = @client_0.private_endpoint_connections

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/profiles/latest/modules/cosmosdb_profile_module.rb, line 263
def add_telemetry(client)
  profile_information = 'Profiles/Latest/Cosmosdb/Mgmt'
  client.add_user_agent_information(profile_information)
end
method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/profiles/latest/modules/cosmosdb_profile_module.rb, line 268
def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end