oraclebmc 1.2.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.md → README_BMCS.md} +21 -26
- data/lib/oraclebmc.rb +1 -19
- metadata +16 -259
- data/lib/oraclebmc/api_client.rb +0 -306
- data/lib/oraclebmc/config.rb +0 -80
- data/lib/oraclebmc/config_file_loader.rb +0 -85
- data/lib/oraclebmc/core/blockstorage_client.rb +0 -460
- data/lib/oraclebmc/core/compute_client.rb +0 -1267
- data/lib/oraclebmc/core/core.rb +0 -112
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +0 -137
- data/lib/oraclebmc/core/models/attach_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/attach_volume_details.rb +0 -165
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +0 -120
- data/lib/oraclebmc/core/models/console_history.rb +0 -213
- data/lib/oraclebmc/core/models/cpe.rb +0 -169
- data/lib/oraclebmc/core/models/create_cpe_details.rb +0 -145
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +0 -204
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +0 -142
- data/lib/oraclebmc/core/models/create_drg_details.rb +0 -131
- data/lib/oraclebmc/core/models/create_image_details.rb +0 -159
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +0 -168
- data/lib/oraclebmc/core/models/create_private_ip_details.rb +0 -173
- data/lib/oraclebmc/core/models/create_route_table_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_security_list_details.rb +0 -164
- data/lib/oraclebmc/core/models/create_subnet_details.rb +0 -257
- data/lib/oraclebmc/core/models/create_vcn_details.rb +0 -171
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +0 -260
- data/lib/oraclebmc/core/models/create_vnic_details.rb +0 -214
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_volume_details.rb +0 -170
- data/lib/oraclebmc/core/models/cross_connect.rb +0 -235
- data/lib/oraclebmc/core/models/cross_connect_group.rb +0 -187
- data/lib/oraclebmc/core/models/cross_connect_location.rb +0 -134
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +0 -190
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +0 -137
- data/lib/oraclebmc/core/models/cross_connect_status.rb +0 -200
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +0 -171
- data/lib/oraclebmc/core/models/dhcp_option.rb +0 -135
- data/lib/oraclebmc/core/models/dhcp_options.rb +0 -208
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +0 -141
- data/lib/oraclebmc/core/models/drg.rb +0 -186
- data/lib/oraclebmc/core/models/drg_attachment.rb +0 -208
- data/lib/oraclebmc/core/models/egress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/export_image_details.rb +0 -134
- data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +0 -130
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +0 -145
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +0 -212
- data/lib/oraclebmc/core/models/icmp_options.rb +0 -131
- data/lib/oraclebmc/core/models/image.rb +0 -245
- data/lib/oraclebmc/core/models/image_source_details.rb +0 -134
- data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +0 -128
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/instance.rb +0 -307
- data/lib/oraclebmc/core/models/instance_credentials.rb +0 -131
- data/lib/oraclebmc/core/models/internet_gateway.rb +0 -210
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +0 -223
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +0 -153
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +0 -156
- data/lib/oraclebmc/core/models/launch_instance_details.rb +0 -336
- data/lib/oraclebmc/core/models/letter_of_authority.rb +0 -194
- data/lib/oraclebmc/core/models/port_range.rb +0 -133
- data/lib/oraclebmc/core/models/private_ip.rb +0 -248
- data/lib/oraclebmc/core/models/route_rule.rb +0 -135
- data/lib/oraclebmc/core/models/route_table.rb +0 -208
- data/lib/oraclebmc/core/models/security_list.rb +0 -219
- data/lib/oraclebmc/core/models/shape.rb +0 -122
- data/lib/oraclebmc/core/models/subnet.rb +0 -351
- data/lib/oraclebmc/core/models/tcp_options.rb +0 -135
- data/lib/oraclebmc/core/models/tunnel_config.rb +0 -151
- data/lib/oraclebmc/core/models/tunnel_status.rb +0 -178
- data/lib/oraclebmc/core/models/udp_options.rb +0 -135
- data/lib/oraclebmc/core/models/update_cpe_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +0 -138
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +0 -132
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_drg_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_image_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_instance_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_private_ip_details.rb +0 -157
- data/lib/oraclebmc/core/models/update_route_table_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_security_list_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_subnet_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_vcn_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +0 -240
- data/lib/oraclebmc/core/models/update_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_volume_details.rb +0 -122
- data/lib/oraclebmc/core/models/vcn.rb +0 -276
- data/lib/oraclebmc/core/models/virtual_circuit.rb +0 -395
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +0 -137
- data/lib/oraclebmc/core/models/vnic.rb +0 -287
- data/lib/oraclebmc/core/models/vnic_attachment.rb +0 -250
- data/lib/oraclebmc/core/models/volume.rb +0 -210
- data/lib/oraclebmc/core/models/volume_attachment.rb +0 -246
- data/lib/oraclebmc/core/models/volume_backup.rb +0 -235
- data/lib/oraclebmc/core/util.rb +0 -1
- data/lib/oraclebmc/core/virtual_network_client.rb +0 -3419
- data/lib/oraclebmc/errors.rb +0 -80
- data/lib/oraclebmc/global_context.rb +0 -21
- data/lib/oraclebmc/identity/identity.rb +0 -51
- data/lib/oraclebmc/identity/identity_client.rb +0 -1983
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +0 -131
- data/lib/oraclebmc/identity/models/api_key.rb +0 -211
- data/lib/oraclebmc/identity/models/availability_domain.rb +0 -131
- data/lib/oraclebmc/identity/models/compartment.rb +0 -211
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +0 -120
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +0 -145
- data/lib/oraclebmc/identity/models/create_group_details.rb +0 -144
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +0 -212
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +0 -133
- data/lib/oraclebmc/identity/models/create_policy_details.rb +0 -173
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +0 -127
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +0 -154
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +0 -121
- data/lib/oraclebmc/identity/models/create_user_details.rb +0 -144
- data/lib/oraclebmc/identity/models/group.rb +0 -211
- data/lib/oraclebmc/identity/models/identity_provider.rb +0 -256
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +0 -220
- data/lib/oraclebmc/identity/models/policy.rb +0 -237
- data/lib/oraclebmc/identity/models/region.rb +0 -141
- data/lib/oraclebmc/identity/models/region_subscription.rb +0 -178
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +0 -180
- data/lib/oraclebmc/identity/models/swift_password.rb +0 -226
- data/lib/oraclebmc/identity/models/tenancy.rb +0 -158
- data/lib/oraclebmc/identity/models/ui_password.rb +0 -187
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_group_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +0 -160
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +0 -131
- data/lib/oraclebmc/identity/models/update_policy_details.rb +0 -148
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +0 -145
- data/lib/oraclebmc/identity/models/update_state_details.rb +0 -121
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_user_details.rb +0 -120
- data/lib/oraclebmc/identity/models/user.rb +0 -217
- data/lib/oraclebmc/identity/models/user_group_membership.rb +0 -209
- data/lib/oraclebmc/identity/util.rb +0 -1
- data/lib/oraclebmc/internal/internal.rb +0 -11
- data/lib/oraclebmc/internal/util.rb +0 -69
- data/lib/oraclebmc/load_balancer/load_balancer.rb +0 -46
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +0 -1281
- data/lib/oraclebmc/load_balancer/models/backend.rb +0 -220
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +0 -179
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/certificate.rb +0 -167
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +0 -219
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +0 -223
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +0 -222
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +0 -139
- data/lib/oraclebmc/load_balancer/models/listener.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +0 -280
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +0 -141
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +0 -221
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +0 -123
- data/lib/oraclebmc/load_balancer/models/work_request.rb +0 -229
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +0 -145
- data/lib/oraclebmc/load_balancer/util.rb +0 -55
- data/lib/oraclebmc/regions.rb +0 -41
- data/lib/oraclebmc/response.rb +0 -86
- data/lib/oraclebmc/signer.rb +0 -119
- data/lib/oraclebmc/version.rb +0 -5
- data/lib/oraclebmc/waiter.rb +0 -111
@@ -1,395 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Core::Models::VirtualCircuit
|
7
|
-
|
8
|
-
BGP_SESSION_STATE_ENUM = [BGP_SESSION_STATE_UP = 'UP',
|
9
|
-
BGP_SESSION_STATE_DOWN = 'DOWN',
|
10
|
-
BGP_SESSION_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
11
|
-
|
12
|
-
|
13
|
-
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_PENDING_PROVIDER = 'PENDING_PROVIDER',
|
14
|
-
LIFECYCLE_STATE_VERIFYING = 'VERIFYING',
|
15
|
-
LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING',
|
16
|
-
LIFECYCLE_STATE_PROVISIONED = 'PROVISIONED',
|
17
|
-
LIFECYCLE_STATE_FAILED = 'FAILED',
|
18
|
-
LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
|
19
|
-
LIFECYCLE_STATE_TERMINATING = 'TERMINATING',
|
20
|
-
LIFECYCLE_STATE_TERMINATED = 'TERMINATED',
|
21
|
-
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
22
|
-
|
23
|
-
|
24
|
-
PROVIDER_STATE_ENUM = [PROVIDER_STATE_ACTIVE = 'ACTIVE',
|
25
|
-
PROVIDER_STATE_INACTIVE = 'INACTIVE',
|
26
|
-
PROVIDER_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
27
|
-
|
28
|
-
|
29
|
-
TYPE_ENUM = [TYPE_PUBLIC = 'PUBLIC',
|
30
|
-
TYPE_PRIVATE = 'PRIVATE',
|
31
|
-
TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
32
|
-
|
33
|
-
# The provisioned data rate of the connection.
|
34
|
-
# @return [String]
|
35
|
-
attr_accessor :bandwidth_shape_name
|
36
|
-
|
37
|
-
# The state of the BGP session associated with the virtual circuit.
|
38
|
-
# @return [String]
|
39
|
-
attr_accessor :bgp_session_state
|
40
|
-
|
41
|
-
# The OCID of the compartment containing the virtual circuit.
|
42
|
-
# @return [String]
|
43
|
-
attr_accessor :compartment_id
|
44
|
-
|
45
|
-
# An array of mappings, each containing properties for a
|
46
|
-
# cross-connect or cross-connect group that is associated with this
|
47
|
-
# virtual circuit.
|
48
|
-
#
|
49
|
-
# @return [Array<OracleBMC::Core::Models::CrossConnectMapping>]
|
50
|
-
attr_accessor :cross_connect_mappings
|
51
|
-
|
52
|
-
# The BGP ASN of the network at the other end of the BGP
|
53
|
-
# session from Oracle. If the session is between the customer's
|
54
|
-
# edge router and Oracle, the value is the customer's ASN. If the BGP
|
55
|
-
# session is between the provider's edge router and Oracle, the value
|
56
|
-
# is the provider's ASN.
|
57
|
-
#
|
58
|
-
# @return [Integer]
|
59
|
-
attr_accessor :customer_bgp_asn
|
60
|
-
|
61
|
-
# A user-friendly name. Does not have to be unique, and it's changeable.
|
62
|
-
# Avoid entering confidential information.
|
63
|
-
#
|
64
|
-
# @return [String]
|
65
|
-
attr_accessor :display_name
|
66
|
-
|
67
|
-
# The OCID of the customer's {Drg}
|
68
|
-
# that this virtual circuit uses.
|
69
|
-
#
|
70
|
-
# @return [String]
|
71
|
-
attr_accessor :gateway_id
|
72
|
-
|
73
|
-
# The virtual circuit's Oracle ID (OCID).
|
74
|
-
# @return [String]
|
75
|
-
attr_accessor :id
|
76
|
-
|
77
|
-
# The virtual circuit's current state. For information about
|
78
|
-
# the different states, see
|
79
|
-
# [FastConnect Overview](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
|
80
|
-
#
|
81
|
-
# @return [String]
|
82
|
-
attr_accessor :lifecycle_state
|
83
|
-
|
84
|
-
# The Oracle BGP ASN.
|
85
|
-
# @return [Integer]
|
86
|
-
attr_accessor :oracle_bgp_asn
|
87
|
-
|
88
|
-
# The name of the provider (if the customer is connecting via a provider).
|
89
|
-
#
|
90
|
-
# @return [String]
|
91
|
-
attr_accessor :provider_name
|
92
|
-
|
93
|
-
# The name of the service offered by the provider (if the customer is connecting via a provider).
|
94
|
-
#
|
95
|
-
# @return [String]
|
96
|
-
attr_accessor :provider_service_name
|
97
|
-
|
98
|
-
# The provider's state in relation to this virtual circuit (if the
|
99
|
-
# customer is connecting via a provider). ACTIVE means
|
100
|
-
# the provider has provisioned the virtual circuit from their end.
|
101
|
-
# INACTIVE means the provider has not yet provisioned the virtual
|
102
|
-
# circuit, or has de-provisioned it.
|
103
|
-
#
|
104
|
-
# @return [String]
|
105
|
-
attr_accessor :provider_state
|
106
|
-
|
107
|
-
# Provider-supplied reference information about this virtual circuit
|
108
|
-
# (if the customer is connecting via a provider).
|
109
|
-
#
|
110
|
-
# @return [String]
|
111
|
-
attr_accessor :reference_comment
|
112
|
-
|
113
|
-
# The Oracle Bare Metal Cloud Services region where this virtual
|
114
|
-
# circuit is located.
|
115
|
-
#
|
116
|
-
# @return [String]
|
117
|
-
attr_accessor :region
|
118
|
-
|
119
|
-
# The date and time the virtual circuit was created,
|
120
|
-
# in the format defined by RFC3339.
|
121
|
-
#
|
122
|
-
# Example: `2016-08-25T21:10:29.600Z`
|
123
|
-
#
|
124
|
-
# @return [DateTime]
|
125
|
-
attr_accessor :time_created
|
126
|
-
|
127
|
-
# The type of IP addresses used in this virtual circuit. PRIVATE means
|
128
|
-
# [RFC 1918](https://tools.ietf.org/html/rfc1918) addresses
|
129
|
-
# (10.0.0.0/8, 172.16/12, and 192.168/16). Only PRIVATE is supported.
|
130
|
-
#
|
131
|
-
# @return [String]
|
132
|
-
attr_accessor :type
|
133
|
-
|
134
|
-
|
135
|
-
# Initializes the object
|
136
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
-
def initialize(attributes = {})
|
138
|
-
return unless attributes.is_a?(Hash)
|
139
|
-
|
140
|
-
# convert string to symbol for hash key
|
141
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
142
|
-
|
143
|
-
if attributes[:'bandwidthShapeName']
|
144
|
-
self.bandwidth_shape_name = attributes[:'bandwidthShapeName']
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes[:'bgpSessionState']
|
148
|
-
self.bgp_session_state = attributes[:'bgpSessionState']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes[:'compartmentId']
|
152
|
-
self.compartment_id = attributes[:'compartmentId']
|
153
|
-
end
|
154
|
-
|
155
|
-
if attributes[:'crossConnectMappings']
|
156
|
-
self.cross_connect_mappings = attributes[:'crossConnectMappings']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes[:'customerBgpAsn']
|
160
|
-
self.customer_bgp_asn = attributes[:'customerBgpAsn']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes[:'displayName']
|
164
|
-
self.display_name = attributes[:'displayName']
|
165
|
-
end
|
166
|
-
|
167
|
-
if attributes[:'gatewayId']
|
168
|
-
self.gateway_id = attributes[:'gatewayId']
|
169
|
-
end
|
170
|
-
|
171
|
-
if attributes[:'id']
|
172
|
-
self.id = attributes[:'id']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes[:'lifecycleState']
|
176
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
177
|
-
end
|
178
|
-
|
179
|
-
if attributes[:'oracleBgpAsn']
|
180
|
-
self.oracle_bgp_asn = attributes[:'oracleBgpAsn']
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes[:'providerName']
|
184
|
-
self.provider_name = attributes[:'providerName']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes[:'providerServiceName']
|
188
|
-
self.provider_service_name = attributes[:'providerServiceName']
|
189
|
-
end
|
190
|
-
|
191
|
-
if attributes[:'providerState']
|
192
|
-
self.provider_state = attributes[:'providerState']
|
193
|
-
end
|
194
|
-
|
195
|
-
if attributes[:'referenceComment']
|
196
|
-
self.reference_comment = attributes[:'referenceComment']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes[:'region']
|
200
|
-
self.region = attributes[:'region']
|
201
|
-
end
|
202
|
-
|
203
|
-
if attributes[:'timeCreated']
|
204
|
-
self.time_created = attributes[:'timeCreated']
|
205
|
-
end
|
206
|
-
|
207
|
-
if attributes[:'type']
|
208
|
-
self.type = attributes[:'type']
|
209
|
-
end
|
210
|
-
|
211
|
-
end
|
212
|
-
|
213
|
-
# Custom attribute writer method checking allowed values (enum).
|
214
|
-
# @param [Object] bgp_session_state Object to be assigned
|
215
|
-
def bgp_session_state=(bgp_session_state)
|
216
|
-
if bgp_session_state && !BGP_SESSION_STATE_ENUM.include?(bgp_session_state)
|
217
|
-
@bgp_session_state = BGP_SESSION_STATE_UNKNOWN_ENUM_VALUE
|
218
|
-
else
|
219
|
-
@bgp_session_state = bgp_session_state
|
220
|
-
end
|
221
|
-
end
|
222
|
-
|
223
|
-
# Custom attribute writer method checking allowed values (enum).
|
224
|
-
# @param [Object] lifecycle_state Object to be assigned
|
225
|
-
def lifecycle_state=(lifecycle_state)
|
226
|
-
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
227
|
-
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
228
|
-
else
|
229
|
-
@lifecycle_state = lifecycle_state
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
# Custom attribute writer method checking allowed values (enum).
|
234
|
-
# @param [Object] provider_state Object to be assigned
|
235
|
-
def provider_state=(provider_state)
|
236
|
-
if provider_state && !PROVIDER_STATE_ENUM.include?(provider_state)
|
237
|
-
@provider_state = PROVIDER_STATE_UNKNOWN_ENUM_VALUE
|
238
|
-
else
|
239
|
-
@provider_state = provider_state
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
# Custom attribute writer method checking allowed values (enum).
|
244
|
-
# @param [Object] type Object to be assigned
|
245
|
-
def type=(type)
|
246
|
-
if type && !TYPE_ENUM.include?(type)
|
247
|
-
@type = TYPE_UNKNOWN_ENUM_VALUE
|
248
|
-
else
|
249
|
-
@type = type
|
250
|
-
end
|
251
|
-
end
|
252
|
-
|
253
|
-
# Checks equality by comparing each attribute.
|
254
|
-
# @param [Object] other_object to be compared
|
255
|
-
def ==(other_object)
|
256
|
-
return true if self.equal?(other_object)
|
257
|
-
self.class == other_object.class &&
|
258
|
-
bandwidth_shape_name == other_object.bandwidth_shape_name &&
|
259
|
-
bgp_session_state == other_object.bgp_session_state &&
|
260
|
-
compartment_id == other_object.compartment_id &&
|
261
|
-
cross_connect_mappings == other_object.cross_connect_mappings &&
|
262
|
-
customer_bgp_asn == other_object.customer_bgp_asn &&
|
263
|
-
display_name == other_object.display_name &&
|
264
|
-
gateway_id == other_object.gateway_id &&
|
265
|
-
id == other_object.id &&
|
266
|
-
lifecycle_state == other_object.lifecycle_state &&
|
267
|
-
oracle_bgp_asn == other_object.oracle_bgp_asn &&
|
268
|
-
provider_name == other_object.provider_name &&
|
269
|
-
provider_service_name == other_object.provider_service_name &&
|
270
|
-
provider_state == other_object.provider_state &&
|
271
|
-
reference_comment == other_object.reference_comment &&
|
272
|
-
region == other_object.region &&
|
273
|
-
time_created == other_object.time_created &&
|
274
|
-
type == other_object.type
|
275
|
-
end
|
276
|
-
|
277
|
-
# @see the `==` method
|
278
|
-
# @param [Object] other_object to be compared
|
279
|
-
def eql?(other_object)
|
280
|
-
self == other_object
|
281
|
-
end
|
282
|
-
|
283
|
-
# Calculates hash code according to all attributes.
|
284
|
-
# @return [Fixnum] Hash code
|
285
|
-
def hash
|
286
|
-
[bandwidth_shape_name, bgp_session_state, compartment_id, cross_connect_mappings, customer_bgp_asn, display_name, gateway_id, id, lifecycle_state, oracle_bgp_asn, provider_name, provider_service_name, provider_state, reference_comment, region, time_created, type].hash
|
287
|
-
end
|
288
|
-
|
289
|
-
# Builds the object from hash
|
290
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
291
|
-
# @return [Object] Returns the model itself
|
292
|
-
def build_from_hash(attributes)
|
293
|
-
return nil unless attributes.is_a?(Hash)
|
294
|
-
self.class.swagger_types.each_pair do |key, type|
|
295
|
-
if type =~ /^Array<(.*)>/i
|
296
|
-
# check to ensure the input is an array given that the the attribute
|
297
|
-
# is documented as an array but the input is not
|
298
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
299
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
300
|
-
end
|
301
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
302
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
303
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
304
|
-
end
|
305
|
-
|
306
|
-
self
|
307
|
-
end
|
308
|
-
|
309
|
-
# Returns the string representation of the object
|
310
|
-
# @return [String] String presentation of the object
|
311
|
-
def to_s
|
312
|
-
to_hash.to_s
|
313
|
-
end
|
314
|
-
|
315
|
-
# Returns the object in the form of hash
|
316
|
-
# @return [Hash] Returns the object in the form of hash
|
317
|
-
def to_hash
|
318
|
-
hash = {}
|
319
|
-
self.class.attribute_map.each_pair do |attr, param|
|
320
|
-
value = self.send(attr)
|
321
|
-
next if value.nil?
|
322
|
-
hash[param] = _to_hash(value)
|
323
|
-
end
|
324
|
-
hash
|
325
|
-
end
|
326
|
-
|
327
|
-
private
|
328
|
-
|
329
|
-
# Outputs non-array value in the form of hash
|
330
|
-
# For object, use to_hash. Otherwise, just return the value
|
331
|
-
# @param [Object] value Any valid value
|
332
|
-
# @return [Hash] Returns the value in the form of hash
|
333
|
-
def _to_hash(value)
|
334
|
-
if value.is_a?(Array)
|
335
|
-
value.compact.map{ |v| _to_hash(v) }
|
336
|
-
elsif value.is_a?(Hash)
|
337
|
-
{}.tap do |hash|
|
338
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
339
|
-
end
|
340
|
-
elsif value.respond_to? :to_hash
|
341
|
-
value.to_hash
|
342
|
-
else
|
343
|
-
value
|
344
|
-
end
|
345
|
-
end
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
350
|
-
def self.attribute_map
|
351
|
-
{
|
352
|
-
:'bandwidth_shape_name' => :'bandwidthShapeName',
|
353
|
-
:'bgp_session_state' => :'bgpSessionState',
|
354
|
-
:'compartment_id' => :'compartmentId',
|
355
|
-
:'cross_connect_mappings' => :'crossConnectMappings',
|
356
|
-
:'customer_bgp_asn' => :'customerBgpAsn',
|
357
|
-
:'display_name' => :'displayName',
|
358
|
-
:'gateway_id' => :'gatewayId',
|
359
|
-
:'id' => :'id',
|
360
|
-
:'lifecycle_state' => :'lifecycleState',
|
361
|
-
:'oracle_bgp_asn' => :'oracleBgpAsn',
|
362
|
-
:'provider_name' => :'providerName',
|
363
|
-
:'provider_service_name' => :'providerServiceName',
|
364
|
-
:'provider_state' => :'providerState',
|
365
|
-
:'reference_comment' => :'referenceComment',
|
366
|
-
:'region' => :'region',
|
367
|
-
:'time_created' => :'timeCreated',
|
368
|
-
:'type' => :'type'
|
369
|
-
}
|
370
|
-
end
|
371
|
-
|
372
|
-
# Attribute type mapping.
|
373
|
-
def self.swagger_types
|
374
|
-
{
|
375
|
-
:'bandwidth_shape_name' => :'String',
|
376
|
-
:'bgp_session_state' => :'String',
|
377
|
-
:'compartment_id' => :'String',
|
378
|
-
:'cross_connect_mappings' => :'Array<OracleBMC::Core::Models::CrossConnectMapping>',
|
379
|
-
:'customer_bgp_asn' => :'Integer',
|
380
|
-
:'display_name' => :'String',
|
381
|
-
:'gateway_id' => :'String',
|
382
|
-
:'id' => :'String',
|
383
|
-
:'lifecycle_state' => :'String',
|
384
|
-
:'oracle_bgp_asn' => :'Integer',
|
385
|
-
:'provider_name' => :'String',
|
386
|
-
:'provider_service_name' => :'String',
|
387
|
-
:'provider_state' => :'String',
|
388
|
-
:'reference_comment' => :'String',
|
389
|
-
:'region' => :'String',
|
390
|
-
:'time_created' => :'DateTime',
|
391
|
-
:'type' => :'String'
|
392
|
-
}
|
393
|
-
end
|
394
|
-
end
|
395
|
-
end
|
@@ -1,137 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Core::Models::VirtualCircuitBandwidthShape
|
7
|
-
# The bandwidth in Mbps.
|
8
|
-
#
|
9
|
-
# Example: `10000`
|
10
|
-
#
|
11
|
-
# @return [Integer]
|
12
|
-
attr_accessor :bandwidth_in_mbps
|
13
|
-
|
14
|
-
# The name of the bandwidth shape.
|
15
|
-
#
|
16
|
-
# Example: `10 Gbps`
|
17
|
-
#
|
18
|
-
# @return [String]
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
|
22
|
-
# Initializes the object
|
23
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
-
def initialize(attributes = {})
|
25
|
-
return unless attributes.is_a?(Hash)
|
26
|
-
|
27
|
-
# convert string to symbol for hash key
|
28
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
29
|
-
|
30
|
-
if attributes[:'bandwidthInMbps']
|
31
|
-
self.bandwidth_in_mbps = attributes[:'bandwidthInMbps']
|
32
|
-
end
|
33
|
-
|
34
|
-
if attributes[:'name']
|
35
|
-
self.name = attributes[:'name']
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
# Checks equality by comparing each attribute.
|
41
|
-
# @param [Object] other_object to be compared
|
42
|
-
def ==(other_object)
|
43
|
-
return true if self.equal?(other_object)
|
44
|
-
self.class == other_object.class &&
|
45
|
-
bandwidth_in_mbps == other_object.bandwidth_in_mbps &&
|
46
|
-
name == other_object.name
|
47
|
-
end
|
48
|
-
|
49
|
-
# @see the `==` method
|
50
|
-
# @param [Object] other_object to be compared
|
51
|
-
def eql?(other_object)
|
52
|
-
self == other_object
|
53
|
-
end
|
54
|
-
|
55
|
-
# Calculates hash code according to all attributes.
|
56
|
-
# @return [Fixnum] Hash code
|
57
|
-
def hash
|
58
|
-
[bandwidth_in_mbps, name].hash
|
59
|
-
end
|
60
|
-
|
61
|
-
# Builds the object from hash
|
62
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
-
# @return [Object] Returns the model itself
|
64
|
-
def build_from_hash(attributes)
|
65
|
-
return nil unless attributes.is_a?(Hash)
|
66
|
-
self.class.swagger_types.each_pair do |key, type|
|
67
|
-
if type =~ /^Array<(.*)>/i
|
68
|
-
# check to ensure the input is an array given that the the attribute
|
69
|
-
# is documented as an array but the input is not
|
70
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
71
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
72
|
-
end
|
73
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
74
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
75
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
76
|
-
end
|
77
|
-
|
78
|
-
self
|
79
|
-
end
|
80
|
-
|
81
|
-
# Returns the string representation of the object
|
82
|
-
# @return [String] String presentation of the object
|
83
|
-
def to_s
|
84
|
-
to_hash.to_s
|
85
|
-
end
|
86
|
-
|
87
|
-
# Returns the object in the form of hash
|
88
|
-
# @return [Hash] Returns the object in the form of hash
|
89
|
-
def to_hash
|
90
|
-
hash = {}
|
91
|
-
self.class.attribute_map.each_pair do |attr, param|
|
92
|
-
value = self.send(attr)
|
93
|
-
next if value.nil?
|
94
|
-
hash[param] = _to_hash(value)
|
95
|
-
end
|
96
|
-
hash
|
97
|
-
end
|
98
|
-
|
99
|
-
private
|
100
|
-
|
101
|
-
# Outputs non-array value in the form of hash
|
102
|
-
# For object, use to_hash. Otherwise, just return the value
|
103
|
-
# @param [Object] value Any valid value
|
104
|
-
# @return [Hash] Returns the value in the form of hash
|
105
|
-
def _to_hash(value)
|
106
|
-
if value.is_a?(Array)
|
107
|
-
value.compact.map{ |v| _to_hash(v) }
|
108
|
-
elsif value.is_a?(Hash)
|
109
|
-
{}.tap do |hash|
|
110
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
111
|
-
end
|
112
|
-
elsif value.respond_to? :to_hash
|
113
|
-
value.to_hash
|
114
|
-
else
|
115
|
-
value
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
122
|
-
def self.attribute_map
|
123
|
-
{
|
124
|
-
:'bandwidth_in_mbps' => :'bandwidthInMbps',
|
125
|
-
:'name' => :'name'
|
126
|
-
}
|
127
|
-
end
|
128
|
-
|
129
|
-
# Attribute type mapping.
|
130
|
-
def self.swagger_types
|
131
|
-
{
|
132
|
-
:'bandwidth_in_mbps' => :'Integer',
|
133
|
-
:'name' => :'String'
|
134
|
-
}
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|