Class: Aws::GameSparks::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::GameSparks::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb
Overview
An API client for GameSparks. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::GameSparks::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_game(params = {}) ⇒ Types::CreateGameResult
Creates a new game with an empty configuration.
-
#create_snapshot(params = {}) ⇒ Types::CreateSnapshotResult
Creates a snapshot of the game configuration.
-
#create_stage(params = {}) ⇒ Types::CreateStageResult
Creates a new stage for stage-by-stage game development and deployment.
-
#delete_game(params = {}) ⇒ Struct
Deletes a game.
-
#delete_stage(params = {}) ⇒ Struct
Deletes a stage from a game, along with the associated game runtime.
-
#disconnect_player(params = {}) ⇒ Types::DisconnectPlayerResult
Disconnects a player from the game runtime.
-
#export_snapshot(params = {}) ⇒ Types::ExportSnapshotResult
Exports a game configuration snapshot.
-
#get_extension(params = {}) ⇒ Types::GetExtensionResult
Gets details about a specified extension.
-
#get_extension_version(params = {}) ⇒ Types::GetExtensionVersionResult
Gets details about a specified extension version.
-
#get_game(params = {}) ⇒ Types::GetGameResult
Gets details about a game.
-
#get_game_configuration(params = {}) ⇒ Types::GetGameConfigurationResult
Gets the configuration of the game.
-
#get_generated_code_job(params = {}) ⇒ Types::GetGeneratedCodeJobResult
Gets details about a job that is generating code for a snapshot.
-
#get_player_connection_status(params = {}) ⇒ Types::GetPlayerConnectionStatusResult
Gets the status of a player's connection to the game runtime.
-
#get_snapshot(params = {}) ⇒ Types::GetSnapshotResult
Gets a copy of the game configuration in a snapshot.
-
#get_stage(params = {}) ⇒ Types::GetStageResult
Gets information about a stage.
-
#get_stage_deployment(params = {}) ⇒ Types::GetStageDeploymentResult
Gets information about a stage deployment.
-
#import_game_configuration(params = {}) ⇒ Types::ImportGameConfigurationResult
Imports a game configuration.
-
#list_extension_versions(params = {}) ⇒ Types::ListExtensionVersionsResult
Gets a paginated list of available versions for the extension.
-
#list_extensions(params = {}) ⇒ Types::ListExtensionsResult
Gets a paginated list of available extensions.
-
#list_games(params = {}) ⇒ Types::ListGamesResult
Gets a paginated list of games.
-
#list_generated_code_jobs(params = {}) ⇒ Types::ListGeneratedCodeJobsResult
Gets a paginated list of code generation jobs for a snapshot.
-
#list_snapshots(params = {}) ⇒ Types::ListSnapshotsResult
Gets a paginated list of snapshot summaries from the game.
-
#list_stage_deployments(params = {}) ⇒ Types::ListStageDeploymentsResult
Gets a paginated list of stage deployment summaries from the game.
-
#list_stages(params = {}) ⇒ Types::ListStagesResult
Gets a paginated list of stage summaries from the game.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Lists the tags associated with a GameSparks resource.
-
#start_generated_code_job(params = {}) ⇒ Types::StartGeneratedCodeJobResult
Starts an asynchronous process that generates client code for system-defined and custom messages.
-
#start_stage_deployment(params = {}) ⇒ Types::StartStageDeploymentResult
Deploys a snapshot to the stage and creates a new game runtime.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a GameSparks resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a GameSparks resource.
-
#update_game(params = {}) ⇒ Types::UpdateGameResult
Updates details of the game.
-
#update_game_configuration(params = {}) ⇒ Types::UpdateGameConfigurationResult
Updates one or more sections of the game configuration.
-
#update_snapshot(params = {}) ⇒ Types::UpdateSnapshotResult
Updates the metadata of a GameSparks snapshot.
-
#update_stage(params = {}) ⇒ Types::UpdateStageResult
Updates the metadata of a stage.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
365 366 367 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 365 def initialize(*args) super end |
Instance Method Details
#create_game(params = {}) ⇒ Types::CreateGameResult
Creates a new game with an empty configuration. After creating your
game, you can update the configuration using UpdateGameConfiguration
or ImportGameConfiguration
.
419 420 421 422 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 419 def create_game(params = {}, = {}) req = build_request(:create_game, params) req.send_request() end |
#create_snapshot(params = {}) ⇒ Types::CreateSnapshotResult
Creates a snapshot of the game configuration.
457 458 459 460 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 457 def create_snapshot(params = {}, = {}) req = build_request(:create_snapshot, params) req.send_request() end |
#create_stage(params = {}) ⇒ Types::CreateStageResult
Creates a new stage for stage-by-stage game development and deployment.
521 522 523 524 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 521 def create_stage(params = {}, = {}) req = build_request(:create_stage, params) req.send_request() end |
#delete_game(params = {}) ⇒ Struct
Deletes a game.
543 544 545 546 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 543 def delete_game(params = {}, = {}) req = build_request(:delete_game, params) req.send_request() end |
#delete_stage(params = {}) ⇒ Struct
Deletes a stage from a game, along with the associated game runtime.
569 570 571 572 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 569 def delete_stage(params = {}, = {}) req = build_request(:delete_stage, params) req.send_request() end |
#disconnect_player(params = {}) ⇒ Types::DisconnectPlayerResult
Disconnects a player from the game runtime.
If a player has multiple connections, this operation attempts to close all of them.
612 613 614 615 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 612 def disconnect_player(params = {}, = {}) req = build_request(:disconnect_player, params) req.send_request() end |
#export_snapshot(params = {}) ⇒ Types::ExportSnapshotResult
Exports a game configuration snapshot.
644 645 646 647 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 644 def export_snapshot(params = {}, = {}) req = build_request(:export_snapshot, params) req.send_request() end |
#get_extension(params = {}) ⇒ Types::GetExtensionResult
Gets details about a specified extension.
678 679 680 681 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 678 def get_extension(params = {}, = {}) req = build_request(:get_extension, params) req.send_request() end |
#get_extension_version(params = {}) ⇒ Types::GetExtensionVersionResult
Gets details about a specified extension version.
717 718 719 720 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 717 def get_extension_version(params = {}, = {}) req = build_request(:get_extension_version, params) req.send_request() end |
#get_game(params = {}) ⇒ Types::GetGameResult
Gets details about a game.
753 754 755 756 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 753 def get_game(params = {}, = {}) req = build_request(:get_game, params) req.send_request() end |
#get_game_configuration(params = {}) ⇒ Types::GetGameConfigurationResult
Gets the configuration of the game.
789 790 791 792 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 789 def get_game_configuration(params = {}, = {}) req = build_request(:get_game_configuration, params) req.send_request() end |
#get_generated_code_job(params = {}) ⇒ Types::GetGeneratedCodeJobResult
Gets details about a job that is generating code for a snapshot.
829 830 831 832 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 829 def get_generated_code_job(params = {}, = {}) req = build_request(:get_generated_code_job, params) req.send_request() end |
#get_player_connection_status(params = {}) ⇒ Types::GetPlayerConnectionStatusResult
Gets the status of a player's connection to the game runtime.
It's possible for a single player to have multiple connections to the game runtime. If a player is not connected, this operation returns an empty list.
871 872 873 874 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 871 def get_player_connection_status(params = {}, = {}) req = build_request(:get_player_connection_status, params) req.send_request() end |
#get_snapshot(params = {}) ⇒ Types::GetSnapshotResult
Gets a copy of the game configuration in a snapshot.
913 914 915 916 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 913 def get_snapshot(params = {}, = {}) req = build_request(:get_snapshot, params) req.send_request() end |
#get_stage(params = {}) ⇒ Types::GetStageResult
Gets information about a stage.
955 956 957 958 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 955 def get_stage(params = {}, = {}) req = build_request(:get_stage, params) req.send_request() end |
#get_stage_deployment(params = {}) ⇒ Types::GetStageDeploymentResult
Gets information about a stage deployment.
999 1000 1001 1002 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 999 def get_stage_deployment(params = {}, = {}) req = build_request(:get_stage_deployment, params) req.send_request() end |
#import_game_configuration(params = {}) ⇒ Types::ImportGameConfigurationResult
Imports a game configuration.
This operation replaces the current configuration of the game with the
provided input. This is not a reversible operation. If you want to
preserve the previous configuration, use CreateSnapshot
to make a
new snapshot before importing.
1042 1043 1044 1045 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1042 def import_game_configuration(params = {}, = {}) req = build_request(:import_game_configuration, params) req.send_request() end |
#list_extension_versions(params = {}) ⇒ Types::ListExtensionVersionsResult
Gets a paginated list of available versions for the extension.
Each time an API change is made to an extension, the version is incremented. The list retrieved by this operation shows the versions that are currently available.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1101 1102 1103 1104 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1101 def list_extension_versions(params = {}, = {}) req = build_request(:list_extension_versions, params) req.send_request() end |
#list_extensions(params = {}) ⇒ Types::ListExtensionsResult
Gets a paginated list of available extensions.
Extensions provide features that games can use from scripts.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1149 1150 1151 1152 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1149 def list_extensions(params = {}, = {}) req = build_request(:list_extensions, params) req.send_request() end |
#list_games(params = {}) ⇒ Types::ListGamesResult
Gets a paginated list of games.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1197 1198 1199 1200 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1197 def list_games(params = {}, = {}) req = build_request(:list_games, params) req.send_request() end |
#list_generated_code_jobs(params = {}) ⇒ Types::ListGeneratedCodeJobsResult
Gets a paginated list of code generation jobs for a snapshot.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1253 1254 1255 1256 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1253 def list_generated_code_jobs(params = {}, = {}) req = build_request(:list_generated_code_jobs, params) req.send_request() end |
#list_snapshots(params = {}) ⇒ Types::ListSnapshotsResult
Gets a paginated list of snapshot summaries from the game.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1304 1305 1306 1307 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1304 def list_snapshots(params = {}, = {}) req = build_request(:list_snapshots, params) req.send_request() end |
#list_stage_deployments(params = {}) ⇒ Types::ListStageDeploymentsResult
Gets a paginated list of stage deployment summaries from the game.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1362 1363 1364 1365 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1362 def list_stage_deployments(params = {}, = {}) req = build_request(:list_stage_deployments, params) req.send_request() end |
#list_stages(params = {}) ⇒ Types::ListStagesResult
Gets a paginated list of stage summaries from the game.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1415 1416 1417 1418 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1415 def list_stages(params = {}, = {}) req = build_request(:list_stages, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResult
Lists the tags associated with a GameSparks resource.
1444 1445 1446 1447 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1444 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#start_generated_code_job(params = {}) ⇒ Types::StartGeneratedCodeJobResult
Starts an asynchronous process that generates client code for system-defined and custom messages. The resulting code is collected as a .zip file and uploaded to a pre-signed Amazon S3 URL.
1486 1487 1488 1489 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1486 def start_generated_code_job(params = {}, = {}) req = build_request(:start_generated_code_job, params) req.send_request() end |
#start_stage_deployment(params = {}) ⇒ Types::StartStageDeploymentResult
Deploys a snapshot to the stage and creates a new game runtime.
After you call this operation, you can check the deployment status by
using GetStageDeployment
.
If there are any players connected to the previous game runtime, then both runtimes persist. Existing connections to the previous runtime are maintained. When players disconnect and reconnect, they connect to the new runtime. After there are no connections to the previous game runtime, it is deleted.
1543 1544 1545 1546 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1543 def start_stage_deployment(params = {}, = {}) req = build_request(:start_stage_deployment, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a GameSparks resource.
1571 1572 1573 1574 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1571 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a GameSparks resource.
1598 1599 1600 1601 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1598 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_game(params = {}) ⇒ Types::UpdateGameResult
Updates details of the game.
1638 1639 1640 1641 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1638 def update_game(params = {}, = {}) req = build_request(:update_game, params) req.send_request() end |
#update_game_configuration(params = {}) ⇒ Types::UpdateGameConfigurationResult
Updates one or more sections of the game configuration.
1682 1683 1684 1685 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1682 def update_game_configuration(params = {}, = {}) req = build_request(:update_game_configuration, params) req.send_request() end |
#update_snapshot(params = {}) ⇒ Types::UpdateSnapshotResult
Updates the metadata of a GameSparks snapshot.
1724 1725 1726 1727 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1724 def update_snapshot(params = {}, = {}) req = build_request(:update_snapshot, params) req.send_request() end |
#update_stage(params = {}) ⇒ Types::UpdateStageResult
Updates the metadata of a stage.
1775 1776 1777 1778 |
# File 'gems/aws-sdk-gamesparks/lib/aws-sdk-gamesparks/client.rb', line 1775 def update_stage(params = {}, = {}) req = build_request(:update_stage, params) req.send_request() end |