aws-sdk-gamelift 1.58.0 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-gamelift/client.rb +20 -3
- data/lib/aws-sdk-gamelift/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-gamelift/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-gamelift/endpoints.rb +1345 -0
- data/lib/aws-sdk-gamelift/plugins/endpoints.rb +258 -0
- data/lib/aws-sdk-gamelift.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,258 @@
|
|
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::GameLift
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::GameLift::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::GameLift::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::GameLift::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 :accept_match
|
60
|
+
Aws::GameLift::Endpoints::AcceptMatch.build(context)
|
61
|
+
when :claim_game_server
|
62
|
+
Aws::GameLift::Endpoints::ClaimGameServer.build(context)
|
63
|
+
when :create_alias
|
64
|
+
Aws::GameLift::Endpoints::CreateAlias.build(context)
|
65
|
+
when :create_build
|
66
|
+
Aws::GameLift::Endpoints::CreateBuild.build(context)
|
67
|
+
when :create_fleet
|
68
|
+
Aws::GameLift::Endpoints::CreateFleet.build(context)
|
69
|
+
when :create_fleet_locations
|
70
|
+
Aws::GameLift::Endpoints::CreateFleetLocations.build(context)
|
71
|
+
when :create_game_server_group
|
72
|
+
Aws::GameLift::Endpoints::CreateGameServerGroup.build(context)
|
73
|
+
when :create_game_session
|
74
|
+
Aws::GameLift::Endpoints::CreateGameSession.build(context)
|
75
|
+
when :create_game_session_queue
|
76
|
+
Aws::GameLift::Endpoints::CreateGameSessionQueue.build(context)
|
77
|
+
when :create_matchmaking_configuration
|
78
|
+
Aws::GameLift::Endpoints::CreateMatchmakingConfiguration.build(context)
|
79
|
+
when :create_matchmaking_rule_set
|
80
|
+
Aws::GameLift::Endpoints::CreateMatchmakingRuleSet.build(context)
|
81
|
+
when :create_player_session
|
82
|
+
Aws::GameLift::Endpoints::CreatePlayerSession.build(context)
|
83
|
+
when :create_player_sessions
|
84
|
+
Aws::GameLift::Endpoints::CreatePlayerSessions.build(context)
|
85
|
+
when :create_script
|
86
|
+
Aws::GameLift::Endpoints::CreateScript.build(context)
|
87
|
+
when :create_vpc_peering_authorization
|
88
|
+
Aws::GameLift::Endpoints::CreateVpcPeeringAuthorization.build(context)
|
89
|
+
when :create_vpc_peering_connection
|
90
|
+
Aws::GameLift::Endpoints::CreateVpcPeeringConnection.build(context)
|
91
|
+
when :delete_alias
|
92
|
+
Aws::GameLift::Endpoints::DeleteAlias.build(context)
|
93
|
+
when :delete_build
|
94
|
+
Aws::GameLift::Endpoints::DeleteBuild.build(context)
|
95
|
+
when :delete_fleet
|
96
|
+
Aws::GameLift::Endpoints::DeleteFleet.build(context)
|
97
|
+
when :delete_fleet_locations
|
98
|
+
Aws::GameLift::Endpoints::DeleteFleetLocations.build(context)
|
99
|
+
when :delete_game_server_group
|
100
|
+
Aws::GameLift::Endpoints::DeleteGameServerGroup.build(context)
|
101
|
+
when :delete_game_session_queue
|
102
|
+
Aws::GameLift::Endpoints::DeleteGameSessionQueue.build(context)
|
103
|
+
when :delete_matchmaking_configuration
|
104
|
+
Aws::GameLift::Endpoints::DeleteMatchmakingConfiguration.build(context)
|
105
|
+
when :delete_matchmaking_rule_set
|
106
|
+
Aws::GameLift::Endpoints::DeleteMatchmakingRuleSet.build(context)
|
107
|
+
when :delete_scaling_policy
|
108
|
+
Aws::GameLift::Endpoints::DeleteScalingPolicy.build(context)
|
109
|
+
when :delete_script
|
110
|
+
Aws::GameLift::Endpoints::DeleteScript.build(context)
|
111
|
+
when :delete_vpc_peering_authorization
|
112
|
+
Aws::GameLift::Endpoints::DeleteVpcPeeringAuthorization.build(context)
|
113
|
+
when :delete_vpc_peering_connection
|
114
|
+
Aws::GameLift::Endpoints::DeleteVpcPeeringConnection.build(context)
|
115
|
+
when :deregister_game_server
|
116
|
+
Aws::GameLift::Endpoints::DeregisterGameServer.build(context)
|
117
|
+
when :describe_alias
|
118
|
+
Aws::GameLift::Endpoints::DescribeAlias.build(context)
|
119
|
+
when :describe_build
|
120
|
+
Aws::GameLift::Endpoints::DescribeBuild.build(context)
|
121
|
+
when :describe_ec2_instance_limits
|
122
|
+
Aws::GameLift::Endpoints::DescribeEC2InstanceLimits.build(context)
|
123
|
+
when :describe_fleet_attributes
|
124
|
+
Aws::GameLift::Endpoints::DescribeFleetAttributes.build(context)
|
125
|
+
when :describe_fleet_capacity
|
126
|
+
Aws::GameLift::Endpoints::DescribeFleetCapacity.build(context)
|
127
|
+
when :describe_fleet_events
|
128
|
+
Aws::GameLift::Endpoints::DescribeFleetEvents.build(context)
|
129
|
+
when :describe_fleet_location_attributes
|
130
|
+
Aws::GameLift::Endpoints::DescribeFleetLocationAttributes.build(context)
|
131
|
+
when :describe_fleet_location_capacity
|
132
|
+
Aws::GameLift::Endpoints::DescribeFleetLocationCapacity.build(context)
|
133
|
+
when :describe_fleet_location_utilization
|
134
|
+
Aws::GameLift::Endpoints::DescribeFleetLocationUtilization.build(context)
|
135
|
+
when :describe_fleet_port_settings
|
136
|
+
Aws::GameLift::Endpoints::DescribeFleetPortSettings.build(context)
|
137
|
+
when :describe_fleet_utilization
|
138
|
+
Aws::GameLift::Endpoints::DescribeFleetUtilization.build(context)
|
139
|
+
when :describe_game_server
|
140
|
+
Aws::GameLift::Endpoints::DescribeGameServer.build(context)
|
141
|
+
when :describe_game_server_group
|
142
|
+
Aws::GameLift::Endpoints::DescribeGameServerGroup.build(context)
|
143
|
+
when :describe_game_server_instances
|
144
|
+
Aws::GameLift::Endpoints::DescribeGameServerInstances.build(context)
|
145
|
+
when :describe_game_session_details
|
146
|
+
Aws::GameLift::Endpoints::DescribeGameSessionDetails.build(context)
|
147
|
+
when :describe_game_session_placement
|
148
|
+
Aws::GameLift::Endpoints::DescribeGameSessionPlacement.build(context)
|
149
|
+
when :describe_game_session_queues
|
150
|
+
Aws::GameLift::Endpoints::DescribeGameSessionQueues.build(context)
|
151
|
+
when :describe_game_sessions
|
152
|
+
Aws::GameLift::Endpoints::DescribeGameSessions.build(context)
|
153
|
+
when :describe_instances
|
154
|
+
Aws::GameLift::Endpoints::DescribeInstances.build(context)
|
155
|
+
when :describe_matchmaking
|
156
|
+
Aws::GameLift::Endpoints::DescribeMatchmaking.build(context)
|
157
|
+
when :describe_matchmaking_configurations
|
158
|
+
Aws::GameLift::Endpoints::DescribeMatchmakingConfigurations.build(context)
|
159
|
+
when :describe_matchmaking_rule_sets
|
160
|
+
Aws::GameLift::Endpoints::DescribeMatchmakingRuleSets.build(context)
|
161
|
+
when :describe_player_sessions
|
162
|
+
Aws::GameLift::Endpoints::DescribePlayerSessions.build(context)
|
163
|
+
when :describe_runtime_configuration
|
164
|
+
Aws::GameLift::Endpoints::DescribeRuntimeConfiguration.build(context)
|
165
|
+
when :describe_scaling_policies
|
166
|
+
Aws::GameLift::Endpoints::DescribeScalingPolicies.build(context)
|
167
|
+
when :describe_script
|
168
|
+
Aws::GameLift::Endpoints::DescribeScript.build(context)
|
169
|
+
when :describe_vpc_peering_authorizations
|
170
|
+
Aws::GameLift::Endpoints::DescribeVpcPeeringAuthorizations.build(context)
|
171
|
+
when :describe_vpc_peering_connections
|
172
|
+
Aws::GameLift::Endpoints::DescribeVpcPeeringConnections.build(context)
|
173
|
+
when :get_game_session_log_url
|
174
|
+
Aws::GameLift::Endpoints::GetGameSessionLogUrl.build(context)
|
175
|
+
when :get_instance_access
|
176
|
+
Aws::GameLift::Endpoints::GetInstanceAccess.build(context)
|
177
|
+
when :list_aliases
|
178
|
+
Aws::GameLift::Endpoints::ListAliases.build(context)
|
179
|
+
when :list_builds
|
180
|
+
Aws::GameLift::Endpoints::ListBuilds.build(context)
|
181
|
+
when :list_fleets
|
182
|
+
Aws::GameLift::Endpoints::ListFleets.build(context)
|
183
|
+
when :list_game_server_groups
|
184
|
+
Aws::GameLift::Endpoints::ListGameServerGroups.build(context)
|
185
|
+
when :list_game_servers
|
186
|
+
Aws::GameLift::Endpoints::ListGameServers.build(context)
|
187
|
+
when :list_scripts
|
188
|
+
Aws::GameLift::Endpoints::ListScripts.build(context)
|
189
|
+
when :list_tags_for_resource
|
190
|
+
Aws::GameLift::Endpoints::ListTagsForResource.build(context)
|
191
|
+
when :put_scaling_policy
|
192
|
+
Aws::GameLift::Endpoints::PutScalingPolicy.build(context)
|
193
|
+
when :register_game_server
|
194
|
+
Aws::GameLift::Endpoints::RegisterGameServer.build(context)
|
195
|
+
when :request_upload_credentials
|
196
|
+
Aws::GameLift::Endpoints::RequestUploadCredentials.build(context)
|
197
|
+
when :resolve_alias
|
198
|
+
Aws::GameLift::Endpoints::ResolveAlias.build(context)
|
199
|
+
when :resume_game_server_group
|
200
|
+
Aws::GameLift::Endpoints::ResumeGameServerGroup.build(context)
|
201
|
+
when :search_game_sessions
|
202
|
+
Aws::GameLift::Endpoints::SearchGameSessions.build(context)
|
203
|
+
when :start_fleet_actions
|
204
|
+
Aws::GameLift::Endpoints::StartFleetActions.build(context)
|
205
|
+
when :start_game_session_placement
|
206
|
+
Aws::GameLift::Endpoints::StartGameSessionPlacement.build(context)
|
207
|
+
when :start_match_backfill
|
208
|
+
Aws::GameLift::Endpoints::StartMatchBackfill.build(context)
|
209
|
+
when :start_matchmaking
|
210
|
+
Aws::GameLift::Endpoints::StartMatchmaking.build(context)
|
211
|
+
when :stop_fleet_actions
|
212
|
+
Aws::GameLift::Endpoints::StopFleetActions.build(context)
|
213
|
+
when :stop_game_session_placement
|
214
|
+
Aws::GameLift::Endpoints::StopGameSessionPlacement.build(context)
|
215
|
+
when :stop_matchmaking
|
216
|
+
Aws::GameLift::Endpoints::StopMatchmaking.build(context)
|
217
|
+
when :suspend_game_server_group
|
218
|
+
Aws::GameLift::Endpoints::SuspendGameServerGroup.build(context)
|
219
|
+
when :tag_resource
|
220
|
+
Aws::GameLift::Endpoints::TagResource.build(context)
|
221
|
+
when :untag_resource
|
222
|
+
Aws::GameLift::Endpoints::UntagResource.build(context)
|
223
|
+
when :update_alias
|
224
|
+
Aws::GameLift::Endpoints::UpdateAlias.build(context)
|
225
|
+
when :update_build
|
226
|
+
Aws::GameLift::Endpoints::UpdateBuild.build(context)
|
227
|
+
when :update_fleet_attributes
|
228
|
+
Aws::GameLift::Endpoints::UpdateFleetAttributes.build(context)
|
229
|
+
when :update_fleet_capacity
|
230
|
+
Aws::GameLift::Endpoints::UpdateFleetCapacity.build(context)
|
231
|
+
when :update_fleet_port_settings
|
232
|
+
Aws::GameLift::Endpoints::UpdateFleetPortSettings.build(context)
|
233
|
+
when :update_game_server
|
234
|
+
Aws::GameLift::Endpoints::UpdateGameServer.build(context)
|
235
|
+
when :update_game_server_group
|
236
|
+
Aws::GameLift::Endpoints::UpdateGameServerGroup.build(context)
|
237
|
+
when :update_game_session
|
238
|
+
Aws::GameLift::Endpoints::UpdateGameSession.build(context)
|
239
|
+
when :update_game_session_queue
|
240
|
+
Aws::GameLift::Endpoints::UpdateGameSessionQueue.build(context)
|
241
|
+
when :update_matchmaking_configuration
|
242
|
+
Aws::GameLift::Endpoints::UpdateMatchmakingConfiguration.build(context)
|
243
|
+
when :update_runtime_configuration
|
244
|
+
Aws::GameLift::Endpoints::UpdateRuntimeConfiguration.build(context)
|
245
|
+
when :update_script
|
246
|
+
Aws::GameLift::Endpoints::UpdateScript.build(context)
|
247
|
+
when :validate_matchmaking_rule_set
|
248
|
+
Aws::GameLift::Endpoints::ValidateMatchmakingRuleSet.build(context)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
def add_handlers(handlers, _config)
|
254
|
+
handlers.add(Handler, step: :build, priority: 75)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
data/lib/aws-sdk-gamelift.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-gamelift/types'
|
15
15
|
require_relative 'aws-sdk-gamelift/client_api'
|
16
|
+
require_relative 'aws-sdk-gamelift/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-gamelift/client'
|
17
18
|
require_relative 'aws-sdk-gamelift/errors'
|
18
19
|
require_relative 'aws-sdk-gamelift/resource'
|
20
|
+
require_relative 'aws-sdk-gamelift/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-gamelift/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-gamelift/endpoints'
|
19
23
|
require_relative 'aws-sdk-gamelift/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon GameLift. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-gamelift/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::GameLift
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.59.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-gamelift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.59.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-
|
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.
|
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.
|
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-gamelift/client.rb
|
60
60
|
- lib/aws-sdk-gamelift/client_api.rb
|
61
61
|
- lib/aws-sdk-gamelift/customizations.rb
|
62
|
+
- lib/aws-sdk-gamelift/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-gamelift/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-gamelift/endpoints.rb
|
62
65
|
- lib/aws-sdk-gamelift/errors.rb
|
66
|
+
- lib/aws-sdk-gamelift/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-gamelift/resource.rb
|
64
68
|
- lib/aws-sdk-gamelift/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|