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
@@ -34,8 +34,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
34
34
  #
35
35
  # @return [Array<RoleResourceFormat>] operation results.
36
36
  #
37
- def list_by_hub(resource_group_name, hub_name, custom_headers = nil)
38
- first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
37
+ def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
38
+ first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
39
39
  first_page.get_all_items
40
40
  end
41
41
 
@@ -49,8 +49,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
49
49
  #
50
50
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
51
  #
52
- def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil)
53
- list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
52
+ def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
53
+ list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
54
54
  end
55
55
 
56
56
  #
@@ -63,7 +63,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil)
66
+ def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
68
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
69
69
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -71,6 +71,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
71
71
 
72
72
 
73
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
75
 
75
76
  # Set Headers
76
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -125,8 +126,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
125
126
  #
126
127
  # @return [RoleListResult] operation results.
127
128
  #
128
- def list_by_hub_next(next_page_link, custom_headers = nil)
129
- response = list_by_hub_next_async(next_page_link, custom_headers).value!
129
+ def list_by_hub_next(next_page_link, custom_headers:nil)
130
+ response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
130
131
  response.body unless response.nil?
131
132
  end
132
133
 
@@ -140,8 +141,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
140
141
  #
141
142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
143
  #
143
- def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil)
144
- list_by_hub_next_async(next_page_link, custom_headers).value!
144
+ def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
145
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
145
146
  end
146
147
 
147
148
  #
@@ -154,11 +155,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
154
155
  #
155
156
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
156
157
  #
157
- def list_by_hub_next_async(next_page_link, custom_headers = nil)
158
+ def list_by_hub_next_async(next_page_link, custom_headers:nil)
158
159
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
159
160
 
160
161
 
161
162
  request_headers = {}
163
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
162
164
 
163
165
  # Set Headers
164
166
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -212,12 +214,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
212
214
  #
213
215
  # @return [RoleListResult] which provide lazy access to pages of the response.
214
216
  #
215
- def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil)
216
- response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
217
+ def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
218
+ response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
217
219
  unless response.nil?
218
220
  page = response.body
219
221
  page.next_method = Proc.new do |next_page_link|
220
- list_by_hub_next_async(next_page_link, custom_headers)
222
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
221
223
  end
222
224
  page
223
225
  end
@@ -35,8 +35,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
35
35
  #
36
36
  # @return [Array<ViewResourceFormat>] operation results.
37
37
  #
38
- def list_by_hub(resource_group_name, hub_name, user_id, custom_headers = nil)
39
- first_page = list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers)
38
+ def list_by_hub(resource_group_name, hub_name, user_id, custom_headers:nil)
39
+ first_page = list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:custom_headers)
40
40
  first_page.get_all_items
41
41
  end
42
42
 
@@ -51,8 +51,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
51
51
  #
52
52
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
53
53
  #
54
- def list_by_hub_with_http_info(resource_group_name, hub_name, user_id, custom_headers = nil)
55
- list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers).value!
54
+ def list_by_hub_with_http_info(resource_group_name, hub_name, user_id, custom_headers:nil)
55
+ list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value!
56
56
  end
57
57
 
58
58
  #
@@ -66,7 +66,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers = nil)
69
+ def list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
71
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
72
72
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -75,6 +75,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
75
75
 
76
76
 
77
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
79
 
79
80
  # Set Headers
80
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -132,8 +133,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
132
133
  #
133
134
  # @return [ViewResourceFormat] operation results.
134
135
  #
135
- def create_or_update(resource_group_name, hub_name, view_name, parameters, custom_headers = nil)
136
- response = create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers).value!
136
+ def create_or_update(resource_group_name, hub_name, view_name, parameters, custom_headers:nil)
137
+ response = create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:custom_headers).value!
137
138
  response.body unless response.nil?
138
139
  end
139
140
 
@@ -150,8 +151,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
150
151
  #
151
152
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
153
  #
153
- def create_or_update_with_http_info(resource_group_name, hub_name, view_name, parameters, custom_headers = nil)
154
- create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers).value!
154
+ def create_or_update_with_http_info(resource_group_name, hub_name, view_name, parameters, custom_headers:nil)
155
+ create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:custom_headers).value!
155
156
  end
156
157
 
157
158
  #
@@ -167,7 +168,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
167
168
  #
168
169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
169
170
  #
