azure_mgmt_customer_insights 0.15.2 → 0.16.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-01-01/generated/azure_mgmt_customer_insights.rb +132 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/authorization_policies.rb +641 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connector_mappings.rb +554 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connectors.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +192 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/hubs.rb +848 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/images.rb +240 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/interactions.rb +597 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/kpi.rb +696 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/links.rb +571 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/assignment_principal.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb +93 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +120 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/calculation_window_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/cardinality_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/completion_operation_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_format.rb +104 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +141 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +245 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_states.rb +21 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +79 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_resource_format.rb +199 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_entities.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_properties.rb +100 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_precedence.rb +109 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_type.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/enriching_kpi.rb +256 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_type_definition.rb +268 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_types.rb +18 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/error_management_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/frequency_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub.rb +147 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +78 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/image_definition.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/instance_operation_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_resource_format.rb +475 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_alias.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_definition.rb +320 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_extract.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_functions.rb +22 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_resource_format.rb +347 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_thresholds.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_resource_format.rb +230 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_types.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/metadata_definition_base.rb +166 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_display.rb +72 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_list_result.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant.rb +127 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant_property_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/permission_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +65 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_resource_format.rb +342 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/property_definition.rb +237 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/provisioning_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/proxy_resource.rb +71 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +238 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb +239 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationships_lookup.rb +115 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource.rb +101 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource_set_description.rb +74 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +333 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_resource_format.rb +84 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +67 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_table.rb +90 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/status.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/strong_id.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +69 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/type_properties_mapping.rb +82 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_resource_format.rb +151 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +174 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/module_definition.rb +9 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/operations.rb +218 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/profiles.rb +742 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationship_links.rb +616 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationships.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/role_assignments.rb +572 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/roles.rb +229 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/views.rb +535 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/widget_types.rb +326 -0
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb +39 -35
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +4 -1
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb +58 -54
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb +12 -14
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb +59 -55
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb +21 -18
- data/lib/azure_mgmt_customer_insights.rb +1 -0
- data/lib/profiles/latest/customerinsights_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/customerinsights_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/customerinsights_profile_module.rb +356 -337
- data/lib/version.rb +1 -1
- metadata +110 -2
@@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
37
37
|
#
|
38
38
|
# @return [LinkResourceFormat] operation results.
|
39
39
|
#
|
40
|
-
def create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers
|
41
|
-
response = create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value!
|
40
|
+
def create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers:nil)
|
41
|
+
response = create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
54
54
|
# @return [Concurrent::Promise] promise which provides async access to http
|
55
55
|
# response.
|
56
56
|
#
|
57
|
-
def create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers
|
57
|
+
def create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:nil)
|
58
58
|
# Send request
|
59
|
-
promise = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers)
|
59
|
+
promise = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers)
|
60
60
|
|
61
61
|
promise = promise.then do |response|
|
62
62
|
# Defining deserialization method.
|
@@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
83
83
|
#
|
84
84
|
# @return [LinkResourceFormat] operation results.
|
85
85
|
#
|
86
|
-
def get(resource_group_name, hub_name, link_name, custom_headers
|
87
|
-
response = get_async(resource_group_name, hub_name, link_name, custom_headers).value!
|
86
|
+
def get(resource_group_name, hub_name, link_name, custom_headers:nil)
|
87
|
+
response = get_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value!
|
88
88
|
response.body unless response.nil?
|
89
89
|
end
|
90
90
|
|
@@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
99
99
|
#
|
100
100
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
101
101
|
#
|
102
|
-
def get_with_http_info(resource_group_name, hub_name, link_name, custom_headers
|
103
|
-
get_async(resource_group_name, hub_name, link_name, custom_headers).value!
|
102
|
+
def get_with_http_info(resource_group_name, hub_name, link_name, custom_headers:nil)
|
103
|
+
get_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value!
|
104
104
|
end
|
105
105
|
|
106
106
|
#
|
@@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
114
114
|
#
|
115
115
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
116
116
|
#
|
117
|
-
def get_async(resource_group_name, hub_name, link_name, custom_headers
|
117
|
+
def get_async(resource_group_name, hub_name, link_name, custom_headers:nil)
|
118
118
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
119
119
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
120
120
|
fail ArgumentError, 'link_name is nil' if link_name.nil?
|
@@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
123
123
|
|
124
124
|
|
125
125
|
request_headers = {}
|
126
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
126
127
|
|
127
128
|
# Set Headers
|
128
129
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -177,8 +178,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
177
178
|
# will be added to the HTTP request.
|
178
179
|
#
|
179
180
|
#
|
180
|
-
def delete(resource_group_name, hub_name, link_name, custom_headers
|
181
|
-
response = delete_async(resource_group_name, hub_name, link_name, custom_headers).value!
|
181
|
+
def delete(resource_group_name, hub_name, link_name, custom_headers:nil)
|
182
|
+
response = delete_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value!
|
182
183
|
nil
|
183
184
|
end
|
184
185
|
|
@@ -193,8 +194,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
193
194
|
#
|
194
195
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
195
196
|
#
|
196
|
-
def delete_with_http_info(resource_group_name, hub_name, link_name, custom_headers
|
197
|
-
delete_async(resource_group_name, hub_name, link_name, custom_headers).value!
|
197
|
+
def delete_with_http_info(resource_group_name, hub_name, link_name, custom_headers:nil)
|
198
|
+
delete_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value!
|
198
199
|
end
|
199
200
|
|
200
201
|
#
|
@@ -208,7 +209,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
208
209
|
#
|
209
210
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
210
211
|
#
|
211
|
-
def delete_async(resource_group_name, hub_name, link_name, custom_headers
|
212
|
+
def delete_async(resource_group_name, hub_name, link_name, custom_headers:nil)
|
212
213
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
213
214
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
214
215
|
fail ArgumentError, 'link_name is nil' if link_name.nil?
|
@@ -217,6 +218,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
217
218
|
|
218
219
|
|
219
220
|
request_headers = {}
|
221
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
220
222
|
|
221
223
|
# Set Headers
|
222
224
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -261,8 +263,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
261
263
|
#
|
262
264
|
# @return [Array<LinkResourceFormat>] operation results.
|
263
265
|
#
|
264
|
-
def list_by_hub(resource_group_name, hub_name, custom_headers
|
265
|
-
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
|
266
|
+
def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
|
267
|
+
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
|
266
268
|
first_page.get_all_items
|
267
269
|
end
|
268
270
|
|
@@ -276,8 +278,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
276
278
|
#
|
277
279
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
278
280
|
#
|
279
|
-
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers
|
280
|
-
list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
281
|
+
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
|
282
|
+
list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
281
283
|
end
|
282
284
|
|
283
285
|
#
|
@@ -290,7 +292,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
290
292
|
#
|
291
293
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
292
294
|
#
|
293
|
-
def list_by_hub_async(resource_group_name, hub_name, custom_headers
|
295
|
+
def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
|
294
296
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
295
297
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
296
298
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -298,6 +300,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
298
300
|
|
299
301
|
|
300
302
|
request_headers = {}
|
303
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
301
304
|
|
302
305
|
# Set Headers
|
303
306
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -355,8 +358,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
355
358
|
#
|
356
359
|
# @return [LinkResourceFormat] operation results.
|
357
360
|
#
|
358
|
-
def begin_create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers
|
359
|
-
response = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value!
|
361
|
+
def begin_create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers:nil)
|
362
|
+
response = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value!
|
360
363
|
response.body unless response.nil?
|
361
364
|
end
|
362
365
|
|
@@ -373,8 +376,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
373
376
|
#
|
374
377
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
375
378
|
#
|
376
|
-
def begin_create_or_update_with_http_info(resource_group_name, hub_name, link_name, parameters, custom_headers
|
377
|
-
begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value!
|
379
|
+
def begin_create_or_update_with_http_info(resource_group_name, hub_name, link_name, parameters, custom_headers:nil)
|
380
|
+
begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value!
|
378
381
|
end
|
379
382
|
|
380
383
|
#
|
@@ -390,7 +393,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
390
393
|
#
|
391
394
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
392
395
|
#
|
393
|
-
def begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers
|
396
|
+
def begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:nil)
|
394
397
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
395
398
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
396
399
|
fail ArgumentError, 'link_name is nil' if link_name.nil?
|
@@ -403,13 +406,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
403
406
|
|
404
407
|
|
405
408
|
request_headers = {}
|
409
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
406
410
|
|
407
411
|
# Set Headers
|
408
412
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
409
413
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
410
414
|
|
411
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
-
|
413
415
|
# Serialize Request
|
414
416
|
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat.mapper()
|
415
417
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -466,8 +468,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
466
468
|
#
|
467
469
|
# @return [LinkListResult] operation results.
|
468
470
|
#
|
469
|
-
def list_by_hub_next(next_page_link, custom_headers
|
470
|
-
response = list_by_hub_next_async(next_page_link, custom_headers).value!
|
471
|
+
def list_by_hub_next(next_page_link, custom_headers:nil)
|
472
|
+
response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
471
473
|
response.body unless response.nil?
|
472
474
|
end
|
473
475
|
|
@@ -481,8 +483,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
481
483
|
#
|
482
484
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
483
485
|
#
|
484
|
-
def list_by_hub_next_with_http_info(next_page_link, custom_headers
|
485
|
-
list_by_hub_next_async(next_page_link, custom_headers).value!
|
486
|
+
def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
|
487
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
486
488
|
end
|
487
489
|
|
488
490
|
#
|
@@ -495,11 +497,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
495
497
|
#
|
496
498
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
497
499
|
#
|
498
|
-
def list_by_hub_next_async(next_page_link, custom_headers
|
500
|
+
def list_by_hub_next_async(next_page_link, custom_headers:nil)
|
499
501
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
500
502
|
|
501
503
|
|
502
504
|
request_headers = {}
|
505
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
503
506
|
|
504
507
|
# Set Headers
|
505
508
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -553,12 +556,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
553
556
|
#
|
554
557
|
# @return [LinkListResult] which provide lazy access to pages of the response.
|
555
558
|
#
|
556
|
-
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers
|
557
|
-
response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
559
|
+
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
|
560
|
+
response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
558
561
|
unless response.nil?
|
559
562
|
page = response.body
|
560
563
|
page.next_method = Proc.new do |next_page_link|
|
561
|
-
list_by_hub_next_async(next_page_link, custom_headers)
|
564
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
|
562
565
|
end
|
563
566
|
page
|
564
567
|
end
|
@@ -32,8 +32,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
32
32
|
#
|
33
33
|
# @return [Array<Operation>] operation results.
|
34
34
|
#
|
35
|
-
def list(custom_headers
|
36
|
-
first_page = list_as_lazy(custom_headers)
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
37
|
first_page.get_all_items
|
38
38
|
end
|
39
39
|
|
@@ -45,8 +45,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
45
45
|
#
|
46
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
47
|
#
|
48
|
-
def list_with_http_info(custom_headers
|
49
|
-
list_async(custom_headers).value!
|
48
|
+
def list_with_http_info(custom_headers:nil)
|
49
|
+
list_async(custom_headers:custom_headers).value!
|
50
50
|
end
|
51
51
|
|
52
52
|
#
|
@@ -57,11 +57,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
57
57
|
#
|
58
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
59
|
#
|
60
|
-
def list_async(custom_headers
|
60
|
+
def list_async(custom_headers:nil)
|
61
61
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
62
|
|
63
63
|
|
64
64
|
request_headers = {}
|
65
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
66
|
|
66
67
|
# Set Headers
|
67
68
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -115,8 +116,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
115
116
|
#
|
116
117
|
# @return [OperationListResult] operation results.
|
117
118
|
#
|
118
|
-
def list_next(next_page_link, custom_headers
|
119
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
119
|
+
def list_next(next_page_link, custom_headers:nil)
|
120
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
120
121
|
response.body unless response.nil?
|
121
122
|
end
|
122
123
|
|
@@ -130,8 +131,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
130
131
|
#
|
131
132
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
132
133
|
#
|
133
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
134
|
-
list_next_async(next_page_link, custom_headers).value!
|
134
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
135
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
135
136
|
end
|
136
137
|
|
137
138
|
#
|
@@ -144,11 +145,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
144
145
|
#
|
145
146
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
147
|
#
|
147
|
-
def list_next_async(next_page_link, custom_headers
|
148
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
148
149
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
149
150
|
|
150
151
|
|
151
152
|
request_headers = {}
|
153
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
152
154
|
|
153
155
|
# Set Headers
|
154
156
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -201,12 +203,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
201
203
|
# @return [OperationListResult] which provide lazy access to pages of the
|
202
204
|
# response.
|
203
205
|
#
|
204
|
-
def list_as_lazy(custom_headers
|
205
|
-
response = list_async(custom_headers).value!
|
206
|
+
def list_as_lazy(custom_headers:nil)
|
207
|
+
response = list_async(custom_headers:custom_headers).value!
|
206
208
|
unless response.nil?
|
207
209
|
page = response.body
|
208
210
|
page.next_method = Proc.new do |next_page_link|
|
209
|
-
list_next_async(next_page_link, custom_headers)
|
211
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
210
212
|
end
|
211
213
|
page
|
212
214
|
end
|
@@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
37
37
|
#
|
38
38
|
# @return [PredictionResourceFormat] operation results.
|
39
39
|
#
|
40
|
-
def create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
41
|
-
response = create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value!
|
40
|
+
def create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
41
|
+
response = create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
54
54
|
# @return [Concurrent::Promise] promise which provides async access to http
|
55
55
|
# response.
|
56
56
|
#
|
57
|
-
def create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
57
|
+
def create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
58
58
|
# Send request
|
59
|
-
promise = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers)
|
59
|
+
promise = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers)
|
60
60
|
|
61
61
|
promise = promise.then do |response|
|
62
62
|
# Defining deserialization method.
|
@@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
83
83
|
#
|
84
84
|
# @return [PredictionResourceFormat] operation results.
|
85
85
|
#
|
86
|
-
def get(resource_group_name, hub_name, prediction_name, custom_headers
|
87
|
-
response = get_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
86
|
+
def get(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
87
|
+
response = get_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
88
88
|
response.body unless response.nil?
|
89
89
|
end
|
90
90
|
|
@@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
99
99
|
#
|
100
100
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
101
101
|
#
|
102
|
-
def get_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers
|
103
|
-
get_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
102
|
+
def get_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
103
|
+
get_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
104
104
|
end
|
105
105
|
|
106
106
|
#
|
@@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
114
114
|
#
|
115
115
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
116
116
|
#
|
117
|
-
def get_async(resource_group_name, hub_name, prediction_name, custom_headers
|
117
|
+
def get_async(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
118
118
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
119
119
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
120
120
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
123
123
|
|
124
124
|
|
125
125
|
request_headers = {}
|
126
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
126
127
|
|
127
128
|
# Set Headers
|
128
129
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -176,8 +177,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
176
177
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
177
178
|
# will be added to the HTTP request.
|
178
179
|
#
|
179
|
-
def delete(resource_group_name, hub_name, prediction_name, custom_headers
|
180
|
-
response = delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
180
|
+
def delete(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
181
|
+
response = delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
181
182
|
nil
|
182
183
|
end
|
183
184
|
|
@@ -191,9 +192,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
191
192
|
# @return [Concurrent::Promise] promise which provides async access to http
|
192
193
|
# response.
|
193
194
|
#
|
194
|
-
def delete_async(resource_group_name, hub_name, prediction_name, custom_headers
|
195
|
+
def delete_async(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
195
196
|
# Send request
|
196
|
-
promise = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers)
|
197
|
+
promise = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers)
|
197
198
|
|
198
199
|
promise = promise.then do |response|
|
199
200
|
# Defining deserialization method.
|
@@ -218,8 +219,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
218
219
|
#
|
219
220
|
# @return [PredictionTrainingResults] operation results.
|
220
221
|
#
|
221
|
-
def get_training_results(resource_group_name, hub_name, prediction_name, custom_headers
|
222
|
-
response = get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
222
|
+
def get_training_results(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
223
|
+
response = get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
223
224
|
response.body unless response.nil?
|
224
225
|
end
|
225
226
|
|
@@ -234,8 +235,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
234
235
|
#
|
235
236
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
236
237
|
#
|
237
|
-
def get_training_results_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers
|
238
|
-
get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
238
|
+
def get_training_results_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
239
|
+
get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
239
240
|
end
|
240
241
|
|
241
242
|
#
|
@@ -249,7 +250,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
249
250
|
#
|
250
251
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
251
252
|
#
|
252
|
-
def get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers
|
253
|
+
def get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
253
254
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
254
255
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
255
256
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -258,6 +259,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
258
259
|
|
259
260
|
|
260
261
|
request_headers = {}
|
262
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
261
263
|
|
262
264
|
# Set Headers
|
263
265
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -313,8 +315,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
313
315
|
#
|
314
316
|
# @return [PredictionModelStatus] operation results.
|
315
317
|
#
|
316
|
-
def get_model_status(resource_group_name, hub_name, prediction_name, custom_headers
|
317
|
-
response = get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
318
|
+
def get_model_status(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
319
|
+
response = get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
318
320
|
response.body unless response.nil?
|
319
321
|
end
|
320
322
|
|
@@ -329,8 +331,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
329
331
|
#
|
330
332
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
333
|
#
|
332
|
-
def get_model_status_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers
|
333
|
-
get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
334
|
+
def get_model_status_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
335
|
+
get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
334
336
|
end
|
335
337
|
|
336
338
|
#
|
@@ -344,7 +346,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
344
346
|
#
|
345
347
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
346
348
|
#
|
347
|
-
def get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers
|
349
|
+
def get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
348
350
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
349
351
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
350
352
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -353,6 +355,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
353
355
|
|
354
356
|
|
355
357
|
request_headers = {}
|
358
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
356
359
|
|
357
360
|
# Set Headers
|
358
361
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -409,8 +412,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
409
412
|
# will be added to the HTTP request.
|
410
413
|
#
|
411
414
|
#
|
412
|
-
def model_status(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
413
|
-
response = model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value!
|
415
|
+
def model_status(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
416
|
+
response = model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value!
|
414
417
|
nil
|
415
418
|
end
|
416
419
|
|
@@ -427,8 +430,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
427
430
|
#
|
428
431
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
429
432
|
#
|
430
|
-
def model_status_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
431
|
-
model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value!
|
433
|
+
def model_status_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
434
|
+
model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value!
|
432
435
|
end
|
433
436
|
|
434
437
|
#
|
@@ -444,7 +447,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
444
447
|
#
|
445
448
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
446
449
|
#
|
447
|
-
def model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
450
|
+
def model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
448
451
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
449
452
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
450
453
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -454,13 +457,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
454
457
|
|
455
458
|
|
456
459
|
request_headers = {}
|
460
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
457
461
|
|
458
462
|
# Set Headers
|
459
463
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
460
464
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
461
465
|
|
462
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
463
|
-
|
464
466
|
# Serialize Request
|
465
467
|
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelStatus.mapper()
|
466
468
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -507,8 +509,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
507
509
|
#
|
508
510
|
# @return [Array<PredictionResourceFormat>] operation results.
|
509
511
|
#
|
510
|
-
def list_by_hub(resource_group_name, hub_name, custom_headers
|
511
|
-
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
|
512
|
+
def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
|
513
|
+
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
|
512
514
|
first_page.get_all_items
|
513
515
|
end
|
514
516
|
|
@@ -522,8 +524,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
522
524
|
#
|
523
525
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
524
526
|
#
|
525
|
-
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers
|
526
|
-
list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
527
|
+
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
|
528
|
+
list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
527
529
|
end
|
528
530
|
|
529
531
|
#
|
@@ -536,7 +538,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
536
538
|
#
|
537
539
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
538
540
|
#
|
539
|
-
def list_by_hub_async(resource_group_name, hub_name, custom_headers
|
541
|
+
def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
|
540
542
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
541
543
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
542
544
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -544,6 +546,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
544
546
|
|
545
547
|
|
546
548
|
request_headers = {}
|
549
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
547
550
|
|
548
551
|
# Set Headers
|
549
552
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -601,8 +604,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
601
604
|
#
|
602
605
|
# @return [PredictionResourceFormat] operation results.
|
603
606
|
#
|
604
|
-
def begin_create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
605
|
-
response = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value!
|
607
|
+
def begin_create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
608
|
+
response = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value!
|
606
609
|
response.body unless response.nil?
|
607
610
|
end
|
608
611
|
|
@@ -619,8 +622,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
619
622
|
#
|
620
623
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
621
624
|
#
|
622
|
-
def begin_create_or_update_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
623
|
-
begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value!
|
625
|
+
def begin_create_or_update_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
626
|
+
begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value!
|
624
627
|
end
|
625
628
|
|
626
629
|
#
|
@@ -636,7 +639,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
636
639
|
#
|
637
640
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
638
641
|
#
|
639
|
-
def begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers
|
642
|
+
def begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil)
|
640
643
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
641
644
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
642
645
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -648,13 +651,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
648
651
|
|
649
652
|
|
650
653
|
request_headers = {}
|
654
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
651
655
|
|
652
656
|
# Set Headers
|
653
657
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
654
658
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
655
659
|
|
656
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
657
|
-
|
658
660
|
# Serialize Request
|
659
661
|
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat.mapper()
|
660
662
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -711,8 +713,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
711
713
|
# will be added to the HTTP request.
|
712
714
|
#
|
713
715
|
#
|
714
|
-
def begin_delete(resource_group_name, hub_name, prediction_name, custom_headers
|
715
|
-
response = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
716
|
+
def begin_delete(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
717
|
+
response = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
716
718
|
nil
|
717
719
|
end
|
718
720
|
|
@@ -727,8 +729,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
727
729
|
#
|
728
730
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
729
731
|
#
|
730
|
-
def begin_delete_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers
|
731
|
-
begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value!
|
732
|
+
def begin_delete_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
733
|
+
begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value!
|
732
734
|
end
|
733
735
|
|
734
736
|
#
|
@@ -742,7 +744,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
742
744
|
#
|
743
745
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
744
746
|
#
|
745
|
-
def begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers
|
747
|
+
def begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:nil)
|
746
748
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
747
749
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
748
750
|
fail ArgumentError, 'prediction_name is nil' if prediction_name.nil?
|
@@ -751,6 +753,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
751
753
|
|
752
754
|
|
753
755
|
request_headers = {}
|
756
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
754
757
|
|
755
758
|
# Set Headers
|
756
759
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -795,8 +798,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
795
798
|
#
|
796
799
|
# @return [PredictionListResult] operation results.
|
797
800
|
#
|
798
|
-
def list_by_hub_next(next_page_link, custom_headers
|
799
|
-
response = list_by_hub_next_async(next_page_link, custom_headers).value!
|
801
|
+
def list_by_hub_next(next_page_link, custom_headers:nil)
|
802
|
+
response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
800
803
|
response.body unless response.nil?
|
801
804
|
end
|
802
805
|
|
@@ -810,8 +813,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
810
813
|
#
|
811
814
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
812
815
|
#
|
813
|
-
def list_by_hub_next_with_http_info(next_page_link, custom_headers
|
814
|
-
list_by_hub_next_async(next_page_link, custom_headers).value!
|
816
|
+
def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
|
817
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
815
818
|
end
|
816
819
|
|
817
820
|
#
|
@@ -824,11 +827,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
824
827
|
#
|
825
828
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
826
829
|
#
|
827
|
-
def list_by_hub_next_async(next_page_link, custom_headers
|
830
|
+
def list_by_hub_next_async(next_page_link, custom_headers:nil)
|
828
831
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
829
832
|
|
830
833
|
|
831
834
|
request_headers = {}
|
835
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
832
836
|
|
833
837
|
# Set Headers
|
834
838
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -883,12 +887,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
883
887
|
# @return [PredictionListResult] which provide lazy access to pages of the
|
884
888
|
# response.
|
885
889
|
#
|
886
|
-
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers
|
887
|
-
response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
890
|
+
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
|
891
|
+
response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
888
892
|
unless response.nil?
|
889
893
|
page = response.body
|
890
894
|
page.next_method = Proc.new do |next_page_link|
|
891
|
-
list_by_hub_next_async(next_page_link, custom_headers)
|
895
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
|
892
896
|
end
|
893
897
|
page
|
894
898
|
end
|