azure_mgmt_network 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 693a0e170d08e061a7d304bcee7975db03402e20
4
- data.tar.gz: 075c42f66a70dbb99f1a6a5d53a27a71767469b5
3
+ metadata.gz: e7c8487286392f5fd2138b4bb64c37bad9b7b0cb
4
+ data.tar.gz: 41ab6e0defd0e15fc26b1abb602c84de297657e9
5
5
  SHA512:
6
- metadata.gz: 00dd05b0132afbe3c377773e927e8526f80afd9520f4da6fdd12c40c843fe1ab7bf73e03da1d0b1b41e8595b820bc70d75c27d8980ebcb00907f91f6e24a1445
7
- data.tar.gz: 2c8044ea6d173674dd0adb1b6fa78139ca53ac1a74ebf4c4a3a9e0aa9eb9f7c9a2d5e1648ce69f7661174a0227a595079d092e918e40bc0f1f32e24c94bdfb9f
6
+ metadata.gz: b2cd4858941c9088ccf81bb4e28f273b24c1eba4ec6ae80b3d9cb94a79e367625f8e91f5a8c8b604b62b9a78476689f0ed3bc85df79a369548b2d2e9a62538ab
7
+ data.tar.gz: 0be5b32a59ca03c4bea12970df0970daa6ebb3e739ba9c95a57efb200a86430f1e6f2024e1776c24adbeb9cfd2ee7726a95447063a6d8b7ece7134f82e6d22d0
@@ -16,6 +16,7 @@ require 'faraday'
16
16
  require 'faraday-cookie_jar'
17
17
  require 'concurrent'
18
18
  require 'ms_rest'
19
+ require 'azure_mgmt_network/module_definition'
19
20
  require 'ms_rest_azure'
20
21
 
21
22
  module Azure::ARM::Network
@@ -94,6 +95,7 @@ module Azure::ARM::Network
94
95
  autoload :LoadBalancerPropertiesFormat, 'azure_mgmt_network/models/load_balancer_properties_format.rb'
95
96
  autoload :LoadBalancerListResult, 'azure_mgmt_network/models/load_balancer_list_result.rb'
96
97
  autoload :AddressSpace, 'azure_mgmt_network/models/address_space.rb'
98
+ autoload :BgpSettings, 'azure_mgmt_network/models/bgp_settings.rb'
97
99
  autoload :LocalNetworkGatewayPropertiesFormat, 'azure_mgmt_network/models/local_network_gateway_properties_format.rb'
98
100
  autoload :LocalNetworkGatewayListResult, 'azure_mgmt_network/models/local_network_gateway_list_result.rb'
99
101
  autoload :NetworkInterfaceListResult, 'azure_mgmt_network/models/network_interface_list_result.rb'
@@ -187,7 +189,6 @@ module Azure::ARM::Network
187
189
  autoload :TransportProtocol, 'azure_mgmt_network/models/transport_protocol.rb'
188
190
  autoload :LoadDistribution, 'azure_mgmt_network/models/load_distribution.rb'
189
191
  autoload :ProbeProtocol, 'azure_mgmt_network/models/probe_protocol.rb'
190
- autoload :UsageUnit, 'azure_mgmt_network/models/usage_unit.rb'
191
192
  autoload :VirtualNetworkGatewayType, 'azure_mgmt_network/models/virtual_network_gateway_type.rb'
192
193
  autoload :VpnType, 'azure_mgmt_network/models/vpn_type.rb'
193
194
  autoload :VirtualNetworkGatewaySkuName, 'azure_mgmt_network/models/virtual_network_gateway_sku_name.rb'
