Class: Verizon::ResourcesEdgeHostedService
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- Verizon::ResourcesEdgeHostedService
- Defined in:
- lib/verizon/models/resources_edge_hosted_service.rb
Overview
Edge hosted service represented by Service Endpoint definition.
Instance Attribute Summary collapse
-
#application_id ⇒ String
Unique ID representing the Edge Application.
-
#application_server_provider_id ⇒ String
Unique ID representing the Edge Application Provider.
-
#ern ⇒ String
Edge Resource Name.
-
#service_description ⇒ String
Unique ID representing the Edge Application.
-
#service_endpoint ⇒ ResourcesServiceEndpoint
Service Endpoint path, address, and port.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(ern = SKIP, service_endpoint = SKIP, application_server_provider_id = SKIP, application_id = SKIP, service_description = SKIP) ⇒ ResourcesEdgeHostedService
constructor
A new instance of ResourcesEdgeHostedService.
Methods inherited from BaseModel
Constructor Details
#initialize(ern = SKIP, service_endpoint = SKIP, application_server_provider_id = SKIP, application_id = SKIP, service_description = SKIP) ⇒ ResourcesEdgeHostedService
Returns a new instance of ResourcesEdgeHostedService.
59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 59 def initialize(ern = SKIP, service_endpoint = SKIP, application_server_provider_id = SKIP, application_id = SKIP, service_description = SKIP) @ern = ern unless ern == SKIP @service_endpoint = service_endpoint unless service_endpoint == SKIP unless application_server_provider_id == SKIP @application_server_provider_id = application_server_provider_id end @application_id = application_id unless application_id == SKIP @service_description = service_description unless service_description == SKIP end |
Instance Attribute Details
#application_id ⇒ String
Unique ID representing the Edge Application.
26 27 28 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 26 def application_id @application_id end |
#application_server_provider_id ⇒ String
Unique ID representing the Edge Application Provider.
22 23 24 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 22 def application_server_provider_id @application_server_provider_id end |
#ern ⇒ String
Edge Resource Name. A string identifier for a set of edge resources.
14 15 16 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 14 def ern @ern end |
#service_description ⇒ String
Unique ID representing the Edge Application.
30 31 32 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 30 def service_description @service_description end |
#service_endpoint ⇒ ResourcesServiceEndpoint
Service Endpoint path, address, and port.
18 19 20 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 18 def service_endpoint @service_endpoint end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 73 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. ern = hash.key?('ern') ? hash['ern'] : SKIP service_endpoint = ResourcesServiceEndpoint.from_hash(hash['serviceEndpoint']) if hash['serviceEndpoint'] application_server_provider_id = hash.key?('applicationServerProviderId') ? hash['applicationServerProviderId'] : SKIP application_id = hash.key?('applicationId') ? hash['applicationId'] : SKIP service_description = hash.key?('serviceDescription') ? hash['serviceDescription'] : SKIP # Create object from extracted values. ResourcesEdgeHostedService.new(ern, service_endpoint, application_server_provider_id, application_id, service_description) end |
.names ⇒ Object
A mapping from model property names to API property names.
33 34 35 36 37 38 39 40 41 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 33 def self.names @_hash = {} if @_hash.nil? @_hash['ern'] = 'ern' @_hash['service_endpoint'] = 'serviceEndpoint' @_hash['application_server_provider_id'] = 'applicationServerProviderId' @_hash['application_id'] = 'applicationId' @_hash['service_description'] = 'serviceDescription' @_hash end |
.nullables ⇒ Object
An array for nullable fields
55 56 57 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 55 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
44 45 46 47 48 49 50 51 52 |
# File 'lib/verizon/models/resources_edge_hosted_service.rb', line 44 def self.optionals %w[ ern service_endpoint application_server_provider_id application_id service_description ] end |