Class: UntitledApi::ApiV1OrgsSRegisterResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1OrgsSRegisterResponse1
- Defined in:
- lib/untitled_api/models/api_v1_orgs_s_register_response1.rb
Overview
ApiV1OrgsSRegisterResponse1 Model.
Instance Attribute Summary collapse
-
#env ⇒ String
TODO: Write general description for this method.
-
#epterm_fips_url ⇒ String
TODO: Write general description for this method.
-
#epterm_url ⇒ String
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#org_id ⇒ String
TODO: Write general description for this method.
-
#provider ⇒ String
TODO: Write general description for this method.
-
#token ⇒ String
TODO: Write general description for this method.
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(id = SKIP, org_id = SKIP, env = SKIP, provider = SKIP, epterm_url = SKIP, token = SKIP, epterm_fips_url = SKIP) ⇒ ApiV1OrgsSRegisterResponse1
constructor
A new instance of ApiV1OrgsSRegisterResponse1.
Methods inherited from BaseModel
Constructor Details
#initialize(id = SKIP, org_id = SKIP, env = SKIP, provider = SKIP, epterm_url = SKIP, token = SKIP, epterm_fips_url = SKIP) ⇒ ApiV1OrgsSRegisterResponse1
Returns a new instance of ApiV1OrgsSRegisterResponse1.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 71 def initialize(id = SKIP, org_id = SKIP, env = SKIP, provider = SKIP, epterm_url = SKIP, token = SKIP, epterm_fips_url = SKIP) @id = id unless id == SKIP @org_id = org_id unless org_id == SKIP @env = env unless env == SKIP @provider = provider unless provider == SKIP @epterm_url = epterm_url unless epterm_url == SKIP @token = token unless token == SKIP @epterm_fips_url = epterm_fips_url unless epterm_fips_url == SKIP end |
Instance Attribute Details
#env ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 22 def env @env end |
#epterm_fips_url ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 38 def epterm_fips_url @epterm_fips_url end |
#epterm_url ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 30 def epterm_url @epterm_url end |
#id ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 14 def id @id end |
#org_id ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 18 def org_id @org_id end |
#provider ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 26 def provider @provider end |
#token ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 34 def token @token end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 88 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash.key?('id') ? hash['id'] : SKIP org_id = hash.key?('org_id') ? hash['org_id'] : SKIP env = hash.key?('env') ? hash['env'] : SKIP provider = hash.key?('provider') ? hash['provider'] : SKIP epterm_url = hash.key?('epterm_url') ? hash['epterm_url'] : SKIP token = hash.key?('token') ? hash['token'] : SKIP epterm_fips_url = hash.key?('epterm_fips_url') ? hash['epterm_fips_url'] : SKIP # Create object from extracted values. ApiV1OrgsSRegisterResponse1.new(id, org_id, env, provider, epterm_url, token, epterm_fips_url) end |
.names ⇒ Object
A mapping from model property names to API property names.
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 41 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['org_id'] = 'org_id' @_hash['env'] = 'env' @_hash['provider'] = 'provider' @_hash['epterm_url'] = 'epterm_url' @_hash['token'] = 'token' @_hash['epterm_fips_url'] = 'epterm_fips_url' @_hash end |
.nullables ⇒ Object
An array for nullable fields
67 68 69 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 67 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/untitled_api/models/api_v1_orgs_s_register_response1.rb', line 54 def self.optionals %w[ id org_id env provider epterm_url token epterm_fips_url ] end |