Class: Azure::CustomerInsights::Profiles::Latest::Mgmt::CustomerInsightsManagementClass

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

Overview

CustomerInsightsManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CustomerInsightsManagementClass

Returns a new instance of CustomerInsightsManagementClass.



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# 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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



184
185
186
187
188
189
190
# 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

Instance Attribute Details

#authorization_policiesObject (readonly)

Returns the value of attribute authorization_policies.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def authorization_policies
  @authorization_policies
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def configurable
  @configurable
end

#connector_mappingsObject (readonly)

Returns the value of attribute connector_mappings.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def connector_mappings
  @connector_mappings
end

#connectorsObject (readonly)

Returns the value of attribute connectors.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def connectors
  @connectors
end

#hubsObject (readonly)

Returns the value of attribute hubs.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def hubs
  @hubs
end

#imagesObject (readonly)

Returns the value of attribute images.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def images
  @images
end

#interactionsObject (readonly)

Returns the value of attribute interactions.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def interactions
  @interactions
end

#kpiObject (readonly)

Returns the value of attribute kpi.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def kpi
  @kpi
end

Returns the value of attribute links.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def links
  @links
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def options
  @options
end

#predictionsObject (readonly)

Returns the value of attribute predictions.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def predictions
  @predictions
end

#profilesObject (readonly)

Returns the value of attribute profiles.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def profiles
  @profiles
end

Returns the value of attribute relationship_links.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def relationship_links
  @relationship_links
end

#relationshipsObject (readonly)

Returns the value of attribute relationships.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def relationships
  @relationships
end

#role_assignmentsObject (readonly)

Returns the value of attribute role_assignments.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def role_assignments
  @role_assignments
end

#rolesObject (readonly)

Returns the value of attribute roles.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def roles
  @roles
end

#viewsObject (readonly)

Returns the value of attribute views.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def views
  @views
end

#widget_typesObject (readonly)

Returns the value of attribute widget_types.



138
139
140
# File 'lib/profiles/latest/modules/customerinsights_profile_module.rb', line 138

def widget_types
  @widget_types
end

Instance Method Details

#add_telemetry(client) ⇒ Object



179
180
181
182
# 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