Class: Softlayer::Network::Tunnel::Module::Context

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/tunnel/module/context.rb,
lib/softlayer/network/tunnel/module/context/address.rb,
lib/softlayer/network/tunnel/module/context/address/translation.rb

Defined Under Namespace

Modules: Address Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Tunnel_Module_Context'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



34
35
36
# File 'lib/softlayer/network/tunnel/module/context.rb', line 34

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



8
9
10
# File 'lib/softlayer/network/tunnel/module/context.rb', line 8

def 
  @account_id
end

#active_transactionObject

Returns the value of attribute active_transaction.



35
36
37
# File 'lib/softlayer/network/tunnel/module/context.rb', line 35

def active_transaction
  @active_transaction
end

#address_translation_countObject

Returns the value of attribute address_translation_count.



27
28
29
# File 'lib/softlayer/network/tunnel/module/context.rb', line 27

def address_translation_count
  @address_translation_count
end

#address_translationsObject

Returns the value of attribute address_translations.



36
37
38
# File 'lib/softlayer/network/tunnel/module/context.rb', line 36

def address_translations
  @address_translations
end

#advanced_configuration_flagObject

Returns the value of attribute advanced_configuration_flag.



9
10
11
# File 'lib/softlayer/network/tunnel/module/context.rb', line 9

def advanced_configuration_flag
  @advanced_configuration_flag
end

#all_available_service_subnet_countObject

Returns the value of attribute all_available_service_subnet_count.



28
29
30
# File 'lib/softlayer/network/tunnel/module/context.rb', line 28

def all_available_service_subnet_count
  @all_available_service_subnet_count
end

#all_available_service_subnetsObject

Returns the value of attribute all_available_service_subnets.



37
38
39
# File 'lib/softlayer/network/tunnel/module/context.rb', line 37

def all_available_service_subnets
  @all_available_service_subnets
end

#billing_itemObject

Returns the value of attribute billing_item.



38
39
40
# File 'lib/softlayer/network/tunnel/module/context.rb', line 38

def billing_item
  @billing_item
end

#create_dateObject

Returns the value of attribute create_date.



10
11
12
# File 'lib/softlayer/network/tunnel/module/context.rb', line 10

def create_date
  @create_date
end

#customer_peer_ip_addressObject

Returns the value of attribute customer_peer_ip_address.



11
12
13
# File 'lib/softlayer/network/tunnel/module/context.rb', line 11

def customer_peer_ip_address
  @customer_peer_ip_address
end

#customer_subnet_countObject

Returns the value of attribute customer_subnet_count.



29
30
31
# File 'lib/softlayer/network/tunnel/module/context.rb', line 29

def customer_subnet_count
  @customer_subnet_count
end

#customer_subnetsObject

Returns the value of attribute customer_subnets.



39
40
41
# File 'lib/softlayer/network/tunnel/module/context.rb', line 39

def customer_subnets
  @customer_subnets
end

#datacenterObject

Returns the value of attribute datacenter.



40
41
42
# File 'lib/softlayer/network/tunnel/module/context.rb', line 40

def datacenter
  @datacenter
end

#friendly_nameObject

Returns the value of attribute friendly_name.



12
13
14
# File 'lib/softlayer/network/tunnel/module/context.rb', line 12

def friendly_name
  @friendly_name
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/softlayer/network/tunnel/module/context.rb', line 13

def id
  @id
end

#internal_peer_ip_addressObject

Returns the value of attribute internal_peer_ip_address.



14
15
16
# File 'lib/softlayer/network/tunnel/module/context.rb', line 14

def internal_peer_ip_address
  @internal_peer_ip_address
end

#internal_subnet_countObject

Returns the value of attribute internal_subnet_count.



30
31
32
# File 'lib/softlayer/network/tunnel/module/context.rb', line 30

def internal_subnet_count
  @internal_subnet_count
end

#internal_subnetsObject

Returns the value of attribute internal_subnets.



41
42
43
# File 'lib/softlayer/network/tunnel/module/context.rb', line 41

def internal_subnets
  @internal_subnets
end

#modify_dateObject

Returns the value of attribute modify_date.



15
16
17
# File 'lib/softlayer/network/tunnel/module/context.rb', line 15

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/softlayer/network/tunnel/module/context.rb', line 16

def name
  @name
end

