Class: Appwrite::Models::OAuth2Oidc
- Inherits:
-
Object
- Object
- Appwrite::Models::OAuth2Oidc
- Defined in:
- lib/appwrite/models/o_auth2_oidc.rb
Instance Attribute Summary collapse
-
#authorization_url ⇒ Object
readonly
Returns the value of attribute authorization_url.
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
readonly
Returns the value of attribute client_secret.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#max_age ⇒ Object
readonly
Returns the value of attribute max_age.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
-
#token_url ⇒ Object
readonly
Returns the value of attribute token_url.
-
#user_info_url ⇒ Object
readonly
Returns the value of attribute user_info_url.
-
#well_known_url ⇒ Object
readonly
Returns the value of attribute well_known_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, enabled:, client_id:, client_secret:, well_known_url:, authorization_url:, token_url:, user_info_url:, prompt:, max_age:) ⇒ OAuth2Oidc
constructor
A new instance of OAuth2Oidc.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, enabled:, client_id:, client_secret:, well_known_url:, authorization_url:, token_url:, user_info_url:, prompt:, max_age:) ⇒ OAuth2Oidc
Returns a new instance of OAuth2Oidc.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 17 def initialize( id:, enabled:, client_id:, client_secret:, well_known_url:, authorization_url:, token_url:, user_info_url:, prompt:, max_age: ) @id = id @enabled = enabled @client_id = client_id @client_secret = client_secret @well_known_url = well_known_url @authorization_url = @token_url = token_url @user_info_url = user_info_url @prompt = prompt @max_age = max_age end |
Instance Attribute Details
#authorization_url ⇒ Object (readonly)
Returns the value of attribute authorization_url.
11 12 13 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 11 def @authorization_url end |
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
8 9 10 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 8 def client_id @client_id end |
#client_secret ⇒ Object (readonly)
Returns the value of attribute client_secret.
9 10 11 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 9 def client_secret @client_secret end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
7 8 9 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 7 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 6 def id @id end |
#max_age ⇒ Object (readonly)
Returns the value of attribute max_age.
15 16 17 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 15 def max_age @max_age end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
14 15 16 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 14 def prompt @prompt end |
#token_url ⇒ Object (readonly)
Returns the value of attribute token_url.
12 13 14 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 12 def token_url @token_url end |
#user_info_url ⇒ Object (readonly)
Returns the value of attribute user_info_url.
13 14 15 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 13 def user_info_url @user_info_url end |
#well_known_url ⇒ Object (readonly)
Returns the value of attribute well_known_url.
10 11 12 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 10 def well_known_url @well_known_url end |
Class Method Details
.from(map:) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 41 def self.from(map:) OAuth2Oidc.new( id: map["$id"], enabled: map["enabled"], client_id: map["clientId"], client_secret: map["clientSecret"], well_known_url: map["wellKnownURL"], authorization_url: map["authorizationURL"], token_url: map["tokenURL"], user_info_url: map["userInfoURL"], prompt: map["prompt"], max_age: map["maxAge"] ) end |
Instance Method Details
#to_map ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/appwrite/models/o_auth2_oidc.rb', line 56 def to_map { "$id": @id, "enabled": @enabled, "clientId": @client_id, "clientSecret": @client_secret, "wellKnownURL": @well_known_url, "authorizationURL": @authorization_url, "tokenURL": @token_url, "userInfoURL": @user_info_url, "prompt": @prompt, "maxAge": @max_age } end |