Class: OCI::Core::Models::FastConnectProviderService
- Inherits:
-
Object
- Object
- OCI::Core::Models::FastConnectProviderService
- Defined in:
- lib/oci/core/models/fast_connect_provider_service.rb
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
The OCID of the service offered by the provider.
-
#private_peering_bgp_management ⇒ String
Private peering BGP management.
-
#provider_name ⇒ String
The name of the provider.
-
#provider_service_name ⇒ String
The name of the service offered by the provider.
-
#public_peering_bgp_management ⇒ String
Public peering BGP management.
-
#supported_virtual_circuit_types ⇒ Array<String>
An array of virtual circuit types supported by this service.
-
#type ⇒ String
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
72 73 74 75 76 77 78 79 80 81 82 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 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 72 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 if attributes[:'providerName'] self.provider_name = attributes[:'providerName'] end if attributes[:'providerServiceName'] self.provider_service_name = attributes[:'providerServiceName'] end if attributes[:'publicPeeringBgpManagement'] self.public_peering_bgp_management = attributes[:'publicPeeringBgpManagement'] end if attributes[:'supportedVirtualCircuitTypes'] self.supported_virtual_circuit_types = attributes[:'supportedVirtualCircuitTypes'] end if attributes[:'type'] self.type = attributes[:'type'] end end |
Instance Attribute Details
#description ⇒ String
A description of the service offered by the provider.
32 33 34 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 32 def description @description end |
#id ⇒ String
The OCID of the service offered by the provider.
37 38 39 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 37 def id @id end |
#private_peering_bgp_management ⇒ String
Private peering BGP management.
42 43 44 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 42 def private_peering_bgp_management @private_peering_bgp_management end |
#provider_name ⇒ String
The name of the provider.
47 48 49 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 47 def provider_name @provider_name end |
#provider_service_name ⇒ String
The name of the service offered by the provider.
52 53 54 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 52 def provider_service_name @provider_service_name end |
#public_peering_bgp_management ⇒ String
Public peering BGP management.
57 58 59 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 57 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.
62 63 64 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 62 def supported_virtual_circuit_types @supported_virtual_circuit_types end |
#type ⇒ String
Provider service type.
67 68 69 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 67 def type @type end |
Instance Method Details
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
157 158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 157 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
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 185 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
172 173 174 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 172 def eql?(other_object) self == other_object end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
178 179 180 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 178 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
210 211 212 213 214 215 216 217 218 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 210 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
204 205 206 |
# File 'lib/oci/core/models/fast_connect_provider_service.rb', line 204 def to_s to_hash.to_s end |