Class: Twilio::REST::Oauth::V2::OauthAuthorizationServerInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ OauthAuthorizationServerInstance

Initialize the OauthAuthorizationServerInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this OauthAuthorizationServer resource.

  • sid (String)

    The SID of the Call resource to fetch.



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_endpointString

Returns:

  • (String)


209
210
211
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 209

def authorization_endpoint
    @properties['authorization_endpoint']
end

#code_challenge_methods_supportedArray<String>

Returns:

  • (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_supportedArray<String>

Returns:

  • (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

#inspectObject

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

#issuerString

Returns:

  • (String)


203
204
205
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 203

def issuer
    @properties['issuer']
end

#response_types_supportedArray<String>

Returns:

  • (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_sObject

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_endpointString

Returns:

  • (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_supportedArray<String>

Returns:

  • (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