@@ -0,0 +1,78 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
+ # Model object.
10
+ #
11
+ class BgpSettings
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets or sets this BGP speaker's ASN
16
+ attr_accessor :asn
17
+
18
+ # @return [String] Gets or sets the BGP peering address and BGP
19
+ # identifier of this BGP speaker
20
+ attr_accessor :bgp_peering_address
21
+
22
+ # @return [Integer] Gets or sets the weight added to routes learned from
23
+ # this BGP speaker
24
+ attr_accessor :peer_weight
25
+
26
+ #
27
+ # Validate the object. Throws ValidationError if validation fails.
28
+ #
29
+ def validate
30
+ # Nothing to validate
31
+ end
32
+
33
+ #
34
+ # Serializes given Model object into Ruby Hash.
35
+ # @param object Model object to serialize.
36
+ # @return [Hash] Serialized object in form of Ruby Hash.
37
+ #
38
+ def self.serialize_object(object)
39
+ object.validate
40
+ output_object = {}
41
+
42
+ serialized_property = object.asn
43
+ output_object['asn'] = serialized_property unless serialized_property.nil?
44
+
45
+ serialized_property = object.bgp_peering_address
46
+ output_object['bgpPeeringAddress'] = serialized_property unless serialized_property.nil?
47
+
48
+ serialized_property = object.peer_weight
49
+ output_object['peerWeight'] = serialized_property unless serialized_property.nil?
50
+
51
+ output_object
52
+ end
53
+
54
+ #
55
+ # Deserializes given Ruby Hash into Model object.
56
+ # @param object [Hash] Ruby Hash object to deserialize.
57
+ # @return [BgpSettings] Deserialized object.
58
+ #
59
+ def self.deserialize_object(object)
60
+ return if object.nil?
61
+ output_object = BgpSettings.new
62
+
63
+ deserialized_property = object['asn']
64
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
65
+ output_object.asn = deserialized_property
66
+
67
+ deserialized_property = object['bgpPeeringAddress']
68
+ output_object.bgp_peering_address = deserialized_property
69
+
70
+ deserialized_property = object['peerWeight']
71
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
72
+ output_object.peer_weight = deserialized_property
73
+
74
+ output_object
75
+ end
76
+ end
77
+ end
78
+ end
@@ -18,6 +18,9 @@ module Azure::ARM::Network
18
18
  # @return [String] IP address of local network gateway.
19
19
  attr_accessor :gateway_ip_address
20
20
 
21
+ # @return [BgpSettings] Local network gateway's BGP speaker settings
22
+ attr_accessor :bgp_settings
23
+
21
24
  # @return [String] Gets or sets resource guid property of the
22
25
  # LocalNetworkGateway resource
23
26
  attr_accessor :resource_guid
@@ -31,6 +34,7 @@ module Azure::ARM::Network
31
34
  #
32
35
  def validate
33
36
  @local_network_address_space.validate unless @local_network_address_space.nil?
37
+ @bgp_settings.validate unless @bgp_settings.nil?
34
38
  end
35
39
 
36
40
  #
@@ -51,6 +55,12 @@ module Azure::ARM::Network
51
55
  serialized_property = object.gateway_ip_address
52
56
  output_object['gatewayIpAddress'] = serialized_property unless serialized_property.nil?
53
57
 
58
+ serialized_property = object.bgp_settings
59
+ unless serialized_property.nil?
60
+ serialized_property = BgpSettings.serialize_object(serialized_property)
61
+ end
62
+ output_object['bgpSettings'] = serialized_property unless serialized_property.nil?
63
+
54
64
  serialized_property = object.resource_guid
55
65
  output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
56
66
 
@@ -78,6 +88,12 @@ module Azure::ARM::Network
78
88
  deserialized_property = object['gatewayIpAddress']
79
89
  output_object.gateway_ip_address = deserialized_property
80
90
 
91
+ deserialized_property = object['bgpSettings']
92
+ unless deserialized_property.nil?
93
+ deserialized_property = BgpSettings.deserialize_object(deserialized_property)
94
+ end
95
+ output_object.bgp_settings = deserialized_property
96
+
81
97
  deserialized_property = object['resourceGuid']
82
98
  output_object.resource_guid = deserialized_property
83
99
 
@@ -12,8 +12,8 @@ module Azure::ARM::Network
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [UsageUnit] Gets or sets an enum describing the unit of
16
- # measurement. Possible values include: 'Count'
15
+ # @return [String] Gets or sets an enum describing the unit of
16
+ # measurement.
17
17
  attr_accessor :unit
18
18
 
19
19
  # @return [Integer] Gets or sets the current value of the usage.
@@ -73,10 +73,6 @@ module Azure::ARM::Network
73
73
  output_object = Usage.new
74
74
 
75
75
  deserialized_property = object['unit']
76
- if (!deserialized_property.nil? && !deserialized_property.empty?)
77
- enum_is_valid = UsageUnit.constants.any? { |e| UsageUnit.const_get(e).to_s.downcase == deserialized_property.downcase }
78
- warn 'Enum UsageUnit does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
79
- end
80
76
  output_object.unit = deserialized_property
81
77
 
82
78
  deserialized_property = object['currentValue']
@@ -49,6 +49,9 @@ module Azure::ARM::Network
49
49
  # @return [SubResource] The reference to peerings resource.
50
50
  attr_accessor :peer
51
51
 