#phase_one_authenticationObject

Returns the value of attribute phase_one_authentication.



17
18
19
# File 'lib/softlayer/network/tunnel/module/context.rb', line 17

def phase_one_authentication
  @phase_one_authentication
end

#phase_one_diffie_hellman_groupObject

Returns the value of attribute phase_one_diffie_hellman_group.



18
19
20
# File 'lib/softlayer/network/tunnel/module/context.rb', line 18

def phase_one_diffie_hellman_group
  @phase_one_diffie_hellman_group
end

#phase_one_encryptionObject

Returns the value of attribute phase_one_encryption.



19
20
21
# File 'lib/softlayer/network/tunnel/module/context.rb', line 19

def phase_one_encryption
  @phase_one_encryption
end

#phase_one_keylifeObject

Returns the value of attribute phase_one_keylife.



20
21
22
# File 'lib/softlayer/network/tunnel/module/context.rb', line 20

def phase_one_keylife
  @phase_one_keylife
end

#phase_two_authenticationObject

Returns the value of attribute phase_two_authentication.



21
22
23
# File 'lib/softlayer/network/tunnel/module/context.rb', line 21

def phase_two_authentication
  @phase_two_authentication
end

#phase_two_diffie_hellman_groupObject

Returns the value of attribute phase_two_diffie_hellman_group.



22
23
24
# File 'lib/softlayer/network/tunnel/module/context.rb', line 22

def phase_two_diffie_hellman_group
  @phase_two_diffie_hellman_group
end

#phase_two_encryptionObject

Returns the value of attribute phase_two_encryption.



23
24
25
# File 'lib/softlayer/network/tunnel/module/context.rb', line 23

def phase_two_encryption
  @phase_two_encryption
end

#phase_two_keylifeObject

Returns the value of attribute phase_two_keylife.



24
25
26
# File 'lib/softlayer/network/tunnel/module/context.rb', line 24

def phase_two_keylife
  @phase_two_keylife
end

#phase_two_perfect_forward_secrecyObject

Returns the value of attribute phase_two_perfect_forward_secrecy.



25
26
27
# File 'lib/softlayer/network/tunnel/module/context.rb', line 25

def phase_two_perfect_forward_secrecy
  @phase_two_perfect_forward_secrecy
end

#preshared_keyObject

Returns the value of attribute preshared_key.



26
27
28
# File 'lib/softlayer/network/tunnel/module/context.rb', line 26

def preshared_key
  @preshared_key
end

#service_subnet_countObject

Returns the value of attribute service_subnet_count.



31
32
33
# File 'lib/softlayer/network/tunnel/module/context.rb', line 31

def service_subnet_count
  @service_subnet_count
end

#service_subnetsObject

Returns the value of attribute service_subnets.



42
43
44
# File 'lib/softlayer/network/tunnel/module/context.rb', line 42

def service_subnets
  @service_subnets
end

#static_route_subnet_countObject

Returns the value of attribute static_route_subnet_count.



32
33
34
# File 'lib/softlayer/network/tunnel/module/context.rb', line 32

def static_route_subnet_count
  @static_route_subnet_count
end

#static_route_subnetsObject

Returns the value of attribute static_route_subnets.



43
44
45
# File 'lib/softlayer/network/tunnel/module/context.rb', line 43

def static_route_subnets
  @static_route_subnets
end

#transaction_historyObject

Returns the value of attribute transaction_history.



44
45
46
# File 'lib/softlayer/network/tunnel/module/context.rb', line 44

def transaction_history
  @transaction_history
end

#transaction_history_countObject

Returns the value of attribute transaction_history_count.



33
34
35
# File 'lib/softlayer/network/tunnel/module/context.rb', line 33

def transaction_history_count
  @transaction_history_count
end

Class Method Details

.get_authentication_defaultObject



123
124
125
# File 'lib/softlayer/network/tunnel/module/context.rb', line 123

def self.get_authentication_default
  request(:get_authentication_default, String)
end

.get_authentication_optionsObject



127
128
129
# File 'lib/softlayer/network/tunnel/module/context.rb', line 127

def self.get_authentication_options
  request(:get_authentication_options, Array[String])
end

.get_diffie_hellman_group_defaultObject



143
144
145
# File 'lib/softlayer/network/tunnel/module/context.rb', line 143