170
- def create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers = nil)
171
+ def create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:nil)
171
172
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
172
173
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
173
174
  fail ArgumentError, 'view_name is nil' if view_name.nil?
@@ -179,13 +180,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
179
180
 
180
181
 
181
182
  request_headers = {}
183
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
182
184
 
183
185
  # Set Headers
184
186
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
185
187
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
186
188
 
187
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
-
189
189
  # Serialize Request
190
190
  request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat.mapper()
191
191
  request_content = @client.serialize(request_mapper, parameters)
@@ -244,8 +244,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
244
244
  #
245
245
  # @return [ViewResourceFormat] operation results.
246
246
  #
247
- def get(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
248
- response = get_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value!
247
+ def get(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
248
+ response = get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value!
249
249
  response.body unless response.nil?
250
250
  end
251
251
 
@@ -261,8 +261,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
261
261
  #
262
262
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
263
263
  #
264
- def get_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
265
- get_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value!
264
+ def get_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
265
+ get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value!
266
266
  end
267
267
 
268
268
  #
@@ -277,7 +277,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
277
277
  #
278
278
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
279
279
  #
280
- def get_async(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
280
+ def get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
281
281
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
282
282
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
283
283
  fail ArgumentError, 'view_name is nil' if view_name.nil?
@@ -287,6 +287,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
287
287
 
288
288
 
289
289
  request_headers = {}
290
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
291
 
291
292
  # Set Headers
292
293
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -342,8 +343,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
342
343
  # will be added to the HTTP request.
343
344
  #
344
345
  #
345
- def delete(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
346
- response = delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value!
346
+ def delete(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
347
+ response = delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value!
347
348
  nil
348
349
  end
349
350
 
@@ -359,8 +360,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
359
360
  #
360
361
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
362
  #
362
- def delete_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
363
- delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value!
363
+ def delete_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
364
+ delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value!
364
365
  end
365
366
 
366
367
  #
@@ -375,7 +376,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
375
376
  #
376
377
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
377
378
  #
378
- def delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers = nil)
379
+ def delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:nil)
379
380
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
380
381
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
381
382
  fail ArgumentError, 'view_name is nil' if view_name.nil?
@@ -385,6 +386,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
385
386
 
386
387
 
387
388
  request_headers = {}
389
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
388
390
 
389
391
  # Set Headers
390
392
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -429,8 +431,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
429
431
  #
430
432
  # @return [ViewListResult] operation results.
431
433
  #
432
- def list_by_hub_next(next_page_link, custom_headers = nil)
433
- response = list_by_hub_next_async(next_page_link, custom_headers).value!
434
+ def list_by_hub_next(next_page_link, custom_headers:nil)
435
+ response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
434
436
  response.body unless response.nil?
435
437
  end
436
438
 
@@ -444,8 +446,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
444
446
  #
445
447
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
446
448
  #
447
- def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil)
448
- list_by_hub_next_async(next_page_link, custom_headers).value!
449
+ def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
450
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
449
451
  end
450
452
 
451
453
  #
@@ -458,11 +460,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
458
460
  #
459
461
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
462
  #
461
- def list_by_hub_next_async(next_page_link, custom_headers = nil)
463
+ def list_by_hub_next_async(next_page_link, custom_headers:nil)
462
464
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
463
465
 
464
466
 
465
467
  request_headers = {}
468
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
466
469
 
467
470
  # Set Headers
468
471
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -517,12 +520,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
517
520
  #
518
521
  # @return [ViewListResult] which provide lazy access to pages of the response.
519
522
  #
520
- def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers = nil)
521
- response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers).value!
523
+ def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:nil)
524
+ response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value!
522
525
  unless response.nil?
523
526
  page = response.body
524
527
  page.next_method = Proc.new do |next_page_link|
525
- list_by_hub_next_async(next_page_link, custom_headers)
528
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
526
529
  end
527
530
  page
528
531
  end
@@ -34,8 +34,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
34
34
  #
35
35
  # @return [Array<WidgetTypeResourceFormat>] operation results.
36
36
  #
37
- def list_by_hub(resource_group_name, hub_name, custom_headers = nil)
38
- first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
37
+ def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
38
+ first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
39
39
  first_page.get_all_items
40
40
  end
41
41
 
@@ -49,8 +49,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
49
49
  #
50
50
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
51
  #
