Class: Aws::GameSparks::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::GameSparks::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
385 386 387 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 385 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1826 1827 1828 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1826 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1829 1830 1831 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1829 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1804 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-gamesparks' context[:gem_version] = '1.13.0' Seahorse::Client::Request.new(handlers, context) end |
#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`.
439 440 441 442 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 439 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.
477 478 479 480 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 477 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.
541 542 543 544 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 541 def create_stage(params = {}, = {}) req = build_request(:create_stage, params) req.send_request() end |
#delete_game(params = {}) ⇒ Struct
Deletes a game.
563 564 565 566 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 563 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.
589 590 591 592 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 589 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.
632 633 634 635 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 632 def disconnect_player(params = {}, = {}) req = build_request(:disconnect_player, params) req.send_request() end |
#export_snapshot(params = {}) ⇒ Types::ExportSnapshotResult
Exports a game configuration snapshot.
664 665 666 667 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 664 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.
698 699 700 701 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 698 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.
737 738 739 740 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 737 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.
773 774 775 776 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 773 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.
809 810 811 812 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 809 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.
849 850 851 852 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 849 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.
891 892 893 894 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 891 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.
933 934 935 936 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 933 def get_snapshot(params = {}, = {}) req = build_request(:get_snapshot, params) req.send_request() end |
#get_stage(params = {}) ⇒ Types::GetStageResult
Gets information about a stage.
975 976 977 978 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 975 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.
1019 1020 1021 1022 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1019 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.
1062 1063 1064 1065 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1062 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.
1121 1122 1123 1124 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1121 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.
1169 1170 1171 1172 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1169 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.
1217 1218 1219 1220 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1217 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.
1273 1274 1275 1276 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1273 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.
1324 1325 1326 1327 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1324 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.
1382 1383 1384 1385 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1382 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.
1435 1436 1437 1438 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1435 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.
1464 1465 1466 1467 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1464 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.
1506 1507 1508 1509 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1506 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.
1563 1564 1565 1566 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1563 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.
1591 1592 1593 1594 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1591 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a GameSparks resource.
1618 1619 1620 1621 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1618 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_game(params = {}) ⇒ Types::UpdateGameResult
Updates details of the game.
1658 1659 1660 1661 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1658 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.
1702 1703 1704 1705 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1702 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.
1744 1745 1746 1747 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1744 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.
1795 1796 1797 1798 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1795 def update_stage(params = {}, = {}) req = build_request(:update_stage, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1819 1820 1821 |
# File 'lib/aws-sdk-gamesparks/client.rb', line 1819 def waiter_names [] end |