Class: OCI::Core::Models::FastConnectProviderService
- Inherits:
-
Object
- Object
- OCI::Core::Models::FastConnectProviderService
- Defined in:
- lib/oci/core/models/fast_connect_provider_service.rb
Overview
A service offering from a supported provider. For more information, see [FastConnect Overview](docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/fastconnect.htm).
Constant Summary collapse
- PRIVATE_PEERING_BGP_MANAGEMENT_ENUM =
[PRIVATE_PEERING_BGP_MANAGEMENT_CUSTOMER_MANAGED = 'CUSTOMER_MANAGED', PRIVATE_PEERING_BGP_MANAGEMENT_PROVIDER_MANAGED = 'PROVIDER_MANAGED', PRIVATE_PEERING_BGP_MANAGEMENT_ORACLE_MANAGED = 'ORACLE_MANAGED', PRIVATE_PEERING_BGP_MANAGEMENT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- PUBLIC_PEERING_BGP_MANAGEMENT_ENUM =
[PUBLIC_PEERING_BGP_MANAGEMENT_CUSTOMER_MANAGED = 'CUSTOMER_MANAGED', PUBLIC_PEERING_BGP_MANAGEMENT_PROVIDER_MANAGED = 'PROVIDER_MANAGED', PUBLIC_PEERING_BGP_MANAGEMENT_ORACLE_MANAGED = 'ORACLE_MANAGED', PUBLIC_PEERING_BGP_MANAGEMENT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- SUPPORTED_VIRTUAL_CIRCUIT_TYPES_ENUM =
[SUPPORTED_VIRTUAL_CIRCUIT_TYPES_PUBLIC = 'PUBLIC', SUPPORTED_VIRTUAL_CIRCUIT_TYPES_PRIVATE = 'PRIVATE', SUPPORTED_VIRTUAL_CIRCUIT_TYPES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- TYPE_ENUM =
[TYPE_LAYER2 = 'LAYER2', TYPE_LAYER3 = 'LAYER3', TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
Instance Attribute Summary collapse
-
#description ⇒ String
A description of the service offered by the provider.
-
#id ⇒ String
[Required] The OCID of the service offered by the provider.
-
#private_peering_bgp_management ⇒ String
[Required] Private peering BGP management.
-
#provider_name ⇒ String
[Required] The name of the provider.
-
#provider_service_name ⇒ String
[Required] The name of the service offered by the provider.
-
#public_peering_bgp_management ⇒ String
[Required] Public peering BGP management.
-
#supported_virtual_circuit_types ⇒ Array<String>
An array of virtual circuit types supported by this service.
-
#type ⇒ String
[Required] Provider service type.
Instance Method Summary collapse
-
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other_object) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ FastConnectProviderService
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ FastConnectProviderService
Initializes the object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 83 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes[:'description'] self.description = attributes[:'description'] end if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'privatePeeringBgpManagement'] self.private_peering_bgp_management = attributes[:'privatePeeringBgpManagement'] end raise 'You cannot provide both :privatePeeringBgpManagement and :private_peering_bgp_management' if attributes.key?(:'privatePeeringBgpManagement') && attributes.key?(:'private_peering_bgp_management') if attributes[:'private_peering_bgp_management'] self.private_peering_bgp_management = attributes[:'private_peering_bgp_management'] end if attributes[:'providerName'] self.provider_name = attributes[:'providerName'] end raise 'You cannot provide both :providerName and :provider_name' if attributes.key?(:'providerName') && attributes.key?(:'provider_name') if attributes[:'provider_name'] self.provider_name = attributes[:'provider_name'] end if attributes[:'providerServiceName'] self.provider_service_name = attributes[:'providerServiceName'] end raise 'You cannot provide both :providerServiceName and :provider_service_name' if attributes.key?(:'providerServiceName') && attributes.key?(:'provider_service_name') if attributes[:'provider_service_name'] self.provider_service_name = attributes[:'provider_service_name'] end if attributes[:'publicPeeringBgpManagement'] self.public_peering_bgp_management = attributes[:'publicPeeringBgpManagement'] end raise 'You cannot provide both :publicPeeringBgpManagement and :public_peering_bgp_management' if attributes.key?(:'publicPeeringBgpManagement') && attributes.key?(:'public_peering_bgp_management') if attributes[:'public_peering_bgp_management'] self.public_peering_bgp_management = attributes[:'public_peering_bgp_management'] end if attributes[:'supportedVirtualCircuitTypes'] self.supported_virtual_circuit_types = attributes[:'supportedVirtualCircuitTypes'] end raise 'You cannot provide both :supportedVirtualCircuitTypes and :supported_virtual_circuit_types' if attributes.key?(:'supportedVirtualCircuitTypes') && attributes.key?(:'supported_virtual_circuit_types') if attributes[:'supported_virtual_circuit_types'] self.supported_virtual_circuit_types = attributes[:'supported_virtual_circuit_types'] end if attributes[:'type'] self.type = attributes[:'type'] end end |
Instance Attribute Details
#description ⇒ String
A description of the service offered by the provider.
35 36 37 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 35 def description @description end |
#id ⇒ String
[Required] The OCID of the service offered by the provider.
40 41 42 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 40 def id @id end |
#private_peering_bgp_management ⇒ String
[Required] Private peering BGP management.
45 46 47 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 45 def private_peering_bgp_management @private_peering_bgp_management end |
#provider_name ⇒ String
[Required] The name of the provider.
50 51 52 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 50 def provider_name @provider_name end |
#provider_service_name ⇒ String
[Required] The name of the service offered by the provider.
55 56 57 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 55 def provider_service_name @provider_service_name end |
#public_peering_bgp_management ⇒ String
[Required] Public peering BGP management.
60 61 62 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 60 def public_peering_bgp_management @public_peering_bgp_management end |
#supported_virtual_circuit_types ⇒ Array<String>
An array of virtual circuit types supported by this service.
65 66 67 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 65 def supported_virtual_circuit_types @supported_virtual_circuit_types end |
#type ⇒ String
[Required] Provider service type.
70 71 72 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 70 def type @type end |
Instance Method Details
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 198 def ==(other_object) return true if self.equal?(other_object) self.class == other_object.class && description == other_object.description && id == other_object.id && private_peering_bgp_management == other_object.private_peering_bgp_management && provider_name == other_object.provider_name && provider_service_name == other_object.provider_service_name && public_peering_bgp_management == other_object.public_peering_bgp_management && supported_virtual_circuit_types == other_object.supported_virtual_circuit_types && type == other_object.type end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 226 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other_object) ⇒ Boolean
213 214 215 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 213 def eql?(other_object) self == other_object end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
219 220 221 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 219 def hash [description, id, private_peering_bgp_management, provider_name, provider_service_name, public_peering_bgp_management, supported_virtual_circuit_types, type].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
251 252 253 254 255 256 257 258 259 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 251 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
245 246 247 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 245 def to_s to_hash.to_s end |