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
@@ -39,8 +39,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
39
39
  #
40
40
  # @return [ConnectorMappingResourceFormat] operation results.
41
41
  #
42
- def create_or_update(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil)
43
- response = create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers).value!
42
+ def create_or_update(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil)
43
+ response = create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:custom_headers).value!
44
44
  response.body unless response.nil?
45
45
  end
46
46
 
@@ -59,8 +59,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
59
59
  #
60
60
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
61
  #
62
- def create_or_update_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil)
63
- create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers).value!
62
+ def create_or_update_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil)
63
+ create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:custom_headers).value!
64
64
  end
65
65
 
66
66
  #
@@ -78,7 +78,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
78
78
  #
79
79
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
80
80
  #
81
- def create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil)
81
+ def create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil)
82
82
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
83
83
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
84
84
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -92,13 +92,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
92
92
 
93
93
 
94
94
  request_headers = {}
95
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
95
96
 
96
97
  # Set Headers
97
98
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
98
99
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
99
100
 
100
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
-
102
101
  # Serialize Request
103
102
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingResourceFormat.mapper()
104
103
  request_content = @client.serialize(request_mapper, parameters)
@@ -167,8 +166,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
167
166
  #
168
167
  # @return [ConnectorMappingResourceFormat] operation results.
169
168
  #
170
- def get(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
171
- response = get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value!
169
+ def get(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
170
+ response = get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value!
172
171
  response.body unless response.nil?
173
172
  end
174
173
 
@@ -184,8 +183,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
184
183
  #
185
184
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
186
185
  #
187
- def get_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
188
- get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value!
186
+ def get_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
187
+ get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value!
189
188
  end
190
189
 
191
190
  #
@@ -200,7 +199,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
200
199
  #
201
200
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
202
201
  #
203
- def get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
202
+ def get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
204
203
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
205
204
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
206
205
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -210,6 +209,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
210
209
 
211
210
 
212
211
  request_headers = {}
212
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
213
213
 
214
214
  # Set Headers
215
215
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -265,8 +265,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
265
265
  # will be added to the HTTP request.
266
266
  #
267
267
  #
268
- def delete(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
269
- response = delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value!
268
+ def delete(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
269
+ response = delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value!
270
270
  nil
271
271
  end
272
272
 
@@ -282,8 +282,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
282
282
  #
283
283
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
284
284
  #
285
- def delete_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
286
- delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value!
285
+ def delete_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
286
+ delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value!
287
287
  end
288
288
 
289
289
  #
@@ -298,7 +298,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
298
298
  #
299
299
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
300
300
  #
301
- def delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil)
301
+ def delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil)
302
302
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
303
303
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
304
304
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -308,6 +308,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
308
308
 
309
309
 
310
310
  request_headers = {}
311
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
311
312
 
312
313
  # Set Headers
313
314
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -353,8 +354,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
353
354
  #
354
355
  # @return [Array<ConnectorMappingResourceFormat>] operation results.
355
356
  #
356
- def list_by_connector(resource_group_name, hub_name, connector_name, custom_headers = nil)
357
- first_page = list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers)
357
+ def list_by_connector(resource_group_name, hub_name, connector_name, custom_headers:nil)
358
+ first_page = list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:custom_headers)
358
359
  first_page.get_all_items
359
360
  end
360
361
 
@@ -369,8 +370,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
369
370
  #
370
371
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
371
372
  #
372
- def list_by_connector_with_http_info(resource_group_name, hub_name, connector_name, custom_headers = nil)
373
- list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers).value!
373
+ def list_by_connector_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil)
374
+ list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
374
375
  end
375
376
 
376
377
  #
@@ -384,7 +385,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
384
385
  #
385
386
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
386
387
  #
387
- def list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers = nil)
388
+ def list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:nil)
388
389
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
389
390
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
390
391
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -393,6 +394,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
393
394
 
394
395
 
395
396
  request_headers = {}
397
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
396
398
 
397
399
  # Set Headers
398
400
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -447,8 +449,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
447
449
  #
448
450
  # @return [ConnectorMappingListResult] operation results.
449
451
  #
