class Azure::CustomerInsights::Profiles::Latest::Mgmt::CustomerInsightsManagementClass

CustomerInsightsManagementClass

Attributes

authorization_policies[R]
base_url[R]
configurable[R]
connector_mappings[R]
connectors[R]
hubs[R]
images[R]
interactions[R]
kpi[R]
model_classes[R]
operations[R]
options[R]
predictions[R]
profiles[R]
relationships[R]
role_assignments[R]
roles[R]
views[R]
widget_types[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/profiles/latest/modules/customerinsights_profile_module.rb, line 140
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::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.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
  @hubs = @client_0.hubs
  @profiles = @client_0.profiles
  @interactions = @client_0.interactions
  @relationships = @client_0.relationships
  @relationship_links = @client_0.relationship_links
  @authorization_policies = @client_0.authorization_policies
  @connectors = @client_0.connectors
  @connector_mappings = @client_0.connector_mappings
  @kpi = @client_0.kpi
  @widget_types = @client_0.widget_types
  @views = @client_0.views
  @links = @client_0.links
  @roles = @client_0.roles
  @role_assignments = @client_0.role_assignments
  @images = @client_0.images
  @predictions = @client_0.predictions

  @model_classes = ModelClasses.new
end

Public Instance Methods

add_telemetry(client) click to toggle source
# File lib/profiles/latest/modules/customerinsights_profile_module.rb, line 179
def add_telemetry(client)
  profile_information = 'Profiles/Latest/CustomerInsights/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/customerinsights_profile_module.rb, line 184
def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end