52
- def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil)
53
- list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
52
+ def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
53
+ list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
54
54
  end
55
55
 
56
56
  #
@@ -63,7 +63,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil)
66
+ def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
68
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
69
69
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -71,6 +71,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
71
71
 
72
72
 
73
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
75
 
75
76
  # Set Headers
76
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -126,8 +127,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
126
127
  #
127
128
  # @return [WidgetTypeResourceFormat] operation results.
128
129
  #
129
- def get(resource_group_name, hub_name, widget_type_name, custom_headers = nil)
130
- response = get_async(resource_group_name, hub_name, widget_type_name, custom_headers).value!
130
+ def get(resource_group_name, hub_name, widget_type_name, custom_headers:nil)
131
+ response = get_async(resource_group_name, hub_name, widget_type_name, custom_headers:custom_headers).value!
131
132
  response.body unless response.nil?
132
133
  end
133
134
 
@@ -142,8 +143,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
142
143
  #
143
144
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
144
145
  #
145
- def get_with_http_info(resource_group_name, hub_name, widget_type_name, custom_headers = nil)
146
- get_async(resource_group_name, hub_name, widget_type_name, custom_headers).value!
146
+ def get_with_http_info(resource_group_name, hub_name, widget_type_name, custom_headers:nil)
147
+ get_async(resource_group_name, hub_name, widget_type_name, custom_headers:custom_headers).value!
147
148
  end
148
149
 
149
150
  #
@@ -157,7 +158,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
157
158
  #
158
159
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
159
160
  #
160
- def get_async(resource_group_name, hub_name, widget_type_name, custom_headers = nil)
161
+ def get_async(resource_group_name, hub_name, widget_type_name, custom_headers:nil)
161
162
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
162
163
  fail ArgumentError, 'hub_name is nil' if hub_name.nil?
163
164
  fail ArgumentError, 'widget_type_name is nil' if widget_type_name.nil?
@@ -166,6 +167,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
166
167
 
167
168
 
168
169
  request_headers = {}
170
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
169
171
 
170
172
  # Set Headers
171
173
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -220,8 +222,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
220
222
  #
221
223
  # @return [WidgetTypeListResult] operation results.
222
224
  #
223
- def list_by_hub_next(next_page_link, custom_headers = nil)
224
- response = list_by_hub_next_async(next_page_link, custom_headers).value!
225
+ def list_by_hub_next(next_page_link, custom_headers:nil)
226
+ response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
225
227
  response.body unless response.nil?
226
228
  end
227
229
 
@@ -235,8 +237,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
235
237
  #
236
238
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
239
  #
238
- def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil)
239
- list_by_hub_next_async(next_page_link, custom_headers).value!
240
+ def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
241
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
240
242
  end
241
243
 
242
244
  #
@@ -249,11 +251,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
249
251
  #
250
252
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
251
253
  #
252
- def list_by_hub_next_async(next_page_link, custom_headers = nil)
254
+ def list_by_hub_next_async(next_page_link, custom_headers:nil)
253
255
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
254
256
 
255
257
 
256
258
  request_headers = {}
259
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
257
260
 
258
261
  # Set Headers
259
262
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -308,12 +311,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
308
311
  # @return [WidgetTypeListResult] which provide lazy access to pages of the
309
312
  # response.
310
313
  #
311
- def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil)
312
- response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
314
+ def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
315
+ response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
313
316
  unless response.nil?
314
317
  page = response.body
315
318
  page.next_method = Proc.new do |next_page_link|
316
- list_by_hub_next_async(next_page_link, custom_headers)
319
+ list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
317
320
  end
318
321
  page
319
322
  end
@@ -2,5 +2,6 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
+ require '2017-01-01/generated/azure_mgmt_customer_insights'
5
6
  require '2017-04-26/generated/azure_mgmt_customer_insights'
6
7
  require 'profiles/latest/customerinsights_latest_profile_client'
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/customerinsights_module_definition'
6
6
  require 'profiles/latest/modules/customerinsights_profile_module'
7
7
 
8
- module Azure::CustomerInsights::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < CustomerInsightsClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::CustomerInsights::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < CustomerInsightsManagementClass
14
+ include MsRestAzure::Common::Configurable
14
15
 
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
15
37
 
16
- def initialize(options = {})
17
- super(options)
18
38
  end
19
-
20
39
  end
21
40
  end