google-calendar-apimatic-sdk 1.0.0

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.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +168 -0
  4. data/bin/console +15 -0
  5. data/lib/calendar_api/api_helper.rb +10 -0
  6. data/lib/calendar_api/apis/base_api.rb +67 -0
  7. data/lib/calendar_api/apis/calendar_list_api.rb +63 -0
  8. data/lib/calendar_api/apis/channels_api.rb +42 -0
  9. data/lib/calendar_api/apis/events_api.rb +354 -0
  10. data/lib/calendar_api/apis/free_busy_api.rb +37 -0
  11. data/lib/calendar_api/apis/oauth_authorization_api.rb +87 -0
  12. data/lib/calendar_api/client.rb +103 -0
  13. data/lib/calendar_api/configuration.rb +177 -0
  14. data/lib/calendar_api/exceptions/api_exception.rb +21 -0
  15. data/lib/calendar_api/exceptions/error_response_error1_exception.rb +46 -0
  16. data/lib/calendar_api/exceptions/oauth_provider_exception.rb +64 -0
  17. data/lib/calendar_api/http/api_response.rb +19 -0
  18. data/lib/calendar_api/http/auth/oauth_2.rb +162 -0
  19. data/lib/calendar_api/http/http_call_back.rb +10 -0
  20. data/lib/calendar_api/http/http_method_enum.rb +10 -0
  21. data/lib/calendar_api/http/http_request.rb +10 -0
  22. data/lib/calendar_api/http/http_response.rb +10 -0
  23. data/lib/calendar_api/http/proxy_settings.rb +22 -0
  24. data/lib/calendar_api/logging/configuration/api_logging_configuration.rb +186 -0
  25. data/lib/calendar_api/logging/sdk_logger.rb +17 -0
  26. data/lib/calendar_api/models/attachment.rb +115 -0
  27. data/lib/calendar_api/models/attendee.rb +167 -0
  28. data/lib/calendar_api/models/auto_decline_mode.rb +40 -0
  29. data/lib/calendar_api/models/base_model.rb +110 -0
  30. data/lib/calendar_api/models/birthday_properties.rb +96 -0
  31. data/lib/calendar_api/models/birthday_type.rb +48 -0
  32. data/lib/calendar_api/models/calendar_access_role.rb +44 -0
  33. data/lib/calendar_api/models/calendar_list_entry.rb +278 -0
  34. data/lib/calendar_api/models/calendar_list_entry_conference_properties.rb +83 -0
  35. data/lib/calendar_api/models/calendar_list_entry_notification_settings.rb +85 -0
  36. data/lib/calendar_api/models/calendar_list_response.rb +129 -0
  37. data/lib/calendar_api/models/calendar_notification.rb +86 -0
  38. data/lib/calendar_api/models/calendar_notification_method.rb +27 -0
  39. data/lib/calendar_api/models/calendar_notification_type.rb +48 -0
  40. data/lib/calendar_api/models/channel.rb +129 -0
  41. data/lib/calendar_api/models/channel_params.rb +75 -0
  42. data/lib/calendar_api/models/channel_type.rb +36 -0
  43. data/lib/calendar_api/models/chat_status.rb +36 -0
  44. data/lib/calendar_api/models/conference_create_request.rb +99 -0
  45. data/lib/calendar_api/models/conference_create_request_status.rb +76 -0
  46. data/lib/calendar_api/models/conference_data.rb +137 -0
  47. data/lib/calendar_api/models/conference_data_version.rb +43 -0
  48. data/lib/calendar_api/models/conference_entry_point.rb +126 -0
  49. data/lib/calendar_api/models/conference_request_status_code.rb +40 -0
  50. data/lib/calendar_api/models/conference_solution.rb +95 -0
  51. data/lib/calendar_api/models/conference_solution_key.rb +74 -0
  52. data/lib/calendar_api/models/conference_solution_type.rb +40 -0
  53. data/lib/calendar_api/models/custom_location.rb +75 -0
  54. data/lib/calendar_api/models/entry_point_type.rb +44 -0
  55. data/lib/calendar_api/models/error_response.rb +75 -0
  56. data/lib/calendar_api/models/error_response_error.rb +104 -0
  57. data/lib/calendar_api/models/error_response_error_errors_items.rb +95 -0
  58. data/lib/calendar_api/models/event.rb +551 -0
  59. data/lib/calendar_api/models/event_date_time.rb +107 -0
  60. data/lib/calendar_api/models/event_list.rb +208 -0
  61. data/lib/calendar_api/models/event_order_by.rb +36 -0
  62. data/lib/calendar_api/models/event_reminders.rb +95 -0
  63. data/lib/calendar_api/models/event_source.rb +86 -0
  64. data/lib/calendar_api/models/event_status.rb +40 -0
  65. data/lib/calendar_api/models/event_transparency.rb +37 -0
  66. data/lib/calendar_api/models/event_type.rb +52 -0
  67. data/lib/calendar_api/models/event_visibility.rb +44 -0
  68. data/lib/calendar_api/models/extended_properties.rb +87 -0
  69. data/lib/calendar_api/models/focus_time_properties.rb +99 -0
  70. data/lib/calendar_api/models/free_busy_calendar.rb +103 -0
  71. data/lib/calendar_api/models/free_busy_error.rb +85 -0
  72. data/lib/calendar_api/models/free_busy_group.rb +94 -0
  73. data/lib/calendar_api/models/free_busy_request.rb +150 -0
  74. data/lib/calendar_api/models/free_busy_request_item.rb +72 -0
  75. data/lib/calendar_api/models/free_busy_response.rb +135 -0
  76. data/lib/calendar_api/models/oauth_provider_error.rb +62 -0
  77. data/lib/calendar_api/models/oauth_scope.rb +41 -0
  78. data/lib/calendar_api/models/oauth_token.rb +96 -0
  79. data/lib/calendar_api/models/office_location.rb +116 -0
  80. data/lib/calendar_api/models/out_of_office_properties.rb +88 -0
  81. data/lib/calendar_api/models/person.rb +106 -0
  82. data/lib/calendar_api/models/reminder.rb +83 -0
  83. data/lib/calendar_api/models/reminder_method.rb +36 -0
  84. data/lib/calendar_api/models/response_status.rb +44 -0
  85. data/lib/calendar_api/models/send_updates.rb +40 -0
  86. data/lib/calendar_api/models/stop_channel_request.rb +85 -0
  87. data/lib/calendar_api/models/time_period.rb +102 -0
  88. data/lib/calendar_api/models/watch_request.rb +113 -0
  89. data/lib/calendar_api/models/working_location_properties.rb +107 -0
  90. data/lib/calendar_api/models/working_location_type.rb +40 -0
  91. data/lib/calendar_api/utilities/date_time_helper.rb +11 -0
  92. data/lib/calendar_api/utilities/file_wrapper.rb +28 -0
  93. data/lib/calendar_api.rb +114 -0
  94. metadata +176 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8e73b53b6c689e7f94e75339a5ba965f0723b9331e36b28202b292a62316e44b
