Class: Twilio::REST::Oauth::V2::OauthAuthorizationServerInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Oauth::V2::OauthAuthorizationServerInstance
- Defined in:
- lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb
Instance Method Summary collapse
- #authorization_endpoint ⇒ String
- #code_challenge_methods_supported ⇒ Array<String>
- #grant_types_supported ⇒ Array<String>
-
#initialize(version, payload) ⇒ OauthAuthorizationServerInstance
constructor
Initialize the OauthAuthorizationServerInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
- #issuer ⇒ String
- #response_types_supported ⇒ Array<String>
-
#to_s ⇒ Object
Provide a user friendly representation.
- #token_endpoint ⇒ String
- #token_endpoint_auth_methods_supported ⇒ Array<String>
Constructor Details
#initialize(version, payload) ⇒ OauthAuthorizationServerInstance
Initialize the OauthAuthorizationServerInstance
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 125 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'issuer' => payload['issuer'], 'authorization_endpoint' => payload['authorization_endpoint'], 'token_endpoint' => payload['token_endpoint'], 'response_types_supported' => payload['response_types_supported'], 'grant_types_supported' => payload['grant_types_supported'], 'code_challenge_methods_supported' => payload['code_challenge_methods_supported'], 'token_endpoint_auth_methods_supported' => payload['token_endpoint_auth_methods_supported'], } end |
Instance Method Details
#authorization_endpoint ⇒ String
150 151 152 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 150 def @properties['authorization_endpoint'] end |
#code_challenge_methods_supported ⇒ Array<String>
174 175 176 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 174 def code_challenge_methods_supported @properties['code_challenge_methods_supported'] end |
#grant_types_supported ⇒ Array<String>
168 169 170 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 168 def grant_types_supported @properties['grant_types_supported'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
192 193 194 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 192 def inspect "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>" end |
#issuer ⇒ String
144 145 146 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 144 def issuer @properties['issuer'] end |
#response_types_supported ⇒ Array<String>
162 163 164 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 162 def response_types_supported @properties['response_types_supported'] end |
#to_s ⇒ Object
Provide a user friendly representation
186 187 188 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 186 def to_s "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>" end |
#token_endpoint ⇒ String
156 157 158 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 156 def token_endpoint @properties['token_endpoint'] end |
#token_endpoint_auth_methods_supported ⇒ Array<String>
180 181 182 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 180 def token_endpoint_auth_methods_supported @properties['token_endpoint_auth_methods_supported'] end |