sendmux-management 1.2.0 → 2.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +53 -2
  4. data/lib/sendmux/management/client.rb +9 -2
  5. data/lib/sendmux/management/version.rb +1 -1
  6. data/lib/sendmux_management_generated/api/billing_api.rb +3 -3
  7. data/lib/sendmux_management_generated/api/connection_api.rb +1 -1
  8. data/lib/sendmux_management_generated/api/domain_filters_api.rb +2 -2
  9. data/lib/sendmux_management_generated/api/domains_api.rb +7 -7
  10. data/lib/sendmux_management_generated/api/emails_api.rb +3 -3
  11. data/lib/sendmux_management_generated/api/inboxes_api.rb +2 -2
  12. data/lib/sendmux_management_generated/api/mailbox_filters_api.rb +2 -2
  13. data/lib/sendmux_management_generated/api/mailboxes_api.rb +10 -10
  14. data/lib/sendmux_management_generated/api/sending_accounts_api.rb +17 -17
  15. data/lib/sendmux_management_generated/api/webhooks_api.rb +9 -9
  16. data/lib/sendmux_management_generated/configuration.rb +7 -0
  17. data/lib/sendmux_management_generated/models/delivery_log_detail.rb +54 -15
  18. data/lib/sendmux_management_generated/models/delivery_log_item.rb +52 -13
  19. data/lib/sendmux_management_generated/models/provider_allowed_actions.rb +30 -4
  20. data/lib/sendmux_management_generated/models/provider_create_body.rb +36 -5
  21. data/lib/sendmux_management_generated/models/provider_item.rb +42 -4
  22. data/lib/sendmux_management_generated/models/provider_item_cursor_list_response.rb +1 -1
  23. data/lib/sendmux_management_generated/models/provider_list_item.rb +695 -0
  24. data/lib/sendmux_management_generated/models/provider_update_body.rb +36 -5
  25. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit.rb +4 -4
  26. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request.rb +2 -2
  27. data/lib/sendmux_management_generated.rb +1 -0
  28. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab49b5a6f27dd2850e8187038f471a974eb1b66b3fb6f90edaef2cbe95b965f
4
- data.tar.gz: b41f60c71e0dccaa373d3449b7cd9d1d61d8025959a0422e0e5483b708479362
3
+ metadata.gz: '0600937a35f111f28e5946bcb9cc259e6a31434469268255a06d6e4e6dbd5bf3'
4
+ data.tar.gz: 3794fcda20d126674445268831e3d76b84900c6e3d5e52e15a2c4d6c75310707
5
5
  SHA512:
6
- metadata.gz: 5f194649235b4571697b83f14397f1807c81a57a47fda866ee2b7ef8fcf696fcf18d26d324fb68d60065554edb7754e9bcfcdaa4881df9417668abd99cc2e5ee
7
- data.tar.gz: ac25a55e6534189cdaac5b6892607d3b8ddd34f7a1e8e357315b27b4190ff2ac07c433c3f1ff4aa94f2002210e2178490be36ba8f27fb97f6b390d67c3863ba7
6
+ metadata.gz: c2226f76e5b50a31230263a050fd5c36657035ffd898979d49e9d423c6f3afdd8e69e326f0b675170bb49df40af8917bd2e7d1a235f6f172f7be4ee5a4af2fd3
7
+ data.tar.gz: 035c31ba87eac6ed31c0d3cb686e6c9ca50353ebfa3ccc929e51ad2da2db18f365737edf83a7d2b3faf0b79edff167e15c13c4758c3ddce23f958eb61e44dace
data/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ### Features
6
+
7
+ * Add provider variable management fields and delivery-group fields to delivery logs.
8
+
9
+ ## [2.0.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.3.0...ruby-management/v2.0.0) (2026-09-18)
10
+
11
+ ### Changed
12
+
13
+ * **Breaking:** `management_list_providers` returns `ProviderListItem` instead of `ProviderItem`; list entries don't expose `variables`, while detail `ProviderItem` requires a variables hash. Update list-specific class checks and fetch detail when you need variables. See [Migrate from 1.x to 2.0](README.md#migrate-from-1x-to-20).
14
+
15
+ ### Features
16
+
17
+ * integrate combined provider variables and delivery routing ([81bbf22](https://github.com/Sendmux/sendmux-sdk/commit/81bbf221a357bf5d588eba654184ff34491473df))
18
+ * **sdk:** add provider variables and delivery group routing ([94f52d4](https://github.com/Sendmux/sendmux-sdk/commit/94f52d4e9f6157e197308541cc5987517bac7a4a))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * correct generated client contracts ([dd31abe](https://github.com/Sendmux/sendmux-sdk/commit/dd31abed8e264e05f4717388a0d4ada83e47d7e3))
24
+ * **sdk:** adopt final provider contract description and provenance ([a9bdaf5](https://github.com/Sendmux/sendmux-sdk/commit/a9bdaf58f0db684328458e269ba8aff515334d0b))
25
+ * **sdk:** adopt final provider contract description and provenance ([815278e](https://github.com/Sendmux/sendmux-sdk/commit/815278e76587dcba314c51202b8e764250e51ef3))
26
+
27
+ ## [1.3.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.2.0...ruby-management/v1.3.0) (2026-09-10)
28
+
29
+
30
+ ### Features
31
+
32
+ * add REST OAuth clients and CLI token lifecycle ([cc4a3aa](https://github.com/Sendmux/sendmux-sdk/commit/cc4a3aa6110378641418a94455ed5b9a986e65ff))
33
+
3
34
  ## [1.2.0](https://github.com/Sendmux/sendmux-sdk/compare/ruby-management/v1.1.1...ruby-management/v1.2.0) (2026-09-08)
4
35
 
5
36
 
data/README.md CHANGED
@@ -18,6 +18,8 @@ Ruby SDK package for the Sendmux Management API.
18
18
  - Ruby 3.1 or newer.
19
19
  - A root Sendmux API key beginning with `smx_root_`.
20
20
 
21
+ For OAuth, use a REST access token with the scopes and mailbox access required by the operation. See [OAuth for REST APIs](https://sendmux.ai/docs/developer-tools/oauth).
22
+
21
23
  ## Installation
22
24
 
23
25
  ```sh
@@ -27,12 +29,60 @@ gem install sendmux-management
27
29
  Or add it to your Gemfile:
28
30
 
29
31
  ```ruby
30
- gem "sendmux-management", "~> 1.0"
32
+ gem "sendmux-management", "~> 2.0"
33
+ ```
34
+
35
+ ## Migrate from 1.x to 2.0
36
+
37
+ If you check sending-account result classes, update those checks when upgrading
38
+ to 2.0. `management_list_providers` returns `ProviderListItem` entries instead of
39
+ `ProviderItem`. List entries don't expose `variables`; detail results remain
40
+ `ProviderItem` and require a variables hash, which is empty when none are set.
41
+
42
+ 1. Update list-specific class checks to use the class loaded by the public entry
43
+ point:
44
+
45
+ ```ruby
46
+ require "sendmux/management"
47
+
48
+ def provider_list_item?(item)
49
+ # Before: item.is_a?(Sendmux::Management::Generated::ProviderItem)
50
+ item.is_a?(Sendmux::Management::Generated::ProviderListItem)
51
+ end
52
+ ```
53
+
54
+ 2. If you need an account's variables, fetch its detail using the public client.
55
+ Pass the account's `id` as the `public_id` argument:
56
+
57
+ ```ruby
58
+ def provider_variables(client, public_id)
59
+ detail = client.sending_accounts.management_get_provider(public_id).data
60
+ detail.variables
61
+ end
62
+ ```
63
+
64
+ Don't convert a list entry into `ProviderItem` or substitute an empty variables
65
+ hash for the account's actual variables. Update hand-built detail fixtures to
66
+ include `variables: {}` when no variables are set.
67
+
68
+ 3. Run your application's tests with the updated bundle. Verify that list
69
+ handling accepts `ProviderListItem` and only detail handling reads variables.
70
+
71
+ ## OAuth access tokens
72
+
73
+ Pass either `api_key:` or `access_token:`. `access_token:` accepts a bare token string or a callable; the callable is evaluated once per authenticated request. Your application owns token storage, expiry checks and refresh coordination.
74
+
75
+ ```ruby
76
+ require "sendmux/management"
77
+
78
+ client = Sendmux::Management::Client.new(
79
+ access_token: -> { ENV.fetch("SENDMUX_ACCESS_TOKEN") }
80
+ )
31
81
  ```
32
82
 
33
83
  ## Usage
34
84
 
35
- Create a management client with a root key before calling generated operations.
85
+ Create a management client with a root key for the API-key example below.
36
86
 
37
87
  ```ruby
38
88
  require "sendmux/management"
@@ -53,6 +103,7 @@ puts domains.data.length
53
103
  `Sendmux::Management::Client` exposes generated API groups:
54
104
 
55
105
  - `client.billing`
106
+ - `client.connection`
56
107
  - `client.domain_filters`
57
108
  - `client.domains`
58
109
  - `client.emails`
@@ -5,6 +5,12 @@ module Sendmux
5
5
  DEFAULT_BASE_URL = 'https://app.sendmux.ai/api/v1'
6
6
 
7
7
  class ApiClient < Generated::ApiClient
8
+ def update_params_for_auth!(header_params, query_params, auth_names)
9
+ return super unless config.access_token_getter && !Array(auth_names).empty?
10
+
11
+ header_params['Authorization'] = "Bearer #{config.access_token_with_refresh}"
12
+ end
13
+
8
14
  def call_api(...)
9
15
  super
10
16
  rescue Generated::ApiError => e
@@ -15,12 +21,13 @@ module Sendmux
15
21
  class Client
16
22
  attr_reader :api_client, :configuration
17
23
 
18
- def initialize(api_key:, base_url: DEFAULT_BASE_URL, retry_options: nil)
24
+ def initialize(api_key: nil, access_token: nil, base_url: DEFAULT_BASE_URL, retry_options: nil)
19
25
  @configuration = Sendmux::Core::Auth.configure_bearer(
20
26
  Generated::Configuration.new,
21
27
  api_key,
22
28
  Sendmux::Core::ApiKeySurface::ROOT,
23
- base_url: base_url
29
+ base_url: base_url,
30
+ access_token: access_token
24
31
  )
25
32
  Sendmux::Core::Retry.configure(@configuration, retry_options)
26
33
  @api_client = ApiClient.new(@configuration)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sendmux
4
4
  module Management
5
- VERSION = '1.2.0'
5
+ VERSION = '2.0.0'
6
6
  end
7
7
  end
@@ -64,7 +64,7 @@ module Sendmux::Management::Generated
64
64
  return_type = opts[:debug_return_type] || 'SpendSummaryResponse'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"BillingApi.management_get_spend_summary",
@@ -121,7 +121,7 @@ module Sendmux::Management::Generated
121
121
  return_type = opts[:debug_return_type] || 'BalanceResponse'
122
122
 
123
123
  # auth_names
124
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
124
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
125
125
 
126
126
  new_options = opts.merge(
127
127
  :operation => :"BillingApi.management_list_balance",
@@ -199,7 +199,7 @@ module Sendmux::Management::Generated
199
199
  return_type = opts[:debug_return_type] || 'TransactionCursorListResponse'
200
200
 
201
201
  # auth_names
202
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
202
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
203
203
 
204
204
  new_options = opts.merge(
205
205
  :operation => :"BillingApi.management_list_transactions",
@@ -60,7 +60,7 @@ module Sendmux::Management::Generated
60
60
  return_type = opts[:debug_return_type] || 'ConnectionResponse'
61
61
 
62
62
  # auth_names
63
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
63
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
64
64
 
65
65
  new_options = opts.merge(
66
66
  :operation => :"ConnectionApi.management_get_connection",
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"DomainFiltersApi.management_get_domain_filters",
@@ -139,7 +139,7 @@ module Sendmux::Management::Generated
139
139
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
140
140
 
141
141
  # auth_names
142
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
142
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
143
143
 
144
144
  new_options = opts.merge(
145
145
  :operation => :"DomainFiltersApi.management_set_domain_filters",
@@ -71,7 +71,7 @@ module Sendmux::Management::Generated
71
71
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
72
72
 
73
73
  # auth_names
74
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
74
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
75
75
 
76
76
  new_options = opts.merge(
77
77
  :operation => :"DomainsApi.management_create_domain",
@@ -134,7 +134,7 @@ module Sendmux::Management::Generated
134
134
  return_type = opts[:debug_return_type] || 'DomainDeletedResponse'
135
135
 
136
136
  # auth_names
137
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
137
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
138
138
 
139
139
  new_options = opts.merge(
140
140
  :operation => :"DomainsApi.management_delete_domain",
@@ -200,7 +200,7 @@ module Sendmux::Management::Generated
200
200
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
201
201
 
202
202
  # auth_names
203
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
203
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
204
204
 
205
205
  new_options = opts.merge(
206
206
  :operation => :"DomainsApi.management_get_domain",
@@ -263,7 +263,7 @@ module Sendmux::Management::Generated
263
263
  return_type = opts[:debug_return_type] || 'String'
264
264
 
265
265
  # auth_names
266
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
266
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
267
267
 
268
268
  new_options = opts.merge(
269
269
  :operation => :"DomainsApi.management_get_domain_zone_file",
@@ -334,7 +334,7 @@ module Sendmux::Management::Generated
334
334
  return_type = opts[:debug_return_type] || 'DomainItemCursorListResponse'
335
335
 
336
336
  # auth_names
337
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
337
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
338
338
 
339
339
  new_options = opts.merge(
340
340
  :operation => :"DomainsApi.management_list_domains",
@@ -407,7 +407,7 @@ module Sendmux::Management::Generated
407
407
  return_type = opts[:debug_return_type] || 'DomainItemResponse'
408
408
 
409
409
  # auth_names
410
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
410
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
411
411
 
412
412
  new_options = opts.merge(
413
413
  :operation => :"DomainsApi.management_update_domain",
@@ -470,7 +470,7 @@ module Sendmux::Management::Generated
470
470
  return_type = opts[:debug_return_type] || 'DomainVerifyResponse'
471
471
 
472
472
  # auth_names
473
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
473
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
474
474
 
475
475
  new_options = opts.merge(
476
476
  :operation => :"DomainsApi.management_verify_domain",
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'DeliveryLogItemResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"EmailsApi.management_get_email_log",
@@ -146,7 +146,7 @@ module Sendmux::Management::Generated
146
146
  return_type = opts[:debug_return_type] || 'EmailMetricsResponse'
147
147
 
148
148
  # auth_names
149
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
149
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
150
150
 
151
151
  new_options = opts.merge(
152
152
  :operation => :"EmailsApi.management_get_email_metrics",
@@ -236,7 +236,7 @@ module Sendmux::Management::Generated
236
236
  return_type = opts[:debug_return_type] || 'DeliveryLogItemCursorListResponse'
237
237
 
238
238
  # auth_names
239
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
239
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
240
240
 
241
241
  new_options = opts.merge(
242
242
  :operation => :"EmailsApi.management_list_email_logs",
@@ -63,7 +63,7 @@ module Sendmux::Management::Generated
63
63
  return_type = opts[:debug_return_type] || 'IncomingLogItemResponse'
64
64
 
65
65
  # auth_names
66
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
66
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
67
67
 
68
68
  new_options = opts.merge(
69
69
  :operation => :"InboxesApi.management_get_inbox_log",
@@ -153,7 +153,7 @@ module Sendmux::Management::Generated
153
153
  return_type = opts[:debug_return_type] || 'IncomingLogItemCursorListResponse'
154
154
 
155
155
  # auth_names
156
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
156
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
157
157
 
158
158
  new_options = opts.merge(
159
159
  :operation => :"InboxesApi.management_list_inbox_logs",
@@ -66,7 +66,7 @@ module Sendmux::Management::Generated
66
66
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
67
67
 
68
68
  # auth_names
69
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
69
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
70
70
 
71
71
  new_options = opts.merge(
72
72
  :operation => :"MailboxFiltersApi.management_get_mailbox_filters",
@@ -139,7 +139,7 @@ module Sendmux::Management::Generated
139
139
  return_type = opts[:debug_return_type] || 'FilterStateResponse'
140
140
 
141
141
  # auth_names
142
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
142
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
143
143
 
144
144
  new_options = opts.merge(
145
145
  :operation => :"MailboxFiltersApi.management_set_mailbox_filters",
@@ -64,7 +64,7 @@ module Sendmux::Management::Generated
64
64
  return_type = opts[:debug_return_type] || 'MailboxAvailabilityResponse'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
67
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"MailboxesApi.management_check_mailbox_availability",
@@ -135,7 +135,7 @@ module Sendmux::Management::Generated
135
135
  return_type = opts[:debug_return_type] || 'MailboxCreateResultResponse'
136
136
 
137
137
  # auth_names
138
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
138
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
139
139
 
140
140
  new_options = opts.merge(
141
141
  :operation => :"MailboxesApi.management_create_mailbox",
@@ -212,7 +212,7 @@ module Sendmux::Management::Generated
212
212
  return_type = opts[:debug_return_type] || 'MailboxAppPasswordResultResponse'
213
213
 
214
214
  # auth_names
215
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
215
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
216
216
 
217
217
  new_options = opts.merge(
218
218
  :operation => :"MailboxesApi.management_create_mailbox_key",
@@ -275,7 +275,7 @@ module Sendmux::Management::Generated
275
275
  return_type = opts[:debug_return_type] || 'MailboxDeletedResponse'
276
276
 
277
277
  # auth_names
278
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
278
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
279
279
 
280
280
  new_options = opts.merge(
281
281
  :operation => :"MailboxesApi.management_delete_mailbox",
@@ -344,7 +344,7 @@ module Sendmux::Management::Generated
344
344
  return_type = opts[:debug_return_type] || 'MailboxKeyDeletedResponse'
345
345
 
346
346
  # auth_names
347
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
347
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
348
348
 
349
349
  new_options = opts.merge(
350
350
  :operation => :"MailboxesApi.management_delete_mailbox_key",
@@ -410,7 +410,7 @@ module Sendmux::Management::Generated
410
410
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
413
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :operation => :"MailboxesApi.management_get_mailbox",
@@ -488,7 +488,7 @@ module Sendmux::Management::Generated
488
488
  return_type = opts[:debug_return_type] || 'MailboxItemCursorListResponse'
489
489
 
490
490
  # auth_names
491
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
491
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
492
492
 
493
493
  new_options = opts.merge(
494
494
  :operation => :"MailboxesApi.management_list_mailboxes",
@@ -558,7 +558,7 @@ module Sendmux::Management::Generated
558
558
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
559
559
 
560
560
  # auth_names
561
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
561
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
562
562
 
563
563
  new_options = opts.merge(
564
564
  :operation => :"MailboxesApi.management_resume_mailbox",
@@ -628,7 +628,7 @@ module Sendmux::Management::Generated
628
628
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
629
629
 
630
630
  # auth_names
631
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
631
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
632
632
 
633
633
  new_options = opts.merge(
634
634
  :operation => :"MailboxesApi.management_suspend_mailbox",
@@ -701,7 +701,7 @@ module Sendmux::Management::Generated
701
701
  return_type = opts[:debug_return_type] || 'MailboxItemResponse'
702
702
 
703
703
  # auth_names
704
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
704
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
705
705
 
706
706
  new_options = opts.merge(
707
707
  :operation => :"MailboxesApi.management_update_mailbox",
@@ -70,7 +70,7 @@ module Sendmux::Management::Generated
70
70
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
73
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :"SendingAccountsApi.management_activate_provider",
@@ -133,7 +133,7 @@ module Sendmux::Management::Generated
133
133
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestCancelResponse'
134
134
 
135
135
  # auth_names
136
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
136
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
137
137
 
138
138
  new_options = opts.merge(
139
139
  :operation => :"SendingAccountsApi.management_cancel_shared_amazon_ses_limit_request",
@@ -204,7 +204,7 @@ module Sendmux::Management::Generated
204
204
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
205
205
 
206
206
  # auth_names
207
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
207
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
208
208
 
209
209
  new_options = opts.merge(
210
210
  :operation => :"SendingAccountsApi.management_create_provider",
@@ -268,7 +268,7 @@ module Sendmux::Management::Generated
268
268
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestCreateResponse'
269
269
 
270
270
  # auth_names
271
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
271
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
272
272
 
273
273
  new_options = opts.merge(
274
274
  :operation => :"SendingAccountsApi.management_create_shared_amazon_ses_limit_request",
@@ -338,7 +338,7 @@ module Sendmux::Management::Generated
338
338
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
339
339
 
340
340
  # auth_names
341
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
341
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
342
342
 
343
343
  new_options = opts.merge(
344
344
  :operation => :"SendingAccountsApi.management_deactivate_provider",
@@ -401,7 +401,7 @@ module Sendmux::Management::Generated
401
401
  return_type = opts[:debug_return_type] || 'ProviderDeletedResponse'
402
402
 
403
403
  # auth_names
404
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
404
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
405
405
 
406
406
  new_options = opts.merge(
407
407
  :operation => :"SendingAccountsApi.management_delete_provider",
@@ -467,7 +467,7 @@ module Sendmux::Management::Generated
467
467
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
468
468
 
469
469
  # auth_names
470
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
470
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
471
471
 
472
472
  new_options = opts.merge(
473
473
  :operation => :"SendingAccountsApi.management_get_provider",
@@ -524,7 +524,7 @@ module Sendmux::Management::Generated
524
524
  return_type = opts[:debug_return_type] || 'ProviderLimitsResponse'
525
525
 
526
526
  # auth_names
527
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
527
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
528
528
 
529
529
  new_options = opts.merge(
530
530
  :operation => :"SendingAccountsApi.management_get_provider_limits",
@@ -581,7 +581,7 @@ module Sendmux::Management::Generated
581
581
  return_type = opts[:debug_return_type] || 'ProviderStatsResponse'
582
582
 
583
583
  # auth_names
584
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
584
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
585
585
 
586
586
  new_options = opts.merge(
587
587
  :operation => :"SendingAccountsApi.management_get_provider_stats",
@@ -638,7 +638,7 @@ module Sendmux::Management::Generated
638
638
  return_type = opts[:debug_return_type] || 'ProviderUsageResponse'
639
639
 
640
640
  # auth_names
641
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
641
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
642
642
 
643
643
  new_options = opts.merge(
644
644
  :operation => :"SendingAccountsApi.management_get_provider_usage",
@@ -695,7 +695,7 @@ module Sendmux::Management::Generated
695
695
  return_type = opts[:debug_return_type] || 'SharedAmazonSesLimitRequestPageResponse'
696
696
 
697
697
  # auth_names
698
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
698
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
699
699
 
700
700
  new_options = opts.merge(
701
701
  :operation => :"SendingAccountsApi.management_get_shared_amazon_ses_limit_request",
@@ -780,7 +780,7 @@ module Sendmux::Management::Generated
780
780
  return_type = opts[:debug_return_type] || 'ProviderItemCursorListResponse'
781
781
 
782
782
  # auth_names
783
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
783
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
784
784
 
785
785
  new_options = opts.merge(
786
786
  :operation => :"SendingAccountsApi.management_list_providers",
@@ -844,7 +844,7 @@ module Sendmux::Management::Generated
844
844
  return_type = opts[:debug_return_type] || 'SendingAccountLimitRequestResponse'
845
845
 
846
846
  # auth_names
847
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
847
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
848
848
 
849
849
  new_options = opts.merge(
850
850
  :operation => :"SendingAccountsApi.management_request_sending_account_limit_increase",
@@ -914,7 +914,7 @@ module Sendmux::Management::Generated
914
914
  return_type = opts[:debug_return_type] || 'ProviderTestResultResponse'
915
915
 
916
916
  # auth_names
917
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
917
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
918
918
 
919
919
  new_options = opts.merge(
920
920
  :operation => :"SendingAccountsApi.management_test_provider",
@@ -934,7 +934,7 @@ module Sendmux::Management::Generated
934
934
  end
935
935
 
936
936
  # Update a sending account
937
- # Updates a custom sending account. The shared Amazon SES account cannot be edited here; use activate/deactivate and the limit-request endpoint for the allowed shared-account actions.
937
+ # Updates a custom sending account or replaces variables on the shared Amazon SES account. Shared-account connection settings cannot be edited; use activate/deactivate and the limit-request endpoint for its other allowed actions.
938
938
  # @param public_id [String]
939
939
  # @param [Hash] opts the optional parameters
940
940
  # @option opts [String] :if_match
@@ -946,7 +946,7 @@ module Sendmux::Management::Generated
946
946
  end
947
947
 
948
948
  # Update a sending account
949
- # Updates a custom sending account. The shared Amazon SES account cannot be edited here; use activate/deactivate and the limit-request endpoint for the allowed shared-account actions.
949
+ # Updates a custom sending account or replaces variables on the shared Amazon SES account. Shared-account connection settings cannot be edited; use activate/deactivate and the limit-request endpoint for its other allowed actions.
950
950
  # @param public_id [String]
951
951
  # @param [Hash] opts the optional parameters
952
952
  # @option opts [String] :if_match
@@ -987,7 +987,7 @@ module Sendmux::Management::Generated
987
987
  return_type = opts[:debug_return_type] || 'ProviderItemResponse'
988
988
 
989
989
  # auth_names
990
- auth_names = opts[:debug_auth_names] || ['bearerAuth']
990
+ auth_names = opts[:debug_auth_names] || ['oauth2', 'bearerAuth']
991
991
 
992
992
  new_options = opts.merge(
993
993
  :operation => :"SendingAccountsApi.management_update_provider",