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
@@ -170,6 +170,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
170
170
  fail ArgumentError, 'path is nil' if path.nil?
171
171
 
172
172
  request_url = options[:base_url] || @base_url
173
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
174
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
175
+ end
173
176
 
174
177
  request_headers = @request_headers
175
178
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -186,7 +189,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
186
189
  #
187
190
  def add_telemetry
188
191
  sdk_information = 'azure_mgmt_customer_insights'
189
- sdk_information = "#{sdk_information}/0.15.2"
192
+ sdk_information = "#{sdk_information}/0.16.0"
190
193
  add_user_agent_information(sdk_information)
191
194
  end
192
195
  end
@@ -36,8 +36,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
36
36
  #
37
37
  # @return [Hub] operation results.
38
38
  #
39
- def create_or_update(resource_group_name, hub_name, parameters, custom_headers = nil)
40
- response = create_or_update_async(resource_group_name, hub_name, parameters, custom_headers).value!
39
+ def create_or_update(resource_group_name, hub_name, parameters, custom_headers:nil)
40
+ response = create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
41
41
  response.body unless response.nil?
42
42
  end
43
43
 
@@ -53,8 +53,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
53
53
  #
54
54
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
55
  #
56
- def create_or_update_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil)
57
- create_or_update_async(resource_group_name, hub_name, parameters, custom_headers).value!
56
+ def create_or_update_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil)
57
+ create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
58
58
  end
59
59
 
60
60
  #
@@ -69,7 +69,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def create_or_update_async(resource_group_name, hub_name, parameters, custom_headers = nil)
72
+ def create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:nil)
73
73
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
74
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
75
75
  fail ArgumentError, "'hub_name' should satisfy the constraint - 'MaxLength': '64'" if !hub_name.nil? && hub_name.length > 64
@@ -81,13 +81,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
81
81
 
82
82
 
83
83
  request_headers = {}
84
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
85
 
85
86
  # Set Headers
86
87
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
88
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
89
 
89
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
-
91
90
  # Serialize Request
92
91
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub.mapper()
93
92
  request_content = @client.serialize(request_mapper, parameters)
@@ -155,8 +154,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
155
154
  #
156
155
  # @return [Hub] operation results.
157
156
  #
158
- def update(resource_group_name, hub_name, parameters, custom_headers = nil)
159
- response = update_async(resource_group_name, hub_name, parameters, custom_headers).value!
157
+ def update(resource_group_name, hub_name, parameters, custom_headers:nil)
158
+ response = update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
160
159
  response.body unless response.nil?
161
160
  end
162
161
 
@@ -171,8 +170,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
171
170
  #
172
171
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
173
172
  #
174
- def update_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil)
175
- update_async(resource_group_name, hub_name, parameters, custom_headers).value!
173
+ def update_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil)
174
+ update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
176
175
  end
177
176
 
178
177
  #
@@ -186,7 +185,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
186
185
  #
187
186
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
188
187
  #
189
- def update_async(resource_group_name, hub_name, parameters, custom_headers = nil)
188
+ def update_async(resource_group_name, hub_name, parameters, custom_headers:nil)
190
189
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
191
190
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
192
191
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -195,13 +194,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
195
194
 
196
195
 
197
196
  request_headers = {}
197
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
198
198
 
199
199
  # Set Headers
200
200
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
201
201
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
202
202
 
203
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
204
-
205
203
  # Serialize Request
206
204
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub.mapper()
207
205
  request_content = @client.serialize(request_mapper, parameters)
@@ -256,8 +254,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
256
254
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
255
  # will be added to the HTTP request.
258
256
  #
259
- def delete(resource_group_name, hub_name, custom_headers = nil)
260
- response = delete_async(resource_group_name, hub_name, custom_headers).value!
257
+ def delete(resource_group_name, hub_name, custom_headers:nil)
258
+ response = delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
261
259
  nil
262
260
  end
263
261
 
@@ -270,9 +268,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
270
268
  # @return [Concurrent::Promise] promise which provides async access to http
271
269
  # response.
272
270
  #
273
- def delete_async(resource_group_name, hub_name, custom_headers = nil)
271
+ def delete_async(resource_group_name, hub_name, custom_headers:nil)
274
272
  # Send request
275
- promise = begin_delete_async(resource_group_name, hub_name, custom_headers)
273
+ promise = begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers)
276
274
 
277
275
  promise = promise.then do |response|
278
276
  # Defining deserialization method.
@@ -296,8 +294,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
296
294
  #
297
295
  # @return [Hub] operation results.
298
296
  #
299
- def get(resource_group_name, hub_name, custom_headers = nil)
300
- response = get_async(resource_group_name, hub_name, custom_headers).value!
297
+ def get(resource_group_name, hub_name, custom_headers:nil)
298
+ response = get_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
301
299
  response.body unless response.nil?