4
+ data.tar.gz: 3f7aa586d6a96a658a1fa97d3b0d9d0fdada70526f8413197274ab24d6ef38be
5
+ SHA512:
6
+ metadata.gz: 71e0be81dafbefb107819ac9f3b009fd0db5209bed7d2f0957b3618aa849efb3970356ed0a54a6545e59cdcf9cad83e40bba73813353070019a8b212474b37f5
7
+ data.tar.gz: d828b200fc7e711026761ffc6886a04d606f40fb2f6f5b376a8ee89b4b013c644c262861aea4c4b847a392f978cddc29368a15dce070d73c829b247b42be957c
data/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
5
+
6
+ Copyright (c) 2014 - 2026 APIMATIC Limited
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Trade Mark:
27
+ ==========
28
+ APIMATIC is a trade mark for APIMATIC Limited
data/README.md ADDED
@@ -0,0 +1,168 @@
1
+
2
+ # Getting Started with Calendar API
3
+
4
+ ## Introduction
5
+
6
+ Manipulates events and other calendar data. Provides access to Google Calendar for creating, listing, patching, and deleting events, querying free/busy information, and setting up push notifications for event changes.
7
+
8
+ ## Install the Package
9
+
10
+ Install the gem from the command line:
11
+
12
+ ```bash
13
+ gem install google-calendar-apimatic-sdk -v 1.0.0
14
+ ```
15
+
16
+ Or add the gem to your Gemfile and run `bundle`:
17
+
18
+ ```ruby
19
+ gem 'google-calendar-apimatic-sdk', '1.0.0'
20
+ ```
21
+
22
+ For additional gem details, see the [RubyGems page for the google-calendar-apimatic-sdk gem](https://rubygems.org/gems/google-calendar-apimatic-sdk/versions/1.0.0).
23
+
24
+ ## IRB Console Usage
25
+
26
+ You can explore the SDK interactively using IRB in two ways
27
+
28
+ ### 1. Use IRB with Installed Gem
29
+
30
+ Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and type the following command to start the irb console.
31
+
32
+ ```bash
33
+ irb
34
+ ```
35
+
36
+ Now you can load the SDK in the IRB
37
+
38
+ ```ruby
39
+ require 'calendar_api'
40
+ include CalendarApi
41
+ ```
42
+
43
+ ### 2. Use IRB within SDK
44
+
45
+ Open your system terminal (Command Prompt, Git Bash or macOS Terminal) and navigate to the root folder of SDK.
46
+
47
+ ```
48
+ cd path/to/calendar_api
49
+ ```
50
+
51
+ Now you can start the preconfigured irb console by running the following command
52
+
53
+ ```bash
54
+ ruby bin/console
55
+ ```
56
+
57
+ **_Note:_** This automatically loads the SDK from lib/
58
+
59
+ ## Initialize the API Client
60
+
61
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
62
+
63
+ The following parameters are configurable for the API Client:
64
+
65
+ | Parameter | Type | Description |
66
+ | --- | --- | --- |
67
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
68
+ | connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
69
+ | adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
70
+ | timeout | `Float` | The value to use for connection timeout. <br> **Default: 30** |
71
+ | max_retries | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
72
+ | retry_interval | `Float` | Pause in seconds between retries. <br> **Default: 1** |
73
+ | backoff_factor | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
74
+ | retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
75
+ | retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
76
+ | http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
77
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
78
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
79
+ | authorization_code_auth_credentials | [`AuthorizationCodeAuthCredentials`](__base_path/auth/oauth-2-authorization-code-grant.md) | The credential object for OAuth 2 Authorization Code Grant |
80
+
81
+ The API client can be initialized as follows:
82
+
83
+ ### Code-Based Client Initialization
84
+
85
+ ```ruby
86
+ require 'calendar_api'
87
+ include CalendarApi
88
+
89
+ client = Client.new(
90
+ authorization_code_auth_credentials: AuthorizationCodeAuthCredentials.new(
91
+ oauth_client_id: 'OAuthClientId',
92
+ oauth_client_secret: 'OAuthClientSecret',
93
+ oauth_redirect_uri: 'OAuthRedirectUri',
94
+ oauth_scopes: [
95
+ OauthScope::HTTPS_WWW_GOOGLEAPIS_COM_AUTH_CALENDAR_READONLY,
96
+ OauthScope::HTTPS_WWW_GOOGLEAPIS_COM_AUTH_CALENDAR_EVENTS
97
+ ]
98
+ ),
99
+ environment: Environment::PRODUCTION,
100
+ logging_configuration: LoggingConfiguration.new(
101
+ log_level: Logger::INFO,
102
+ request_logging_config: RequestLoggingConfiguration.new(
103
+ log_body: true
104
+ ),
105
+ response_logging_config: ResponseLoggingConfiguration.new(
106
+ log_headers: true
107
+ )
108
+ )
109
+ )
110
+ ```
111
+
112
+ ### Environment-Based Client Initialization
113
+
114
+ ```ruby
115
+ require 'calendar_api'
116
+ include CalendarApi
117
+
118
+ # Create client from environment
119
+ client = Client.from_env
120
+ ```
121
+
122
+ See the [`Environment-Based Client Initialization`](doc/environment-based-client-initialization.md) section for details.
123
+
124
+ ## Environments
125
+
126
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
127
+
128
+ ### Fields
129
+
130
+ | Name | Description |
131
+ | --- | --- |
132
+ | PRODUCTION | **Default** Google Calendar API v3 |
133
+
134
+ ## Authorization
135
+
136
+ This API uses the following authentication schemes.
137
+
138
+ * [`oauth2 (OAuth 2 Authorization Code Grant)`](__base_path/auth/oauth-2-authorization-code-grant.md)
139
+
140
+ ## List of APIs
141
+
142
+ * [Calendar List](doc/controllers/calendar-list.md)
143
+ * [Events](doc/controllers/events.md)
144
+ * [Free Busy](doc/controllers/free-busy.md)
145
+ * [Channels](doc/controllers/channels.md)
146
+
147
+ ## SDK Infrastructure
148
+
149
+ ### Configuration
150
+
151
+ * [ProxySettings](doc/proxy-settings.md)
152
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
153
+ * [AbstractLogger](doc/abstract-logger.md)
154
+ * [LoggingConfiguration](doc/logging-configuration.md)
155
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
156
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
157
+
158
+ ### HTTP
159
+
160
+ * [HttpResponse](doc/http-response.md)
161
+ * [HttpRequest](doc/http-request.md)
162
+
163
+ ### Utilities
164
+
165
+ * [ApiResponse](doc/api-response.md)
166
+ * [ApiHelper](doc/api-helper.md)
167
+ * [DateTimeHelper](doc/date-time-helper.md)
168
+
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Load the lib folder into Ruby's load path
4
+ $LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
5
+
6
+ # Require the gem
7
+ require 'calendar_api'
8
+
9
+ puts 'CalendarApi SDK loaded!'
10
+ puts 'You can now create a client with: client = CalendarApi::Client.new'
11
+ puts 'Or use from_env: client = CalendarApi::Client.from_env'
12
+
13
+ # Start an interactive IRB session
14
+ require 'irb'
15
+ IRB.start
@@ -0,0 +1,10 @@
1
+ # calendar_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CalendarApi
7
+ # API utility class
8
+ class APIHelper < CoreLibrary::ApiHelper
9
+ end
10
+ end
@@ -0,0 +1,67 @@
1
+ # calendar_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CalendarApi
7
+ # BaseApi.
8
+ class BaseApi
9
+ include CoreLibrary
10
+ attr_accessor :config, :http_call_back
11
+
12
+ def self.user_agent
13
+ 'Ruby-SDK/1.0.0 (OS: {os-info}, Engine: {engine}/{engine-version})'
14
+ end
15
+
16
+ def self.user_agent_parameters
17
+ {
18
+ '{engine}' => { 'value' => RUBY_ENGINE, 'encode' => false },
19
+ '{engine-version}' => { 'value' => RUBY_ENGINE_VERSION, 'encode' => false },
20
+ '{os-info}' => { 'value' => RUBY_PLATFORM, 'encode' => false }
21
+ }
22
+ end
23
+
24
+ GLOBAL_ERRORS = {
25
+ 'default' => ErrorCase.new
26
+ .error_message('HTTP response not OK.')
27
+ .exception_type(APIException)
28
+ }.freeze
29
+
30
+ # Initialization constructor.
31
+ # @param [GlobalConfiguration] global_configuration The instance of GlobalConfiguration.
32
+ def initialize(global_configuration)
33
+ @global_configuration = global_configuration
34
+ @config = @global_configuration.client_configuration
35
+ @http_call_back = @config.http_callback
36
+ @api_call = ApiCall.new(@global_configuration)
37
+ end
38
+
39
+ # Creates a new instance of the request builder.
40
+ # @param [String] http_method The HTTP method to use in the request.
41
+ # @param [String] path The endpoint path to use in the request.
42
+ # @param [String] server The server to extract the base uri for the request.
43
+ # @return [RequestBuilder] The instance of RequestBuilder.
44
+ def new_request_builder(http_method, path, server)
45
+ RequestBuilder.new
46
+ .http_method(http_method)
47
+ .path(path)
48
+ .server(server)
49
+ end
50
+
51
+ # Creates a new instance of the response handler.
52
+ # @return [ResponseHandler] The instance of ResponseHandler.
53
+ def new_response_handler
54
+ ResponseHandler.new
55
+ end
56
+
57
+ # Creates a new instance of the parameter.
58
+ # @param [String|optional] key The key of the parameter.
59
+ # @param [Object] value The value of the parameter.
60
+ # @return [Parameter] The instance of Parameter.
61
+ def new_parameter(value, key: nil)
62
+ Parameter.new
63
+ .key(key)
64
+ .value(value)
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,63 @@
1
+ # calendar_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CalendarApi
7
+ # CalendarListApi
8
+ class CalendarListApi < BaseApi
9
+ # Returns the calendars on the user's calendar list. Use the returned
10
+ # calendar IDs as the calendarId path parameter for event operations.
11
+ # @param [Integer] max_results Optional parameter: Maximum number of entries
12
+ # returned on one result page. Default is 100, maximum allowed is 250.
13
+ # @param [CalendarAccessRole] min_access_role Optional parameter: The
14
+ # minimum access role for the user in the returned entries.
15
+ # @param [String] page_token Optional parameter: Token specifying which
16
+ # result page to return.
17
+ # @param [TrueClass | FalseClass] show_deleted Optional parameter: Whether
18
+ # to include deleted calendar list entries in the result. Default is
19
+ # false.
20
+ # @param [TrueClass | FalseClass] show_hidden Optional parameter: Whether to
21
+ # show hidden entries. Default is false.
22
+ # @param [String] sync_token Optional parameter: Token obtained from the
23
+ # nextSyncToken field returned on the last page of a previous list request.
24
+ # Makes the result contain only entries that have changed since then.
25
+ # @return [ApiResponse] Complete http response with raw body and status code.
26
+ def list_calendar_list(max_results: 100,
27
+ min_access_role: nil,
28
+ page_token: nil,
29
+ show_deleted: false,
30
+ show_hidden: false,
31
+ sync_token: nil)
32
+ @api_call
33
+ .request(new_request_builder(HttpMethodEnum::GET,
34
+ '/users/me/calendarList',
35
+ Server::DEFAULT)
36
+ .query_param(new_parameter(max_results, key: 'maxResults'))
37
+ .query_param(new_parameter(min_access_role, key: 'minAccessRole'))
38
+ .query_param(new_parameter(page_token, key: 'pageToken'))
39
+ .query_param(new_parameter(show_deleted, key: 'showDeleted'))
40
+ .query_param(new_parameter(show_hidden, key: 'showHidden'))
41
+ .query_param(new_parameter(sync_token, key: 'syncToken'))
42
+ .header_param(new_parameter('application/json', key: 'accept'))
43
+ .auth(Single.new('oauth2')))
44
+ .response(new_response_handler
45
+ .deserializer(APIHelper.method(:custom_type_deserializer))
46
+ .deserialize_into(CalendarListResponse.method(:from_hash))
47
+ .is_api_response(true)
48
+ .local_error('400',
49
+ 'Bad request — invalid parameters or request body.',
50
+ ErrorResponseError1Exception)
51
+ .local_error('401',
52
+ 'Authentication required or credentials are invalid.',
53
+ ErrorResponseError1Exception)
54
+ .local_error('403',
55
+ 'Insufficient permissions for the requested resource.',
56
+ ErrorResponseError1Exception)
57
+ .local_error('404',
58
+ 'The requested resource was not found.',
59
+ ErrorResponseError1Exception))
60
+ .execute
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,42 @@
1
+ # calendar_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CalendarApi
7
+ # ChannelsApi
8
+ class ChannelsApi < BaseApi
9
+ # Stops receiving push notifications for the specified channel. This is
10
+ # required to clean up channels created by the watchEvents operation.
11
+ # @param [StopChannelRequest] body Required parameter: Request body for stop
12
+ # a notification channel.
13
+ # @return [ApiResponse] Complete http response with raw body and status code.
14
+ def stop_channel(body)
15
+ @api_call
16
+ .request(new_request_builder(HttpMethodEnum::POST,
17
+ '/channels/stop',
18
+ Server::DEFAULT)
19
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
20
+ .body_param(new_parameter(body)
21
+ .is_required(true))
22
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
23
+ .auth(Single.new('oauth2')))
24
+ .response(new_response_handler
25
+ .is_response_void(true)
26
+ .is_api_response(true)
27
+ .local_error('400',
28
+ 'Bad request — invalid parameters or request body.',
29
+ ErrorResponseError1Exception)
30
+ .local_error('401',
31
+ 'Authentication required or credentials are invalid.',
32
+ ErrorResponseError1Exception)
33
+ .local_error('403',
34
+ 'Insufficient permissions for the requested resource.',
35
+ ErrorResponseError1Exception)
36
+ .local_error('404',
37
+ 'The requested resource was not found.',
38
+ ErrorResponseError1Exception))
39
+ .execute
40
+ end
41
+ end
42
+ end