twilio-ruby 6.8.0 → 6.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # Twilio - Oauth
8
- # This is the public Twilio REST API.
9
- #
10
- # NOTE: This class is auto generated by OpenAPI Generator.
11
- # https://openapi-generator.tech
12
- # Do not edit the class manually.
13
- #
14
-
15
- module Twilio
16
- module REST
17
- class Oauth
18
- class V1 < Version
19
- ##
20
- # Initialize the V1 version of Oauth
21
- def initialize(domain)
22
- super
23
- @version = 'v1'
24
- @device_code = nil
25
- @oauth = nil
26
- @openid_discovery = nil
27
- @token = nil
28
- @user_info = nil
29
- end
30
-
31
- ##
32
- # @return [Twilio::REST::Oauth::V1::DeviceCodeList]
33
- def device_code
34
- @device_code ||= DeviceCodeList.new self
35
- end
36
- ##
37
- # @return [Twilio::REST::Oauth::V1::oauthContext]
38
- def oauth
39
- @oauth ||= OauthContext.new self
40
- end
41
- ##
42
- # @return [Twilio::REST::Oauth::V1::openidDiscoveryContext]
43
- def openid_discovery
44
- @openid_discovery ||= OpenidDiscoveryContext.new self
45
- end
46
- ##
47
- # @return [Twilio::REST::Oauth::V1::TokenList]
48
- def token
49
- @token ||= TokenList.new self
50
- end
51
- ##
52
- # @return [Twilio::REST::Oauth::V1::userInfoContext]
53
- def user_info
54
- @user_info ||= UserInfoContext.new self
55
- end
56
- ##
57
- # Provide a user friendly representation
58
- def to_s
59
- '<Twilio::REST::Oauth::V1>';
60
- end
61
- end
62
- end
63
- end
64
- end
@@ -1,33 +0,0 @@
1
- module Twilio
2
- module REST
3
- class Oauth < OauthBase
4
- ##
5
- # @return [Twilio::REST::Oauth::V1::OauthInstance]
6
- def oauth
7
- warn "oauth is deprecated. Use v1.oauth instead."
8
- self.v1.oauth()
9
- end
10
-
11
- ##
12
- # @return [Twilio::REST::Oauth::V1::OpenidDiscoveryInstance]
13
- def openid_discovery
14
- warn "openid_discovery is deprecated. Use v1.openid_discovery instead."
15
- self.v1.openid_discovery()
16
- end
17
-
18
- ##
19
- # @return [Twilio::REST::Oauth::V1::TokenInstance]
20
- def token
21
- warn "token is deprecated. Use v1.token instead."
22
- self.v1.token()
23
- end
24
-
25
- ##
26
- # @return [Twilio::REST::Oauth::V1::UserInfoInstance]
27
- def user_info
28
- warn "user_info is deprecated. Use v1.user_info instead."
29
- self.v1.user_info()
30
- end
31
- end
32
- end
33
- end
@@ -1,38 +0,0 @@
1
- ##
2
- # This code was generated by
3
- # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
- # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
- # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
- #
7
- # NOTE: This class is auto generated by OpenAPI Generator.
8
- # https://openapi-generator.tech
9
- # Do not edit the class manually.
10
- # frozen_string_literal: true
11
- module Twilio
12
- module REST
13
- class OauthBase < Domain
14
- ##
15
- # Initialize oauth domain
16
- #
17
- # @param twilio - The twilio client
18
- #
19
- def initialize(twilio)
20
- super(twilio)
21
- @base_url = "https://oauth.twilio.com"
22
- @host = "oauth.twilio.com"
23
- @port = 443
24
- @v1 = nil
25
- end
26
-
27
- def v1
28
- @v1 ||= Oauth::V1.new self
29
- end
30
-
31
- ##
32
- # Provide a user friendly representation
33
- def to_s
34
- '<Twilio::REST::Oauth::V1>';
35
- end
36
- end
37
- end
38
- end