450
- def list_by_connector_next(next_page_link, custom_headers = nil)
451
- response = list_by_connector_next_async(next_page_link, custom_headers).value!
452
+ def list_by_connector_next(next_page_link, custom_headers:nil)
453
+ response = list_by_connector_next_async(next_page_link, custom_headers:custom_headers).value!
452
454
  response.body unless response.nil?
453
455
  end
454
456
 
@@ -462,8 +464,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
462
464
  #
463
465
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
466
  #
465
- def list_by_connector_next_with_http_info(next_page_link, custom_headers = nil)
466
- list_by_connector_next_async(next_page_link, custom_headers).value!
467
+ def list_by_connector_next_with_http_info(next_page_link, custom_headers:nil)
468
+ list_by_connector_next_async(next_page_link, custom_headers:custom_headers).value!
467
469
  end
468
470
 
469
471
  #
@@ -476,11 +478,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
476
478
  #
477
479
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
478
480
  #
479
- def list_by_connector_next_async(next_page_link, custom_headers = nil)
481
+ def list_by_connector_next_async(next_page_link, custom_headers:nil)
480
482
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
481
483
 
482
484
 
483
485
  request_headers = {}
486
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
484
487
 
485
488
  # Set Headers
486
489
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -536,12 +539,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
536
539
  # @return [ConnectorMappingListResult] which provide lazy access to pages of
537
540
  # the response.
538
541
  #
539
- def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers = nil)
540
- response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers).value!
542
+ def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:nil)
543
+ response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
541
544
  unless response.nil?
542
545
  page = response.body
543
546
  page.next_method = Proc.new do |next_page_link|
544
- list_by_connector_next_async(next_page_link, custom_headers)
547
+ list_by_connector_next_async(next_page_link, custom_headers:custom_headers)
545
548
  end
546
549
  page
547
550
  end
@@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
37
37
  #
38
38
  # @return [ConnectorResourceFormat] operation results.
39
39
  #
40
- def create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil)
41
- response = create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value!
40
+ def create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil)
41
+ response = create_or_update_async(resource_group_name, hub_name, connector_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, connector_name, parameters, custom_headers = nil)
57
+ def create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil)
58
58
  # Send request
59
- promise = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers)
59
+ promise = begin_create_or_update_async(resource_group_name, hub_name, connector_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 [ConnectorResourceFormat] operation results.
85
85
  #
86
- def get(resource_group_name, hub_name, connector_name, custom_headers = nil)
87
- response = get_async(resource_group_name, hub_name, connector_name, custom_headers).value!
86
+ def get(resource_group_name, hub_name, connector_name, custom_headers:nil)
87
+ response = get_async(resource_group_name, hub_name, connector_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, connector_name, custom_headers = nil)
103
- get_async(resource_group_name, hub_name, connector_name, custom_headers).value!
102
+ def get_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil)
103
+ get_async(resource_group_name, hub_name, connector_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, connector_name, custom_headers = nil)
117
+ def get_async(resource_group_name, hub_name, connector_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, 'connector_name is nil' if connector_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, connector_name, custom_headers = nil)
180
- response = delete_async(resource_group_name, hub_name, connector_name, custom_headers).value!
180
+ def delete(resource_group_name, hub_name, connector_name, custom_headers:nil)
181
+ response = delete_async(resource_group_name, hub_name, connector_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, connector_name, custom_headers = nil)
195
+ def delete_async(resource_group_name, hub_name, connector_name, custom_headers:nil)
195
196
  # Send request
196
- promise = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers)
197
+ promise = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers)
197
198
 
198
199
  promise = promise.then do |response|
199
200
  # Defining deserialization method.
@@ -217,8 +218,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
217
218
  #
218
219
  # @return [Array<ConnectorResourceFormat>] operation results.
219
220
  #
220
- def list_by_hub(resource_group_name, hub_name, custom_headers = nil)
221
- first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
221
+ def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
222
+ first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
222
223
  first_page.get_all_items
223
224
  end
224
225
 
@@ -232,8 +233,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
232
233
  #
233
234
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
235
  #
235
- def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil)
236
- list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
236
+ def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
237
+ list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
237
238
  end
