The game server config configures the game servers in an Agones fleet. v1
Package
@google-cloud/game-servers!
Constructors
(constructor)(opts)
constructor(opts?: ClientOptions);
Construct an instance of GameServerConfigsServiceClient.
Parameter
Name | Description |
opts |
ClientOptions
|
Properties
apiEndpoint
static get apiEndpoint(): string;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
Property Value
auth
Property Value
Type | Description |
gax.GoogleAuth | |
descriptors
descriptors: Descriptors;
Property Value
Type | Description |
Descriptors | |
gameServerConfigsServiceStub
gameServerConfigsServiceStub?: Promise<{
[name: string]: Function;
}>;
Property Value
Type | Description |
Promise<{
[name: string]: Function;
}> | |
innerApiCalls
innerApiCalls: {
[name: string]: Function;
};
Property Value
Type | Description |
{
[name: string]: Function;
} | |
operationsClient
operationsClient: gax.OperationsClient;
Property Value
Type | Description |
gax.OperationsClient | |
pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};
Property Value
Type | Description |
{
[name: string]: gax.PathTemplate;
} | |
port
static get port(): number;
The port for this API service.
Property Value
scopes
static get scopes(): string[];
The scopes needed to make gRPC calls for every method defined in this service.
Property Value
servicePath
static get servicePath(): string;
The DNS address for this API service.
Property Value
warn
warn: (code: string, message: string, warnType?: string) => void;
Property Value
Type | Description |
(code: string, message: string, warnType?: string) => void | |
Methods
checkCreateGameServerConfigProgress(name)
checkCreateGameServerConfigProgress(name: string): Promise<LROperation<protos.google.cloud.gaming.v1.GameServerConfig, protos.google.cloud.gaming.v1.OperationMetadata>>;
Check the status of the long running operation returned by createGameServerConfig()
.
Parameter
Name | Description |
name |
string
The operation name that will be passed.
|
Returns
Type | Description |
Promise<LROperation<protos.google.cloud.gaming.v1.GameServerConfig, protos.google.cloud.gaming.v1.OperationMetadata>> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.
|
checkDeleteGameServerConfigProgress(name)
checkDeleteGameServerConfigProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.gaming.v1.OperationMetadata>>;
Check the status of the long running operation returned by deleteGameServerConfig()
.
Parameter
Name | Description |
name |
string
The operation name that will be passed.
|
Returns
Type | Description |
Promise<LROperation<protos.google.protobuf.Empty, protos.google.cloud.gaming.v1.OperationMetadata>> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.
|
close()
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns
Type | Description |
Promise<void> | {Promise} A promise that resolves when the client is closed.
|
createGameServerConfig(request, options)
createGameServerConfig(request?: protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest, options?: CallOptions): Promise<[LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
createGameServerConfig(request, options, callback)
createGameServerConfig(request: protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
createGameServerConfig(request, callback)
createGameServerConfig(request: protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest, callback: Callback<LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.ICreateGameServerConfigRequest
|
callback |
Callback<LROperation<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
deleteGameServerConfig(request, options)
deleteGameServerConfig(request?: protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest, options?: CallOptions): Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined]> | |
deleteGameServerConfig(request, options, callback)
deleteGameServerConfig(request: protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
deleteGameServerConfig(request, callback)
deleteGameServerConfig(request: protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IDeleteGameServerConfigRequest
|
callback |
Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.cloud.gaming.v1.IOperationMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns
gameServerClusterPath(project, location, realm, cluster)
gameServerClusterPath(project: string, location: string, realm: string, cluster: string): string;
Return a fully-qualified gameServerCluster resource name string.
Parameters
Name | Description |
project |
string
|
location |
string
|
realm |
string
|
cluster |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
gameServerConfigPath(project, location, deployment, config)
gameServerConfigPath(project: string, location: string, deployment: string, config: string): string;
Return a fully-qualified gameServerConfig resource name string.
Parameters
Name | Description |
project |
string
|
location |
string
|
deployment |
string
|
config |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
gameServerDeploymentPath(project, location, deployment)
gameServerDeploymentPath(project: string, location: string, deployment: string): string;
Return a fully-qualified gameServerDeployment resource name string.
Parameters
Name | Description |
project |
string
|
location |
string
|
deployment |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
gameServerDeploymentRolloutPath(project, location, deployment)
gameServerDeploymentRolloutPath(project: string, location: string, deployment: string): string;
Return a fully-qualified gameServerDeploymentRollout resource name string.
Parameters
Name | Description |
project |
string
|
location |
string
|
deployment |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|
getGameServerConfig(request, options)
getGameServerConfig(request?: protos.google.cloud.gaming.v1.IGetGameServerConfigRequest, options?: CallOptions): Promise<[protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | undefined, {} | undefined]>;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IGetGameServerConfigRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | undefined, {} | undefined]> | |
getGameServerConfig(request, options, callback)
getGameServerConfig(request: protos.google.cloud.gaming.v1.IGetGameServerConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IGetGameServerConfigRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | null | undefined, {} | null | undefined>
|
Returns
getGameServerConfig(request, callback)
getGameServerConfig(request: protos.google.cloud.gaming.v1.IGetGameServerConfigRequest, callback: Callback<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IGetGameServerConfigRequest
|
callback |
Callback<protos.google.cloud.gaming.v1.IGameServerConfig, protos.google.cloud.gaming.v1.IGetGameServerConfigRequest | null | undefined, {} | null | undefined>
|
Returns
getProjectId()
getProjectId(): Promise<string>;
Returns
Type | Description |
Promise<string> | |
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
Name | Description |
callback |
Callback<string, undefined, undefined>
|
Returns
initialize()
initialize(): Promise<{
[name: string]: Function;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns
Type | Description |
Promise<{
[name: string]: Function;
}> | {Promise} A promise that resolves to an authenticated service stub.
|
listGameServerConfigs(request, options)
listGameServerConfigs(request?: protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, options?: CallOptions): Promise<[protos.google.cloud.gaming.v1.IGameServerConfig[], protos.google.cloud.gaming.v1.IListGameServerConfigsRequest | null, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse]>;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IListGameServerConfigsRequest
|
options |
CallOptions
|
Returns
Type | Description |
Promise<[protos.google.cloud.gaming.v1.IGameServerConfig[], protos.google.cloud.gaming.v1.IListGameServerConfigsRequest | null, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse]> | |
listGameServerConfigs(request, options, callback)
listGameServerConfigs(request: protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse | null | undefined, protos.google.cloud.gaming.v1.IGameServerConfig>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IListGameServerConfigsRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse | null | undefined, protos.google.cloud.gaming.v1.IGameServerConfig>
|
Returns
listGameServerConfigs(request, callback)
listGameServerConfigs(request: protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, callback: PaginationCallback<protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse | null | undefined, protos.google.cloud.gaming.v1.IGameServerConfig>): void;
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IListGameServerConfigsRequest
|
callback |
PaginationCallback<protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, protos.google.cloud.gaming.v1.IListGameServerConfigsResponse | null | undefined, protos.google.cloud.gaming.v1.IGameServerConfig>
|
Returns
listGameServerConfigsAsync(request, options)
listGameServerConfigsAsync(request?: protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.gaming.v1.IGameServerConfig>;
Equivalent to listGameServerConfigs
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IListGameServerConfigsRequest
The request object that will be sent.
|
options |
CallOptions
Call options. See CallOptions for more details.
|
Returns
Type | Description |
AsyncIterable<protos.google.cloud.gaming.v1.IGameServerConfig> | {Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [GameServerConfig]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listGameServerConfigsStream(request, options)
listGameServerConfigsStream(request?: protos.google.cloud.gaming.v1.IListGameServerConfigsRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters
Name | Description |
request |
protos.google.cloud.gaming.v1.IListGameServerConfigsRequest
The request object that will be sent.
|
options |
CallOptions
Call options. See CallOptions for more details.
|
Returns
Type | Description |
Transform | {Stream} An object stream which emits an object representing [GameServerConfig] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listGameServerConfigsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
matchClusterFromGameServerClusterName(gameServerClusterName)
matchClusterFromGameServerClusterName(gameServerClusterName: string): string | number;
Parse the cluster from GameServerCluster resource.
Parameter
Name | Description |
gameServerClusterName |
string
A fully-qualified path representing GameServerCluster resource.
|
Returns
Type | Description |
string | number | {string} A string representing the cluster.
|
matchConfigFromGameServerConfigName(gameServerConfigName)
matchConfigFromGameServerConfigName(gameServerConfigName: string): string | number;
Parse the config from GameServerConfig resource.
Parameter
Name | Description |
gameServerConfigName |
string
A fully-qualified path representing GameServerConfig resource.
|
Returns
Type | Description |
string | number | {string} A string representing the config.
|
matchDeploymentFromGameServerConfigName(gameServerConfigName)
matchDeploymentFromGameServerConfigName(gameServerConfigName: string): string | number;
Parse the deployment from GameServerConfig resource.
Parameter
Name | Description |
gameServerConfigName |
string
A fully-qualified path representing GameServerConfig resource.
|
Returns
Type | Description |
string | number | {string} A string representing the deployment.
|
matchDeploymentFromGameServerDeploymentName(gameServerDeploymentName)
matchDeploymentFromGameServerDeploymentName(gameServerDeploymentName: string): string | number;
Parse the deployment from GameServerDeployment resource.
Parameter
Name | Description |
gameServerDeploymentName |
string
A fully-qualified path representing GameServerDeployment resource.
|
Returns
Type | Description |
string | number | {string} A string representing the deployment.
|
matchDeploymentFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName)
matchDeploymentFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName: string): string | number;
Parse the deployment from GameServerDeploymentRollout resource.
Parameter
Name | Description |
gameServerDeploymentRolloutName |
string
A fully-qualified path representing GameServerDeploymentRollout resource.
|
Returns
Type | Description |
string | number | {string} A string representing the deployment.
|
matchLocationFromGameServerClusterName(gameServerClusterName)
matchLocationFromGameServerClusterName(gameServerClusterName: string): string | number;
Parse the location from GameServerCluster resource.
Parameter
Name | Description |
gameServerClusterName |
string
A fully-qualified path representing GameServerCluster resource.
|
Returns
Type | Description |
string | number | {string} A string representing the location.
|
matchLocationFromGameServerConfigName(gameServerConfigName)
matchLocationFromGameServerConfigName(gameServerConfigName: string): string | number;
Parse the location from GameServerConfig resource.
Parameter
Name | Description |
gameServerConfigName |
string
A fully-qualified path representing GameServerConfig resource.
|
Returns
Type | Description |
string | number | {string} A string representing the location.
|
matchLocationFromGameServerDeploymentName(gameServerDeploymentName)
matchLocationFromGameServerDeploymentName(gameServerDeploymentName: string): string | number;
Parse the location from GameServerDeployment resource.
Parameter
Name | Description |
gameServerDeploymentName |
string
A fully-qualified path representing GameServerDeployment resource.
|
Returns
Type | Description |
string | number | {string} A string representing the location.
|
matchLocationFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName)
matchLocationFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName: string): string | number;
Parse the location from GameServerDeploymentRollout resource.
Parameter
Name | Description |
gameServerDeploymentRolloutName |
string
A fully-qualified path representing GameServerDeploymentRollout resource.
|
Returns
Type | Description |
string | number | {string} A string representing the location.
|
matchLocationFromRealmName(realmName)
matchLocationFromRealmName(realmName: string): string | number;
Parse the location from Realm resource.
Parameter
Name | Description |
realmName |
string
A fully-qualified path representing Realm resource.
|
Returns
Type | Description |
string | number | {string} A string representing the location.
|
matchProjectFromGameServerClusterName(gameServerClusterName)
matchProjectFromGameServerClusterName(gameServerClusterName: string): string | number;
Parse the project from GameServerCluster resource.
Parameter
Name | Description |
gameServerClusterName |
string
A fully-qualified path representing GameServerCluster resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromGameServerConfigName(gameServerConfigName)
matchProjectFromGameServerConfigName(gameServerConfigName: string): string | number;
Parse the project from GameServerConfig resource.
Parameter
Name | Description |
gameServerConfigName |
string
A fully-qualified path representing GameServerConfig resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromGameServerDeploymentName(gameServerDeploymentName)
matchProjectFromGameServerDeploymentName(gameServerDeploymentName: string): string | number;
Parse the project from GameServerDeployment resource.
Parameter
Name | Description |
gameServerDeploymentName |
string
A fully-qualified path representing GameServerDeployment resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName)
matchProjectFromGameServerDeploymentRolloutName(gameServerDeploymentRolloutName: string): string | number;
Parse the project from GameServerDeploymentRollout resource.
Parameter
Name | Description |
gameServerDeploymentRolloutName |
string
A fully-qualified path representing GameServerDeploymentRollout resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchProjectFromRealmName(realmName)
matchProjectFromRealmName(realmName: string): string | number;
Parse the project from Realm resource.
Parameter
Name | Description |
realmName |
string
A fully-qualified path representing Realm resource.
|
Returns
Type | Description |
string | number | {string} A string representing the project.
|
matchRealmFromGameServerClusterName(gameServerClusterName)
matchRealmFromGameServerClusterName(gameServerClusterName: string): string | number;
Parse the realm from GameServerCluster resource.
Parameter
Name | Description |
gameServerClusterName |
string
A fully-qualified path representing GameServerCluster resource.
|
Returns
Type | Description |
string | number | {string} A string representing the realm.
|
matchRealmFromRealmName(realmName)
matchRealmFromRealmName(realmName: string): string | number;
Parse the realm from Realm resource.
Parameter
Name | Description |
realmName |
string
A fully-qualified path representing Realm resource.
|
Returns
Type | Description |
string | number | {string} A string representing the realm.
|
realmPath(project, location, realm)
realmPath(project: string, location: string, realm: string): string;
Return a fully-qualified realm resource name string.
Parameters
Name | Description |
project |
string
|
location |
string
|
realm |
string
|
Returns
Type | Description |
string | {string} Resource name string.
|