def self.get_diffie_hellman_group_default
  request(:get_diffie_hellman_group_default, Integer)
end

.get_diffie_hellman_group_optionsObject



147
148
149
# File 'lib/softlayer/network/tunnel/module/context.rb', line 147

def self.get_diffie_hellman_group_options
  request(:get_diffie_hellman_group_options, Array[Integer])
end

.get_encryption_defaultObject



151
152
153
# File 'lib/softlayer/network/tunnel/module/context.rb', line 151

def self.get_encryption_default
  request(:get_encryption_default, String)
end

.get_encryption_optionsObject



155
156
157
# File 'lib/softlayer/network/tunnel/module/context.rb', line 155

def self.get_encryption_options
  request(:get_encryption_options, Array[String])
end

.get_keylife_limitsObject



163
164
165
# File 'lib/softlayer/network/tunnel/module/context.rb', line 163

def self.get_keylife_limits
  request(:get_keylife_limits, Array[Integer])
end

.get_phase_one_keylife_defaultObject



175
176
177
# File 'lib/softlayer/network/tunnel/module/context.rb', line 175

def self.get_phase_one_keylife_default
  request(:get_phase_one_keylife_default, String)
end

.get_phase_two_keylife_defaultObject



179
180
181
# File 'lib/softlayer/network/tunnel/module/context.rb', line 179

def self.get_phase_two_keylife_default
  request(:get_phase_two_keylife_default, String)
end

Instance Method Details

#add_customer_subnet_to_network_tunnel(message) ⇒ Object

subnet_id



47
48
49
# File 'lib/softlayer/network/tunnel/module/context.rb', line 47

def add_customer_subnet_to_network_tunnel(message)
  request(:add_customer_subnet_to_network_tunnel, Boolean, message)
end

#add_private_subnet_to_network_tunnel(message) ⇒ Object

subnet_id



52
53
54
# File 'lib/softlayer/network/tunnel/module/context.rb', line 52

def add_private_subnet_to_network_tunnel(message)
  request(:add_private_subnet_to_network_tunnel, Boolean, message)
end

#add_service_subnet_to_network_tunnel(message) ⇒ Object

subnet_id



57
58
59
# File 'lib/softlayer/network/tunnel/module/context.rb', line 57

def add_service_subnet_to_network_tunnel(message)
  request(:add_service_subnet_to_network_tunnel, Boolean, message)
end

#apply_configurations_to_deviceObject



61
62
63
# File 'lib/softlayer/network/tunnel/module/context.rb', line 61

def apply_configurations_to_device
  request(:apply_configurations_to_device, Boolean)
end

#create_address_translation(message) ⇒ Object

translation



66
67
68
# File 'lib/softlayer/network/tunnel/module/context.rb', line 66

def create_address_translation(message)
  request(:create_address_translation, Softlayer::Network::Tunnel::Module::Context::Address::Translation, message)
end

#create_address_translations(message) ⇒ Object

translations



71
72
73
# File 'lib/softlayer/network/tunnel/module/context.rb', line 71

def create_address_translations(message)
  request(:create_address_translations, Array[Softlayer::Network::Tunnel::Module::Context::Address::Translation], message)
end

#delete_address_translation(message) ⇒ Object

translation_id



76
77
78
# File 'lib/softlayer/network/tunnel/module/context.rb', line 76

def delete_address_translation(message)
  request(:delete_address_translation, Boolean, message)
end

#download_address_translation_configurationsObject



80
81
82
# File 'lib/softlayer/network/tunnel/module/context.rb', line 80

def download_address_translation_configurations
  request(:download_address_translation_configurations, Softlayer::Container::Utility::File::Entity)
end

#download_parameter_configurationsObject



84
85
86
# File 'lib/softlayer/network/tunnel/module/context.rb', line 84

def download_parameter_configurations
  request(:download_parameter_configurations, Softlayer::Container::Utility::File::Entity)
end

#edit_address_translation(message) ⇒ Object

translation



89
90
91
# File 'lib/softlayer/network/tunnel/module/context.rb', line 89

def edit_address_translation(message)
  request(:edit_address_translation, Softlayer::Network::Tunnel::Module::Context::Address::Translation, message)
end

#edit_address_translations(message) ⇒ Object

translations



94
95
96
# File 'lib/softlayer/network/tunnel/module/context.rb', line 94

