azure_mgmt_customer_insights 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights.rb +148 -0
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/authorization_policies.rb +9 -9
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/connector_mappings.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/connectors.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/customer_insights_management_client.rb +7 -3
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/hubs.rb +11 -11
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/images.rb +5 -5
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/interactions.rb +8 -8
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/kpi.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/links.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/assignment_principal.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/authorization_policy.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/calculation_window_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/canonical_profile_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/canonical_profile_definition_properties_item.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/canonical_property_value_type.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/cardinality_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/completion_operation_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_states.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_states.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/connector_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/crm_connector_entities.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/crm_connector_properties.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/data_source_precedence.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/data_source_type.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/enriching_kpi.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/entity_type.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/entity_type_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/entity_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/error_management_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/frequency_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/hub.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/hub_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/image_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/instance_operation_type.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/interaction_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/interaction_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_alias.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_extract.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_functions.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/kpi_thresholds.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/link_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/link_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/link_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/metadata_definition_base.rb +1 -1
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/models/operation.rb +56 -0
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/models/operation_display.rb +68 -0
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/models/operation_list_result.rb +99 -0
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/participant.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/participant_profile_property_reference.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/participant_property_reference.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/permission_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_distribution_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_distribution_definition_distributions_item.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_grades_item.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_mappings.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_model_life_cycle.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_model_status.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_system_generated_entities.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/prediction_training_results.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/profile_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/profile_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/property_definition.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/provisioning_states.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/proxy_resource.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/relationships_lookup.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/resource.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/resource_set_description.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/role_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/role_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/role_types.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/salesforce_table.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/status.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/strong_id.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/type_properties_mapping.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/view_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/view_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/widget_type_list_result.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +1 -1
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/module_definition.rb +3 -2
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +216 -0
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/predictions.rb +10 -10
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/profiles.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/relationship_links.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/relationships.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/role_assignments.rb +7 -7
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/roles.rb +3 -3
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/version.rb +2 -2
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/views.rb +6 -6
- data/lib/{generated → 2017-04-26/generated}/azure_mgmt_customer_insights/widget_types.rb +4 -4
- data/lib/azure_mgmt_customer_insights.rb +2 -2
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/customerinsights_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/customerinsights_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/customerinsights_profile_module.rb +490 -0
- data/lib/version.rb +7 -0
- metadata +134 -123
- data/lib/generated/azure_mgmt_customer_insights.rb +0 -144
@@ -0,0 +1,216 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CustomerInsights::Mgmt::V2017_04_26
|
7
|
+
#
|
8
|
+
# The Azure Customer Insights management API provides a RESTful set of web
|
9
|
+
# services that interact with Azure Customer Insights service to manage your
|
10
|
+
# resources. The API has entities that capture the relationship between an
|
11
|
+
# end user and the Azure Customer Insights service.
|
12
|
+
#
|
13
|
+
class Operations
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the Operations class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [CustomerInsightsManagementClient] reference to the CustomerInsightsManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Lists all of the available Customer Insights REST API operations.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<Operation>] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers = nil)
|
36
|
+
first_page = list_as_lazy(custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Lists all of the available Customer Insights REST API operations.
|
42
|
+
#
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
|
+
#
|
48
|
+
def list_with_http_info(custom_headers = nil)
|
49
|
+
list_async(custom_headers).value!
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists all of the available Customer Insights REST API operations.
|
54
|
+
#
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(custom_headers = nil)
|
61
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
|
+
|
63
|
+
|
64
|
+
request_headers = {}
|
65
|
+
|
66
|
+
# Set Headers
|
67
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
68
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
69
|
+
path_template = 'providers/Microsoft.CustomerInsights/operations'
|
70
|
+
|
71
|
+
request_url = @base_url || @client.base_url
|
72
|
+
|
73
|
+
options = {
|
74
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
+
query_params: {'api-version' => @client.api_version},
|
76
|
+
headers: request_headers.merge(custom_headers || {}),
|
77
|
+
base_url: request_url
|
78
|
+
}
|
79
|
+
promise = @client.make_request_async(:get, path_template, options)
|
80
|
+
|
81
|
+
promise = promise.then do |result|
|
82
|
+
http_response = result.response
|
83
|
+
status_code = http_response.status
|
84
|
+
response_content = http_response.body
|
85
|
+
unless status_code == 200
|
86
|
+
error_model = JSON.load(response_content)
|
87
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
88
|
+
end
|
89
|
+
|
90
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
91
|
+
# Deserialize Response
|
92
|
+
if status_code == 200
|
93
|
+
begin
|
94
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
95
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult.mapper()
|
96
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
97
|
+
rescue Exception => e
|
98
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
result
|
103
|
+
end
|
104
|
+
|
105
|
+
promise.execute
|
106
|
+
end
|
107
|
+
|
108
|
+
#
|
109
|
+
# Lists all of the available Customer Insights REST API operations.
|
110
|
+
#
|
111
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
112
|
+
# to List operation.
|
113
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
114
|
+
# will be added to the HTTP request.
|
115
|
+
#
|
116
|
+
# @return [OperationListResult] operation results.
|
117
|
+
#
|
118
|
+
def list_next(next_page_link, custom_headers = nil)
|
119
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
120
|
+
response.body unless response.nil?
|
121
|
+
end
|
122
|
+
|
123
|
+
#
|
124
|
+
# Lists all of the available Customer Insights REST API operations.
|
125
|
+
#
|
126
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
127
|
+
# to List operation.
|
128
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
129
|
+
# will be added to the HTTP request.
|
130
|
+
#
|
131
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
132
|
+
#
|
133
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
134
|
+
list_next_async(next_page_link, custom_headers).value!
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
# Lists all of the available Customer Insights REST API operations.
|
139
|
+
#
|
140
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
141
|
+
# to List operation.
|
142
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
143
|
+
# to the HTTP request.
|
144
|
+
#
|
145
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
|
+
#
|
147
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
148
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
149
|
+
|
150
|
+
|
151
|
+
request_headers = {}
|
152
|
+
|
153
|
+
# Set Headers
|
154
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
155
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
156
|
+
path_template = '{nextLink}'
|
157
|
+
|
158
|
+
request_url = @base_url || @client.base_url
|
159
|
+
|
160
|
+
options = {
|
161
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
162
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
163
|
+
headers: request_headers.merge(custom_headers || {}),
|
164
|
+
base_url: request_url
|
165
|
+
}
|
166
|
+
promise = @client.make_request_async(:get, path_template, options)
|
167
|
+
|
168
|
+
promise = promise.then do |result|
|
169
|
+
http_response = result.response
|
170
|
+
status_code = http_response.status
|
171
|
+
response_content = http_response.body
|
172
|
+
unless status_code == 200
|
173
|
+
error_model = JSON.load(response_content)
|
174
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
175
|
+
end
|
176
|
+
|
177
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
178
|
+
# Deserialize Response
|
179
|
+
if status_code == 200
|
180
|
+
begin
|
181
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
182
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult.mapper()
|
183
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
184
|
+
rescue Exception => e
|
185
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
result
|
190
|
+
end
|
191
|
+
|
192
|
+
promise.execute
|
193
|
+
end
|
194
|
+
|
195
|
+
#
|
196
|
+
# Lists all of the available Customer Insights REST API operations.
|
197
|
+
#
|
198
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
199
|
+
# will be added to the HTTP request.
|
200
|
+
#
|
201
|
+
# @return [OperationListResult] which provide lazy access to pages of the
|
202
|
+
# response.
|
203
|
+
#
|
204
|
+
def list_as_lazy(custom_headers = nil)
|
205
|
+
response = list_async(custom_headers).value!
|
206
|
+
unless response.nil?
|
207
|
+
page = response.body
|
208
|
+
page.next_method = Proc.new do |next_page_link|
|
209
|
+
list_next_async(next_page_link, custom_headers)
|
210
|
+
end
|
211
|
+
page
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
216
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::CustomerInsights::Mgmt::V2017_04_26
|
7
7
|
#
|
8
8
|
# The Azure Customer Insights management API provides a RESTful set of web
|
9
9
|
# services that interact with Azure Customer Insights service to manage your
|
@@ -61,7 +61,7 @@ module Azure::ARM::CustomerInsights
|
|
61
61
|
promise = promise.then do |response|
|
62
62
|
# Defining deserialization method.
|
63
63
|
deserialize_method = lambda do |parsed_response|
|
64
|
-
result_mapper = Azure::
|
64
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat.mapper()
|
65
65
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
66
66
|
end
|
67
67
|
|
@@ -154,7 +154,7 @@ module Azure::ARM::CustomerInsights
|
|
154
154
|
if status_code == 200
|
155
155
|
begin
|
156
156
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
157
|
-
result_mapper = Azure::
|
157
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat.mapper()
|
158
158
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
159
159
|
rescue Exception => e
|
160
160
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -289,7 +289,7 @@ module Azure::ARM::CustomerInsights
|
|
289
289
|
if status_code == 200
|
290
290
|
begin
|
291
291
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
292
|
-
result_mapper = Azure::
|
292
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionTrainingResults.mapper()
|
293
293
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
294
294
|
rescue Exception => e
|
295
295
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -384,7 +384,7 @@ module Azure::ARM::CustomerInsights
|
|
384
384
|
if status_code == 200
|
385
385
|
begin
|
386
386
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
387
|
-
result_mapper = Azure::
|
387
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus.mapper()
|
388
388
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
389
389
|
rescue Exception => e
|
390
390
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -462,7 +462,7 @@ module Azure::ARM::CustomerInsights
|
|
462
462
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
463
463
|
|
464
464
|
# Serialize Request
|
465
|
-
request_mapper = Azure::
|
465
|
+
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus.mapper()
|
466
466
|
request_content = @client.serialize(request_mapper, parameters)
|
467
467
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
468
468
|
|
@@ -575,7 +575,7 @@ module Azure::ARM::CustomerInsights
|
|
575
575
|
if status_code == 200
|
576
576
|
begin
|
577
577
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
578
|
-
result_mapper = Azure::
|
578
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionListResult.mapper()
|
579
579
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
580
580
|
rescue Exception => e
|
581
581
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -654,7 +654,7 @@ module Azure::ARM::CustomerInsights
|
|
654
654
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
655
655
|
|
656
656
|
# Serialize Request
|
657
|
-
request_mapper = Azure::
|
657
|
+
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat.mapper()
|
658
658
|
request_content = @client.serialize(request_mapper, parameters)
|
659
659
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
660
660
|
|
@@ -686,7 +686,7 @@ module Azure::ARM::CustomerInsights
|
|
686
686
|
if status_code == 200
|
687
687
|
begin
|
688
688
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
689
|
-
result_mapper = Azure::
|
689
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat.mapper()
|
690
690
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
691
691
|
rescue Exception => e
|
692
692
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -857,7 +857,7 @@ module Azure::ARM::CustomerInsights
|
|
857
857
|
if status_code == 200
|
858
858
|
begin
|
859
859
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
860
|
-
result_mapper = Azure::
|
860
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionListResult.mapper()
|
861
861
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
862
862
|
rescue Exception => e
|
863
863
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::CustomerInsights::Mgmt::V2017_04_26
|
7
7
|
#
|
8
8
|
# The Azure Customer Insights management API provides a RESTful set of web
|
9
9
|
# services that interact with Azure Customer Insights service to manage your
|
@@ -61,7 +61,7 @@ module Azure::ARM::CustomerInsights
|
|
61
61
|
promise = promise.then do |response|
|
62
62
|
# Defining deserialization method.
|
63
63
|
deserialize_method = lambda do |parsed_response|
|
64
|
-
result_mapper = Azure::
|
64
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat.mapper()
|
65
65
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
66
66
|
end
|
67
67
|
|
@@ -157,7 +157,7 @@ module Azure::ARM::CustomerInsights
|
|
157
157
|
if status_code == 200
|
158
158
|
begin
|
159
159
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
160
|
-
result_mapper = Azure::
|
160
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat.mapper()
|
161
161
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
162
162
|
rescue Exception => e
|
163
163
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -293,7 +293,7 @@ module Azure::ARM::CustomerInsights
|
|
293
293
|
if status_code == 200
|
294
294
|
begin
|
295
295
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
296
|
-
result_mapper = Azure::
|
296
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult.mapper()
|
297
297
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
298
298
|
rescue Exception => e
|
299
299
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -487,7 +487,7 @@ module Azure::ARM::CustomerInsights
|
|
487
487
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
488
488
|
|
489
489
|
# Serialize Request
|
490
|
-
request_mapper = Azure::
|
490
|
+
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat.mapper()
|
491
491
|
request_content = @client.serialize(request_mapper, parameters)
|
492
492
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
493
493
|
|
@@ -519,7 +519,7 @@ module Azure::ARM::CustomerInsights
|
|
519
519
|
if status_code == 200
|
520
520
|
begin
|
521
521
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
522
|
-
result_mapper = Azure::
|
522
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat.mapper()
|
523
523
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
524
524
|
rescue Exception => e
|
525
525
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -693,7 +693,7 @@ module Azure::ARM::CustomerInsights
|
|
693
693
|
if status_code == 200
|
694
694
|
begin
|
695
695
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
696
|
-
result_mapper = Azure::
|
696
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult.mapper()
|
697
697
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
698
698
|
rescue Exception => e
|
699
699
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|