302
300
  end
303
301
 
@@ -311,8 +309,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
311
309
  #
312
310
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
313
311
  #
314
- def get_with_http_info(resource_group_name, hub_name, custom_headers = nil)
315
- get_async(resource_group_name, hub_name, custom_headers).value!
312
+ def get_with_http_info(resource_group_name, hub_name, custom_headers:nil)
313
+ get_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
316
314
  end
317
315
 
318
316
  #
@@ -325,7 +323,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
325
323
  #
326
324
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
327
325
  #
328
- def get_async(resource_group_name, hub_name, custom_headers = nil)
326
+ def get_async(resource_group_name, hub_name, custom_headers:nil)
329
327
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
330
328
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
331
329
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -333,6 +331,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
333
331
 
334
332
 
335
333
  request_headers = {}
334
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
336
335
 
337
336
  # Set Headers
338
337
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -386,8 +385,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
386
385
  #
387
386
  # @return [Array<Hub>] operation results.
388
387
  #
389
- def list_by_resource_group(resource_group_name, custom_headers = nil)
390
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
388
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
389
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
391
390
  first_page.get_all_items
392
391
  end
393
392
 
@@ -400,8 +399,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
400
399
  #
401
400
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
402
401
  #
403
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
404
- list_by_resource_group_async(resource_group_name, custom_headers).value!
402
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
403
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
405
404
  end
406
405
 
407
406
  #
@@ -413,13 +412,14 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
413
412
  #
414
413
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
415
414
  #
416
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
415
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
417
416
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
418
417
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
419
418
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
420
419
 
421
420
 
422
421
  request_headers = {}
422
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
423
 
424
424
  # Set Headers
425
425
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -472,8 +472,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
472
472
  #
473
473
  # @return [Array<Hub>] operation results.
474
474
  #
475
- def list(custom_headers = nil)
476
- first_page = list_as_lazy(custom_headers)
475
+ def list(custom_headers:nil)
476
+ first_page = list_as_lazy(custom_headers:custom_headers)
477
477
  first_page.get_all_items
478
478
  end
479
479
 
@@ -485,8 +485,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
485
485
  #
486
486
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
487
487
  #
488
- def list_with_http_info(custom_headers = nil)
489
- list_async(custom_headers).value!
488
+ def list_with_http_info(custom_headers:nil)
489
+ list_async(custom_headers:custom_headers).value!
490
490
  end
491
491
 
492
492
  #
@@ -497,12 +497,13 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
497
497
  #
498
498
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
499
499
  #
500
- def list_async(custom_headers = nil)
500
+ def list_async(custom_headers:nil)
501
501
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
502
502
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
503
503
 
504
504
 
505
505
  request_headers = {}
506
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
506
507
 
507
508
  # Set Headers
508
509
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -556,8 +557,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
556
557
  # will be added to the HTTP request.
557
558
  #
558
559
  #
559
- def begin_delete(resource_group_name, hub_name, custom_headers = nil)
560
- response = begin_delete_async(resource_group_name, hub_name, custom_headers).value!
560
+ def begin_delete(resource_group_name, hub_name, custom_headers:nil)
561
+ response = begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
561
562
  nil
562
563
  end
563
564
 
@@ -571,8 +572,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
571
572
  #
572
573
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
573
574
  #
574
- def begin_delete_with_http_info(resource_group_name, hub_name, custom_headers = nil)
575
- begin_delete_async(resource_group_name, hub_name, custom_headers).value!
575
+ def begin_delete_with_http_info(resource_group_name, hub_name, custom_headers:nil)
576
+ begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
576
577
  end
577
578
 
578
579
  #
@@ -585,7 +586,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
585
586
  #
586
587
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
587
588
  #
588
- def begin_delete_async(resource_group_name, hub_name, custom_headers = nil)
589
+ def begin_delete_async(resource_group_name, hub_name, custom_headers:nil)
589
590
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
590
591
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
591
592
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -593,6 +594,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
593
594
 
594
595
 
595
596
  request_headers = {}
597
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
596
598
 
597
599
  # Set Headers
598
600
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -637,8 +639,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
637
639
  #
638
640
  # @return [HubListResult] operation results.
639
641
  #
640
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
641
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
642
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
643
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
642
644
  response.body unless response.nil?
643
645
  end
644
646
 
@@ -652,8 +654,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
652
654
  #
653
655
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
654
656
  #
655
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
656
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
657
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
658
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
657
659
  end
658
660
 
659
661
  #
@@ -666,11 +668,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
666
668
  #
667
669
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
668
670
  #
669
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
671
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
670
672
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
671
673
 
672
674
 