def edit_address_translations(message)
  request(:edit_address_translations, Array[Softlayer::Network::Tunnel::Module::Context::Address::Translation], message)
end

#edit_object(message) ⇒ Object

template_object



99
100
101
# File 'lib/softlayer/network/tunnel/module/context.rb', line 99

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_accountObject



103
104
105
# File 'lib/softlayer/network/tunnel/module/context.rb', line 103

def 
  request(:get_account, Softlayer::Account)
end

#get_active_transactionObject



107
108
109
# File 'lib/softlayer/network/tunnel/module/context.rb', line 107

def get_active_transaction
  request(:get_active_transaction, Softlayer::Provisioning::Version1::Transaction)
end

#get_address_translation_configurationsObject



111
112
113
# File 'lib/softlayer/network/tunnel/module/context.rb', line 111

def get_address_translation_configurations
  request(:get_address_translation_configurations, String)
end

#get_address_translationsObject



115
116
117
# File 'lib/softlayer/network/tunnel/module/context.rb', line 115

def get_address_translations
  request(:get_address_translations, Array[Softlayer::Network::Tunnel::Module::Context::Address::Translation])
end

#get_all_available_service_subnetsObject



119
120
121
# File 'lib/softlayer/network/tunnel/module/context.rb', line 119

def get_all_available_service_subnets
  request(:get_all_available_service_subnets, Array[Softlayer::Network::Subnet])
end

#get_billing_itemObject



131
132
133
# File 'lib/softlayer/network/tunnel/module/context.rb', line 131

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_customer_subnetsObject



135
136
137
# File 'lib/softlayer/network/tunnel/module/context.rb', line 135

def get_customer_subnets
  request(:get_customer_subnets, Array[Softlayer::Network::Customer::Subnet])
end

#get_datacenterObject



139
140
141
# File 'lib/softlayer/network/tunnel/module/context.rb', line 139

def get_datacenter
  request(:get_datacenter, Softlayer::Location)
end

#get_internal_subnetsObject



159
160
161
# File 'lib/softlayer/network/tunnel/module/context.rb', line 159

def get_internal_subnets
  request(:get_internal_subnets, Array[Softlayer::Network::Subnet])
end

#get_objectObject



167
168
169
# File 'lib/softlayer/network/tunnel/module/context.rb', line 167

def get_object
  request(:get_object, Softlayer::Network::Tunnel::Module::Context)
end

#get_parameter_configurations_for_customer_viewObject



171
172
173
# File 'lib/softlayer/network/tunnel/module/context.rb', line 171

def get_parameter_configurations_for_customer_view
  request(:get_parameter_configurations_for_customer_view, String)
end

#get_service_subnetsObject



183
184
185
# File 'lib/softlayer/network/tunnel/module/context.rb', line 183

def get_service_subnets
  request(:get_service_subnets, Array[Softlayer::Network::Subnet])
end

#get_static_route_subnetsObject



187
188
189
# File 'lib/softlayer/network/tunnel/module/context.rb', line 187

def get_static_route_subnets
  request(:get_static_route_subnets, Array[Softlayer::Network::Subnet])
end

#get_transaction_historyObject



191
192
193
# File 'lib/softlayer/network/tunnel/module/context.rb', line 191

def get_transaction_history
  request(:get_transaction_history, Array[Softlayer::Provisioning::Version1::Transaction])
end

#remove_customer_subnet_from_network_tunnel(message) ⇒ Object

subnet_id



196
197
198
# File 'lib/softlayer/network/tunnel/module/context.rb', line 196

def remove_customer_subnet_from_network_tunnel(message)
  request(:remove_customer_subnet_from_network_tunnel, Boolean, message)
end

#remove_private_subnet_from_network_tunnel(message) ⇒ Object

subnet_id



201
202
203
# File 'lib/softlayer/network/tunnel/module/context.rb', line 201

def remove_private_subnet_from_network_tunnel(message)
  request(:remove_private_subnet_from_network_tunnel, Boolean, message)
end

#remove_service_subnet_from_network_tunnel(message) ⇒ Object

subnet_id



206
207
208
# File 'lib/softlayer/network/tunnel/module/context.rb', line 206

def remove_service_subnet_from_network_tunnel(message)
  request(:remove_service_subnet_from_network_tunnel, Boolean, message)
end