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,56 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties that define an exchange peering location.
|
10
|
+
#
|
11
|
+
class PeeringLocationPropertiesExchange
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ExchangePeeringFacility>] The list of exchange peering
|
16
|
+
# facilities at the peering location.
|
17
|
+
attr_accessor :peering_facilities
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for PeeringLocationPropertiesExchange class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'PeeringLocationPropertiesExchange',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'PeeringLocationPropertiesExchange',
|
32
|
+
model_properties: {
|
33
|
+
peering_facilities: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'peeringFacilities',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ExchangePeeringFacilityElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ExchangePeeringFacility'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties that define a direct peering.
|
10
|
+
#
|
11
|
+
class PeeringPropertiesDirect
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<DirectConnection>] The set of connections that
|
16
|
+
# constitute a direct peering.
|
17
|
+
attr_accessor :connections
|
18
|
+
|
19
|
+
# @return [Boolean] The flag that indicates whether or not the peering is
|
20
|
+
# used for peering service.
|
21
|
+
attr_accessor :use_for_peering_service
|
22
|
+
|
23
|
+
# @return [SubResource] The reference of the peer ASN.
|
24
|
+
attr_accessor :peer_asn
|
25
|
+
|
26
|
+
# @return [DirectPeeringType] The type of direct peering. Possible values
|
27
|
+
# include: 'Edge', 'Transit', 'Cdn', 'Internal'
|
28
|
+
attr_accessor :direct_peering_type
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for PeeringPropertiesDirect class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'PeeringPropertiesDirect',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'PeeringPropertiesDirect',
|
43
|
+
model_properties: {
|
44
|
+
connections: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'connections',
|
48
|
+
type: {
|
49
|
+
name: 'Sequence',
|
50
|
+
element: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'DirectConnectionElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'DirectConnection'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
},
|
61
|
+
use_for_peering_service: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'useForPeeringService',
|
65
|
+
type: {
|
66
|
+
name: 'Boolean'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
peer_asn: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'peerAsn',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'SubResource'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
direct_peering_type: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'directPeeringType',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_properties_exchange.rb
ADDED
@@ -0,0 +1,68 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties that define an exchange peering.
|
10
|
+
#
|
11
|
+
class PeeringPropertiesExchange
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ExchangeConnection>] The set of connections that
|
16
|
+
# constitute an exchange peering.
|
17
|
+
attr_accessor :connections
|
18
|
+
|
19
|
+
# @return [SubResource] The reference of the peer ASN.
|
20
|
+
attr_accessor :peer_asn
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for PeeringPropertiesExchange class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'PeeringPropertiesExchange',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'PeeringPropertiesExchange',
|
35
|
+
model_properties: {
|
36
|
+
connections: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'connections',
|
40
|
+
type: {
|
41
|
+
name: 'Sequence',
|
42
|
+
element: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'ExchangeConnectionElementType',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'ExchangeConnection'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
peer_asn: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'peerAsn',
|
57
|
+
type: {
|
58
|
+
name: 'Composite',
|
59
|
+
class_name: 'SubResource'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,127 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Peering Service
|
10
|
+
#
|
11
|
+
class PeeringService < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The PeeringServiceLocation of the Customer.
|
16
|
+
attr_accessor :peering_service_location
|
17
|
+
|
18
|
+
# @return [String] The MAPS Provider Name.
|
19
|
+
attr_accessor :peering_service_provider
|
20
|
+
|
21
|
+
# @return [ProvisioningState] The provisioning state of the resource.
|
22
|
+
# Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
|
23
|
+
attr_accessor :provisioning_state
|
24
|
+
|
25
|
+
# @return [String] The location of the resource.
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
# @return [Hash{String => String}] The resource tags.
|
29
|
+
attr_accessor :tags
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for PeeringService class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'PeeringService',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'PeeringService',
|
44
|
+
model_properties: {
|
45
|
+
name: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'name',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
id: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'id',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
type: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
read_only: true,
|
67
|
+
serialized_name: 'type',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
peering_service_location: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'properties.peeringServiceLocation',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
peering_service_provider: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties.peeringServiceProvider',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
provisioning_state: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'properties.provisioningState',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
location: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: true,
|
100
|
+
serialized_name: 'location',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
tags: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'tags',
|
109
|
+
type: {
|
110
|
+
name: 'Dictionary',
|
111
|
+
value: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'StringElementType',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
data/lib/2019-08-01-preview/generated/azure_mgmt_peering/models/peering_service_list_result.rb
ADDED
@@ -0,0 +1,98 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The paginated list of peering services.
|
10
|
+
#
|
11
|
+
class PeeringServiceListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<PeeringService>] The list of peering services.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The link to fetch the next page of peering services.
|
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<PeeringService>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? 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 [PeeringServiceListResult] 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 PeeringServiceListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'PeeringServiceListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'PeeringServiceListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'PeeringServiceElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'PeeringService'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,95 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# PeeringService location
|
10
|
+
#
|
11
|
+
class PeeringServiceLocation < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Country of the customer
|
16
|
+
attr_accessor :country
|
17
|
+
|
18
|
+
# @return [String] State of the customer
|
19
|
+
attr_accessor :state
|
20
|
+
|
21
|
+
# @return [String] Azure region for the location
|
22
|
+
attr_accessor :azure_region
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for PeeringServiceLocation class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'PeeringServiceLocation',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'PeeringServiceLocation',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'id',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
type: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'type',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
country: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'properties.country',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
state: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'properties.state',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
azure_region: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'properties.azureRegion',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|