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
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 184 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
209 210 211 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 209 def @properties['authorization_endpoint'] end |
#code_challenge_methods_supported ⇒ Array<String>
233 234 235 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 233 def code_challenge_methods_supported @properties['code_challenge_methods_supported'] end |
#grant_types_supported ⇒ Array<String>
227 228 229 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 227 def grant_types_supported @properties['grant_types_supported'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
251 252 253 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 251 def inspect "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>" end |
#issuer ⇒ String
203 204 205 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 203 def issuer @properties['issuer'] end |
#response_types_supported ⇒ Array<String>
221 222 223 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 221 def response_types_supported @properties['response_types_supported'] end |
#to_s ⇒ Object
Provide a user friendly representation
245 246 247 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 245 def to_s "<Twilio.Oauth.V2.OauthAuthorizationServerInstance>" end |
#token_endpoint ⇒ String
215 216 217 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 215 def token_endpoint @properties['token_endpoint'] end |
#token_endpoint_auth_methods_supported ⇒ Array<String>
239 240 241 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 239 def token_endpoint_auth_methods_supported @properties['token_endpoint_auth_methods_supported'] end |