Class: UntitledApi::ApiV1OrgsGatewaytemplatesRequest1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1OrgsGatewaytemplatesRequest1
- Defined in:
- lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb
Overview
ApiV1OrgsGatewaytemplatesRequest1 Model.
Instance Attribute Summary collapse
-
#additional_config_cmds ⇒ Object
TODO: Write general description for this method.
-
#gateway_additional_config_cmds ⇒ Object
TODO: Write general description for this method.
-
#name ⇒ 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(name = SKIP, additional_config_cmds = SKIP, gateway_additional_config_cmds = SKIP) ⇒ ApiV1OrgsGatewaytemplatesRequest1
constructor
A new instance of ApiV1OrgsGatewaytemplatesRequest1.
Methods inherited from BaseModel
Constructor Details
#initialize(name = SKIP, additional_config_cmds = SKIP, gateway_additional_config_cmds = SKIP) ⇒ ApiV1OrgsGatewaytemplatesRequest1
Returns a new instance of ApiV1OrgsGatewaytemplatesRequest1.
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 48 def initialize(name = SKIP, additional_config_cmds = SKIP, gateway_additional_config_cmds = SKIP) @name = name unless name == SKIP @additional_config_cmds = additional_config_cmds unless additional_config_cmds == SKIP unless gateway_additional_config_cmds == SKIP @gateway_additional_config_cmds = gateway_additional_config_cmds end end |
Instance Attribute Details
#additional_config_cmds ⇒ Object
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 18 def additional_config_cmds @additional_config_cmds end |
#gateway_additional_config_cmds ⇒ Object
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 22 def gateway_additional_config_cmds @gateway_additional_config_cmds end |
#name ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 14 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 60 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. name = hash.key?('name') ? hash['name'] : SKIP additional_config_cmds = hash.key?('additional_config_cmds') ? hash['additional_config_cmds'] : SKIP gateway_additional_config_cmds = hash.key?('gateway_additional_config_cmds') ? hash['gateway_additional_config_cmds'] : SKIP # Create object from extracted values. ApiV1OrgsGatewaytemplatesRequest1.new(name, additional_config_cmds, gateway_additional_config_cmds) end |
.names ⇒ Object
A mapping from model property names to API property names.
25 26 27 28 29 30 31 32 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 25 def self.names @_hash = {} if @_hash.nil? @_hash['name'] = 'name' @_hash['additional_config_cmds'] = 'additional_config_cmds' @_hash['gateway_additional_config_cmds'] = 'gateway_additional_config_cmds' @_hash end |
.nullables ⇒ Object
An array for nullable fields
44 45 46 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 44 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
35 36 37 38 39 40 41 |
# File 'lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb', line 35 def self.optionals %w[ name additional_config_cmds gateway_additional_config_cmds ] end |