52
+ # @return [Boolean] EnableBgp Flag
53
+ attr_accessor :enable_bgp
54
+
52
55
  # @return [String] Gets or sets resource guid property of the
53
56
  # VirtualNetworkGatewayConnection resource
54
57
  attr_accessor :resource_guid
@@ -121,6 +124,9 @@ module Azure::ARM::Network
121
124
  end
122
125
  output_object['peer'] = serialized_property unless serialized_property.nil?
123
126
 
127
+ serialized_property = object.enable_bgp
128
+ output_object['enableBgp'] = serialized_property unless serialized_property.nil?
129
+
124
130
  serialized_property = object.resource_guid
125
131
  output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
126
132
 
@@ -196,6 +202,9 @@ module Azure::ARM::Network
196
202
  end
197
203
  output_object.peer = deserialized_property
198
204
 
205
+ deserialized_property = object['enableBgp']
206
+ output_object.enable_bgp = deserialized_property
207
+
199
208
  deserialized_property = object['resourceGuid']
200
209
  output_object.resource_guid = deserialized_property
201
210
 
@@ -43,6 +43,9 @@ module Azure::ARM::Network
43
43
  # configurations.
44
44
  attr_accessor :vpn_client_configuration
45
45
 
46
+ # @return [BgpSettings] Virtual network gateway's BGP speaker settings
47
+ attr_accessor :bgp_settings
48
+
46
49
  # @return [String] Gets or sets resource guid property of the
47
50
  # VirtualNetworkGateway resource
48
51
  attr_accessor :resource_guid
@@ -59,6 +62,7 @@ module Azure::ARM::Network
59
62
  @gateway_default_site.validate unless @gateway_default_site.nil?
60
63
  @sku.validate unless @sku.nil?
61
64
  @vpn_client_configuration.validate unless @vpn_client_configuration.nil?
65
+ @bgp_settings.validate unless @bgp_settings.nil?
62
66
  end
63
67
 
64
68
  #
@@ -110,6 +114,12 @@ module Azure::ARM::Network
110
114
  end
111
115
  output_object['vpnClientConfiguration'] = serialized_property unless serialized_property.nil?
112
116
 
117
+ serialized_property = object.bgp_settings
118
+ unless serialized_property.nil?
119
+ serialized_property = BgpSettings.serialize_object(serialized_property)
120
+ end
121
+ output_object['bgpSettings'] = serialized_property unless serialized_property.nil?
122
+
113
123
  serialized_property = object.resource_guid
114
124
  output_object['resourceGuid'] = serialized_property unless serialized_property.nil?
115
125
 
@@ -176,6 +186,12 @@ module Azure::ARM::Network
176
186
  end
177
187
  output_object.vpn_client_configuration = deserialized_property
178
188
 
189
+ deserialized_property = object['bgpSettings']
190
+ unless deserialized_property.nil?
191
+ deserialized_property = BgpSettings.deserialize_object(deserialized_property)
192
+ end
193
+ output_object.bgp_settings = deserialized_property
194
+
179
195
  deserialized_property = object['resourceGuid']
180
196
  output_object.resource_guid = deserialized_property
181
197
 
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
- VERSION = '0.2.0'
7
+ VERSION = '0.2.1'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
@@ -153,6 +153,7 @@ files:
153
153
  - lib/azure_mgmt_network/models/azure_async_operation_result.rb
154
154
  - lib/azure_mgmt_network/models/backend_address_pool.rb
155
155
  - lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb
156
+ - lib/azure_mgmt_network/models/bgp_settings.rb
156
157
  - lib/azure_mgmt_network/models/connection_reset_shared_key.rb
157
158
  - lib/azure_mgmt_network/models/connection_shared_key.rb
158
159
  - lib/azure_mgmt_network/models/connection_shared_key_result.rb
@@ -243,7 +244,6 @@ files:
243
244
  - lib/azure_mgmt_network/models/transport_protocol.rb
244
245
  - lib/azure_mgmt_network/models/usage.rb
245
246
  - lib/azure_mgmt_network/models/usage_name.rb
246
- - lib/azure_mgmt_network/models/usage_unit.rb
247
247
  - lib/azure_mgmt_network/models/usages_list_result.rb
248
248
  - lib/azure_mgmt_network/models/virtual_network.rb
249
249
  - lib/azure_mgmt_network/models/virtual_network_gateway.rb
@@ -1,15 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.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
- # Defines values for UsageUnit
10
- #
11
- module UsageUnit
12
- Count = "Count"
13
- end
14
- end
15
- end