aws-sdk-alexaforbusiness 1.56.0 → 1.57.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,254 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::AlexaForBusiness
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::AlexaForBusiness::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::AlexaForBusiness::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::AlexaForBusiness::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :approve_skill
60
+ Aws::AlexaForBusiness::Endpoints::ApproveSkill.build(context)
61
+ when :associate_contact_with_address_book
62
+ Aws::AlexaForBusiness::Endpoints::AssociateContactWithAddressBook.build(context)
63
+ when :associate_device_with_network_profile
64
+ Aws::AlexaForBusiness::Endpoints::AssociateDeviceWithNetworkProfile.build(context)
65
+ when :associate_device_with_room
66
+ Aws::AlexaForBusiness::Endpoints::AssociateDeviceWithRoom.build(context)
67
+ when :associate_skill_group_with_room
68
+ Aws::AlexaForBusiness::Endpoints::AssociateSkillGroupWithRoom.build(context)
69
+ when :associate_skill_with_skill_group
70
+ Aws::AlexaForBusiness::Endpoints::AssociateSkillWithSkillGroup.build(context)
71
+ when :associate_skill_with_users
72
+ Aws::AlexaForBusiness::Endpoints::AssociateSkillWithUsers.build(context)
73
+ when :create_address_book
74
+ Aws::AlexaForBusiness::Endpoints::CreateAddressBook.build(context)
75
+ when :create_business_report_schedule
76
+ Aws::AlexaForBusiness::Endpoints::CreateBusinessReportSchedule.build(context)
77
+ when :create_conference_provider
78
+ Aws::AlexaForBusiness::Endpoints::CreateConferenceProvider.build(context)
79
+ when :create_contact
80
+ Aws::AlexaForBusiness::Endpoints::CreateContact.build(context)
81
+ when :create_gateway_group
82
+ Aws::AlexaForBusiness::Endpoints::CreateGatewayGroup.build(context)
83
+ when :create_network_profile
84
+ Aws::AlexaForBusiness::Endpoints::CreateNetworkProfile.build(context)
85
+ when :create_profile
86
+ Aws::AlexaForBusiness::Endpoints::CreateProfile.build(context)
87
+ when :create_room
88
+ Aws::AlexaForBusiness::Endpoints::CreateRoom.build(context)
89
+ when :create_skill_group
90
+ Aws::AlexaForBusiness::Endpoints::CreateSkillGroup.build(context)
91
+ when :create_user
92
+ Aws::AlexaForBusiness::Endpoints::CreateUser.build(context)
93
+ when :delete_address_book
94
+ Aws::AlexaForBusiness::Endpoints::DeleteAddressBook.build(context)
95
+ when :delete_business_report_schedule
96
+ Aws::AlexaForBusiness::Endpoints::DeleteBusinessReportSchedule.build(context)
97
+ when :delete_conference_provider
98
+ Aws::AlexaForBusiness::Endpoints::DeleteConferenceProvider.build(context)
99
+ when :delete_contact
100
+ Aws::AlexaForBusiness::Endpoints::DeleteContact.build(context)
101
+ when :delete_device
102
+ Aws::AlexaForBusiness::Endpoints::DeleteDevice.build(context)
103
+ when :delete_device_usage_data
104
+ Aws::AlexaForBusiness::Endpoints::DeleteDeviceUsageData.build(context)
105
+ when :delete_gateway_group
106
+ Aws::AlexaForBusiness::Endpoints::DeleteGatewayGroup.build(context)
107
+ when :delete_network_profile
108
+ Aws::AlexaForBusiness::Endpoints::DeleteNetworkProfile.build(context)
109
+ when :delete_profile
110
+ Aws::AlexaForBusiness::Endpoints::DeleteProfile.build(context)
111
+ when :delete_room
112
+ Aws::AlexaForBusiness::Endpoints::DeleteRoom.build(context)
113
+ when :delete_room_skill_parameter
114
+ Aws::AlexaForBusiness::Endpoints::DeleteRoomSkillParameter.build(context)
115
+ when :delete_skill_authorization
116
+ Aws::AlexaForBusiness::Endpoints::DeleteSkillAuthorization.build(context)
117
+ when :delete_skill_group
118
+ Aws::AlexaForBusiness::Endpoints::DeleteSkillGroup.build(context)
119
+ when :delete_user
120
+ Aws::AlexaForBusiness::Endpoints::DeleteUser.build(context)
121
+ when :disassociate_contact_from_address_book
122
+ Aws::AlexaForBusiness::Endpoints::DisassociateContactFromAddressBook.build(context)
123
+ when :disassociate_device_from_room
124
+ Aws::AlexaForBusiness::Endpoints::DisassociateDeviceFromRoom.build(context)
125
+ when :disassociate_skill_from_skill_group
126
+ Aws::AlexaForBusiness::Endpoints::DisassociateSkillFromSkillGroup.build(context)
127
+ when :disassociate_skill_from_users
128
+ Aws::AlexaForBusiness::Endpoints::DisassociateSkillFromUsers.build(context)
129
+ when :disassociate_skill_group_from_room
130
+ Aws::AlexaForBusiness::Endpoints::DisassociateSkillGroupFromRoom.build(context)
131
+ when :forget_smart_home_appliances
132
+ Aws::AlexaForBusiness::Endpoints::ForgetSmartHomeAppliances.build(context)
133
+ when :get_address_book
134
+ Aws::AlexaForBusiness::Endpoints::GetAddressBook.build(context)
135
+ when :get_conference_preference
136
+ Aws::AlexaForBusiness::Endpoints::GetConferencePreference.build(context)
137
+ when :get_conference_provider
138
+ Aws::AlexaForBusiness::Endpoints::GetConferenceProvider.build(context)
139
+ when :get_contact
140
+ Aws::AlexaForBusiness::Endpoints::GetContact.build(context)
141
+ when :get_device
142
+ Aws::AlexaForBusiness::Endpoints::GetDevice.build(context)
143
+ when :get_gateway
144
+ Aws::AlexaForBusiness::Endpoints::GetGateway.build(context)
145
+ when :get_gateway_group
146
+ Aws::AlexaForBusiness::Endpoints::GetGatewayGroup.build(context)
147
+ when :get_invitation_configuration
148
+ Aws::AlexaForBusiness::Endpoints::GetInvitationConfiguration.build(context)
149
+ when :get_network_profile
150
+ Aws::AlexaForBusiness::Endpoints::GetNetworkProfile.build(context)
151
+ when :get_profile
152
+ Aws::AlexaForBusiness::Endpoints::GetProfile.build(context)
153
+ when :get_room
154
+ Aws::AlexaForBusiness::Endpoints::GetRoom.build(context)
155
+ when :get_room_skill_parameter
156
+ Aws::AlexaForBusiness::Endpoints::GetRoomSkillParameter.build(context)
157
+ when :get_skill_group
158
+ Aws::AlexaForBusiness::Endpoints::GetSkillGroup.build(context)
159
+ when :list_business_report_schedules
160
+ Aws::AlexaForBusiness::Endpoints::ListBusinessReportSchedules.build(context)
161
+ when :list_conference_providers
162
+ Aws::AlexaForBusiness::Endpoints::ListConferenceProviders.build(context)
163
+ when :list_device_events
164
+ Aws::AlexaForBusiness::Endpoints::ListDeviceEvents.build(context)
165
+ when :list_gateway_groups
166
+ Aws::AlexaForBusiness::Endpoints::ListGatewayGroups.build(context)
167
+ when :list_gateways
168
+ Aws::AlexaForBusiness::Endpoints::ListGateways.build(context)
169
+ when :list_skills
170
+ Aws::AlexaForBusiness::Endpoints::ListSkills.build(context)
171
+ when :list_skills_store_categories
172
+ Aws::AlexaForBusiness::Endpoints::ListSkillsStoreCategories.build(context)
173
+ when :list_skills_store_skills_by_category
174
+ Aws::AlexaForBusiness::Endpoints::ListSkillsStoreSkillsByCategory.build(context)
175
+ when :list_smart_home_appliances
176
+ Aws::AlexaForBusiness::Endpoints::ListSmartHomeAppliances.build(context)
177
+ when :list_tags
178
+ Aws::AlexaForBusiness::Endpoints::ListTags.build(context)
179
+ when :put_conference_preference
180
+ Aws::AlexaForBusiness::Endpoints::PutConferencePreference.build(context)
181
+ when :put_invitation_configuration
182
+ Aws::AlexaForBusiness::Endpoints::PutInvitationConfiguration.build(context)
183
+ when :put_room_skill_parameter
184
+ Aws::AlexaForBusiness::Endpoints::PutRoomSkillParameter.build(context)
185
+ when :put_skill_authorization
186
+ Aws::AlexaForBusiness::Endpoints::PutSkillAuthorization.build(context)
187
+ when :register_avs_device
188
+ Aws::AlexaForBusiness::Endpoints::RegisterAVSDevice.build(context)
189
+ when :reject_skill
190
+ Aws::AlexaForBusiness::Endpoints::RejectSkill.build(context)
191
+ when :resolve_room
192
+ Aws::AlexaForBusiness::Endpoints::ResolveRoom.build(context)
193
+ when :revoke_invitation
194
+ Aws::AlexaForBusiness::Endpoints::RevokeInvitation.build(context)
195
+ when :search_address_books
196
+ Aws::AlexaForBusiness::Endpoints::SearchAddressBooks.build(context)
197
+ when :search_contacts
198
+ Aws::AlexaForBusiness::Endpoints::SearchContacts.build(context)
199
+ when :search_devices
200
+ Aws::AlexaForBusiness::Endpoints::SearchDevices.build(context)
201
+ when :search_network_profiles
202
+ Aws::AlexaForBusiness::Endpoints::SearchNetworkProfiles.build(context)
203
+ when :search_profiles
204
+ Aws::AlexaForBusiness::Endpoints::SearchProfiles.build(context)
205
+ when :search_rooms
206
+ Aws::AlexaForBusiness::Endpoints::SearchRooms.build(context)
207
+ when :search_skill_groups
208
+ Aws::AlexaForBusiness::Endpoints::SearchSkillGroups.build(context)
209
+ when :search_users
210
+ Aws::AlexaForBusiness::Endpoints::SearchUsers.build(context)
211
+ when :send_announcement
212
+ Aws::AlexaForBusiness::Endpoints::SendAnnouncement.build(context)
213
+ when :send_invitation
214
+ Aws::AlexaForBusiness::Endpoints::SendInvitation.build(context)
215
+ when :start_device_sync
216
+ Aws::AlexaForBusiness::Endpoints::StartDeviceSync.build(context)
217
+ when :start_smart_home_appliance_discovery
218
+ Aws::AlexaForBusiness::Endpoints::StartSmartHomeApplianceDiscovery.build(context)
219
+ when :tag_resource
220
+ Aws::AlexaForBusiness::Endpoints::TagResource.build(context)
221
+ when :untag_resource
222
+ Aws::AlexaForBusiness::Endpoints::UntagResource.build(context)
223
+ when :update_address_book
224
+ Aws::AlexaForBusiness::Endpoints::UpdateAddressBook.build(context)
225
+ when :update_business_report_schedule
226
+ Aws::AlexaForBusiness::Endpoints::UpdateBusinessReportSchedule.build(context)
227
+ when :update_conference_provider
228
+ Aws::AlexaForBusiness::Endpoints::UpdateConferenceProvider.build(context)
229
+ when :update_contact
230
+ Aws::AlexaForBusiness::Endpoints::UpdateContact.build(context)
231
+ when :update_device
232
+ Aws::AlexaForBusiness::Endpoints::UpdateDevice.build(context)
233
+ when :update_gateway
234
+ Aws::AlexaForBusiness::Endpoints::UpdateGateway.build(context)
235
+ when :update_gateway_group
236
+ Aws::AlexaForBusiness::Endpoints::UpdateGatewayGroup.build(context)
237
+ when :update_network_profile
238
+ Aws::AlexaForBusiness::Endpoints::UpdateNetworkProfile.build(context)
239
+ when :update_profile
240
+ Aws::AlexaForBusiness::Endpoints::UpdateProfile.build(context)
241
+ when :update_room
242
+ Aws::AlexaForBusiness::Endpoints::UpdateRoom.build(context)
243
+ when :update_skill_group
244
+ Aws::AlexaForBusiness::Endpoints::UpdateSkillGroup.build(context)
245
+ end
246
+ end
247
+ end
248
+
249
+ def add_handlers(handlers, _config)
250
+ handlers.add(Handler, step: :build, priority: 75)
251
+ end
252
+ end
253
+ end
254
+ end
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-alexaforbusiness/types'
15
15
  require_relative 'aws-sdk-alexaforbusiness/client_api'