673
675
  request_headers = {}
676
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
674
677
 
675
678
  # Set Headers
676
679
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -724,8 +727,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
724
727
  #
725
728
  # @return [HubListResult] operation results.
726
729
  #
727
- def list_next(next_page_link, custom_headers = nil)
728
- response = list_next_async(next_page_link, custom_headers).value!
730
+ def list_next(next_page_link, custom_headers:nil)
731
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
729
732
  response.body unless response.nil?
730
733
  end
731
734
 
@@ -739,8 +742,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
739
742
  #
740
743
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
741
744
  #
742
- def list_next_with_http_info(next_page_link, custom_headers = nil)
743
- list_next_async(next_page_link, custom_headers).value!
745
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
746
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
744
747
  end
745
748
 
746
749
  #
@@ -753,11 +756,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
753
756
  #
754
757
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
755
758
  #
756
- def list_next_async(next_page_link, custom_headers = nil)
759
+ def list_next_async(next_page_link, custom_headers:nil)
757
760
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
758
761
 
759
762
 
760
763
  request_headers = {}
764
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
761
765
 
762
766
  # Set Headers
763
767
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -810,12 +814,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
810
814
  #
811
815
  # @return [HubListResult] which provide lazy access to pages of the response.
812
816
  #
813
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
814
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
817
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
818
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
815
819
  unless response.nil?
816
820
  page = response.body
817
821
  page.next_method = Proc.new do |next_page_link|
818
- list_by_resource_group_next_async(next_page_link, custom_headers)
822
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
819
823
  end
820
824
  page
821
825
  end
@@ -829,12 +833,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
829
833
  #
830
834
  # @return [HubListResult] which provide lazy access to pages of the response.
831
835
  #
832
- def list_as_lazy(custom_headers = nil)
833
- response = list_async(custom_headers).value!
836
+ def list_as_lazy(custom_headers:nil)
837
+ response = list_async(custom_headers:custom_headers).value!
834
838
  unless response.nil?
835
839
  page = response.body
836
840
  page.next_method = Proc.new do |next_page_link|
837
- list_next_async(next_page_link, custom_headers)
841
+ list_next_async(next_page_link, custom_headers:custom_headers)
838
842
  end
839
843
  page
840
844
  end
@@ -36,8 +36,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
36
36
  #
37
37
  # @return [ImageDefinition] operation results.
38
38
  #
39
- def get_upload_url_for_entity_type(resource_group_name, hub_name, parameters, custom_headers = nil)
40
- response = get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers).value!
39
+ def get_upload_url_for_entity_type(resource_group_name, hub_name, parameters, custom_headers:nil)
40
+ response = get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
41
41
  response.body unless response.nil?
42
42
  end
43
43
 
@@ -53,8 +53,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
53
53
  #
54
54
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
55
  #
56
- def get_upload_url_for_entity_type_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil)
57
- get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers).value!
56
+ def get_upload_url_for_entity_type_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil)
57
+ get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
58
58
  end
59
59
 
60
60
  #
@@ -69,7 +69,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers = nil)
72
+ def get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:nil)
73
73
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
74
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
75
75
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -78,13 +78,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
78
78
 
79
79
 
80
80
  request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
82
 
82
83
  # Set Headers
83
84
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
84
85
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
85
86
 
86
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
87
-
88
87
  # Serialize Request
89
88
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::GetImageUploadUrlInput.mapper()
90
89
  request_content = @client.serialize(request_mapper, parameters)
@@ -143,8 +142,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
143
142
  #
144
143
  # @return [ImageDefinition] operation results.
145
144
  #
146
- def get_upload_url_for_data(resource_group_name, hub_name, parameters, custom_headers = nil)
147
- response = get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers).value!
145
+ def get_upload_url_for_data(resource_group_name, hub_name, parameters, custom_headers:nil)
146
+ response = get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
148
147
  response.body unless response.nil?
149
148
  end
150
149
 
@@ -160,8 +159,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
160
159
  #
161
160
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
162
161
  #
163
- def get_upload_url_for_data_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil)
164
- get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers).value!
162
+ def get_upload_url_for_data_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil)
163
+ get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value!
165
164
  end
166
165
 
167
166
  #
@@ -176,7 +175,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
176
175
  #
177
176
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
177
  #
179
- def get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers = nil)
178
+ def get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:nil)
180
179
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
180
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
182
181
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -185,13 +184,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
185
184
 
186
185
 
187
186
  request_headers = {}
187
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
188
 
189
189
  # Set Headers
190
190
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
191
191
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
192
192
 
193
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
-
195
193
  # Serialize Request
196
194
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::GetImageUploadUrlInput.mapper()
197
195
  request_content = @client.serialize(request_mapper, parameters)