azure_mgmt_monitor 0.17.6 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +11 -8
- data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +24 -19
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +35 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -9
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension.rb +80 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension_operation_type.rb +16 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +14 -14
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +21 -21
- data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +16 -11
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +19 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb +150 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb +57 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb +59 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb +82 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +10 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb +405 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +2 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +3 -2
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +3 -4
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +4 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +25 -17
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +10 -10
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_metric_criteria.rb +175 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb +61 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +3 -3
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +2 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb +90 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +56 -31
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +2 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb +142 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/operator.rb +20 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +8 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +2 -2
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb +66 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb +79 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +4 -3
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb +71 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +3 -2
- data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +18 -9
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_monitor/baselines.rb +186 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_metadata.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_sensitivity.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_baselines_response.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_single_dimension.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_baseline.rb +85 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb +129 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/time_series_baseline.rb +127 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -1
- data/lib/2019-06-01/generated/azure_mgmt_monitor.rb +45 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +115 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor.rb +49 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope.rb +123 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope_list_result.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_additional_info.rb +59 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response_common.rb +93 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/operation_status.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_property.rb +46 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource.rb +95 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_scopes_resource.rb +101 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_service_connection_state_property.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource.rb +85 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +148 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_endpoint_connections.rb +641 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_resources.rb +346 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scope_operation_status.rb +122 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scoped_resources.rb +638 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scopes.rb +889 -0
- data/lib/azure_mgmt_monitor.rb +13 -11
- data/lib/profiles/latest/modules/monitor_profile_module.rb +322 -132
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +65 -35
- data/lib/version.rb +1 -1
- metadata +77 -3
@@ -0,0 +1,638 @@
|
|
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::Monitor::Mgmt::V2019_10_17_preview
|
7
|
+
#
|
8
|
+
# Monitor Management Client
|
9
|
+
#
|
10
|
+
class PrivateLinkScopedResources
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateLinkScopedResources class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [MonitorManagementClient] reference to the MonitorManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets a scoped resource in a private link scope.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
29
|
+
# resource.
|
30
|
+
# @param name [String] The name of the scoped resource object.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [ScopedResource] operation results.
|
35
|
+
#
|
36
|
+
def get(resource_group_name, scope_name, name, custom_headers:nil)
|
37
|
+
response = get_async(resource_group_name, scope_name, name, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets a scoped resource in a private link scope.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
46
|
+
# resource.
|
47
|
+
# @param name [String] The name of the scoped resource object.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def get_with_http_info(resource_group_name, scope_name, name, custom_headers:nil)
|
54
|
+
get_async(resource_group_name, scope_name, name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets a scoped resource in a private link scope.
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] The name of the resource group.
|
61
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
62
|
+
# resource.
|
63
|
+
# @param name [String] The name of the scoped resource object.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def get_async(resource_group_name, scope_name, name, custom_headers:nil)
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
72
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
73
|
+
fail ArgumentError, 'scope_name is nil' if scope_name.nil?
|
74
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
|
+
|
80
|
+
# Set Headers
|
81
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}'
|
84
|
+
|
85
|
+
request_url = @base_url || @client.base_url
|
86
|
+
|
87
|
+
options = {
|
88
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'scopeName' => scope_name,'name' => name},
|
90
|
+
query_params: {'api-version' => @client.api_version},
|
91
|
+
headers: request_headers.merge(custom_headers || {}),
|
92
|
+
base_url: request_url
|
93
|
+
}
|
94
|
+
promise = @client.make_request_async(:get, path_template, options)
|
95
|
+
|
96
|
+
promise = promise.then do |result|
|
97
|
+
http_response = result.response
|
98
|
+
status_code = http_response.status
|
99
|
+
response_content = http_response.body
|
100
|
+
unless status_code == 200
|
101
|
+
error_model = JSON.load(response_content)
|
102
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
103
|
+
end
|
104
|
+
|
105
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
107
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
108
|
+
# Deserialize Response
|
109
|
+
if status_code == 200
|
110
|
+
begin
|
111
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
112
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResource.mapper()
|
113
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
114
|
+
rescue Exception => e
|
115
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
promise.execute
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Approve or reject a private endpoint connection with a given name.
|
127
|
+
#
|
128
|
+
# @param resource_group_name [String] The name of the resource group.
|
129
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
130
|
+
# resource.
|
131
|
+
# @param name [String] The name of the scoped resource object.
|
132
|
+
# @param parameters [ScopedResource]
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [ScopedResource] operation results.
|
137
|
+
#
|
138
|
+
def create_or_update(resource_group_name, scope_name, name, parameters, custom_headers:nil)
|
139
|
+
response = create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:custom_headers).value!
|
140
|
+
response.body unless response.nil?
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# @param resource_group_name [String] The name of the resource group.
|
145
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
146
|
+
# resource.
|
147
|
+
# @param name [String] The name of the scoped resource object.
|
148
|
+
# @param parameters [ScopedResource]
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
153
|
+
# response.
|
154
|
+
#
|
155
|
+
def create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:nil)
|
156
|
+
# Send request
|
157
|
+
promise = begin_create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:custom_headers)
|
158
|
+
|
159
|
+
promise = promise.then do |response|
|
160
|
+
# Defining deserialization method.
|
161
|
+
deserialize_method = lambda do |parsed_response|
|
162
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResource.mapper()
|
163
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Waiting for response.
|
167
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
168
|
+
end
|
169
|
+
|
170
|
+
promise
|
171
|
+
end
|
172
|
+
|
173
|
+
#
|
174
|
+
# Deletes a private endpoint connection with a given name.
|
175
|
+
#
|
176
|
+
# @param resource_group_name [String] The name of the resource group.
|
177
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
178
|
+
# resource.
|
179
|
+
# @param name [String] The name of the scoped resource object.
|
180
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
181
|
+
# will be added to the HTTP request.
|
182
|
+
#
|
183
|
+
def delete(resource_group_name, scope_name, name, custom_headers:nil)
|
184
|
+
response = delete_async(resource_group_name, scope_name, name, custom_headers:custom_headers).value!
|
185
|
+
nil
|
186
|
+
end
|
187
|
+
|
188
|
+
#
|
189
|
+
# @param resource_group_name [String] The name of the resource group.
|
190
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
191
|
+
# resource.
|
192
|
+
# @param name [String] The name of the scoped resource object.
|
193
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
194
|
+
# will be added to the HTTP request.
|
195
|
+
#
|
196
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
197
|
+
# response.
|
198
|
+
#
|
199
|
+
def delete_async(resource_group_name, scope_name, name, custom_headers:nil)
|
200
|
+
# Send request
|
201
|
+
promise = begin_delete_async(resource_group_name, scope_name, name, custom_headers:custom_headers)
|
202
|
+
|
203
|
+
promise = promise.then do |response|
|
204
|
+
# Defining deserialization method.
|
205
|
+
deserialize_method = lambda do |parsed_response|
|
206
|
+
end
|
207
|
+
|
208
|
+
# Waiting for response.
|
209
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
210
|
+
end
|
211
|
+
|
212
|
+
promise
|
213
|
+
end
|
214
|
+
|
215
|
+
#
|
216
|
+
# Gets all private endpoint connections on a private link scope.
|
217
|
+
#
|
218
|
+
# @param resource_group_name [String] The name of the resource group.
|
219
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
220
|
+
# resource.
|
221
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
222
|
+
# will be added to the HTTP request.
|
223
|
+
#
|
224
|
+
# @return [Array<ScopedResource>] operation results.
|
225
|
+
#
|
226
|
+
def list_by_private_link_scope(resource_group_name, scope_name, custom_headers:nil)
|
227
|
+
first_page = list_by_private_link_scope_as_lazy(resource_group_name, scope_name, custom_headers:custom_headers)
|
228
|
+
first_page.get_all_items
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
# Gets all private endpoint connections on a private link scope.
|
233
|
+
#
|
234
|
+
# @param resource_group_name [String] The name of the resource group.
|
235
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
236
|
+
# resource.
|
237
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
238
|
+
# will be added to the HTTP request.
|
239
|
+
#
|
240
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
241
|
+
#
|
242
|
+
def list_by_private_link_scope_with_http_info(resource_group_name, scope_name, custom_headers:nil)
|
243
|
+
list_by_private_link_scope_async(resource_group_name, scope_name, custom_headers:custom_headers).value!
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# Gets all private endpoint connections on a private link scope.
|
248
|
+
#
|
249
|
+
# @param resource_group_name [String] The name of the resource group.
|
250
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
251
|
+
# resource.
|
252
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
253
|
+
# to the HTTP request.
|
254
|
+
#
|
255
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
256
|
+
#
|
257
|
+
def list_by_private_link_scope_async(resource_group_name, scope_name, custom_headers:nil)
|
258
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
259
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
260
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
261
|
+
fail ArgumentError, 'scope_name is nil' if scope_name.nil?
|
262
|
+
|
263
|
+
|
264
|
+
request_headers = {}
|
265
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
266
|
+
|
267
|
+
# Set Headers
|
268
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
269
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
270
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources'
|
271
|
+
|
272
|
+
request_url = @base_url || @client.base_url
|
273
|
+
|
274
|
+
options = {
|
275
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
276
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'scopeName' => scope_name},
|
277
|
+
query_params: {'api-version' => @client.api_version},
|
278
|
+
headers: request_headers.merge(custom_headers || {}),
|
279
|
+
base_url: request_url
|
280
|
+
}
|
281
|
+
promise = @client.make_request_async(:get, path_template, options)
|
282
|
+
|
283
|
+
promise = promise.then do |result|
|
284
|
+
http_response = result.response
|
285
|
+
status_code = http_response.status
|
286
|
+
response_content = http_response.body
|
287
|
+
unless status_code == 200
|
288
|
+
error_model = JSON.load(response_content)
|
289
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
290
|
+
end
|
291
|
+
|
292
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
293
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
294
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
295
|
+
# Deserialize Response
|
296
|
+
if status_code == 200
|
297
|
+
begin
|
298
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
299
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResourceListResult.mapper()
|
300
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
301
|
+
rescue Exception => e
|
302
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
result
|
307
|
+
end
|
308
|
+
|
309
|
+
promise.execute
|
310
|
+
end
|
311
|
+
|
312
|
+
#
|
313
|
+
# Approve or reject a private endpoint connection with a given name.
|
314
|
+
#
|
315
|
+
# @param resource_group_name [String] The name of the resource group.
|
316
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
317
|
+
# resource.
|
318
|
+
# @param name [String] The name of the scoped resource object.
|
319
|
+
# @param parameters [ScopedResource]
|
320
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
321
|
+
# will be added to the HTTP request.
|
322
|
+
#
|
323
|
+
# @return [ScopedResource] operation results.
|
324
|
+
#
|
325
|
+
def begin_create_or_update(resource_group_name, scope_name, name, parameters, custom_headers:nil)
|
326
|
+
response = begin_create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:custom_headers).value!
|
327
|
+
response.body unless response.nil?
|
328
|
+
end
|
329
|
+
|
330
|
+
#
|
331
|
+
# Approve or reject a private endpoint connection with a given name.
|
332
|
+
#
|
333
|
+
# @param resource_group_name [String] The name of the resource group.
|
334
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
335
|
+
# resource.
|
336
|
+
# @param name [String] The name of the scoped resource object.
|
337
|
+
# @param parameters [ScopedResource]
|
338
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
339
|
+
# will be added to the HTTP request.
|
340
|
+
#
|
341
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
342
|
+
#
|
343
|
+
def begin_create_or_update_with_http_info(resource_group_name, scope_name, name, parameters, custom_headers:nil)
|
344
|
+
begin_create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:custom_headers).value!
|
345
|
+
end
|
346
|
+
|
347
|
+
#
|
348
|
+
# Approve or reject a private endpoint connection with a given name.
|
349
|
+
#
|
350
|
+
# @param resource_group_name [String] The name of the resource group.
|
351
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
352
|
+
# resource.
|
353
|
+
# @param name [String] The name of the scoped resource object.
|
354
|
+
# @param parameters [ScopedResource]
|
355
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
356
|
+
# to the HTTP request.
|
357
|
+
#
|
358
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
359
|
+
#
|
360
|
+
def begin_create_or_update_async(resource_group_name, scope_name, name, parameters, custom_headers:nil)
|
361
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
362
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
363
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
364
|
+
fail ArgumentError, 'scope_name is nil' if scope_name.nil?
|
365
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
366
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
367
|
+
|
368
|
+
|
369
|
+
request_headers = {}
|
370
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
371
|
+
|
372
|
+
# Set Headers
|
373
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
374
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
375
|
+
|
376
|
+
# Serialize Request
|
377
|
+
request_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResource.mapper()
|
378
|
+
request_content = @client.serialize(request_mapper, parameters)
|
379
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
380
|
+
|
381
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}'
|
382
|
+
|
383
|
+
request_url = @base_url || @client.base_url
|
384
|
+
|
385
|
+
options = {
|
386
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
387
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'scopeName' => scope_name,'name' => name},
|
388
|
+
query_params: {'api-version' => @client.api_version},
|
389
|
+
body: request_content,
|
390
|
+
headers: request_headers.merge(custom_headers || {}),
|
391
|
+
base_url: request_url
|
392
|
+
}
|
393
|
+
promise = @client.make_request_async(:put, path_template, options)
|
394
|
+
|
395
|
+
promise = promise.then do |result|
|
396
|
+
http_response = result.response
|
397
|
+
status_code = http_response.status
|
398
|
+
response_content = http_response.body
|
399
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
400
|
+
error_model = JSON.load(response_content)
|
401
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
402
|
+
end
|
403
|
+
|
404
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
405
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
406
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
407
|
+
# Deserialize Response
|
408
|
+
if status_code == 200
|
409
|
+
begin
|
410
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
411
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResource.mapper()
|
412
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
413
|
+
rescue Exception => e
|
414
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
415
|
+
end
|
416
|
+
end
|
417
|
+
# Deserialize Response
|
418
|
+
if status_code == 201
|
419
|
+
begin
|
420
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
421
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResource.mapper()
|
422
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
423
|
+
rescue Exception => e
|
424
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
result
|
429
|
+
end
|
430
|
+
|
431
|
+
promise.execute
|
432
|
+
end
|
433
|
+
|
434
|
+
#
|
435
|
+
# Deletes a private endpoint connection with a given name.
|
436
|
+
#
|
437
|
+
# @param resource_group_name [String] The name of the resource group.
|
438
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
439
|
+
# resource.
|
440
|
+
# @param name [String] The name of the scoped resource object.
|
441
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
442
|
+
# will be added to the HTTP request.
|
443
|
+
#
|
444
|
+
#
|
445
|
+
def begin_delete(resource_group_name, scope_name, name, custom_headers:nil)
|
446
|
+
response = begin_delete_async(resource_group_name, scope_name, name, custom_headers:custom_headers).value!
|
447
|
+
nil
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# Deletes a private endpoint connection with a given name.
|
452
|
+
#
|
453
|
+
# @param resource_group_name [String] The name of the resource group.
|
454
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
455
|
+
# resource.
|
456
|
+
# @param name [String] The name of the scoped resource object.
|
457
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
458
|
+
# will be added to the HTTP request.
|
459
|
+
#
|
460
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
461
|
+
#
|
462
|
+
def begin_delete_with_http_info(resource_group_name, scope_name, name, custom_headers:nil)
|
463
|
+
begin_delete_async(resource_group_name, scope_name, name, custom_headers:custom_headers).value!
|
464
|
+
end
|
465
|
+
|
466
|
+
#
|
467
|
+
# Deletes a private endpoint connection with a given name.
|
468
|
+
#
|
469
|
+
# @param resource_group_name [String] The name of the resource group.
|
470
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
471
|
+
# resource.
|
472
|
+
# @param name [String] The name of the scoped resource object.
|
473
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
474
|
+
# to the HTTP request.
|
475
|
+
#
|
476
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
477
|
+
#
|
478
|
+
def begin_delete_async(resource_group_name, scope_name, name, custom_headers:nil)
|
479
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
480
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
481
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
482
|
+
fail ArgumentError, 'scope_name is nil' if scope_name.nil?
|
483
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
484
|
+
|
485
|
+
|
486
|
+
request_headers = {}
|
487
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
488
|
+
|
489
|
+
# Set Headers
|
490
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
491
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
492
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}'
|
493
|
+
|
494
|
+
request_url = @base_url || @client.base_url
|
495
|
+
|
496
|
+
options = {
|
497
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
498
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'scopeName' => scope_name,'name' => name},
|
499
|
+
query_params: {'api-version' => @client.api_version},
|
500
|
+
headers: request_headers.merge(custom_headers || {}),
|
501
|
+
base_url: request_url
|
502
|
+
}
|
503
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
504
|
+
|
505
|
+
promise = promise.then do |result|
|
506
|
+
http_response = result.response
|
507
|
+
status_code = http_response.status
|
508
|
+
response_content = http_response.body
|
509
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
510
|
+
error_model = JSON.load(response_content)
|
511
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
512
|
+
end
|
513
|
+
|
514
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
515
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
516
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
517
|
+
|
518
|
+
result
|
519
|
+
end
|
520
|
+
|
521
|
+
promise.execute
|
522
|
+
end
|
523
|
+
|
524
|
+
#
|
525
|
+
# Gets all private endpoint connections on a private link scope.
|
526
|
+
#
|
527
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
528
|
+
# to List operation.
|
529
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
530
|
+
# will be added to the HTTP request.
|
531
|
+
#
|
532
|
+
# @return [ScopedResourceListResult] operation results.
|
533
|
+
#
|
534
|
+
def list_by_private_link_scope_next(next_page_link, custom_headers:nil)
|
535
|
+
response = list_by_private_link_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
536
|
+
response.body unless response.nil?
|
537
|
+
end
|
538
|
+
|
539
|
+
#
|
540
|
+
# Gets all private endpoint connections on a private link scope.
|
541
|
+
#
|
542
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
543
|
+
# to List operation.
|
544
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
545
|
+
# will be added to the HTTP request.
|
546
|
+
#
|
547
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
548
|
+
#
|
549
|
+
def list_by_private_link_scope_next_with_http_info(next_page_link, custom_headers:nil)
|
550
|
+
list_by_private_link_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
551
|
+
end
|
552
|
+
|
553
|
+
#
|
554
|
+
# Gets all private endpoint connections on a private link scope.
|
555
|
+
#
|
556
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
557
|
+
# to List operation.
|
558
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
559
|
+
# to the HTTP request.
|
560
|
+
#
|
561
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
562
|
+
#
|
563
|
+
def list_by_private_link_scope_next_async(next_page_link, custom_headers:nil)
|
564
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
565
|
+
|
566
|
+
|
567
|
+
request_headers = {}
|
568
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
|
+
|
570
|
+
# Set Headers
|
571
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
572
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
573
|
+
path_template = '{nextLink}'
|
574
|
+
|
575
|
+
request_url = @base_url || @client.base_url
|
576
|
+
|
577
|
+
options = {
|
578
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
579
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
580
|
+
headers: request_headers.merge(custom_headers || {}),
|
581
|
+
base_url: request_url
|
582
|
+
}
|
583
|
+
promise = @client.make_request_async(:get, path_template, options)
|
584
|
+
|
585
|
+
promise = promise.then do |result|
|
586
|
+
http_response = result.response
|
587
|
+
status_code = http_response.status
|
588
|
+
response_content = http_response.body
|
589
|
+
unless status_code == 200
|
590
|
+
error_model = JSON.load(response_content)
|
591
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
592
|
+
end
|
593
|
+
|
594
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
595
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
596
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
597
|
+
# Deserialize Response
|
598
|
+
if status_code == 200
|
599
|
+
begin
|
600
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
601
|
+
result_mapper = Azure::Monitor::Mgmt::V2019_10_17_preview::Models::ScopedResourceListResult.mapper()
|
602
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
603
|
+
rescue Exception => e
|
604
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
result
|
609
|
+
end
|
610
|
+
|
611
|
+
promise.execute
|
612
|
+
end
|
613
|
+
|
614
|
+
#
|
615
|
+
# Gets all private endpoint connections on a private link scope.
|
616
|
+
#
|
617
|
+
# @param resource_group_name [String] The name of the resource group.
|
618
|
+
# @param scope_name [String] The name of the Azure Monitor PrivateLinkScope
|
619
|
+
# resource.
|
620
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
621
|
+
# will be added to the HTTP request.
|
622
|
+
#
|
623
|
+
# @return [ScopedResourceListResult] which provide lazy access to pages of the
|
624
|
+
# response.
|
625
|
+
#
|
626
|
+
def list_by_private_link_scope_as_lazy(resource_group_name, scope_name, custom_headers:nil)
|
627
|
+
response = list_by_private_link_scope_async(resource_group_name, scope_name, custom_headers:custom_headers).value!
|
628
|
+
unless response.nil?
|
629
|
+
page = response.body
|
630
|
+
page.next_method = Proc.new do |next_page_link|
|
631
|
+
list_by_private_link_scope_next_async(next_page_link, custom_headers:custom_headers)
|
632
|
+
end
|
633
|
+
page
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
end
|
638
|
+
end
|