azure_mgmt_customer_insights 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights.rb +132 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/authorization_policies.rb +641 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connector_mappings.rb +554 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/connectors.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +192 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/hubs.rb +848 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/images.rb +240 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/interactions.rb +597 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/kpi.rb +696 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/links.rb +571 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/assignment_principal.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy.rb +93 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/authorization_policy_resource_format.rb +120 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/azure_blob_connector_properties.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/calculation_window_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/cardinality_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/completion_operation_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_availability.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_complete_operation.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_error_management.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_format.rb +104 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_properties.rb +141 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_resource_format.rb +245 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_states.rb +21 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_mapping_structure.rb +79 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_resource_format.rb +199 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/connector_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_entities.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/crm_connector_properties.rb +100 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_precedence.rb +109 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/data_source_type.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/enriching_kpi.rb +256 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_type_definition.rb +268 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/entity_types.rb +18 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/error_management_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/frequency_types.rb +19 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/get_image_upload_url_input.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub.rb +147 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_billing_info_format.rb +78 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/hub_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/image_definition.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/instance_operation_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/interaction_resource_format.rb +475 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_alias.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_definition.rb +320 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_extract.rb +57 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_functions.rb +22 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_group_by_metadata.rb +76 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_participant_profiles_metadata.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_resource_format.rb +347 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/kpi_thresholds.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_resource_format.rb +230 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/link_types.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/metadata_definition_base.rb +166 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_display.rb +72 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/operation_list_result.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant.rb +127 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/participant_property_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/permission_types.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_enum_valid_values_format.rb +65 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/profile_resource_format.rb +342 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/property_definition.rb +237 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/provisioning_states.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/proxy_resource.rb +71 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_field_mapping.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_link_resource_format.rb +238 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_resource_format.rb +239 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_field_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationship_type_mapping.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/relationships_lookup.rb +115 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource.rb +101 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/resource_set_description.rb +74 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_assignment_resource_format.rb +333 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_resource_format.rb +84 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/role_types.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_connector_properties.rb +67 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_discover_setting.rb +46 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/salesforce_table.rb +90 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/status.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/strong_id.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/suggest_relationship_links_response.rb +69 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/type_properties_mapping.rb +82 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_list_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/view_resource_format.rb +151 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/models/widget_type_resource_format.rb +174 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/module_definition.rb +9 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/operations.rb +218 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/profiles.rb +742 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationship_links.rb +616 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/relationships.rb +612 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/role_assignments.rb +572 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/roles.rb +229 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/views.rb +535 -0
- data/lib/2017-01-01/generated/azure_mgmt_customer_insights/widget_types.rb +326 -0
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb +39 -35
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/customer_insights_management_client.rb +4 -1
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb +58 -54
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb +12 -14
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb +59 -55
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb +47 -43
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb +41 -38
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb +37 -34
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb +15 -13
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb +33 -30
- data/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb +21 -18
- data/lib/azure_mgmt_customer_insights.rb +1 -0
- data/lib/profiles/latest/customerinsights_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/customerinsights_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/customerinsights_profile_module.rb +356 -337
- data/lib/version.rb +1 -1
- metadata +110 -2
@@ -0,0 +1,326 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CustomerInsights::Mgmt::V2017_01_01
|
7
|
+
#
|
8
|
+
# The Azure Customer Insights management API provides a RESTful set of web
|
9
|
+
# services that interact with Azure Customer Insights service to manage your
|
10
|
+
# resources. The API has entities that capture the relationship between an
|
11
|
+
# end user and the Azure Customer Insights service.
|
12
|
+
#
|
13
|
+
class WidgetTypes
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the WidgetTypes class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [CustomerInsightsManagementClient] reference to the CustomerInsightsManagementClient
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets all available widget types in the specified hub.
|
29
|
+
#
|
30
|
+
# @param resource_group_name [String] The name of the resource group.
|
31
|
+
# @param hub_name [String] The name of the hub.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<WidgetTypeResourceFormat>] operation results.
|
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:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets all available widget types in the specified hub.
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group.
|
46
|
+
# @param hub_name [String] The name of the hub.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
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:custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Gets all available widget types in the specified hub.
|
58
|
+
#
|
59
|
+
# @param resource_group_name [String] The name of the resource group.
|
60
|
+
# @param hub_name [String] The name of the hub.
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
69
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
|
72
|
+
|
73
|
+
request_headers = {}
|
74
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
|
+
|
76
|
+
# Set Headers
|
77
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes'
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
options = {
|
84
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
+
path_params: {'resourceGroupName' => resource_group_name,'hubName' => hub_name,'subscriptionId' => @client.subscription_id},
|
86
|
+
query_params: {'api-version' => @client.api_version},
|
87
|
+
headers: request_headers.merge(custom_headers || {}),
|
88
|
+
base_url: request_url
|
89
|
+
}
|
90
|
+
promise = @client.make_request_async(:get, path_template, options)
|
91
|
+
|
92
|
+
promise = promise.then do |result|
|
93
|
+
http_response = result.response
|
94
|
+
status_code = http_response.status
|
95
|
+
response_content = http_response.body
|
96
|
+
unless status_code == 200
|
97
|
+
error_model = JSON.load(response_content)
|
98
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
99
|
+
end
|
100
|
+
|
101
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
102
|
+
# Deserialize Response
|
103
|
+
if status_code == 200
|
104
|
+
begin
|
105
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
106
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_01_01::Models::WidgetTypeListResult.mapper()
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
108
|
+
rescue Exception => e
|
109
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
promise.execute
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
# Gets a widget type in the specified hub.
|
121
|
+
#
|
122
|
+
# @param resource_group_name [String] The name of the resource group.
|
123
|
+
# @param hub_name [String] The name of the hub.
|
124
|
+
# @param widget_type_name [String] The name of the widget type.
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [WidgetTypeResourceFormat] operation results.
|
129
|
+
#
|
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!
|
132
|
+
response.body unless response.nil?
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets a widget type in the specified hub.
|
137
|
+
#
|
138
|
+
# @param resource_group_name [String] The name of the resource group.
|
139
|
+
# @param hub_name [String] The name of the hub.
|
140
|
+
# @param widget_type_name [String] The name of the widget type.
|
141
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
|
+
# will be added to the HTTP request.
|
143
|
+
#
|
144
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
145
|
+
#
|
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!
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Gets a widget type in the specified hub.
|
152
|
+
#
|
153
|
+
# @param resource_group_name [String] The name of the resource group.
|
154
|
+
# @param hub_name [String] The name of the hub.
|
155
|
+
# @param widget_type_name [String] The name of the widget type.
|
156
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
157
|
+
# to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
160
|
+
#
|
161
|
+
def get_async(resource_group_name, hub_name, widget_type_name, custom_headers:nil)
|
162
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
163
|
+
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
164
|
+
fail ArgumentError, 'widget_type_name is nil' if widget_type_name.nil?
|
165
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
166
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
167
|
+
|
168
|
+
|
169
|
+
request_headers = {}
|
170
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
171
|
+
|
172
|
+
# Set Headers
|
173
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
174
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
175
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}'
|
176
|
+
|
177
|
+
request_url = @base_url || @client.base_url
|
178
|
+
|
179
|
+
options = {
|
180
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
181
|
+
path_params: {'resourceGroupName' => resource_group_name,'hubName' => hub_name,'widgetTypeName' => widget_type_name,'subscriptionId' => @client.subscription_id},
|
182
|
+
query_params: {'api-version' => @client.api_version},
|
183
|
+
headers: request_headers.merge(custom_headers || {}),
|
184
|
+
base_url: request_url
|
185
|
+
}
|
186
|
+
promise = @client.make_request_async(:get, path_template, options)
|
187
|
+
|
188
|
+
promise = promise.then do |result|
|
189
|
+
http_response = result.response
|
190
|
+
status_code = http_response.status
|
191
|
+
response_content = http_response.body
|
192
|
+
unless status_code == 200
|
193
|
+
error_model = JSON.load(response_content)
|
194
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
195
|
+
end
|
196
|
+
|
197
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
198
|
+
# Deserialize Response
|
199
|
+
if status_code == 200
|
200
|
+
begin
|
201
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
202
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_01_01::Models::WidgetTypeResourceFormat.mapper()
|
203
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
204
|
+
rescue Exception => e
|
205
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
result
|
210
|
+
end
|
211
|
+
|
212
|
+
promise.execute
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# Gets all available widget types in the specified hub.
|
217
|
+
#
|
218
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
219
|
+
# to List operation.
|
220
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
221
|
+
# will be added to the HTTP request.
|
222
|
+
#
|
223
|
+
# @return [WidgetTypeListResult] operation results.
|
224
|
+
#
|
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!
|
227
|
+
response.body unless response.nil?
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# Gets all available widget types in the specified hub.
|
232
|
+
#
|
233
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
234
|
+
# to List operation.
|
235
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
|
+
# will be added to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
239
|
+
#
|
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!
|
242
|
+
end
|
243
|
+
|
244
|
+
#
|
245
|
+
# Gets all available widget types in the specified hub.
|
246
|
+
#
|
247
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
248
|
+
# to List operation.
|
249
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
250
|
+
# to the HTTP request.
|
251
|
+
#
|
252
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
253
|
+
#
|
254
|
+
def list_by_hub_next_async(next_page_link, custom_headers:nil)
|
255
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
256
|
+
|
257
|
+
|
258
|
+
request_headers = {}
|
259
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
260
|
+
|
261
|
+
# Set Headers
|
262
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
263
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
264
|
+
path_template = '{nextLink}'
|
265
|
+
|
266
|
+
request_url = @base_url || @client.base_url
|
267
|
+
|
268
|
+
options = {
|
269
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
270
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
271
|
+
headers: request_headers.merge(custom_headers || {}),
|
272
|
+
base_url: request_url
|
273
|
+
}
|
274
|
+
promise = @client.make_request_async(:get, path_template, options)
|
275
|
+
|
276
|
+
promise = promise.then do |result|
|
277
|
+
http_response = result.response
|
278
|
+
status_code = http_response.status
|
279
|
+
response_content = http_response.body
|
280
|
+
unless status_code == 200
|
281
|
+
error_model = JSON.load(response_content)
|
282
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
283
|
+
end
|
284
|
+
|
285
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
286
|
+
# Deserialize Response
|
287
|
+
if status_code == 200
|
288
|
+
begin
|
289
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
290
|
+
result_mapper = Azure::CustomerInsights::Mgmt::V2017_01_01::Models::WidgetTypeListResult.mapper()
|
291
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
292
|
+
rescue Exception => e
|
293
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
result
|
298
|
+
end
|
299
|
+
|
300
|
+
promise.execute
|
301
|
+
end
|
302
|
+
|
303
|
+
#
|
304
|
+
# Gets all available widget types in the specified hub.
|
305
|
+
#
|
306
|
+
# @param resource_group_name [String] The name of the resource group.
|
307
|
+
# @param hub_name [String] The name of the hub.
|
308
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
309
|
+
# will be added to the HTTP request.
|
310
|
+
#
|
311
|
+
# @return [WidgetTypeListResult] which provide lazy access to pages of the
|
312
|
+
# response.
|
313
|
+
#
|
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!
|
316
|
+
unless response.nil?
|
317
|
+
page = response.body
|
318
|
+
page.next_method = Proc.new do |next_page_link|
|
319
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
|
320
|
+
end
|
321
|
+
page
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
end
|
326
|
+
end
|
@@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
37
37
|
#
|
38
38
|
# @return [AuthorizationPolicyResourceFormat] operation results.
|
39
39
|
#
|
40
|
-
def create_or_update(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers
|
41
|
-
response = create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers).value!
|
40
|
+
def create_or_update(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil)
|
41
|
+
response = create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:custom_headers).value!
|
42
42
|
response.body unless response.nil?
|
43
43
|
end
|
44
44
|
|
@@ -55,8 +55,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
55
55
|
#
|
56
56
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
57
|
#
|
58
|
-
def create_or_update_with_http_info(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers
|
59
|
-
create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers).value!
|
58
|
+
def create_or_update_with_http_info(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil)
|
59
|
+
create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:custom_headers).value!
|
60
60
|
end
|
61
61
|
|
62
62
|
#
|
@@ -72,7 +72,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
72
72
|
#
|
73
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
74
|
#
|
75
|
-
def create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers
|
75
|
+
def create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil)
|
76
76
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
77
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
78
78
|
fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil?
|
@@ -85,13 +85,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
92
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
93
|
|
93
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
94
|
-
|
95
94
|
# Serialize Request
|
96
95
|
request_mapper = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyResourceFormat.mapper()
|
97
96
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -159,8 +158,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
159
158
|
#
|
160
159
|
# @return [AuthorizationPolicyResourceFormat] operation results.
|
161
160
|
#
|
162
|
-
def get(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
163
|
-
response = get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
161
|
+
def get(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
162
|
+
response = get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
164
163
|
response.body unless response.nil?
|
165
164
|
end
|
166
165
|
|
@@ -175,8 +174,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
175
174
|
#
|
176
175
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
177
176
|
#
|
178
|
-
def get_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
179
|
-
get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
177
|
+
def get_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
178
|
+
get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
180
179
|
end
|
181
180
|
|
182
181
|
#
|
@@ -190,7 +189,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
190
189
|
#
|
191
190
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
192
191
|
#
|
193
|
-
def get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
192
|
+
def get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
194
193
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
195
194
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
196
195
|
fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil?
|
@@ -199,6 +198,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
199
198
|
|
200
199
|
|
201
200
|
request_headers = {}
|
201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
202
202
|
|
203
203
|
# Set Headers
|
204
204
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -253,8 +253,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
253
253
|
#
|
254
254
|
# @return [Array<AuthorizationPolicyResourceFormat>] operation results.
|
255
255
|
#
|
256
|
-
def list_by_hub(resource_group_name, hub_name, custom_headers
|
257
|
-
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers)
|
256
|
+
def list_by_hub(resource_group_name, hub_name, custom_headers:nil)
|
257
|
+
first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers)
|
258
258
|
first_page.get_all_items
|
259
259
|
end
|
260
260
|
|
@@ -268,8 +268,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
268
268
|
#
|
269
269
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
270
270
|
#
|
271
|
-
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers
|
272
|
-
list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
271
|
+
def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil)
|
272
|
+
list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
273
273
|
end
|
274
274
|
|
275
275
|
#
|
@@ -282,7 +282,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
282
282
|
#
|
283
283
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
284
284
|
#
|
285
|
-
def list_by_hub_async(resource_group_name, hub_name, custom_headers
|
285
|
+
def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil)
|
286
286
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
287
287
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
288
288
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -290,6 +290,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
290
290
|
|
291
291
|
|
292
292
|
request_headers = {}
|
293
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
293
294
|
|
294
295
|
# Set Headers
|
295
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -345,8 +346,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
345
346
|
#
|
346
347
|
# @return [AuthorizationPolicy] operation results.
|
347
348
|
#
|
348
|
-
def regenerate_primary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
349
|
-
response = regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
349
|
+
def regenerate_primary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
350
|
+
response = regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
350
351
|
response.body unless response.nil?
|
351
352
|
end
|
352
353
|
|
@@ -361,8 +362,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
361
362
|
#
|
362
363
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
363
364
|
#
|
364
|
-
def regenerate_primary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
365
|
-
regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
365
|
+
def regenerate_primary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
366
|
+
regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
366
367
|
end
|
367
368
|
|
368
369
|
#
|
@@ -376,7 +377,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
376
377
|
#
|
377
378
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
378
379
|
#
|
379
|
-
def regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
380
|
+
def regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
380
381
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
381
382
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
382
383
|
fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_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
|
@@ -440,8 +442,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
440
442
|
#
|
441
443
|
# @return [AuthorizationPolicy] operation results.
|
442
444
|
#
|
443
|
-
def regenerate_secondary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
444
|
-
response = regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
445
|
+
def regenerate_secondary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
446
|
+
response = regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
445
447
|
response.body unless response.nil?
|
446
448
|
end
|
447
449
|
|
@@ -456,8 +458,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
456
458
|
#
|
457
459
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
458
460
|
#
|
459
|
-
def regenerate_secondary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
460
|
-
regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value!
|
461
|
+
def regenerate_secondary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
462
|
+
regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value!
|
461
463
|
end
|
462
464
|
|
463
465
|
#
|
@@ -471,7 +473,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
471
473
|
#
|
472
474
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
473
475
|
#
|
474
|
-
def regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers
|
476
|
+
def regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil)
|
475
477
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
476
478
|
fail ArgumentError, 'hub_name is nil' if hub_name.nil?
|
477
479
|
fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil?
|
@@ -480,6 +482,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
480
482
|
|
481
483
|
|
482
484
|
request_headers = {}
|
485
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
483
486
|
|
484
487
|
# Set Headers
|
485
488
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -534,8 +537,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
534
537
|
#
|
535
538
|
# @return [AuthorizationPolicyListResult] operation results.
|
536
539
|
#
|
537
|
-
def list_by_hub_next(next_page_link, custom_headers
|
538
|
-
response = list_by_hub_next_async(next_page_link, custom_headers).value!
|
540
|
+
def list_by_hub_next(next_page_link, custom_headers:nil)
|
541
|
+
response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
539
542
|
response.body unless response.nil?
|
540
543
|
end
|
541
544
|
|
@@ -549,8 +552,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
549
552
|
#
|
550
553
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
551
554
|
#
|
552
|
-
def list_by_hub_next_with_http_info(next_page_link, custom_headers
|
553
|
-
list_by_hub_next_async(next_page_link, custom_headers).value!
|
555
|
+
def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil)
|
556
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value!
|
554
557
|
end
|
555
558
|
|
556
559
|
#
|
@@ -563,11 +566,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
563
566
|
#
|
564
567
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
565
568
|
#
|
566
|
-
def list_by_hub_next_async(next_page_link, custom_headers
|
569
|
+
def list_by_hub_next_async(next_page_link, custom_headers:nil)
|
567
570
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
568
571
|
|
569
572
|
|
570
573
|
request_headers = {}
|
574
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
571
575
|
|
572
576
|
# Set Headers
|
573
577
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -622,12 +626,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26
|
|
622
626
|
# @return [AuthorizationPolicyListResult] which provide lazy access to pages of
|
623
627
|
# the response.
|
624
628
|
#
|
625
|
-
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers
|
626
|
-
response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value!
|
629
|
+
def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil)
|
630
|
+
response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value!
|
627
631
|
unless response.nil?
|
628
632
|
page = response.body
|
629
633
|
page.next_method = Proc.new do |next_page_link|
|
630
|
-
list_by_hub_next_async(next_page_link, custom_headers)
|
634
|
+
list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
|
631
635
|
end
|
632
636
|
page
|
633
637
|
end
|