azure_mgmt_peering 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering.rb +85 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/legacy_peerings.rb +242 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/bgp_session.rb +170 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/check_service_provider_availability_input.rb +57 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/connection_state.rb +22 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/contact_info.rb +73 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/direct_connection.rb +131 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/direct_peering_facility.rb +80 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/direct_peering_type.rb +18 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/error_response.rb +59 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/exchange_connection.rb +84 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/exchange_peering_facility.rb +128 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/family.rb +16 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/kind.rb +16 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/learned_type.rb +17 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/name.rb +20 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/operation.rb +74 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/operation_display_info.rb +83 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/operation_list_result.rb +99 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peer_asn.rb +109 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peer_asn_list_result.rb +98 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering.rb +168 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_bandwidth_offer.rb +57 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_list_result.rb +98 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location.rb +134 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location_list_result.rb +98 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location_properties_direct.rb +77 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_location_properties_exchange.rb +56 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_properties_direct.rb +92 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_properties_exchange.rb +68 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service.rb +127 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_list_result.rb +98 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_location.rb +95 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_location_list_result.rb +100 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_prefix.rb +111 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_prefix_list_result.rb +98 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_provider.rb +73 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_provider_list_result.rb +100 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_sku.rb +85 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/prefix_validation_state.rb +20 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/provisioning_state.rb +18 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/resource.rb +80 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/resource_tags.rb +55 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/session_address_provider.rb +16 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/session_state_v4.rb +25 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/session_state_v6.rb +25 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/size.rb +17 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/sub_resource.rb +46 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/tier.rb +16 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/validation_state.rb +18 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/module_definition.rb +9 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/operations.rb +219 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peer_asns.rb +507 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_client.rb +283 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_locations.rb +245 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_service_locations.rb +228 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_service_prefixes.rb +332 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_service_providers.rb +228 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peering_services.rb +841 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/peerings.rb +831 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_peering/prefixes.rb +231 -0
- data/lib/azure_mgmt_peering.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/peering_profile_module.rb +271 -0
- data/lib/profiles/latest/peering_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/peering_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +185 -0
@@ -0,0 +1,231 @@
|
|
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::Peering::Mgmt::V2019_08_01_preview
|
7
|
+
#
|
8
|
+
# Peering Client
|
9
|
+
#
|
10
|
+
class Prefixes
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Prefixes class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [PeeringClient] reference to the PeeringClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists the peerings prefix in the resource group.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The resource group name.
|
28
|
+
# @param peering_service_name [String] The peering service name.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<PeeringServicePrefix>] operation results.
|
33
|
+
#
|
34
|
+
def list_by_peering_service(resource_group_name, peering_service_name, custom_headers:nil)
|
35
|
+
first_page = list_by_peering_service_as_lazy(resource_group_name, peering_service_name, custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Lists the peerings prefix in the resource group.
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The resource group name.
|
43
|
+
# @param peering_service_name [String] The peering service name.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_by_peering_service_with_http_info(resource_group_name, peering_service_name, custom_headers:nil)
|
50
|
+
list_by_peering_service_async(resource_group_name, peering_service_name, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Lists the peerings prefix in the resource group.
|
55
|
+
#
|
56
|
+
# @param resource_group_name [String] The resource group name.
|
57
|
+
# @param peering_service_name [String] The peering service name.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_by_peering_service_async(resource_group_name, peering_service_name, custom_headers:nil)
|
64
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
65
|
+
fail ArgumentError, 'peering_service_name is nil' if peering_service_name.nil?
|
66
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
72
|
+
|
73
|
+
# Set Headers
|
74
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes'
|
77
|
+
|
78
|
+
request_url = @base_url || @client.base_url
|
79
|
+
|
80
|
+
options = {
|
81
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
82
|
+
path_params: {'resourceGroupName' => resource_group_name,'peeringServiceName' => peering_service_name,'subscriptionId' => @client.subscription_id},
|
83
|
+
query_params: {'api-version' => @client.api_version},
|
84
|
+
headers: request_headers.merge(custom_headers || {}),
|
85
|
+
base_url: request_url
|
86
|
+
}
|
87
|
+
promise = @client.make_request_async(:get, path_template, options)
|
88
|
+
|
89
|
+
promise = promise.then do |result|
|
90
|
+
http_response = result.response
|
91
|
+
status_code = http_response.status
|
92
|
+
response_content = http_response.body
|
93
|
+
unless status_code == 200
|
94
|
+
error_model = JSON.load(response_content)
|
95
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
96
|
+
end
|
97
|
+
|
98
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
100
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
101
|
+
# Deserialize Response
|
102
|
+
if status_code == 200
|
103
|
+
begin
|
104
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
105
|
+
result_mapper = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefixListResult.mapper()
|
106
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
107
|
+
rescue Exception => e
|
108
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
result
|
113
|
+
end
|
114
|
+
|
115
|
+
promise.execute
|
116
|
+
end
|
117
|
+
|
118
|
+
#
|
119
|
+
# Lists the peerings prefix in the resource group.
|
120
|
+
#
|
121
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
122
|
+
# to List operation.
|
123
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
124
|
+
# will be added to the HTTP request.
|
125
|
+
#
|
126
|
+
# @return [PeeringServicePrefixListResult] operation results.
|
127
|
+
#
|
128
|
+
def list_by_peering_service_next(next_page_link, custom_headers:nil)
|
129
|
+
response = list_by_peering_service_next_async(next_page_link, custom_headers:custom_headers).value!
|
130
|
+
response.body unless response.nil?
|
131
|
+
end
|
132
|
+
|
133
|
+
#
|
134
|
+
# Lists the peerings prefix in the resource group.
|
135
|
+
#
|
136
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
137
|
+
# to List operation.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def list_by_peering_service_next_with_http_info(next_page_link, custom_headers:nil)
|
144
|
+
list_by_peering_service_next_async(next_page_link, custom_headers:custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Lists the peerings prefix in the resource group.
|
149
|
+
#
|
150
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
151
|
+
# to List operation.
|
152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
|
+
# to the HTTP request.
|
154
|
+
#
|
155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
|
+
#
|
157
|
+
def list_by_peering_service_next_async(next_page_link, custom_headers:nil)
|
158
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
159
|
+
|
160
|
+
|
161
|
+
request_headers = {}
|
162
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
163
|
+
|
164
|
+
# Set Headers
|
165
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
166
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
167
|
+
path_template = '{nextLink}'
|
168
|
+
|
169
|
+
request_url = @base_url || @client.base_url
|
170
|
+
|
171
|
+
options = {
|
172
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
173
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
174
|
+
headers: request_headers.merge(custom_headers || {}),
|
175
|
+
base_url: request_url
|
176
|
+
}
|
177
|
+
promise = @client.make_request_async(:get, path_template, options)
|
178
|
+
|
179
|
+
promise = promise.then do |result|
|
180
|
+
http_response = result.response
|
181
|
+
status_code = http_response.status
|
182
|
+
response_content = http_response.body
|
183
|
+
unless status_code == 200
|
184
|
+
error_model = JSON.load(response_content)
|
185
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
186
|
+
end
|
187
|
+
|
188
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
190
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
191
|
+
# Deserialize Response
|
192
|
+
if status_code == 200
|
193
|
+
begin
|
194
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
195
|
+
result_mapper = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefixListResult.mapper()
|
196
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
197
|
+
rescue Exception => e
|
198
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
result
|
203
|
+
end
|
204
|
+
|
205
|
+
promise.execute
|
206
|
+
end
|
207
|
+
|
208
|
+
#
|
209
|
+
# Lists the peerings prefix in the resource group.
|
210
|
+
#
|
211
|
+
# @param resource_group_name [String] The resource group name.
|
212
|
+
# @param peering_service_name [String] The peering service name.
|
213
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
214
|
+
# will be added to the HTTP request.
|
215
|
+
#
|
216
|
+
# @return [PeeringServicePrefixListResult] which provide lazy access to pages
|
217
|
+
# of the response.
|
218
|
+
#
|
219
|
+
def list_by_peering_service_as_lazy(resource_group_name, peering_service_name, custom_headers:nil)
|
220
|
+
response = list_by_peering_service_async(resource_group_name, peering_service_name, custom_headers:custom_headers).value!
|
221
|
+
unless response.nil?
|
222
|
+
page = response.body
|
223
|
+
page.next_method = Proc.new do |next_page_link|
|
224
|
+
list_by_peering_service_next_async(next_page_link, custom_headers:custom_headers)
|
225
|
+
end
|
226
|
+
page
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
end
|
231
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require '2019-08-01-preview/generated/azure_mgmt_peering'
|
6
|
+
require 'profiles/latest/peering_latest_profile_client'
|
@@ -0,0 +1,271 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_peering'
|
6
|
+
|
7
|
+
module Azure::Peering::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
LegacyPeerings = Azure::Peering::Mgmt::V2019_08_01_preview::LegacyPeerings
|
10
|
+
Operations = Azure::Peering::Mgmt::V2019_08_01_preview::Operations
|
11
|
+
PeerAsns = Azure::Peering::Mgmt::V2019_08_01_preview::PeerAsns
|
12
|
+
PeeringLocations = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringLocations
|
13
|
+
Peerings = Azure::Peering::Mgmt::V2019_08_01_preview::Peerings
|
14
|
+
PeeringServiceLocations = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringServiceLocations
|
15
|
+
PeeringServicePrefixes = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringServicePrefixes
|
16
|
+
Prefixes = Azure::Peering::Mgmt::V2019_08_01_preview::Prefixes
|
17
|
+
PeeringServiceProviders = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringServiceProviders
|
18
|
+
PeeringServices = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringServices
|
19
|
+
|
20
|
+
module Models
|
21
|
+
PeeringBandwidthOffer = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringBandwidthOffer
|
22
|
+
CheckServiceProviderAvailabilityInput = Azure::Peering::Mgmt::V2019_08_01_preview::Models::CheckServiceProviderAvailabilityInput
|
23
|
+
PeeringLocationPropertiesDirect = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationPropertiesDirect
|
24
|
+
BgpSession = Azure::Peering::Mgmt::V2019_08_01_preview::Models::BgpSession
|
25
|
+
ExchangePeeringFacility = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangePeeringFacility
|
26
|
+
SubResource = Azure::Peering::Mgmt::V2019_08_01_preview::Models::SubResource
|
27
|
+
PeeringLocationPropertiesExchange = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationPropertiesExchange
|
28
|
+
ExchangeConnection = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangeConnection
|
29
|
+
DirectConnection = Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectConnection
|
30
|
+
PeeringPropertiesDirect = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringPropertiesDirect
|
31
|
+
PeeringListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringListResult
|
32
|
+
PeeringPropertiesExchange = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringPropertiesExchange
|
33
|
+
Operation = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Operation
|
34
|
+
ContactInfo = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ContactInfo
|
35
|
+
PeeringLocationListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationListResult
|
36
|
+
PeerAsnListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeerAsnListResult
|
37
|
+
ResourceTags = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ResourceTags
|
38
|
+
PeeringSku = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringSku
|
39
|
+
Resource = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Resource
|
40
|
+
OperationDisplayInfo = Azure::Peering::Mgmt::V2019_08_01_preview::Models::OperationDisplayInfo
|
41
|
+
PeeringServiceLocationListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceLocationListResult
|
42
|
+
PeeringServiceProviderListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceProviderListResult
|
43
|
+
DirectPeeringFacility = Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectPeeringFacility
|
44
|
+
ErrorResponse = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ErrorResponse
|
45
|
+
OperationListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::OperationListResult
|
46
|
+
PeeringServicePrefixListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefixListResult
|
47
|
+
PeeringServiceListResult = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceListResult
|
48
|
+
Peering = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Peering
|
49
|
+
PeerAsn = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeerAsn
|
50
|
+
PeeringLocation = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocation
|
51
|
+
PeeringServiceLocation = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceLocation
|
52
|
+
PeeringServicePrefix = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefix
|
53
|
+
PeeringServiceProvider = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceProvider
|
54
|
+
PeeringService = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringService
|
55
|
+
Name = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Name
|
56
|
+
Tier = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Tier
|
57
|
+
Family = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Family
|
58
|
+
Size = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Size
|
59
|
+
Kind = Azure::Peering::Mgmt::V2019_08_01_preview::Models::Kind
|
60
|
+
SessionAddressProvider = Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionAddressProvider
|
61
|
+
ConnectionState = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ConnectionState
|
62
|
+
SessionStateV4 = Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionStateV4
|
63
|
+
SessionStateV6 = Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionStateV6
|
64
|
+
DirectPeeringType = Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectPeeringType
|
65
|
+
ProvisioningState = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ProvisioningState
|
66
|
+
ValidationState = Azure::Peering::Mgmt::V2019_08_01_preview::Models::ValidationState
|
67
|
+
PrefixValidationState = Azure::Peering::Mgmt::V2019_08_01_preview::Models::PrefixValidationState
|
68
|
+
LearnedType = Azure::Peering::Mgmt::V2019_08_01_preview::Models::LearnedType
|
69
|
+
end
|
70
|
+
|
71
|
+
#
|
72
|
+
# PeeringManagementClass
|
73
|
+
#
|
74
|
+
class PeeringManagementClass
|
75
|
+
attr_reader :legacy_peerings, :operations, :peer_asns, :peering_locations, :peerings, :peering_service_locations, :peering_service_prefixes, :prefixes, :peering_service_providers, :peering_services, :configurable, :base_url, :options, :model_classes
|
76
|
+
|
77
|
+
def initialize(options = {})
|
78
|
+
if options.is_a?(Hash) && options.length == 0
|
79
|
+
@options = setup_default_options
|
80
|
+
else
|
81
|
+
@options = options
|
82
|
+
end
|
83
|
+
|
84
|
+
reset!(options)
|
85
|
+
|
86
|
+
@configurable = self
|
87
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
88
|
+
@options = options[:options].nil? ? nil:options[:options]
|
89
|
+
|
90
|
+
@client_0 = Azure::Peering::Mgmt::V2019_08_01_preview::PeeringClient.new(configurable.credentials, base_url, options)
|
91
|
+
if(@client_0.respond_to?(:subscription_id))
|
92
|
+
@client_0.subscription_id = configurable.subscription_id
|
93
|
+
end
|
94
|
+
add_telemetry(@client_0)
|
95
|
+
@legacy_peerings = @client_0.legacy_peerings
|
96
|
+
@operations = @client_0.operations
|
97
|
+
@peer_asns = @client_0.peer_asns
|
98
|
+
@peering_locations = @client_0.peering_locations
|
99
|
+
@peerings = @client_0.peerings
|
100
|
+
@peering_service_locations = @client_0.peering_service_locations
|
101
|
+
@peering_service_prefixes = @client_0.peering_service_prefixes
|
102
|
+
@prefixes = @client_0.prefixes
|
103
|
+
@peering_service_providers = @client_0.peering_service_providers
|
104
|
+
@peering_services = @client_0.peering_services
|
105
|
+
|
106
|
+
@model_classes = ModelClasses.new
|
107
|
+
end
|
108
|
+
|
109
|
+
def add_telemetry(client)
|
110
|
+
profile_information = 'Profiles/Latest/Peering/Mgmt'
|
111
|
+
client.add_user_agent_information(profile_information)
|
112
|
+
end
|
113
|
+
|
114
|
+
def method_missing(method, *args)
|
115
|
+
if @client_0.respond_to?method
|
116
|
+
@client_0.send(method, *args)
|
117
|
+
else
|
118
|
+
super
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
end
|
123
|
+
|
124
|
+
class ModelClasses
|
125
|
+
def peering_bandwidth_offer
|
126
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringBandwidthOffer
|
127
|
+
end
|
128
|
+
def check_service_provider_availability_input
|
129
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::CheckServiceProviderAvailabilityInput
|
130
|
+
end
|
131
|
+
def peering_location_properties_direct
|
132
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationPropertiesDirect
|
133
|
+
end
|
134
|
+
def bgp_session
|
135
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::BgpSession
|
136
|
+
end
|
137
|
+
def exchange_peering_facility
|
138
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangePeeringFacility
|
139
|
+
end
|
140
|
+
def sub_resource
|
141
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::SubResource
|
142
|
+
end
|
143
|
+
def peering_location_properties_exchange
|
144
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationPropertiesExchange
|
145
|
+
end
|
146
|
+
def exchange_connection
|
147
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ExchangeConnection
|
148
|
+
end
|
149
|
+
def direct_connection
|
150
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectConnection
|
151
|
+
end
|
152
|
+
def peering_properties_direct
|
153
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringPropertiesDirect
|
154
|
+
end
|
155
|
+
def peering_list_result
|
156
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringListResult
|
157
|
+
end
|
158
|
+
def peering_properties_exchange
|
159
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringPropertiesExchange
|
160
|
+
end
|
161
|
+
def operation
|
162
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Operation
|
163
|
+
end
|
164
|
+
def contact_info
|
165
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ContactInfo
|
166
|
+
end
|
167
|
+
def peering_location_list_result
|
168
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocationListResult
|
169
|
+
end
|
170
|
+
def peer_asn_list_result
|
171
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeerAsnListResult
|
172
|
+
end
|
173
|
+
def resource_tags
|
174
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ResourceTags
|
175
|
+
end
|
176
|
+
def peering_sku
|
177
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringSku
|
178
|
+
end
|
179
|
+
def resource
|
180
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Resource
|
181
|
+
end
|
182
|
+
def operation_display_info
|
183
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::OperationDisplayInfo
|
184
|
+
end
|
185
|
+
def peering_service_location_list_result
|
186
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceLocationListResult
|
187
|
+
end
|
188
|
+
def peering_service_provider_list_result
|
189
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceProviderListResult
|
190
|
+
end
|
191
|
+
def direct_peering_facility
|
192
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectPeeringFacility
|
193
|
+
end
|
194
|
+
def error_response
|
195
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ErrorResponse
|
196
|
+
end
|
197
|
+
def operation_list_result
|
198
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::OperationListResult
|
199
|
+
end
|
200
|
+
def peering_service_prefix_list_result
|
201
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefixListResult
|
202
|
+
end
|
203
|
+
def peering_service_list_result
|
204
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceListResult
|
205
|
+
end
|
206
|
+
def peering
|
207
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Peering
|
208
|
+
end
|
209
|
+
def peer_asn
|
210
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeerAsn
|
211
|
+
end
|
212
|
+
def peering_location
|
213
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringLocation
|
214
|
+
end
|
215
|
+
def peering_service_location
|
216
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceLocation
|
217
|
+
end
|
218
|
+
def peering_service_prefix
|
219
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServicePrefix
|
220
|
+
end
|
221
|
+
def peering_service_provider
|
222
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringServiceProvider
|
223
|
+
end
|
224
|
+
def peering_service
|
225
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PeeringService
|
226
|
+
end
|
227
|
+
def name
|
228
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Name
|
229
|
+
end
|
230
|
+
def tier
|
231
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Tier
|
232
|
+
end
|
233
|
+
def family
|
234
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Family
|
235
|
+
end
|
236
|
+
def size
|
237
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Size
|
238
|
+
end
|
239
|
+
def kind
|
240
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::Kind
|
241
|
+
end
|
242
|
+
def session_address_provider
|
243
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionAddressProvider
|
244
|
+
end
|
245
|
+
def connection_state
|
246
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ConnectionState
|
247
|
+
end
|
248
|
+
def session_state_v4
|
249
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionStateV4
|
250
|
+
end
|
251
|
+
def session_state_v6
|
252
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::SessionStateV6
|
253
|
+
end
|
254
|
+
def direct_peering_type
|
255
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::DirectPeeringType
|
256
|
+
end
|
257
|
+
def provisioning_state
|
258
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ProvisioningState
|
259
|
+
end
|
260
|
+
def validation_state
|
261
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::ValidationState
|
262
|
+
end
|
263
|
+
def prefix_validation_state
|
264
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::PrefixValidationState
|
265
|
+
end
|
266
|
+
def learned_type
|
267
|
+
Azure::Peering::Mgmt::V2019_08_01_preview::Models::LearnedType
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|