Class: Softlayer::Network::ContentDelivery::Authentication::Token
- Defined in:
- lib/softlayer/network/content_delivery/authentication/token.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_ContentDelivery_Authentication_Token'
Instance Attribute Summary collapse
-
#cdn_account_id ⇒ Object
Returns the value of attribute cdn_account_id.
-
#client_ip ⇒ Object
Returns the value of attribute client_ip.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#referrer ⇒ Object
Returns the value of attribute referrer.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
-
.get_all_managed_tokens(message) ⇒ Object
cdn_account_id.
-
.get_timed_token(message) ⇒ Object
cdn_account_id token_life client_ip referrer media_type.
-
.revoke_all_managed_tokens(message) ⇒ Object
cdn_account_id.
-
.revoke_all_tokens(message) ⇒ Object
cdn_account_id media_type.
-
.revoke_managed_token(message) ⇒ Object
cdn_account_id token.
-
.revoke_managed_tokens(message) ⇒ Object
template_objects.
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
#cdn_account_id ⇒ Object
Returns the value of attribute cdn_account_id.
7 8 9 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 7 def cdn_account_id @cdn_account_id end |
#client_ip ⇒ Object
Returns the value of attribute client_ip.
8 9 10 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 8 def client_ip @client_ip end |
#create_date ⇒ Object
Returns the value of attribute create_date.
9 10 11 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 9 def create_date @create_date end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 10 def name @name end |
#referrer ⇒ Object
Returns the value of attribute referrer.
11 12 13 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 11 def referrer @referrer end |
#token ⇒ Object
Returns the value of attribute token.
12 13 14 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 12 def token @token end |
Class Method Details
.create_object(message) ⇒ Object
template_object
15 16 17 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 15 def self.create_object() request(:create_object, Softlayer::Network::ContentDelivery::Authentication::Token, ) end |
.get_all_managed_tokens(message) ⇒ Object
cdn_account_id
20 21 22 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 20 def self.get_all_managed_tokens() request(:get_all_managed_tokens, Array[Softlayer::Network::ContentDelivery::Authentication::Token], ) end |
.get_timed_token(message) ⇒ Object
cdn_account_id token_life client_ip referrer media_type
33 34 35 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 33 def self.get_timed_token() request(:get_timed_token, String, ) end |
.revoke_all_managed_tokens(message) ⇒ Object
cdn_account_id
38 39 40 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 38 def self.revoke_all_managed_tokens() request(:revoke_all_managed_tokens, Boolean, ) end |
.revoke_all_tokens(message) ⇒ Object
cdn_account_id media_type
44 45 46 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 44 def self.revoke_all_tokens() request(:revoke_all_tokens, Boolean, ) end |
.revoke_managed_token(message) ⇒ Object
cdn_account_id token
50 51 52 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 50 def self.revoke_managed_token() request(:revoke_managed_token, Boolean, ) end |
.revoke_managed_tokens(message) ⇒ Object
template_objects
55 56 57 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 55 def self.revoke_managed_tokens() request(:revoke_managed_tokens, Boolean, ) end |
Instance Method Details
#get_object ⇒ Object
24 25 26 |
# File 'lib/softlayer/network/content_delivery/authentication/token.rb', line 24 def get_object request(:get_object, Softlayer::Network::ContentDelivery::Authentication::Token) end |