Class: SDM::IdentityAlias
- Inherits:
-
Object
- Object
- SDM::IdentityAlias
- Defined in:
- lib/models/porcelain.rb
Overview
IdentityAliases define the username to be used for a specific account when connecting to a remote resource using that identity set.
Instance Attribute Summary collapse
-
#account_id ⇒ Object
The account for this identity alias.
-
#id ⇒ Object
Unique identifier of the IdentityAlias.
-
#identity_set_id ⇒ Object
The identity set.
-
#username ⇒ Object
The username to be used as the identity alias for this account.
Instance Method Summary collapse
-
#initialize(account_id: nil, id: nil, identity_set_id: nil, username: nil) ⇒ IdentityAlias
constructor
A new instance of IdentityAlias.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_id: nil, id: nil, identity_set_id: nil, username: nil) ⇒ IdentityAlias
Returns a new instance of IdentityAlias.
5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 |
# File 'lib/models/porcelain.rb', line 5976 def initialize( account_id: nil, id: nil, identity_set_id: nil, username: nil ) @account_id = account_id == nil ? "" : account_id @id = id == nil ? "" : id @identity_set_id = identity_set_id == nil ? "" : identity_set_id @username = username == nil ? "" : username end |
Instance Attribute Details
#account_id ⇒ Object
The account for this identity alias.
5968 5969 5970 |
# File 'lib/models/porcelain.rb', line 5968 def account_id @account_id end |
#id ⇒ Object
Unique identifier of the IdentityAlias.
5970 5971 5972 |
# File 'lib/models/porcelain.rb', line 5970 def id @id end |
#identity_set_id ⇒ Object
The identity set.
5972 5973 5974 |
# File 'lib/models/porcelain.rb', line 5972 def identity_set_id @identity_set_id end |
#username ⇒ Object
The username to be used as the identity alias for this account.
5974 5975 5976 |
# File 'lib/models/porcelain.rb', line 5974 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5988 5989 5990 5991 5992 5993 5994 |
# File 'lib/models/porcelain.rb', line 5988 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |