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

Inherits:
Object
  • Object
show all
Defined in:
lib/latest/modules/customerinsights_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) ⇒ CustomerInsightsManagementClass

Returns a new instance of CustomerInsightsManagementClass.



138
139
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
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 138

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



172
173
174
175
176
177
178
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 172

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.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def authorization_policies
  @authorization_policies
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def configurable
  @configurable
end

#connector_mappingsObject (readonly)

Returns the value of attribute connector_mappings.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def connector_mappings
  @connector_mappings
end

#connectorsObject (readonly)

Returns the value of attribute connectors.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def connectors
  @connectors
end

#hubsObject (readonly)

Returns the value of attribute hubs.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def hubs
  @hubs
end

#imagesObject (readonly)

Returns the value of attribute images.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def images
  @images
end

#interactionsObject (readonly)

Returns the value of attribute interactions.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def interactions
  @interactions
end

#kpiObject (readonly)

Returns the value of attribute kpi.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def kpi
  @kpi
end

Returns the value of attribute links.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def links
  @links
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def options
  @options
end

#predictionsObject (readonly)

Returns the value of attribute predictions.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def predictions
  @predictions
end

#profilesObject (readonly)

Returns the value of attribute profiles.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def profiles
  @profiles
end

Returns the value of attribute relationship_links.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def relationship_links
  @relationship_links
end

#relationshipsObject (readonly)

Returns the value of attribute relationships.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def relationships
  @relationships
end

#role_assignmentsObject (readonly)

Returns the value of attribute role_assignments.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def role_assignments
  @role_assignments
end

#rolesObject (readonly)

Returns the value of attribute roles.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def roles
  @roles
end

#viewsObject (readonly)

Returns the value of attribute views.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def views
  @views
end

#widget_typesObject (readonly)

Returns the value of attribute widget_types.



136
137
138
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 136

def widget_types
  @widget_types
end

Instance Method Details

#add_telemetry(client) ⇒ Object



167
168
169
170
# File 'lib/latest/modules/customerinsights_profile_module.rb', line 167

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