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.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-01-01/generated/azure_mgmt_customer_insights.rb +132 -0
  3. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/authorization_policies.rb +641 -0
  4. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connector_mappings.rb +554 -0
  5. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connectors.rb +612 -0
  6. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +192 -0
  7. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/hubs.rb +848 -0
  8. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/images.rb +240 -0
  9. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/interactions.rb +597 -0
  10. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/kpi.rb +696 -0
  11. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/links.rb +571 -0
  12. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/assignment_principal.rb +76 -0
  13. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb +93 -0
  14. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +99 -0
  15. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +120 -0
  16. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +46 -0
  17. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/calculation_window_types.rb +19 -0
  18. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/cardinality_types.rb +17 -0
  19. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/completion_operation_types.rb +17 -0
  20. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_list_result.rb +98 -0
  21. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +59 -0
  22. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +60 -0
  23. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +60 -0
  24. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_format.rb +104 -0
  25. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +99 -0
  26. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +141 -0
  27. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +245 -0
  28. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_states.rb +21 -0
  29. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +79 -0
  30. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_resource_format.rb +199 -0
  31. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_states.rb +20 -0
  32. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_types.rb +20 -0
  33. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_entities.rb +68 -0
  34. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_properties.rb +100 -0
  35. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_precedence.rb +109 -0
  36. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_type.rb +17 -0
  37. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/enriching_kpi.rb +256 -0
  38. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_type_definition.rb +268 -0
  39. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_types.rb +18 -0
  40. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/error_management_types.rb +17 -0
  41. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/frequency_types.rb +19 -0
  42. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +68 -0
  43. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub.rb +147 -0
  44. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +78 -0
  45. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_list_result.rb +98 -0
  46. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/image_definition.rb +68 -0
  47. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/instance_operation_type.rb +16 -0
  48. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_list_result.rb +99 -0
  49. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_resource_format.rb +475 -0
  50. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_alias.rb +57 -0
  51. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_definition.rb +320 -0
  52. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_extract.rb +57 -0
  53. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_functions.rb +22 -0
  54. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +76 -0
  55. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_list_result.rb +98 -0
  56. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +46 -0
  57. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_resource_format.rb +347 -0
  58. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_thresholds.rb +68 -0
  59. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_list_result.rb +98 -0
  60. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_resource_format.rb +230 -0
  61. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_types.rb +16 -0
  62. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/metadata_definition_base.rb +166 -0
  63. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation.rb +59 -0
  64. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_display.rb +72 -0
  65. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_list_result.rb +103 -0
  66. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant.rb +127 -0
  67. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant_property_reference.rb +59 -0
  68. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/permission_types.rb +17 -0
  69. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +65 -0
  70. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_list_result.rb +98 -0
  71. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_resource_format.rb +342 -0
  72. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/property_definition.rb +237 -0
  73. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/provisioning_states.rb +20 -0
  74. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/proxy_resource.rb +71 -0
  75. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +70 -0
  76. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +99 -0
  77. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +238 -0
  78. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_list_result.rb +99 -0
  79. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb +239 -0
  80. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +58 -0
  81. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +58 -0
  82. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationships_lookup.rb +115 -0
  83. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource.rb +101 -0
  84. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource_set_description.rb +74 -0
  85. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +99 -0
  86. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +333 -0
  87. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_list_result.rb +98 -0
  88. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_resource_format.rb +84 -0
  89. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_types.rb +20 -0
  90. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +67 -0
  91. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +46 -0
  92. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_table.rb +90 -0
  93. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/status.rb +17 -0
  94. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/strong_id.rb +103 -0
  95. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +69 -0
  96. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/type_properties_mapping.rb +82 -0
  97. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_list_result.rb +98 -0
  98. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_resource_format.rb +151 -0
  99. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_list_result.rb +99 -0
  100. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +174 -0
  101. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/module_definition.rb +9 -0
  102. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/operations.rb +218 -0
  103. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/profiles.rb +742 -0
  104. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationship_links.rb +616 -0
  105. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationships.rb +612 -0
  106. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/role_assignments.rb +572 -0
  107. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/roles.rb +229 -0
  108. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/views.rb +535 -0
  109. data/lib/2017-01-01/generated/azure_mgmt_customer_insights/widget_types.rb +326 -0
  110. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb +39 -35
  111. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb +33 -30
  112. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb +41 -38
  113. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +4 -1
  114. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb +58 -54
  115. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb +12 -14
  116. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb +37 -34
  117. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb +47 -43
  118. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb +37 -34
  119. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +15 -13
  120. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb +59 -55
  121. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb +47 -43
  122. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb +41 -38
  123. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb +41 -38
  124. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb +37 -34
  125. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb +15 -13
  126. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb +33 -30
  127. data/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb +21 -18
  128. data/lib/azure_mgmt_customer_insights.rb +1 -0
  129. data/lib/profiles/latest/customerinsights_latest_profile_client.rb +28 -9
  130. data/lib/profiles/latest/customerinsights_module_definition.rb +0 -1
  131. data/lib/profiles/latest/modules/customerinsights_profile_module.rb +356 -337
  132. data/lib/version.rb +1 -1
  133. 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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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 = nil)
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