Class: UntitledApi::ApiV1OrgsGatewaytemplatesRequest1

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/api_v1_orgs_gatewaytemplates_request1.rb

Overview

ApiV1OrgsGatewaytemplatesRequest1 Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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_cmdsObject

TODO: Write general description for this method

Returns:

  • (Object)


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_cmdsObject

TODO: Write general description for this method

Returns:

  • (Object)


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

#nameString

TODO: Write general description for this method

Returns:

  • (String)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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