16
+ require_relative 'aws-sdk-alexaforbusiness/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-alexaforbusiness/client'
17
18
  require_relative 'aws-sdk-alexaforbusiness/errors'
18
19
  require_relative 'aws-sdk-alexaforbusiness/resource'
20
+ require_relative 'aws-sdk-alexaforbusiness/endpoint_parameters'
21
+ require_relative 'aws-sdk-alexaforbusiness/endpoint_provider'
22
+ require_relative 'aws-sdk-alexaforbusiness/endpoints'
19
23
  require_relative 'aws-sdk-alexaforbusiness/customizations'
20
24
 
21
25
  # This module provides support for Alexa For Business. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-alexaforbusiness/customizations'
48
52
  # @!group service
49
53
  module Aws::AlexaForBusiness
50
54
 
51
- GEM_VERSION = '1.56.0'
55
+ GEM_VERSION = '1.57.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-alexaforbusiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.56.0
4
+ version: 1.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-alexaforbusiness/client.rb
60
60
  - lib/aws-sdk-alexaforbusiness/client_api.rb
61
61
  - lib/aws-sdk-alexaforbusiness/customizations.rb
62
+ - lib/aws-sdk-alexaforbusiness/endpoint_parameters.rb
63
+ - lib/aws-sdk-alexaforbusiness/endpoint_provider.rb
64
+ - lib/aws-sdk-alexaforbusiness/endpoints.rb
62
65
  - lib/aws-sdk-alexaforbusiness/errors.rb
66
+ - lib/aws-sdk-alexaforbusiness/plugins/endpoints.rb
63
67
  - lib/aws-sdk-alexaforbusiness/resource.rb
64
68
  - lib/aws-sdk-alexaforbusiness/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby