Class: LockstepSdk::AppEnrollmentReconnectInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb

Overview

Information to reconnect an ERP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ AppEnrollmentReconnectInfo

Initialize the AppEnrollmentReconnectInfo using the provided prototype



25
26
27
28
29
30
31
32
33
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 25

def initialize(params = {})
    @auth_code = params.dig(:auth_code)
    @username = params.dig(:username)
    @password = params.dig(:password)
    @realm_id = params.dig(:realm_id)
    @token_id = params.dig(:token_id)
    @token_secret = params.dig(:token_secret)
    @redirect_uri = params.dig(:redirect_uri)
end

Instance Attribute Details

#auth_codeString

Returns The OAuth authentication code.

Returns:

  • (String)

    The OAuth authentication code.



37
38
39
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 37

def auth_code
  @auth_code
end

#passwordString

Returns The password for the web services account with access permissions.

Returns:

  • (String)

    The password for the web services account with access permissions.



45
46
47
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 45

def password
  @password
end

#realm_idString

Returns The Realm Id for the app enrollment to reconnect.

Returns:

  • (String)

    The Realm Id for the app enrollment to reconnect.



49
50
51
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 49

def realm_id
  @realm_id
end

#redirect_uriString

Returns The OAuth redirect uri.

Returns:

  • (String)

    The OAuth redirect uri.



61
62
63
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 61

def redirect_uri
  @redirect_uri
end

#token_idString

Returns The access token id for the connector enrollment.

Returns:

  • (String)

    The access token id for the connector enrollment.



53
54
55
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 53

def token_id
  @token_id
end

#token_secretString

Returns The access token secret for the connector enrollment.

Returns:

  • (String)

    The access token secret for the connector enrollment.



57
58
59
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 57

def token_secret
  @token_secret
end

#usernameString

Returns The username for the web services account with access permissions.

Returns:

  • (String)

    The username for the web services account with access permissions.



41
42
43
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 41

def username
  @username
end

Instance Method Details

#as_json(options = {}) ⇒ object

Returns This object as a JSON key-value structure.

Returns:

  • (object)

    This object as a JSON key-value structure



65
66
67
68
69
70
71
72
73
74
75
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 65

def as_json(options={})
    {
        'authCode' => @auth_code,
        'username' => @username,
        'password' => @password,
        'realmId' => @realm_id,
        'tokenId' => @token_id,
        'tokenSecret' => @token_secret,
        'redirectUri' => @redirect_uri,
    }
end

#to_json(*options) ⇒ String

Returns This object converted to a JSON string.

Returns:

  • (String)

    This object converted to a JSON string



79
80
81
# File 'lib/lockstep_sdk/models/app_enrollment_reconnect_info.rb', line 79

def to_json(*options)
    "[#{as_json(*options).to_json(*options)}]"
end