238
239
 
239
240
  #
@@ -246,7 +247,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
246
247
  #
247
248
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
248
249
  #
249
- def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil)
250
+ def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
250
251
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
251
252
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
252
253
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -254,6 +255,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
254
255
 
255
256
 
256
257
  request_headers = {}
258
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
257
259
 
258
260
  # Set Headers
259
261
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -311,8 +313,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
311
313
  #
312
314
  # @return [ConnectorResourceFormat] operation results.
313
315
  #
314
- def begin_create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil)
315
- response = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value!
316
+ def begin_create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil)
317
+ response = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers).value!
316
318
  response.body unless response.nil?
317
319
  end
318
320
 
@@ -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 begin_create_or_update_with_http_info(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil)
333
- begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value!
334
+ def begin_create_or_update_with_http_info(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil)
335
+ begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers).value!
334
336
  end
335
337
 
336
338
  #
@@ -346,7 +348,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
346
348
  #
347
349
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
348
350
  #
349
- def begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil)
351
+ def begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil)
350
352
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
351
353
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
352
354
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -359,13 +361,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
359
361
 
360
362
 
361
363
  request_headers = {}
364
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
362
365
 
363
366
  # Set Headers
364
367
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
365
368
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
366
369
 
367
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
368
-
369
370
  # Serialize Request
370
371
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorResourceFormat.mapper()
371
372
  request_content = @client.serialize(request_mapper, parameters)
@@ -422,8 +423,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
422
423
  # will be added to the HTTP request.
423
424
  #
424
425
  #
425
- def begin_delete(resource_group_name, hub_name, connector_name, custom_headers = nil)
426
- response = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers).value!
426
+ def begin_delete(resource_group_name, hub_name, connector_name, custom_headers:nil)
427
+ response = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
427
428
  nil
428
429
  end
429
430
 
@@ -438,8 +439,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
438
439
  #
439
440
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
440
441
  #
441
- def begin_delete_with_http_info(resource_group_name, hub_name, connector_name, custom_headers = nil)
442
- begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers).value!
442
+ def begin_delete_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil)
443
+ begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value!
443
444
  end
444
445
 
445
446
  #
@@ -453,7 +454,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
453
454
  #
454
455
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
455
456
  #
456
- def begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers = nil)
457
+ def begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:nil)
457
458
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
458
459
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
459
460
  fail ArgumentError, 'connector_name is nil' if connector_name.nil?
@@ -462,6 +463,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
462
463
 
463
464
 
464
465
  request_headers = {}
466
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
465
467
 
466
468
  # Set Headers
467
469
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -506,8 +508,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
506
508
  #
507
509
  # @return [ConnectorListResult] operation results.
508
510
  #
509
- def list_by_hub_next(next_page_link, custom_headers = nil)
510
- response = list_by_hub_next_async(next_page_link, custom_headers).value!
511
+ def list_by_hub_next(next_page_link, custom_headers:nil)
512
+ response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
511
513
  response.body unless response.nil?
512
514
  end
513
515
 
@@ -521,8 +523,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
521
523
  #
522
524
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
523
525
  #
524
- def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil)
525
- list_by_hub_next_async(next_page_link, custom_headers).value!
526
+ def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
527
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
526
528
  end
527
529
 
528
530
  #
@@ -535,11 +537,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
535
537
  #
536
538
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
537
539
  #
538
- def list_by_hub_next_async(next_page_link, custom_headers = nil)
540
+ def list_by_hub_next_async(next_page_link, custom_headers:nil)
539
541
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
540
542
 
541
543
 
542
544
  request_headers = {}
545
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
546
 
544
547
  # Set Headers
545
548
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -594,12 +597,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
594
597
  # @return [ConnectorListResult] which provide lazy access to pages of the
595
598
  # response.
596
599
  #
597
- def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil)
598
- response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
600
+ def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
601
+ response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
599
602
  unless response.nil?
600
603
  page = response.body
601
604
  page.next_method = Proc.new do |next_page_link|
602
- list_by_hub_next_async(next_page_link, custom_headers)
605
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
603
606
  end
604
607
  page
605
608
  end