azure_mgmt_network 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_network.rb +91 -82
- data/lib/generated/azure_mgmt_network/application_gateways.rb +17 -20
- data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +216 -0
- data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +9 -12
- data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +9 -12
- data/lib/generated/azure_mgmt_network/express_route_circuits.rb +21 -24
- data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +3 -6
- data/lib/generated/azure_mgmt_network/load_balancers.rb +11 -14
- data/lib/generated/azure_mgmt_network/local_network_gateways.rb +9 -12
- data/lib/generated/azure_mgmt_network/models/{network_operation_status.rb → access.rb} +4 -5
- data/lib/generated/azure_mgmt_network/models/{error.rb → bgp_service_community.rb} +39 -36
- data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +13 -1
- data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +144 -0
- data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +136 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +13 -14
- data/lib/generated/azure_mgmt_network/models/route_filter.rb +141 -0
- data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +146 -0
- data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/network_interfaces.rb +251 -254
- data/lib/generated/azure_mgmt_network/network_management_client.rb +60 -53
- data/lib/generated/azure_mgmt_network/network_security_groups.rb +11 -14
- data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +11 -14
- data/lib/generated/azure_mgmt_network/route_filter_rules.rb +773 -0
- data/lib/generated/azure_mgmt_network/route_filters.rb +942 -0
- data/lib/generated/azure_mgmt_network/route_tables.rb +11 -14
- data/lib/generated/azure_mgmt_network/routes.rb +9 -12
- data/lib/generated/azure_mgmt_network/security_rules.rb +9 -12
- data/lib/generated/azure_mgmt_network/subnets.rb +9 -12
- data/lib/generated/azure_mgmt_network/usages.rb +3 -6
- data/lib/generated/azure_mgmt_network/version.rb +1 -1
- data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +15 -18
- data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +13 -16
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +9 -12
- data/lib/generated/azure_mgmt_network/virtual_networks.rb +13 -16
- metadata +17 -8
- data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +0 -64
- data/lib/generated/azure_mgmt_network/models/error_details.rb +0 -65
@@ -5,10 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# services that interact with Microsoft Azure Networks service to manage your
|
10
|
-
# network resources. The API has entities that capture the relationship
|
11
|
-
# between an end user and the Microsoft Azure Networks service.
|
8
|
+
# Composite Swagger for Network Client
|
12
9
|
#
|
13
10
|
class LocalNetworkGateways
|
14
11
|
include Azure::ARM::Network::Models
|
@@ -118,7 +115,7 @@ module Azure::ARM::Network
|
|
118
115
|
def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
119
116
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
120
117
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
121
|
-
|
118
|
+
api_version = '2016-09-01'
|
122
119
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
123
120
|
|
124
121
|
|
@@ -134,7 +131,7 @@ module Azure::ARM::Network
|
|
134
131
|
options = {
|
135
132
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
136
133
|
path_params: {'resourceGroupName' => resource_group_name,'localNetworkGatewayName' => local_network_gateway_name,'subscriptionId' => @client.subscription_id},
|
137
|
-
query_params: {'api-version' =>
|
134
|
+
query_params: {'api-version' => api_version},
|
138
135
|
headers: request_headers.merge(custom_headers || {}),
|
139
136
|
base_url: request_url
|
140
137
|
}
|
@@ -245,7 +242,7 @@ module Azure::ARM::Network
|
|
245
242
|
#
|
246
243
|
def list_async(resource_group_name, custom_headers = nil)
|
247
244
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
248
|
-
|
245
|
+
api_version = '2016-09-01'
|
249
246
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
250
247
|
|
251
248
|
|
@@ -261,7 +258,7 @@ module Azure::ARM::Network
|
|
261
258
|
options = {
|
262
259
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
263
260
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
264
|
-
query_params: {'api-version' =>
|
261
|
+
query_params: {'api-version' => api_version},
|
265
262
|
headers: request_headers.merge(custom_headers || {}),
|
266
263
|
base_url: request_url
|
267
264
|
}
|
@@ -346,7 +343,7 @@ module Azure::ARM::Network
|
|
346
343
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
347
344
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
348
345
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
349
|
-
|
346
|
+
api_version = '2016-09-01'
|
350
347
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
351
348
|
|
352
349
|
|
@@ -370,7 +367,7 @@ module Azure::ARM::Network
|
|
370
367
|
options = {
|
371
368
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
372
369
|
path_params: {'resourceGroupName' => resource_group_name,'localNetworkGatewayName' => local_network_gateway_name,'subscriptionId' => @client.subscription_id},
|
373
|
-
query_params: {'api-version' =>
|
370
|
+
query_params: {'api-version' => api_version},
|
374
371
|
body: request_content,
|
375
372
|
headers: request_headers.merge(custom_headers || {}),
|
376
373
|
base_url: request_url
|
@@ -458,7 +455,7 @@ module Azure::ARM::Network
|
|
458
455
|
def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
|
459
456
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
460
457
|
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
|
461
|
-
|
458
|
+
api_version = '2016-09-01'
|
462
459
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
463
460
|
|
464
461
|
|
@@ -474,7 +471,7 @@ module Azure::ARM::Network
|
|
474
471
|
options = {
|
475
472
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
476
473
|
path_params: {'resourceGroupName' => resource_group_name,'localNetworkGatewayName' => local_network_gateway_name,'subscriptionId' => @client.subscription_id},
|
477
|
-
query_params: {'api-version' =>
|
474
|
+
query_params: {'api-version' => api_version},
|
478
475
|
headers: request_headers.merge(custom_headers || {}),
|
479
476
|
base_url: request_url
|
480
477
|
}
|
@@ -6,12 +6,11 @@
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Defines values for
|
9
|
+
# Defines values for Access
|
10
10
|
#
|
11
|
-
module
|
12
|
-
|
13
|
-
|
14
|
-
Failed = "Failed"
|
11
|
+
module Access
|
12
|
+
Allow = "Allow"
|
13
|
+
Deny = "Deny"
|
15
14
|
end
|
16
15
|
end
|
17
16
|
end
|
@@ -6,82 +6,85 @@
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
10
|
-
#
|
9
|
+
# Service Community Properties.
|
11
10
|
#
|
12
|
-
class
|
11
|
+
class BgpServiceCommunity < MsRestAzure::Resource
|
13
12
|
|
14
13
|
include MsRestAzure
|
15
14
|
|
16
|
-
# @return [
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
# @return [String]
|
20
|
-
attr_accessor :message
|
21
|
-
|
22
|
-
# @return [String]
|
23
|
-
attr_accessor :target
|
24
|
-
|
25
|
-
# @return [Array<ErrorDetails>]
|
26
|
-
attr_accessor :details
|
27
|
-
|
28
|
-
# @return [String]
|
29
|
-
attr_accessor :inner_error
|
15
|
+
# @return [Array<BGPCommunity>] Get a list of bgp communities.
|
16
|
+
attr_accessor :communities
|
30
17
|
|
31
18
|
|
32
19
|
#
|
33
|
-
# Mapper for
|
20
|
+
# Mapper for BgpServiceCommunity class as Ruby Hash.
|
34
21
|
# This will be used for serialization/deserialization.
|
35
22
|
#
|
36
23
|
def self.mapper()
|
37
24
|
{
|
38
25
|
required: false,
|
39
|
-
serialized_name: '
|
26
|
+
serialized_name: 'BgpServiceCommunity',
|
40
27
|
type: {
|
41
28
|
name: 'Composite',
|
42
|
-
class_name: '
|
29
|
+
class_name: 'BgpServiceCommunity',
|
43
30
|
model_properties: {
|
44
|
-
|
31
|
+
id: {
|
45
32
|
required: false,
|
46
|
-
serialized_name: '
|
33
|
+
serialized_name: 'id',
|
47
34
|
type: {
|
48
35
|
name: 'String'
|
49
36
|
}
|
50
37
|
},
|
51
|
-
|
38
|
+
name: {
|
52
39
|
required: false,
|
53
|
-
|
40
|
+
read_only: true,
|
41
|
+
serialized_name: 'name',
|
54
42
|
type: {
|
55
43
|
name: 'String'
|
56
44
|
}
|
57
45
|
},
|
58
|
-
|
46
|
+
type: {
|
59
47
|
required: false,
|
60
|
-
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'type',
|
61
50
|
type: {
|
62
51
|
name: 'String'
|
63
52
|
}
|
64
53
|
},
|
65
|
-
|
54
|
+
location: {
|
66
55
|
required: false,
|
67
|
-
serialized_name: '
|
56
|
+
serialized_name: 'location',
|
68
57
|
type: {
|
69
|
-
name: '
|
70
|
-
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
tags: {
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'tags',
|
64
|
+
type: {
|
65
|
+
name: 'Dictionary',
|
66
|
+
value: {
|
71
67
|
required: false,
|
72
|
-
serialized_name: '
|
68
|
+
serialized_name: 'StringElementType',
|
73
69
|
type: {
|
74
|
-
name: '
|
75
|
-
class_name: 'ErrorDetails'
|
70
|
+
name: 'String'
|
76
71
|
}
|
77
72
|
}
|
78
73
|
}
|
79
74
|
},
|
80
|
-
|
75
|
+
communities: {
|
81
76
|
required: false,
|
82
|
-
serialized_name: '
|
77
|
+
serialized_name: 'properties.communities',
|
83
78
|
type: {
|
84
|
-
name: '
|
79
|
+
name: 'Sequence',
|
80
|
+
element: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'BGPCommunityElementType',
|
83
|
+
type: {
|
84
|
+
name: 'Composite',
|
85
|
+
class_name: 'BGPCommunity'
|
86
|
+
}
|
87
|
+
}
|
85
88
|
}
|
86
89
|
}
|
87
90
|
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response for the ListServiceCommunity API service call.
|
10
|
+
#
|
11
|
+
class BgpServiceCommunityListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<BgpServiceCommunity>] A list of service community
|
16
|
+
# resources.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The URL to get the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<BgpServiceCommunity>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [BgpServiceCommunityListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for BgpServiceCommunityListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'BgpServiceCommunityListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'BgpServiceCommunityListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'BgpServiceCommunityElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'BgpServiceCommunity'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Contains bgp community information offered in Service Community
|
10
|
+
# resources.
|
11
|
+
#
|
12
|
+
class BGPCommunity
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The region which the service support. e.g. For O365,
|
17
|
+
# region is Global.
|
18
|
+
attr_accessor :region
|
19
|
+
|
20
|
+
# @return [String] The name of the bgp community. e.g. Skype.
|
21
|
+
attr_accessor :community_name
|
22
|
+
|
23
|
+
# @return [String] The value of the bgp community. For more information:
|
24
|
+
# https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing.
|
25
|
+
attr_accessor :community_value
|
26
|
+
|
27
|
+
# @return [Array<String>] The prefixes that the bgp community contains.
|
28
|
+
attr_accessor :community_prefixes
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for BGPCommunity class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'BGPCommunity',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'BGPCommunity',
|
42
|
+
model_properties: {
|
43
|
+
region: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'region',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
community_name: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'communityName',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
community_value: {
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'communityValue',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
community_prefixes: {
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'communityPrefixes',
|
67
|
+
type: {
|
68
|
+
name: 'Sequence',
|
69
|
+
element: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'StringElementType',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -19,7 +19,7 @@ module Azure::ARM::Network
|
|
19
19
|
attr_accessor :peering_type
|
20
20
|
|
21
21
|
# @return [ExpressRouteCircuitPeeringState] The state of peering.
|
22
|
-
# Possible values are: 'Disabled' and '
|
22
|
+
# Possible values are: 'Disabled' and 'Enabled'. Possible values include:
|
23
23
|
# 'Disabled', 'Enabled'
|
24
24
|
attr_accessor :state
|
25
25
|
|
@@ -51,6 +51,9 @@ module Azure::ARM::Network
|
|
51
51
|
# configuration.
|
52
52
|
attr_accessor :microsoft_peering_config
|
53
53
|
|
54
|
+
# @return [RouteFilter] The reference of the RouteFilter resource.
|
55
|
+
attr_accessor :route_filter
|
56
|
+
|
54
57
|
# @return [ExpressRouteCircuitStats] Gets peering stats.
|
55
58
|
attr_accessor :stats
|
56
59
|
|
@@ -171,6 +174,14 @@ module Azure::ARM::Network
|
|
171
174
|
class_name: 'ExpressRouteCircuitPeeringConfig'
|
172
175
|
}
|
173
176
|
},
|
177
|
+
route_filter: {
|
178
|
+
required: false,
|
179
|
+
serialized_name: 'properties.routeFilter',
|
180
|
+
type: {
|
181
|
+
name: 'Composite',
|
182
|
+
class_name: 'RouteFilter'
|
183
|
+
}
|
184
|
+
},
|
174
185
|
stats: {
|
175
186
|
required: false,
|
176
187
|
serialized_name: 'properties.stats',
|
@@ -209,6 +220,7 @@ module Azure::ARM::Network
|
|
209
220
|
},
|
210
221
|
etag: {
|
211
222
|
required: false,
|
223
|
+
read_only: true,
|
212
224
|
serialized_name: 'etag',
|
213
225
|
type: {
|
214
226
|
name: 'String'
|