From 206d0863fb85296334f7c84713884b3819fff0d8 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 10 Feb 2020 13:56:48 -0800 Subject: [PATCH 01/60] Initial client library creation --- generated,README.md/package.json | 23 +++++++++++++++++ generated,README.md/quickstart.js | 29 ++++++++++++++++++++++ generated,README.md/test/quickstart.js | 34 ++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 generated,README.md/package.json create mode 100644 generated,README.md/quickstart.js create mode 100644 generated,README.md/test/quickstart.js diff --git a/generated,README.md/package.json b/generated,README.md/package.json new file mode 100644 index 0000000000..1202f25b5d --- /dev/null +++ b/generated,README.md/package.json @@ -0,0 +1,23 @@ +{ + "name": "nodejs-game-server-samples", + "private": true, + "license": "Apache-2.0", + "author": "Google LLC", + "engines": { + "node": ">=8" + }, + "files": [ + "*.js" + ], + "scripts": { + "test": "c8 mocha --timeout 600000 test/*.js" + }, + "dependencies": { + "@google-cloud/game-servers": "^1.0.1" + }, + "devDependencies": { + "c8": "^5.0.1", + "chai": "^4.2.0", + "mocha": "^6.1.4" + } +} diff --git a/generated,README.md/quickstart.js b/generated,README.md/quickstart.js new file mode 100644 index 0000000000..4b8eca19b8 --- /dev/null +++ b/generated,README.md/quickstart.js @@ -0,0 +1,29 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** +* DESCRIBE WHAT THIS SAMPLE DOES. +* @param {string} LIST EXPECTED ARGUMENTS. +*/ +async function main() { +// [START LIBRARY_NAME_quickstart] + +// [END LIBRARY_NAME_quickstart] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err); + process.exitCode = 1; +}); diff --git a/generated,README.md/test/quickstart.js b/generated,README.md/test/quickstart.js new file mode 100644 index 0000000000..5a021415dc --- /dev/null +++ b/generated,README.md/test/quickstart.js @@ -0,0 +1,34 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +"use strict"; + +const path = require("path"); +const { assert } = require("chai"); +const cp = require("child_process"); +const { describe, it } = require("mocha"); + +const execSync = cmd => cp.execSync(cmd, { encoding: "utf-8" }); + +const cwd = path.join(__dirname, ".."); + +describe("Quickstart", () => { + it("should run quickstart", async () => { + const stdout = execSync(`node ./samples/quickstart.js`, { cwd }); + }); +}); From 1a17529a0837e0cd1b8b83f64208a1b62dde3988 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Tue, 11 Feb 2020 14:21:43 -0800 Subject: [PATCH 02/60] feat: updates package.json files and quickstart --- generated,README.md/package.json | 2 +- generated,README.md/test/quickstart.js | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 1202f25b5d..7e445c2d4a 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^1.0.1" + "@google-cloud/game-servers": "^0.1.0" }, "devDependencies": { "c8": "^5.0.1", diff --git a/generated,README.md/test/quickstart.js b/generated,README.md/test/quickstart.js index 5a021415dc..e8365800a0 100644 --- a/generated,README.md/test/quickstart.js +++ b/generated,README.md/test/quickstart.js @@ -16,19 +16,19 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -"use strict"; +'use strict'; -const path = require("path"); -const { assert } = require("chai"); -const cp = require("child_process"); -const { describe, it } = require("mocha"); +const path = require('path'); +const {assert} = require('chai'); +const cp = require('child_process'); +const {describe, it} = require('mocha'); -const execSync = cmd => cp.execSync(cmd, { encoding: "utf-8" }); +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); -const cwd = path.join(__dirname, ".."); +const cwd = path.join(__dirname, '..'); -describe("Quickstart", () => { - it("should run quickstart", async () => { - const stdout = execSync(`node ./samples/quickstart.js`, { cwd }); +describe('Quickstart', () => { + it('should run quickstart', async () => { + const stdout = execSync(`node quickstart.js`, {cwd}); }); }); From cf12904243eac591f4651f1bf80accd95d5bf402 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Fri, 21 Feb 2020 14:50:55 -0800 Subject: [PATCH 03/60] Adds quickstart --- generated,README.md/quickstart.js | 36 +++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/generated,README.md/quickstart.js b/generated,README.md/quickstart.js index 4b8eca19b8..197b63d827 100644 --- a/generated,README.md/quickstart.js +++ b/generated,README.md/quickstart.js @@ -14,13 +14,37 @@ 'use strict'; /** -* DESCRIBE WHAT THIS SAMPLE DOES. -* @param {string} LIST EXPECTED ARGUMENTS. -*/ -async function main() { -// [START LIBRARY_NAME_quickstart] + * Create a Game Servers realm. + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + */ +async function main(projectId, location) { + // [START game_servers_quickstart] + const {RealmsServiceClient} = require('@google-cloud/game-servers'); -// [END LIBRARY_NAME_quickstart] + const client = new RealmsServiceClient(); + + const request = { + parent: `projects/${projectId}/locations/${location}`, + realmId: 'my-realm', + realm: { + // Must use a valid support time zone. + // See https://cloud.google.com/dataprep/docs/html/Supported-Time-Zone-Values_66194188 + timeZone: 'US/Pacific', + description: 'My Game Server realm', + }, + }; + + const [operation] = await client.createRealm(request); + const results = await operation.promise(); + const [realm] = results; + + console.log('Realm created:'); + + console.log(`\tRealm name: ${realm.name}`); + console.log(`\tRealm description: ${realm.description}`); + console.log(`\tRealm time zone: ${realm.timeZone}`); + // [END game_servers_quickstart] } main(...process.argv.slice(2)).catch(err => { From dc4a33509b4876e3c26c8076dbffa86d8a3f894c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 1 Mar 2020 10:11:21 -0800 Subject: [PATCH 04/60] build: get the build passing (#17) --- generated,README.md/README.md | 50 +++++++++++++++++++++++++ generated,README.md/package.json | 3 +- generated,README.md/quickstart.js | 51 ++++++++++++++++---------- generated,README.md/test/quickstart.js | 28 +++++++++++--- 4 files changed, 107 insertions(+), 25 deletions(-) create mode 100644 generated,README.md/README.md diff --git a/generated,README.md/README.md b/generated,README.md/README.md new file mode 100644 index 0000000000..3ef463220e --- /dev/null +++ b/generated,README.md/README.md @@ -0,0 +1,50 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Google Cloud Game Servers: Node.js Samples](https://github.com/googleapis/nodejs-game-servers) + +[![Open in Cloud Shell][shell_img]][shell_link] + + + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/nodejs-game-servers#using-the-client-library). + +`cd samples` + +`npm install` + +`cd ..` + +## Samples + + + +### Quickstart + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node samples/quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/README.md +[product-docs]: https://cloud.google.com/game-servers/ diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 7e445c2d4a..c844a88d0c 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -18,6 +18,7 @@ "devDependencies": { "c8": "^5.0.1", "chai": "^4.2.0", - "mocha": "^6.1.4" + "mocha": "^6.1.4", + "uuid": "^7.0.1" } } diff --git a/generated,README.md/quickstart.js b/generated,README.md/quickstart.js index 197b63d827..a6dc596f2b 100644 --- a/generated,README.md/quickstart.js +++ b/generated,README.md/quickstart.js @@ -13,37 +13,50 @@ 'use strict'; +// sample-metadata: +// title: Create Game Server Realm +// description: Creates a new Realm within Cloud Game Servers +// usage: node quickstart.js + /** * Create a Game Servers realm. * @param {string} projectId string project identifier. * @param {string} location Compute Engine region. */ -async function main(projectId, location) { +async function main(projectId, location, realmId) { // [START game_servers_quickstart] const {RealmsServiceClient} = require('@google-cloud/game-servers'); - const client = new RealmsServiceClient(); + async function quickstart() { + const client = new RealmsServiceClient(); + + // TODO(developer): uncomment the following section, and add values + // const projectId = 'YOUR_PROJECT_ID'; + // const location = 'us-central1; + // const realIm = 'DESIRED_REALM_ID'; - const request = { - parent: `projects/${projectId}/locations/${location}`, - realmId: 'my-realm', - realm: { - // Must use a valid support time zone. - // See https://cloud.google.com/dataprep/docs/html/Supported-Time-Zone-Values_66194188 - timeZone: 'US/Pacific', - description: 'My Game Server realm', - }, - }; + const request = { + parent: `projects/${projectId}/locations/${location}`, + realmId, + realm: { + // Must use a valid support time zone. + // See https://cloud.google.com/dataprep/docs/html/Supported-Time-Zone-Values_66194188 + timeZone: 'US/Pacific', + description: 'My Game Server realm', + }, + }; - const [operation] = await client.createRealm(request); - const results = await operation.promise(); - const [realm] = results; + const [operation] = await client.createRealm(request); + const results = await operation.promise(); + const [realm] = results; - console.log('Realm created:'); + console.log('Realm created:'); - console.log(`\tRealm name: ${realm.name}`); - console.log(`\tRealm description: ${realm.description}`); - console.log(`\tRealm time zone: ${realm.timeZone}`); + console.log(`\tRealm name: ${realm.name}`); + console.log(`\tRealm description: ${realm.description}`); + console.log(`\tRealm time zone: ${realm.timeZone}`); + } + quickstart(); // [END game_servers_quickstart] } diff --git a/generated,README.md/test/quickstart.js b/generated,README.md/test/quickstart.js index e8365800a0..1c04c5ac07 100644 --- a/generated,README.md/test/quickstart.js +++ b/generated,README.md/test/quickstart.js @@ -18,17 +18,35 @@ 'use strict'; -const path = require('path'); const {assert} = require('chai'); const cp = require('child_process'); -const {describe, it} = require('mocha'); +const {describe, it, after, before} = require('mocha'); +const uuid = require('uuid'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); -const cwd = path.join(__dirname, '..'); - describe('Quickstart', () => { + let projectId; + let client; + const location = 'us-central1'; + const realmId = `realm-${uuid.v4().split('-')[0]}`; + + before(async () => { + client = new RealmsServiceClient(); + projectId = await client.getProjectId(); + }); + it('should run quickstart', async () => { - const stdout = execSync(`node quickstart.js`, {cwd}); + const stdout = execSync( + `node quickstart.js ${projectId} ${location} ${realmId}` + ); + assert.include(stdout, 'Realm created:'); + }); + + after(async () => { + await client.deleteRealm({ + name: client.realmPath(projectId, location, realmId), + }); }); }); From fd9690a7bf8c5f17768b7c2fdbc89289ded8e907 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 1 Mar 2020 10:25:06 -0800 Subject: [PATCH 05/60] build: get sample and system tests passing (#18) --- generated,README.md/README.md | 8 +++++--- generated,README.md/test/quickstart.js | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index 3ef463220e..7ec52a6728 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -12,7 +12,7 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) - * [Quickstart](#quickstart) + * [Create Game Server Realm](#create-game-server-realm) ## Before you begin @@ -29,7 +29,9 @@ Before running the samples, make sure you've followed the steps outlined in -### Quickstart +### Create Game Server Realm + +Creates a new Realm within Cloud Game Servers View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/quickstart.js). @@ -38,7 +40,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/quickstart.js` +`node quickstart.js ` diff --git a/generated,README.md/test/quickstart.js b/generated,README.md/test/quickstart.js index 1c04c5ac07..e9faf4f075 100644 --- a/generated,README.md/test/quickstart.js +++ b/generated,README.md/test/quickstart.js @@ -45,8 +45,9 @@ describe('Quickstart', () => { }); after(async () => { - await client.deleteRealm({ + const [operation] = await client.deleteRealm({ name: client.realmPath(projectId, location, realmId), }); + await operation.promise(); }); }); From 040e95141b7ec4b7962aede45492263a38a44166 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 1 Mar 2020 19:32:03 +0100 Subject: [PATCH 06/60] chore(deps): update dependency @types/mocha (#1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@types/mocha](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | major | [`^5.2.5` -> `^7.0.0`](https://renovatebot.com/diffs/npm/@types%2fmocha/5.2.7/7.0.1) | | [mocha](https://mochajs.org/) ([source](https://togithub.com/mochajs/mocha)) | devDependencies | major | [`^6.1.4` -> `^7.0.0`](https://renovatebot.com/diffs/npm/mocha/6.2.2/7.1.0) | --- ### Release Notes
mochajs/mocha ### [`v7.1.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​710--2020-02-26) [Compare Source](https://togithub.com/mochajs/mocha/compare/v7.0.1...v7.1.0) #### :tada: Enhancements [#​4038](https://togithub.com/mochajs/mocha/issues/4038): Add Node.js native ESM support ([**@​giltayar**](https://togithub.com/giltayar)) Mocha supports writing your test files as ES modules: - Node.js only v12.11.0 and above - Node.js below v13.2.0, you must set `--experimental-modules` option - current limitations: please check our [documentation](https://mochajs.org/#nodejs-native-esm-support) - for programmatic usage: see [API: loadFilesAsync()](https://mochajs.org/api/mocha#loadFilesAsync) **Note:** Node.JS native [ECMAScript Modules](https://nodejs.org/api/esm.html) implementation has status: **Stability: 1 - Experimental** #### :bug: Fixes - [#​4181](https://togithub.com/mochajs/mocha/issues/4181): Programmatic API cannot access retried test objects ([**@​juergba**](https://togithub.com/juergba)) - [#​4174](https://togithub.com/mochajs/mocha/issues/4174): Browser: fix `allowUncaught` option ([**@​juergba**](https://togithub.com/juergba)) #### :book: Documentation - [#​4058](https://togithub.com/mochajs/mocha/issues/4058): Manage author list in AUTHORS instead of `package.json` ([**@​outsideris**](https://togithub.com/outsideris)) #### :nut_and_bolt: Other - [#​4138](https://togithub.com/mochajs/mocha/issues/4138): Upgrade ESLint v6.8 ([**@​kaicataldo**](https://togithub.com/kaicataldo)) ### [`v7.0.1`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​701--2020-01-25) [Compare Source](https://togithub.com/mochajs/mocha/compare/v7.0.0...v7.0.1) #### :bug: Fixes - [#​4165](https://togithub.com/mochajs/mocha/issues/4165): Fix exception when skipping tests programmatically ([**@​juergba**](https://togithub.com/juergba)) - [#​4153](https://togithub.com/mochajs/mocha/issues/4153): Restore backwards compatibility for `reporterOptions` ([**@​holm**](https://togithub.com/holm)) - [#​4150](https://togithub.com/mochajs/mocha/issues/4150): Fix recovery of an open test upon uncaught exception ([**@​juergba**](https://togithub.com/juergba)) - [#​4147](https://togithub.com/mochajs/mocha/issues/4147): Fix regression of leaking uncaught exception handler ([**@​juergba**](https://togithub.com/juergba)) #### :book: Documentation - [#​4146](https://togithub.com/mochajs/mocha/issues/4146): Update copyright & trademark notices per OJSF ([**@​boneskull**](https://togithub.com/boneskull)) - [#​4140](https://togithub.com/mochajs/mocha/issues/4140): Fix broken links ([**@​KyoungWan**](https://togithub.com/KyoungWan)) #### :nut_and_bolt: Other - [#​4133](https://togithub.com/mochajs/mocha/issues/4133): Print more descriptive error message ([**@​Zirak**](https://togithub.com/Zirak)) ### [`v7.0.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​700--2020-01-05) [Compare Source](https://togithub.com/mochajs/mocha/compare/v6.2.2...v7.0.0) #### :boom: Breaking Changes - [#​3885](https://togithub.com/mochajs/mocha/issues/3885): **Drop Node.js v6.x support** ([**@​mojosoeun**](https://togithub.com/mojosoeun)) - [#​3890](https://togithub.com/mochajs/mocha/issues/3890): Remove Node.js debug-related flags `--debug`/`--debug-brk` and deprecate `debug` argument ([**@​juergba**](https://togithub.com/juergba)) - [#​3962](https://togithub.com/mochajs/mocha/issues/3962): Changes to command-line options ([**@​ParkSB**](https://togithub.com/ParkSB)): - `--list-interfaces` replaces `--interfaces` - `--list-reporters` replaces `--reporters` - Hook pattern of `this.skip()` ([**@​juergba**](https://togithub.com/juergba)): - [#​3859](https://togithub.com/mochajs/mocha/issues/3859): When conditionally skipping in a `it` test, related `afterEach` hooks are now executed - [#​3741](https://togithub.com/mochajs/mocha/issues/3741): When conditionally skipping in a `beforeEach` hook, subsequent inner `beforeEach` hooks are now skipped and related `afterEach` hooks are executed - [#​4136](https://togithub.com/mochajs/mocha/issues/4136): Disallow `this.skip()` within `after` hooks - [#​3967](https://togithub.com/mochajs/mocha/issues/3967): Remove deprecated `getOptions()` and `lib/cli/options.js` ([**@​juergba**](https://togithub.com/juergba)) - [#​4083](https://togithub.com/mochajs/mocha/issues/4083): Uncaught exception in `pending` test: don't swallow, but retrospectively fail the test for correct exit code ([**@​juergba**](https://togithub.com/juergba)) - [#​4004](https://togithub.com/mochajs/mocha/issues/4004): Align `Mocha` constructor's option names with command-line options ([**@​juergba**](https://togithub.com/juergba)) #### :tada: Enhancements - [#​3980](https://togithub.com/mochajs/mocha/issues/3980): Refactor and improve `--watch` mode with chokidar ([**@​geigerzaehler**](https://togithub.com/geigerzaehler)): - adds command-line options `--watch-files` and `--watch-ignore` - removes `--watch-extensions` - [#​3979](https://togithub.com/mochajs/mocha/issues/3979): Type "rs\\n" to restart tests ([**@​broofa**](https://togithub.com/broofa)) #### :fax: Deprecations These are _soft_-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha: - [#​3968](https://togithub.com/mochajs/mocha/issues/3968): Deprecate legacy configuration via `mocha.opts` ([**@​juergba**](https://togithub.com/juergba)) #### :bug: Fixes - [#​4125](https://togithub.com/mochajs/mocha/issues/4125): Fix timeout handling with `--inspect-brk`/`--inspect` ([**@​juergba**](https://togithub.com/juergba)) - [#​4070](https://togithub.com/mochajs/mocha/issues/4070): `Mocha` constructor: improve browser setup ([**@​juergba**](https://togithub.com/juergba)) - [#​4068](https://togithub.com/mochajs/mocha/issues/4068): XUnit reporter should handle exceptions during diff generation ([**@​rgroothuijsen**](https://togithub.com/rgroothuijsen)) - [#​4030](https://togithub.com/mochajs/mocha/issues/4030): Fix `--allow-uncaught` with `this.skip()` ([**@​juergba**](https://togithub.com/juergba)) #### :mag: Coverage - [#​4109](https://togithub.com/mochajs/mocha/issues/4109): Add Node.js v13.x to CI test matrix ([**@​juergba**](https://togithub.com/juergba)) #### :book: Documentation - [#​4129](https://togithub.com/mochajs/mocha/issues/4129): Fix broken links ([**@​SaeromB**](https://togithub.com/SaeromB)) - [#​4127](https://togithub.com/mochajs/mocha/issues/4127): Add reporter alias names to docs ([**@​khg0712**](https://togithub.com/khg0712)) - [#​4101](https://togithub.com/mochajs/mocha/issues/4101): Clarify invalid usage of `done()` ([**@​jgehrcke**](https://togithub.com/jgehrcke)) - [#​4092](https://togithub.com/mochajs/mocha/issues/4092): Replace `:coffee:` with emoji ☕️ ([**@​pzrq**](https://togithub.com/pzrq)) - [#​4088](https://togithub.com/mochajs/mocha/issues/4088): Initial draft of project charter ([**@​boneskull**](https://togithub.com/boneskull)) - [#​4066](https://togithub.com/mochajs/mocha/issues/4066): Change `sh` to `bash` for code block in docs/index.md ([**@​HyunSangHan**](https://togithub.com/HyunSangHan)) - [#​4045](https://togithub.com/mochajs/mocha/issues/4045): Update README.md concerning GraphicsMagick installation ([**@​HyunSangHan**](https://togithub.com/HyunSangHan)) - [#​3988](https://togithub.com/mochajs/mocha/issues/3988): Fix sponsors background color for readability ([**@​outsideris**](https://togithub.com/outsideris)) #### :nut_and_bolt: Other - [#​4118](https://togithub.com/mochajs/mocha/issues/4118): Update node-environment-flags to 1.0.6 ([**@​kylef**](https://togithub.com/kylef)) - [#​4097](https://togithub.com/mochajs/mocha/issues/4097): Add GH Funding Metadata ([**@​SheetJSDev**](https://togithub.com/SheetJSDev)) - [#​4089](https://togithub.com/mochajs/mocha/issues/4089): Add funding information to `package.json` ([**@​Munter**](https://togithub.com/Munter)) - [#​4077](https://togithub.com/mochajs/mocha/issues/4077): Improve integration tests ([**@​soobing**](https://togithub.com/soobing))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :ghost: **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/config-help/issues) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-game-servers). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index c844a88d0c..d1d2cdd902 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -18,7 +18,7 @@ "devDependencies": { "c8": "^5.0.1", "chai": "^4.2.0", - "mocha": "^6.1.4", + "mocha": "^7.0.0", "uuid": "^7.0.1" } } From 6c0ff9cdb82131fa66b7f625abf4bbf4e4a2f3d4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 1 Mar 2020 19:38:03 +0100 Subject: [PATCH 07/60] chore(deps): update dependency c8 to v7 (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [c8](https://togithub.com/bcoe/c8) | devDependencies | major | [`^5.0.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/c8/5.0.4/7.1.0) | | [c8](https://togithub.com/bcoe/c8) | devDependencies | major | [`^6.0.0` -> `^7.0.0`](https://renovatebot.com/diffs/npm/c8/6.0.1/7.1.0) | --- ### Release Notes
bcoe/c8 ### [`v7.1.0`](https://togithub.com/bcoe/c8/blob/master/CHANGELOG.md#​710httpswwwgithubcombcoec8comparev701v710-2020-02-09) [Compare Source](https://togithub.com/bcoe/c8/compare/v7.0.1...v7.1.0) ##### Features - adds TypeScript definitions ([d39801b](https://www.github.com/bcoe/c8/commit/d39801bc9b2713aa56592010e6394a295bd12b0b)), closes [#​195](https://www.github.com/bcoe/c8/issues/195) ##### Bug Fixes - **deps:** update dependency furi to v2 ([#​193](https://www.github.com/bcoe/c8/issues/193)) ([6b9af6e](https://www.github.com/bcoe/c8/commit/6b9af6ee8cbbacd85eea91dc49bb269fe3651c12)) - **deps:** v8-to-istanbul with patch for crasher ([#​200](https://www.github.com/bcoe/c8/issues/200)) ([d4b7d80](https://www.github.com/bcoe/c8/commit/d4b7d80d78f3d1cb2e9a2e9e106af0cef327b446)) ##### [7.0.1](https://www.github.com/bcoe/c8/compare/v7.0.0...v7.0.1) (2020-01-13) ##### Bug Fixes - all flag not propagated to check-coverage command ([#​188](https://www.github.com/bcoe/c8/issues/188)) ([86eaf72](https://www.github.com/bcoe/c8/commit/86eaf72a8c7af93d6ec9699b741d11df50017a8d)) ### [`v7.0.1`](https://togithub.com/bcoe/c8/blob/master/CHANGELOG.md#​710httpswwwgithubcombcoec8comparev701v710-2020-02-09) [Compare Source](https://togithub.com/bcoe/c8/compare/v7.0.0...v7.0.1) ##### Features - adds TypeScript definitions ([d39801b](https://www.github.com/bcoe/c8/commit/d39801bc9b2713aa56592010e6394a295bd12b0b)), closes [#​195](https://www.github.com/bcoe/c8/issues/195) ##### Bug Fixes - **deps:** update dependency furi to v2 ([#​193](https://www.github.com/bcoe/c8/issues/193)) ([6b9af6e](https://www.github.com/bcoe/c8/commit/6b9af6ee8cbbacd85eea91dc49bb269fe3651c12)) - **deps:** v8-to-istanbul with patch for crasher ([#​200](https://www.github.com/bcoe/c8/issues/200)) ([d4b7d80](https://www.github.com/bcoe/c8/commit/d4b7d80d78f3d1cb2e9a2e9e106af0cef327b446)) ##### [7.0.1](https://www.github.com/bcoe/c8/compare/v7.0.0...v7.0.1) (2020-01-13) ##### Bug Fixes - all flag not propagated to check-coverage command ([#​188](https://www.github.com/bcoe/c8/issues/188)) ([86eaf72](https://www.github.com/bcoe/c8/commit/86eaf72a8c7af93d6ec9699b741d11df50017a8d)) ### [`v7.0.0`](https://togithub.com/bcoe/c8/blob/master/CHANGELOG.md#​700httpswwwgithubcombcoec8comparev601v700-2019-12-22) [Compare Source](https://togithub.com/bcoe/c8/compare/v6.0.1...v7.0.0) ##### ⚠ BREAKING CHANGES - new test-exclude with modified exclude rules ([#​179](https://togithub.com/bcoe/c8/issues/179)) - **istanbul-reports:** lcov reports now use relative paths ([#​168](https://togithub.com/bcoe/c8/issues/168)) ##### Features - adds --all functionality ([#​158](https://www.github.com/bcoe/c8/issues/158)) ([2eb631e](https://www.github.com/bcoe/c8/commit/2eb631e460eba3d06925ee1d128e0db82ec50b6c)) - **istanbul-reports:** lcov reports now use relative paths ([#​168](https://www.github.com/bcoe/c8/issues/168)) ([35d9338](https://www.github.com/bcoe/c8/commit/35d9338b69ba803c19a19d16ff601e3ec5692fa6)) - new test-exclude with modified exclude rules ([#​179](https://www.github.com/bcoe/c8/issues/179)) ([af7d94d](https://www.github.com/bcoe/c8/commit/af7d94d715ab98d67e6b5bff5dfba19430681c9c)) ##### Bug Fixes - **deps:** update dependency v8-to-istanbul to v4 ([#​167](https://www.github.com/bcoe/c8/issues/167)) ([97b9769](https://www.github.com/bcoe/c8/commit/97b97699870ddc4af780cedb25cbb3a87e0eb777)) - **deps:** update dependency yargs to v15 ([#​164](https://www.github.com/bcoe/c8/issues/164)) ([e41a483](https://www.github.com/bcoe/c8/commit/e41a4831aac92591f303d48038a327e9631affee)) - **deps:** update dependency yargs-parser to v16 ([#​157](https://www.github.com/bcoe/c8/issues/157)) ([15746e5](https://www.github.com/bcoe/c8/commit/15746e51640e6e172f27f02c12056e2977342005)) ##### [6.0.1](https://togithub.com/bcoe/c8/compare/v6.0.0...v6.0.1) (2019-10-26) ##### Bug Fixes - regex flags in dependency were breaking Node 8 ([a9d9645](https://togithub.com/bcoe/c8/commit/a9d9645858031cee985087828f5e04cfd8922868)) ### [`v6.0.1`](https://togithub.com/bcoe/c8/blob/master/CHANGELOG.md#​700httpswwwgithubcombcoec8comparev601v700-2019-12-22) [Compare Source](https://togithub.com/bcoe/c8/compare/v6.0.0...v6.0.1) ##### ⚠ BREAKING CHANGES - new test-exclude with modified exclude rules ([#​179](https://togithub.com/bcoe/c8/issues/179)) - **istanbul-reports:** lcov reports now use relative paths ([#​168](https://togithub.com/bcoe/c8/issues/168)) ##### Features - adds --all functionality ([#​158](https://www.github.com/bcoe/c8/issues/158)) ([2eb631e](https://www.github.com/bcoe/c8/commit/2eb631e460eba3d06925ee1d128e0db82ec50b6c)) - **istanbul-reports:** lcov reports now use relative paths ([#​168](https://www.github.com/bcoe/c8/issues/168)) ([35d9338](https://www.github.com/bcoe/c8/commit/35d9338b69ba803c19a19d16ff601e3ec5692fa6)) - new test-exclude with modified exclude rules ([#​179](https://www.github.com/bcoe/c8/issues/179)) ([af7d94d](https://www.github.com/bcoe/c8/commit/af7d94d715ab98d67e6b5bff5dfba19430681c9c)) ##### Bug Fixes - **deps:** update dependency v8-to-istanbul to v4 ([#​167](https://www.github.com/bcoe/c8/issues/167)) ([97b9769](https://www.github.com/bcoe/c8/commit/97b97699870ddc4af780cedb25cbb3a87e0eb777)) - **deps:** update dependency yargs to v15 ([#​164](https://www.github.com/bcoe/c8/issues/164)) ([e41a483](https://www.github.com/bcoe/c8/commit/e41a4831aac92591f303d48038a327e9631affee)) - **deps:** update dependency yargs-parser to v16 ([#​157](https://www.github.com/bcoe/c8/issues/157)) ([15746e5](https://www.github.com/bcoe/c8/commit/15746e51640e6e172f27f02c12056e2977342005)) ##### [6.0.1](https://togithub.com/bcoe/c8/compare/v6.0.0...v6.0.1) (2019-10-26) ##### Bug Fixes - regex flags in dependency were breaking Node 8 ([a9d9645](https://togithub.com/bcoe/c8/commit/a9d9645858031cee985087828f5e04cfd8922868)) ### [`v6.0.0`](https://togithub.com/bcoe/c8/blob/master/CHANGELOG.md#​600httpsgithubcombcoec8comparev504v600-2019-10-24) [Compare Source](https://togithub.com/bcoe/c8/compare/v5.0.4...v6.0.0) ##### ⚠ BREAKING CHANGES - Node.js' source-map and lineLength cache is now used to remap coverage output (this allows tools like ts-node to be supported, which transpile at runtime). ##### Features - use Node.js' source-map cache, to support tools like ts-node ([#​152](https://togithub.com/bcoe/c8/issues/152)) ([53bba15](https://togithub.com/bcoe/c8/commit/53bba15bee07e8f0446fd85cc59d2b562fe34a21)) ##### Bug Fixes - **deps:** update dependency yargs-parser to v15 ([#​153](https://togithub.com/bcoe/c8/issues/153)) ([80153de](https://togithub.com/bcoe/c8/commit/80153de61be8e5830f1c228945184e4878f8cf0c)) ##### [5.0.4](https://togithub.com/bcoe/c8/compare/v5.0.3...v5.0.4) (2019-09-06) ##### Bug Fixes - **deps:** merging failed when the same script occurred multiple times in the same report ([#​147](https://togithub.com/bcoe/c8/issues/147)) ([1ebcaf9](https://togithub.com/bcoe/c8/commit/1ebcaf9)) - don't load JSON that does not look like coverage ([#​146](https://togithub.com/bcoe/c8/issues/146)) ([a6481f1](https://togithub.com/bcoe/c8/commit/a6481f1)) - **deps:** update dependency yargs-parser to v14 ([#​144](https://togithub.com/bcoe/c8/issues/144)) ([9b3d089](https://togithub.com/bcoe/c8/commit/9b3d089)) ##### [5.0.3](https://www.github.com/bcoe/c8/compare/v5.0.2...v5.0.3) (2019-09-06) ##### Bug Fixes - **deps:** update dependency rimraf to v3 ([#​132](https://www.github.com/bcoe/c8/issues/132)) ([7601748](https://www.github.com/bcoe/c8/commit/7601748)) - **deps:** update dependency yargs to v14 ([#​134](https://www.github.com/bcoe/c8/issues/134)) ([e49737f](https://www.github.com/bcoe/c8/commit/e49737f)) - **deps:** update deps to address warning in cross-spawn ([#​141](https://www.github.com/bcoe/c8/issues/141)) ([4b66221](https://www.github.com/bcoe/c8/commit/4b66221)) ##### [5.0.2](https://www.github.com/bcoe/c8/compare/v5.0.1...v5.0.2) (2019-06-24) ##### Bug Fixes - HTML report now has correct source positions for Node >10.16.0 ([#​125](https://www.github.com/bcoe/c8/issues/125)) ([c49fa7f](https://www.github.com/bcoe/c8/commit/c49fa7f)) - **deps:** update dependency find-up to v4 ([#​119](https://www.github.com/bcoe/c8/issues/119)) ([c568d96](https://www.github.com/bcoe/c8/commit/c568d96)) - **deps:** update dependency yargs-parser to v13 ([#​124](https://www.github.com/bcoe/c8/issues/124)) ([1eb3394](https://www.github.com/bcoe/c8/commit/1eb3394)) - do not override NODE_V8_COVERAGE if set ([#​70](https://www.github.com/bcoe/c8/issues/70)) ([8bb67b0](https://www.github.com/bcoe/c8/commit/8bb67b0)) ##### [5.0.1](https://www.github.com/bcoe/c8/compare/v5.0.0...v5.0.1) (2019-05-20) ##### Bug Fixes - temporary files should be in tmp folder ([#​106](https://www.github.com/bcoe/c8/issues/106)) ([64dd2e6](https://www.github.com/bcoe/c8/commit/64dd2e6))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-game-servers). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index d1d2cdd902..91be2ba1fd 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -16,7 +16,7 @@ "@google-cloud/game-servers": "^0.1.0" }, "devDependencies": { - "c8": "^5.0.1", + "c8": "^7.0.0", "chai": "^4.2.0", "mocha": "^7.0.0", "uuid": "^7.0.1" From 85706d59d2d32d864742d555a244d5b8e7e08799 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 08:34:51 -0800 Subject: [PATCH 08/60] chore: release 1.0.0 (#4) * created CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] Co-authored-by: Justin Beckwith --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 91be2ba1fd..8d05ef4a00 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^0.1.0" + "@google-cloud/game-servers": "^1.0.0" }, "devDependencies": { "c8": "^7.0.0", From ab781b532989970f703d06f6620612f0b49afd42 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 2 Mar 2020 16:42:59 -0800 Subject: [PATCH 09/60] feat: adds CRUD samples for GS realms (#21) * Adds Game Servers realm samples * feat: adds realm CRUD tests * feat: adds quickstart test * fix: updates region tags --- generated,README.md/create_realm.js | 65 +++++++++++++++++++ generated,README.md/delete_realm.js | 55 ++++++++++++++++ generated,README.md/get_realm.js | 54 +++++++++++++++ generated,README.md/list_realms.js | 49 ++++++++++++++ generated,README.md/quickstart.js | 7 +- generated,README.md/test/create_realm.test.js | 50 ++++++++++++++ generated,README.md/test/delete_realm.test.js | 54 +++++++++++++++ generated,README.md/test/get_realm.test.js | 63 ++++++++++++++++++ generated,README.md/test/list_realms.test.js | 63 ++++++++++++++++++ generated,README.md/test/quickstart.test.js | 50 ++++++++++++++ 10 files changed, 507 insertions(+), 3 deletions(-) create mode 100644 generated,README.md/create_realm.js create mode 100644 generated,README.md/delete_realm.js create mode 100644 generated,README.md/get_realm.js create mode 100644 generated,README.md/list_realms.js create mode 100644 generated,README.md/test/create_realm.test.js create mode 100644 generated,README.md/test/delete_realm.test.js create mode 100644 generated,README.md/test/get_realm.test.js create mode 100644 generated,README.md/test/list_realms.test.js create mode 100644 generated,README.md/test/quickstart.test.js diff --git a/generated,README.md/create_realm.js b/generated,README.md/create_realm.js new file mode 100644 index 0000000000..8ce712035f --- /dev/null +++ b/generated,README.md/create_realm.js @@ -0,0 +1,65 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Create a Game Servers realm. + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + * @param {string} realmId a unique identifier for the new realm + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID' +) { + // [START cloud_game_servers_create_realm] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'A unique identifier for the realm'; + const {RealmsServiceClient} = require('@google-cloud/game-servers'); + + const client = new RealmsServiceClient(); + + async function createRealm() { + const request = { + parent: `projects/${projectId}/locations/${location}`, + realmId: realmId, + realm: { + // Must use a supported time zone name. + // See https://cloud.google.com/dataprep/docs/html/Supported-Time-Zone-Values_66194188 + timeZone: 'US/Pacific', + description: 'My Game Server realm', + }, + }; + + const [operation] = await client.createRealm(request); + const results = await operation.promise(); + const [realm] = results; + + console.log('Realm created:'); + + console.log(`\tRealm name: ${realm.name}`); + console.log(`\tRealm description: ${realm.description}`); + console.log(`\tRealm time zone: ${realm.timeZone}`); + // [END cloud_game_servers_create_realm] + } + + createRealm(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/delete_realm.js b/generated,README.md/delete_realm.js new file mode 100644 index 0000000000..f5224437c3 --- /dev/null +++ b/generated,README.md/delete_realm.js @@ -0,0 +1,55 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Delete a realm by ID + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + * @param {string} realmId the unique ID of the realm + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID' +) { + // [START cloud_game_servers_delete_realm] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'Unique identifier of the realm'; + const {RealmsServiceClient} = require('@google-cloud/game-servers'); + + const client = new RealmsServiceClient(); + + async function deleteRealm() { + const request = { + // Realm name is the full resource name including project ID,location, + // and the realm ID. + name: `projects/${projectId}/locations/${location}/realms/${realmId}`, + }; + + const [operation] = await client.deleteRealm(request); + await operation.promise(); + console.log(`Realm with ID ${realmId} deleted.`); + + // [END cloud_game_servers_delete_realm] + } + + deleteRealm(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/get_realm.js b/generated,README.md/get_realm.js new file mode 100644 index 0000000000..f2379ad5ae --- /dev/null +++ b/generated,README.md/get_realm.js @@ -0,0 +1,54 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Get a realm by ID + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + * @param {string} realmId the unique ID of the realm + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID' +) { + // [START cloud_game_servers_get_realm] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'Unique identifier of the realm'; + const {RealmsServiceClient} = require('@google-cloud/game-servers'); + + const client = new RealmsServiceClient(); + + async function getRealm() { + const request = { + // Realm name is the full resource name including project ID and location + name: `projects/${projectId}/locations/${location}/realms/${realmId}`, + }; + + const [realm] = await client.getRealm(request); + console.log(`Realm name: ${realm.name}`); + console.log(`Realm description: ${realm.description}`); + console.log(`Realm time zone: ${realm.timeZone}`); + // [END cloud_game_servers_get_realm] + } + + getRealm(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/list_realms.js b/generated,README.md/list_realms.js new file mode 100644 index 0000000000..d8a7f9c6d8 --- /dev/null +++ b/generated,README.md/list_realms.js @@ -0,0 +1,49 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * List all of the realms in a project. + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + */ +function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { + // [START cloud_game_servers_list_realms] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + const {RealmsServiceClient} = require('@google-cloud/game-servers'); + + const client = new RealmsServiceClient(); + + async function listRealms() { + const request = { + parent: `projects/${projectId}/locations/${location}`, + }; + + const [results] = await client.listRealms(request); + for (const realm of results.realms) { + console.log(`Realm name: ${realm.name}`); + console.log(`Realm description: ${realm.description}`); + console.log(`Realm time zone: ${realm.timeZone}\n`); + } + // [END cloud_game_servers_list_realms] + } + + listRealms(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/quickstart.js b/generated,README.md/quickstart.js index a6dc596f2b..3a9c542322 100644 --- a/generated,README.md/quickstart.js +++ b/generated,README.md/quickstart.js @@ -22,9 +22,10 @@ * Create a Game Servers realm. * @param {string} projectId string project identifier. * @param {string} location Compute Engine region. + * @param {string} realmId unique identifier for the realm. */ async function main(projectId, location, realmId) { - // [START game_servers_quickstart] + // [START cloud_game_servers_quickstart] const {RealmsServiceClient} = require('@google-cloud/game-servers'); async function quickstart() { @@ -33,7 +34,7 @@ async function main(projectId, location, realmId) { // TODO(developer): uncomment the following section, and add values // const projectId = 'YOUR_PROJECT_ID'; // const location = 'us-central1; - // const realIm = 'DESIRED_REALM_ID'; + // const realmId = 'DESIRED_REALM_ID'; const request = { parent: `projects/${projectId}/locations/${location}`, @@ -57,7 +58,7 @@ async function main(projectId, location, realmId) { console.log(`\tRealm time zone: ${realm.timeZone}`); } quickstart(); - // [END game_servers_quickstart] + // [END cloud_game_servers_quickstart] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/test/create_realm.test.js b/generated,README.md/test/create_realm.test.js new file mode 100644 index 0000000000..293298a2dc --- /dev/null +++ b/generated,README.md/test/create_realm.test.js @@ -0,0 +1,50 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it, after} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers Create Realm Test', () => { + const client = new RealmsServiceClient(); + let realmId; + + it('should create a realm', async () => { + const projectId = await client.getProjectId(); + realmId = `test-${uuid.v4()}`; + + const create_output = execSync( + `node create_realm.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(create_output, /Realm time zone:/); + }); + + after(async () => { + const projectId = await client.getProjectId(); + const request = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation] = await client.deleteRealm(request); + await operation.promise(); + }); +}); diff --git a/generated,README.md/test/delete_realm.test.js b/generated,README.md/test/delete_realm.test.js new file mode 100644 index 0000000000..e88a1d3530 --- /dev/null +++ b/generated,README.md/test/delete_realm.test.js @@ -0,0 +1,54 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it, before} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers Delete Realm Test', () => { + const client = new RealmsServiceClient(); + let realmId; + + before(async () => { + const projectId = await client.getProjectId(); + realmId = `test-${uuid.v4()}`; + + await client.createRealm({ + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Realm', + }, + }); + }); + + it('should delete a realm', async () => { + const projectId = await client.getProjectId(); + + const delete_output = execSync( + `node delete_realm.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(delete_output, /deleted./); + }); +}); diff --git a/generated,README.md/test/get_realm.test.js b/generated,README.md/test/get_realm.test.js new file mode 100644 index 0000000000..4eb9ebc9c8 --- /dev/null +++ b/generated,README.md/test/get_realm.test.js @@ -0,0 +1,63 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it, before, after} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers Get Realms Test', () => { + const client = new RealmsServiceClient(); + let realmId; + + before(async () => { + const projectId = await client.getProjectId(); + realmId = `test-${uuid.v4()}`; + + await client.createRealm({ + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Realm', + }, + }); + }); + + it('should get a realm', async () => { + const projectId = await client.getProjectId(); + + const get_output = execSync( + `node get_realm.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(get_output, /Realm description:/); + }); + + after(async () => { + const projectId = await client.getProjectId(); + const request = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation] = await client.deleteRealm(request); + await operation.promise(); + }); +}); diff --git a/generated,README.md/test/list_realms.test.js b/generated,README.md/test/list_realms.test.js new file mode 100644 index 0000000000..35c78613bd --- /dev/null +++ b/generated,README.md/test/list_realms.test.js @@ -0,0 +1,63 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it, before, after} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers List Realms Test', () => { + const client = new RealmsServiceClient(); + let realmId; + + before(async () => { + const projectId = await client.getProjectId(); + realmId = `test-${uuid.v4()}`; + + await client.createRealm({ + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Realm', + }, + }); + }); + + it('should list realms', async () => { + const projectId = await client.getProjectId(); + + const list_output = execSync( + `node list_realms.js ${projectId} ${LOCATION}` + ); + assert.match(list_output, /Realm name:/); + }); + + after(async () => { + const projectId = await client.getProjectId(); + const request = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation] = await client.deleteRealm(request); + await operation.promise(); + }); +}); diff --git a/generated,README.md/test/quickstart.test.js b/generated,README.md/test/quickstart.test.js new file mode 100644 index 0000000000..74b1644527 --- /dev/null +++ b/generated,README.md/test/quickstart.test.js @@ -0,0 +1,50 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it, after} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers Quickstart Test', () => { + const client = new RealmsServiceClient(); + let realmId; + + it('should create a realm', async () => { + const projectId = await client.getProjectId(); + realmId = `test-${uuid.v4()}`; + + const quickstart_output = execSync( + `node quickstart.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(quickstart_output, /Realm time zone:/); + }); + + after(async () => { + const projectId = await client.getProjectId(); + const request = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation] = await client.deleteRealm(request); + await operation.promise(); + }); +}); From f31211bae9902be4a7b03be3178cd0fcc1b2b940 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 16:55:19 -0800 Subject: [PATCH 10/60] chore: release 1.1.0 (#22) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 8d05ef4a00..b738ce91b0 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^1.0.0" + "@google-cloud/game-servers": "^1.1.0" }, "devDependencies": { "c8": "^7.0.0", From 5de65c7517257ec7d0a6e9b16b20b30878a50e7d Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Tue, 10 Mar 2020 10:13:20 -0700 Subject: [PATCH 11/60] test: adds cleanup function for tests (#28) * feat: adds cleanup function for tests --- generated,README.md/get_realm.js | 5 ++ generated,README.md/list_realms.js | 6 +- generated,README.md/test/clean.js | 73 +++++++++++++++++++ generated,README.md/test/create_realm.test.js | 7 +- generated,README.md/test/delete_realm.test.js | 5 ++ generated,README.md/test/get_realm.test.js | 5 ++ generated,README.md/test/list_realms.test.js | 5 ++ generated,README.md/test/quickstart.test.js | 7 +- 8 files changed, 110 insertions(+), 3 deletions(-) create mode 100644 generated,README.md/test/clean.js diff --git a/generated,README.md/get_realm.js b/generated,README.md/get_realm.js index f2379ad5ae..620deadc14 100644 --- a/generated,README.md/get_realm.js +++ b/generated,README.md/get_realm.js @@ -45,6 +45,11 @@ function main( console.log(`Realm name: ${realm.name}`); console.log(`Realm description: ${realm.description}`); console.log(`Realm time zone: ${realm.timeZone}`); + + const createTime = realm.createTime; + const createDate = new Date(createTime.seconds * 1000); + + console.log(`Realm created on: ${createDate.toLocaleDateString()}`); // [END cloud_game_servers_get_realm] } diff --git a/generated,README.md/list_realms.js b/generated,README.md/list_realms.js index d8a7f9c6d8..18039dfce3 100644 --- a/generated,README.md/list_realms.js +++ b/generated,README.md/list_realms.js @@ -38,7 +38,11 @@ function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { for (const realm of results.realms) { console.log(`Realm name: ${realm.name}`); console.log(`Realm description: ${realm.description}`); - console.log(`Realm time zone: ${realm.timeZone}\n`); + console.log(`Realm time zone: ${realm.timeZone}`); + + const createTime = realm.createTime; + const createDate = new Date(createTime.seconds * 1000); + console.log(`Realm created on: ${createDate.toLocaleDateString()}\n`); } // [END cloud_game_servers_list_realms] } diff --git a/generated,README.md/test/clean.js b/generated,README.md/test/clean.js new file mode 100644 index 0000000000..814852c614 --- /dev/null +++ b/generated,README.md/test/clean.js @@ -0,0 +1,73 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +const {GameServerClustersServiceClient} = require('@google-cloud/game-servers'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const gameServerClusterClient = new GameServerClustersServiceClient(); +const realmsClient = new RealmsServiceClient(); + +/** + * Utility function for removing unneeded realms from project. + */ +module.exports = async () => { + const projectId = await realmsClient.getProjectId(); + const location = 'us-central1'; + + const request = { + parent: `projects/${projectId}/locations/${location}`, + }; + + const MAX_REALM_LIFESPAN = 3600000; // One hour (in milliseconds) + const NOW = new Date(); + + const [results] = await realmsClient.listRealms(request); + for (const realm of results.realms) { + // Check age of realm. If older than maximum life span, delete. + const ageOfRealm = new Date(realm.createTime.seconds * 1000); + if (NOW - ageOfRealm > MAX_REALM_LIFESPAN) { + // First, delete all clusters associated with this realm. + const clustersRequest = { + parent: realm.name, + }; + + const clustersResult = await gameServerClusterClient.listGameServerClusters( + clustersRequest + ); + const [clusters] = clustersResult; + for (const cluster of clusters.gameServerClusters) { + const deleteClusterRequest = { + name: cluster.name, + }; + + const [ + deleteClusterOperation, + ] = await gameServerClusterClient.deleteGameServerCluster( + deleteClusterRequest + ); + await deleteClusterOperation.promise(); + } + + // Then delete the realm itself. + const realmDeleteRequest = { + name: realm.name, + }; + + const [deleteRealmOperation] = await realmsClient.deleteRealm( + realmDeleteRequest + ); + await deleteRealmOperation.promise(); + } + } +}; diff --git a/generated,README.md/test/create_realm.test.js b/generated,README.md/test/create_realm.test.js index 293298a2dc..93a49344e7 100644 --- a/generated,README.md/test/create_realm.test.js +++ b/generated,README.md/test/create_realm.test.js @@ -15,7 +15,8 @@ 'use strict'; const {assert} = require('chai'); -const {describe, it, after} = require('mocha'); +const cleanup = require('./clean.js'); +const {describe, before, it, after} = require('mocha'); const {RealmsServiceClient} = require('@google-cloud/game-servers'); const cp = require('child_process'); @@ -29,6 +30,10 @@ describe('Game Servers Create Realm Test', () => { const client = new RealmsServiceClient(); let realmId; + before(async () => { + await cleanup(); + }); + it('should create a realm', async () => { const projectId = await client.getProjectId(); realmId = `test-${uuid.v4()}`; diff --git a/generated,README.md/test/delete_realm.test.js b/generated,README.md/test/delete_realm.test.js index e88a1d3530..915aa83b8e 100644 --- a/generated,README.md/test/delete_realm.test.js +++ b/generated,README.md/test/delete_realm.test.js @@ -15,6 +15,7 @@ 'use strict'; const {assert} = require('chai'); +const cleanup = require('./clean.js'); const {describe, it, before} = require('mocha'); const {RealmsServiceClient} = require('@google-cloud/game-servers'); @@ -31,6 +32,10 @@ describe('Game Servers Delete Realm Test', () => { before(async () => { const projectId = await client.getProjectId(); + + // Clean up any stray realms + await cleanup(); + realmId = `test-${uuid.v4()}`; await client.createRealm({ diff --git a/generated,README.md/test/get_realm.test.js b/generated,README.md/test/get_realm.test.js index 4eb9ebc9c8..43b6ecb494 100644 --- a/generated,README.md/test/get_realm.test.js +++ b/generated,README.md/test/get_realm.test.js @@ -15,6 +15,7 @@ 'use strict'; const {assert} = require('chai'); +const cleanup = require('./clean.js'); const {describe, it, before, after} = require('mocha'); const {RealmsServiceClient} = require('@google-cloud/game-servers'); @@ -31,6 +32,10 @@ describe('Game Servers Get Realms Test', () => { before(async () => { const projectId = await client.getProjectId(); + + // Clean up any stray realms + await cleanup(); + realmId = `test-${uuid.v4()}`; await client.createRealm({ diff --git a/generated,README.md/test/list_realms.test.js b/generated,README.md/test/list_realms.test.js index 35c78613bd..574b6a5187 100644 --- a/generated,README.md/test/list_realms.test.js +++ b/generated,README.md/test/list_realms.test.js @@ -15,6 +15,7 @@ 'use strict'; const {assert} = require('chai'); +const cleanup = require('./clean.js'); const {describe, it, before, after} = require('mocha'); const {RealmsServiceClient} = require('@google-cloud/game-servers'); @@ -31,6 +32,10 @@ describe('Game Servers List Realms Test', () => { before(async () => { const projectId = await client.getProjectId(); + + // Clean up any stray realms + await cleanup(); + realmId = `test-${uuid.v4()}`; await client.createRealm({ diff --git a/generated,README.md/test/quickstart.test.js b/generated,README.md/test/quickstart.test.js index 74b1644527..8d370fa7d5 100644 --- a/generated,README.md/test/quickstart.test.js +++ b/generated,README.md/test/quickstart.test.js @@ -15,7 +15,8 @@ 'use strict'; const {assert} = require('chai'); -const {describe, it, after} = require('mocha'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); const {RealmsServiceClient} = require('@google-cloud/game-servers'); const cp = require('child_process'); @@ -29,6 +30,10 @@ describe('Game Servers Quickstart Test', () => { const client = new RealmsServiceClient(); let realmId; + before(async () => { + await cleanup(); + }); + it('should create a realm', async () => { const projectId = await client.getProjectId(); realmId = `test-${uuid.v4()}`; From 337239888c51181f76df3760272d7e346e2f8313 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 25 Mar 2020 09:52:07 -0700 Subject: [PATCH 12/60] chore: regenerate the code (#34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-22 04:28:29,042 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-22 04:28:29,094 synthtool > Ensuring dependencies. 2020-03-22 04:28:29,099 synthtool > Cloning googleapis-private. 2020-03-22 04:28:30,886 synthtool > Pulling Docker image: gapic-generator-typescript:latest latest: Pulling from gapic-images/gapic-generator-typescript Digest: sha256:3762b8bcba247ef4d020ffc7043e2881a20b5fab0ffd98d542f365d3f3a3829d Status: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest 2020-03-22 04:28:31,792 synthtool > Generating code for: google/cloud/gaming/v1beta. 2020-03-22 04:28:33,083 synthtool > Generated code into /tmpfs/tmp/tmphqwgbi7o. .eslintignore .eslintrc.yml .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/publish.yml .github/release-please.yml .github/workflows/ci.yaml .kokoro/common.cfg .kokoro/continuous/node10/common.cfg .kokoro/continuous/node10/docs.cfg .kokoro/continuous/node10/lint.cfg .kokoro/continuous/node10/samples-test.cfg .kokoro/continuous/node10/system-test.cfg .kokoro/continuous/node10/test.cfg .kokoro/continuous/node12/common.cfg .kokoro/continuous/node12/test.cfg .kokoro/continuous/node8/common.cfg .kokoro/continuous/node8/test.cfg .kokoro/docs.sh .kokoro/lint.sh .kokoro/presubmit/node10/common.cfg .kokoro/presubmit/node10/docs.cfg .kokoro/presubmit/node10/lint.cfg .kokoro/presubmit/node10/samples-test.cfg .kokoro/presubmit/node10/system-test.cfg .kokoro/presubmit/node10/test.cfg .kokoro/presubmit/node12/common.cfg .kokoro/presubmit/node12/test.cfg .kokoro/presubmit/node8/common.cfg .kokoro/presubmit/node8/test.cfg .kokoro/presubmit/windows/common.cfg .kokoro/presubmit/windows/test.cfg .kokoro/publish.sh .kokoro/release/docs.cfg .kokoro/release/docs.sh .kokoro/release/publish.cfg .kokoro/samples-test.sh .kokoro/system-test.sh .kokoro/test.bat .kokoro/test.sh .kokoro/trampoline.sh .mocharc.js .nycrc .prettierignore .prettierrc CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml renovate.json samples/README.md npm WARN npm npm does not support Node.js v12.16.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > protobufjs@6.8.9 postinstall /tmpfs/src/git/autosynth/working_repo/node_modules/protobufjs > node scripts/postinstall > @google-cloud/game-servers@1.1.0 prepare /tmpfs/src/git/autosynth/working_repo > npm run compile-protos && npm run compile npm WARN npm npm does not support Node.js v12.16.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/game-servers@1.1.0 compile-protos /tmpfs/src/git/autosynth/working_repo > compileProtos src installing semver@^5.5.0 installing uglify-js@^3.3.25 installing espree@^3.5.4 installing escodegen@^1.9.1 npm WARN npm npm does not support Node.js v12.16.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/game-servers@1.1.0 compile /tmpfs/src/git/autosynth/working_repo > tsc -p . && cp -r protos build/ npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules/watchpack/node_modules/fsevents/node_modules/abbrev): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/abbrev' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.abbrev.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules/watchpack/node_modules/fsevents/node_modules/ansi-regex): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/ansi-regex' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.ansi-regex.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules/watchpack/node_modules/fsevents/node_modules/aproba): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/aproba' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.aproba.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules/watchpack/node_modules/fsevents/node_modules/balanced-match): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/balanced-match' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.balanced-match.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.4 (node_modules/watchpack/node_modules/fsevents/node_modules/chownr): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/chownr' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.chownr.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules/watchpack/node_modules/fsevents/node_modules/code-point-at): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/code-point-at' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.code-point-at.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/concat-map): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/concat-map' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.concat-map.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules/watchpack/node_modules/fsevents/node_modules/console-control-strings): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/console-control-strings' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.console-control-strings.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/core-util-is): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/core-util-is' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.core-util-is.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules/watchpack/node_modules/fsevents/node_modules/deep-extend): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/deep-extend' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.deep-extend.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules/watchpack/node_modules/fsevents/node_modules/delegates): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/delegates' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.delegates.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules/watchpack/node_modules/fsevents/node_modules/detect-libc): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/detect-libc' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.detect-libc.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules/watchpack/node_modules/fsevents/node_modules/fs.realpath): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/fs.realpath' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.fs.realpath.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/has-unicode): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/has-unicode' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.has-unicode.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules/watchpack/node_modules/fsevents/node_modules/inherits): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/inherits' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.inherits.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules/watchpack/node_modules/fsevents/node_modules/ini): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/ini' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.ini.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules/watchpack/node_modules/fsevents/node_modules/isarray): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/isarray' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.isarray.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.5 (node_modules/watchpack/node_modules/fsevents/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/minimist' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.minimist.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules/watchpack/node_modules/fsevents/node_modules/ms): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/ms' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.ms.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/npm-normalize-package-bin): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/number-is-nan): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/number-is-nan' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.number-is-nan.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules/watchpack/node_modules/fsevents/node_modules/object-assign): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/object-assign' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.object-assign.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/os-homedir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/os-homedir' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.os-homedir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/os-tmpdir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/os-tmpdir' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.os-tmpdir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/path-is-absolute): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/path-is-absolute' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.path-is-absolute.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/process-nextick-args): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/process-nextick-args' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.process-nextick-args.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules/watchpack/node_modules/fsevents/node_modules/safe-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/safe-buffer' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.safe-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules/watchpack/node_modules/fsevents/node_modules/safer-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/safer-buffer' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.safer-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules/watchpack/node_modules/fsevents/node_modules/sax): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/sax' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.sax.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules/watchpack/node_modules/fsevents/node_modules/semver): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/semver' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.semver.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules/watchpack/node_modules/fsevents/node_modules/set-blocking): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/set-blocking' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.set-blocking.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/signal-exit): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/signal-exit' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.signal-exit.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/watchpack/node_modules/fsevents/node_modules/strip-json-comments): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/strip-json-comments' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.strip-json-comments.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/util-deprecate): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/util-deprecate' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.util-deprecate.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules/watchpack/node_modules/fsevents/node_modules/wrappy): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/wrappy' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.wrappy.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules/watchpack/node_modules/fsevents/node_modules/yallist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/yallist' -> '/tmpfs/src/git/autosynth/working_repo/node_modules/watchpack/node_modules/fsevents/node_modules/.yallist.DELETE' added 967 packages from 454 contributors and audited 6746 packages in 29.414s found 0 vulnerabilities npm WARN npm npm does not support Node.js v12.16.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/game-servers@1.1.0 fix /tmpfs/src/git/autosynth/working_repo > gts fix && eslint samples --fix /tmpfs/src/git/autosynth/working_repo/samples/create_realm.js 34:41 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/delete_realm.js 34:41 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/get_realm.js 34:41 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/list_realms.js 28:41 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/quickstart.js 29:41 error "@google-cloud/game-servers" is not found node/no-missing-require 34:5 warning Unexpected 'todo' comment no-warning-comments /tmpfs/src/git/autosynth/working_repo/samples/test/clean.js 15:51 error "@google-cloud/game-servers" is not found node/no-missing-require 16:39 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/create_realm.test.js 17:26 error "chai" is not found node/no-missing-require 20:39 error "@google-cloud/game-servers" is not found node/no-missing-require 23:22 error "uuid" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/delete_realm.test.js 17:26 error "chai" is not found node/no-missing-require 20:39 error "@google-cloud/game-servers" is not found node/no-missing-require 23:22 error "uuid" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/get_realm.test.js 17:26 error "chai" is not found node/no-missing-require 20:39 error "@google-cloud/game-servers" is not found node/no-missing-require 23:22 error "uuid" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/list_realms.test.js 17:26 error "chai" is not found node/no-missing-require 20:39 error "@google-cloud/game-servers" is not found node/no-missing-require 23:22 error "uuid" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/quickstart.js 21:26 error "chai" is not found node/no-missing-require 24:22 error "uuid" is not found node/no-missing-require 25:39 error "@google-cloud/game-servers" is not found node/no-missing-require /tmpfs/src/git/autosynth/working_repo/samples/test/quickstart.test.js 17:26 error "chai" is not found node/no-missing-require 20:39 error "@google-cloud/game-servers" is not found node/no-missing-require 23:22 error "uuid" is not found node/no-missing-require ✖ 26 problems (25 errors, 1 warning) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @google-cloud/game-servers@1.1.0 fix: `gts fix && eslint samples --fix` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @google-cloud/game-servers@1.1.0 fix script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/kbuilder/.npm/_logs/2020-03-22T11_29_21_368Z-debug.log 2020-03-22 04:29:25,572 synthtool > Wrote metadata to synth.metadata. ```
--- generated,README.md/README.md | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index 7ec52a6728..ea7144fb66 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -12,6 +12,10 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Create_realm](#create_realm) + * [Delete_realm](#delete_realm) + * [Get_realm](#get_realm) + * [List_realms](#list_realms) * [Create Game Server Realm](#create-game-server-realm) ## Before you begin @@ -29,6 +33,74 @@ Before running the samples, make sure you've followed the steps outlined in +### Create_realm + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_realm.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_realm.js,samples/README.md) + +__Usage:__ + + +`node samples/create_realm.js` + + +----- + + + + +### Delete_realm + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_realm.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_realm.js,samples/README.md) + +__Usage:__ + + +`node samples/delete_realm.js` + + +----- + + + + +### Get_realm + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_realm.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_realm.js,samples/README.md) + +__Usage:__ + + +`node samples/get_realm.js` + + +----- + + + + +### List_realms + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_realms.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_realms.js,samples/README.md) + +__Usage:__ + + +`node samples/list_realms.js` + + +----- + + + + ### Create Game Server Realm Creates a new Realm within Cloud Game Servers From b2274e2f6858062a30f77012ae9fbec593babe58 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 27 Apr 2020 10:36:01 -0700 Subject: [PATCH 13/60] build: generator updates and new coverage approach (#59) --- generated,README.md/list_realms.js | 2 +- generated,README.md/test/clean.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generated,README.md/list_realms.js b/generated,README.md/list_realms.js index 18039dfce3..fbeb7256f8 100644 --- a/generated,README.md/list_realms.js +++ b/generated,README.md/list_realms.js @@ -35,7 +35,7 @@ function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { }; const [results] = await client.listRealms(request); - for (const realm of results.realms) { + for (const realm of results) { console.log(`Realm name: ${realm.name}`); console.log(`Realm description: ${realm.description}`); console.log(`Realm time zone: ${realm.timeZone}`); diff --git a/generated,README.md/test/clean.js b/generated,README.md/test/clean.js index 814852c614..7436f1870a 100644 --- a/generated,README.md/test/clean.js +++ b/generated,README.md/test/clean.js @@ -33,7 +33,7 @@ module.exports = async () => { const NOW = new Date(); const [results] = await realmsClient.listRealms(request); - for (const realm of results.realms) { + for (const realm of results) { // Check age of realm. If older than maximum life span, delete. const ageOfRealm = new Date(realm.createTime.seconds * 1000); if (NOW - ageOfRealm > MAX_REALM_LIFESPAN) { From be7031704e5c7c1791bb18c171c92b21a82d2e86 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 29 Apr 2020 14:44:17 -0700 Subject: [PATCH 14/60] feat: adds CRUD samples, tests for GS clusters (#24) --- generated,README.md/create_cluster.js | 79 ++++++++++++ generated,README.md/delete_cluster.js | 58 +++++++++ generated,README.md/get_cluster.js | 63 ++++++++++ generated,README.md/list_clusters.js | 63 ++++++++++ generated,README.md/test/clean.js | 2 +- .../test/create_cluster.test.js | 91 ++++++++++++++ .../test/delete_cluster.test.js | 112 ++++++++++++++++++ generated,README.md/test/get_cluster.test.js | 111 +++++++++++++++++ .../test/list_clusters.test.js | 111 +++++++++++++++++ 9 files changed, 689 insertions(+), 1 deletion(-) create mode 100644 generated,README.md/create_cluster.js create mode 100644 generated,README.md/delete_cluster.js create mode 100644 generated,README.md/get_cluster.js create mode 100644 generated,README.md/list_clusters.js create mode 100644 generated,README.md/test/create_cluster.test.js create mode 100644 generated,README.md/test/delete_cluster.test.js create mode 100644 generated,README.md/test/get_cluster.test.js create mode 100644 generated,README.md/test/list_clusters.test.js diff --git a/generated,README.md/create_cluster.js b/generated,README.md/create_cluster.js new file mode 100644 index 0000000000..57f19fc1ff --- /dev/null +++ b/generated,README.md/create_cluster.js @@ -0,0 +1,79 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Create a Game Servers cluster. + * @param {string} projectId string project identifier + * @param {string} location Compute Engine region + * @param {string} realmId the realm to use + * @param {string} gameClusterId unique identifier for the new Game Cluster + * @param {string} gkeClusterId the GKE cluster to connect to + * @param {string} gkeLocation the location of the GKE cluster + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID', + gameClusterId = 'GAME_CLUSTER_ID', + gkeClusterName = 'GKE_CLUSTER_NAME' +) { + // [START cloud_game_servers_create_cluster] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'A unique ID for this Game Server Cluster'; + // const gkeClusterName= 'The full resource name of the GKE cluster to use'; + const { + GameServerClustersServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerClustersServiceClient(); + + async function createGameServerCluster() { + const request = { + // Provide full resource name of a Game Server Realm + parent: `projects/${projectId}/locations/${location}/realms/${realmId}`, + gameServerClusterId: gameClusterId, + gameServerCluster: { + description: 'My Game Server Cluster', + connectionInfo: { + gkeClusterReference: { + // Provide full resource name of a Kubernetes Engine cluster + cluster: gkeClusterName, + }, + namespace: 'default', + }, + }, + }; + + const [operation] = await client.createGameServerCluster(request); + const [result] = await operation.promise(); + + console.log('Game Server Cluster created:'); + console.log(`\tCluster name: ${result.name}`); + console.log(`\tCluster description: ${result.description}`); + console.log( + `\tGKE cluster: ${result.connectionInfo.gkeClusterReference.cluster}` + ); + // [END cloud_game_servers_create_cluster] + } + + createGameServerCluster(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/delete_cluster.js b/generated,README.md/delete_cluster.js new file mode 100644 index 0000000000..8ef0e09fea --- /dev/null +++ b/generated,README.md/delete_cluster.js @@ -0,0 +1,58 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Delete a Game Server cluster + * @param {string} projectId string project identifier + * @param {string} location Compute Engine region + * @param {string} realmId the realm to use + * @param {string} gameClusterId the game cluster to delete + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID', + gameClusterId = 'GAME_CLUSTER_ID' +) { + // [START cloud_game_servers_delete_cluster] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'The unique ID for this Game Server Cluster'; + const { + GameServerClustersServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerClustersServiceClient(); + + async function deleteGameServerCluster() { + const request = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${location}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + + await client.deleteGameServerCluster(request); + + console.log('Game Server cluster deleted'); + // [END cloud_game_servers_delete_cluster] + } + + deleteGameServerCluster(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/get_cluster.js b/generated,README.md/get_cluster.js new file mode 100644 index 0000000000..8cebc8ff75 --- /dev/null +++ b/generated,README.md/get_cluster.js @@ -0,0 +1,63 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Get a Game Server cluster + * @param {string} projectId string project identifier + * @param {string} location Compute Engine region + * @param {string} realmId the realm to use + * @param {string} gameClusterId the game cluster to get + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID', + gameClusterId = 'GAME_CLUSTER_ID' +) { + // [START cloud_game_servers_get_cluster] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'The unique ID for this Game Server Cluster'; + const { + GameServerClustersServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerClustersServiceClient(); + + async function getGameServerCluster() { + const request = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${location}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + + const [cluster] = await client.getGameServerCluster(request); + + console.log('Game Server Cluster:'); + console.log(`\tCluster name: ${cluster.name}`); + console.log(`\tCluster description: ${cluster.description}`); + console.log( + `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` + ); + // [END cloud_game_servers_get_cluster] + } + + getGameServerCluster(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/list_clusters.js b/generated,README.md/list_clusters.js new file mode 100644 index 0000000000..d2faa73f53 --- /dev/null +++ b/generated,README.md/list_clusters.js @@ -0,0 +1,63 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * List Game Server clusters + * @param {string} projectId string project identifier + * @param {string} location Compute Engine region + * @param {string} realmId the realm to use + */ +function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID' +) { + // [START cloud_game_servers_list_clusters] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + const { + GameServerClustersServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerClustersServiceClient(); + + async function listGameServerClusters() { + const request = { + // Provide full resource name of a Game Server Realm + parent: `projects/${projectId}/locations/${location}/realms/${realmId}`, + }; + + const results = await client.listGameServerClusters(request); + const [clusters] = results; + + for (const cluster of clusters) { + console.log('Game Server Cluster:'); + console.log(`\tCluster name: ${cluster.name}`); + console.log(`\tCluster description: ${cluster.description}`); + console.log( + `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` + ); + } + // [END cloud_game_servers_list_clusters] + } + + listGameServerClusters(); +} + +main(...process.argv.slice(2)); diff --git a/generated,README.md/test/clean.js b/generated,README.md/test/clean.js index 7436f1870a..cf62661619 100644 --- a/generated,README.md/test/clean.js +++ b/generated,README.md/test/clean.js @@ -46,7 +46,7 @@ module.exports = async () => { clustersRequest ); const [clusters] = clustersResult; - for (const cluster of clusters.gameServerClusters) { + for (const cluster of clusters) { const deleteClusterRequest = { name: cluster.name, }; diff --git a/generated,README.md/test/create_cluster.test.js b/generated,README.md/test/create_cluster.test.js new file mode 100644 index 0000000000..dc0bb66235 --- /dev/null +++ b/generated,README.md/test/create_cluster.test.js @@ -0,0 +1,91 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const { + RealmsServiceClient, + GameServerClustersServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; +const GKE_CLUSTER_NAME = + process.env.SAMPLE_CLUSTER_NAME || + 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + +describe('Game Servers Create Cluster Test', () => { + const realmsClient = new RealmsServiceClient(); + const gameClustersClient = new GameServerClustersServiceClient(); + let realmId, gameClusterId; + + before(async () => { + await cleanup(); + + // Create a realm + const projectId = await realmsClient.getProjectId(); + realmId = `create-realm-${uuid.v4()}`; + gameClusterId = `test-${uuid.v4()}`; + + const request = { + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation] = await realmsClient.createRealm(request); + await operation.promise(); + }); + + it('should create a Game Server cluster', async () => { + const projectId = await realmsClient.getProjectId(); + gameClusterId = `test-${uuid.v4()}`; + + const create_output = execSync( + `node create_cluster.js ${projectId} ${LOCATION} ${realmId} ${gameClusterId} ${GKE_CLUSTER_NAME}` + ); + assert.match(create_output, /Cluster name:/); + }); + + after(async () => { + const projectId = await realmsClient.getProjectId(); + + // Delete the Game Server cluster + const deleteClusterRequest = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + const [operation1] = await gameClustersClient.deleteGameServerCluster( + deleteClusterRequest + ); + await operation1.promise(); + + // Delete the realm + const deleteRealmRequest = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation2.promise(); + }); +}); diff --git a/generated,README.md/test/delete_cluster.test.js b/generated,README.md/test/delete_cluster.test.js new file mode 100644 index 0000000000..c09a1b528a --- /dev/null +++ b/generated,README.md/test/delete_cluster.test.js @@ -0,0 +1,112 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const { + RealmsServiceClient, + GameServerClustersServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; +const GKE_CLUSTER_NAME = + process.env.SAMPLE_CLUSTER_NAME || + 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + +describe('Game Servers Delete Cluster Test', () => { + const realmsClient = new RealmsServiceClient(); + const gameClustersClient = new GameServerClustersServiceClient(); + let projectId, realmId, gameClusterId; + + before(async () => { + await cleanup(); + + // Create a realm + projectId = await realmsClient.getProjectId(); + realmId = `delete-realm-${uuid.v4()}`; + gameClusterId = `test-${uuid.v4()}`; + + const createRealmRequest = { + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation1] = await realmsClient.createRealm(createRealmRequest); + await operation1.promise(); + + // Create a cluster + const createClusterRequest = { + parent: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + gameServerClusterId: gameClusterId, + gameServerCluster: { + description: 'My Game Server Cluster', + connectionInfo: { + gkeClusterReference: { + // Provide full resource name of a Kubernetes Engine cluster + cluster: GKE_CLUSTER_NAME, + }, + namespace: 'default', + }, + }, + }; + + const [operation2] = await gameClustersClient.createGameServerCluster( + createClusterRequest + ); + await operation2.promise(); + }); + + it('should delete a Game Server cluster in a realm', async () => { + const create_output = execSync( + `node delete_cluster.js ${projectId} ${LOCATION} ${realmId} ${gameClusterId}` + ); + assert.match(create_output, /Game Server cluster deleted/); + }); + + after(async () => { + // Delete the Game Server cluster + const deleteClusterRequest = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + try { + const [operation1] = await gameClustersClient.deleteGameServerCluster( + deleteClusterRequest + ); + await operation1.promise(); + } catch (ex) { + console.log(ex); + console.log(`Realm ID: ${realmId}`); + console.log(`Cluster ID: ${gameClusterId}`); + } + // Delete the realm + const deleteRealmRequest = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation2.promise(); + }); +}); diff --git a/generated,README.md/test/get_cluster.test.js b/generated,README.md/test/get_cluster.test.js new file mode 100644 index 0000000000..fc0a761ae2 --- /dev/null +++ b/generated,README.md/test/get_cluster.test.js @@ -0,0 +1,111 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const { + RealmsServiceClient, + GameServerClustersServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; +const GKE_CLUSTER_NAME = + process.env.SAMPLE_CLUSTER_NAME || + 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + +describe('Game Servers Get Cluster Test', () => { + const realmsClient = new RealmsServiceClient(); + const gameClustersClient = new GameServerClustersServiceClient(); + let realmId, gameClusterId; + + before(async () => { + await cleanup(); + + // Create a realm + const projectId = await realmsClient.getProjectId(); + realmId = `get-realm-${uuid.v4()}`; + gameClusterId = `test-${uuid.v4()}`; + + const createRealmRequest = { + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation1] = await realmsClient.createRealm(createRealmRequest); + await operation1.promise(); + + // Create a cluster + const createClusterRequest = { + parent: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + gameServerClusterId: gameClusterId, + gameServerCluster: { + description: 'My Game Server Cluster', + connectionInfo: { + gkeClusterReference: { + // Provide full resource name of a Kubernetes Engine cluster + cluster: GKE_CLUSTER_NAME, + }, + namespace: 'default', + }, + }, + }; + + const [operation2] = await gameClustersClient.createGameServerCluster( + createClusterRequest + ); + await operation2.promise(); + }); + + it('should get a Game Server cluster in a realm', async () => { + const projectId = await realmsClient.getProjectId(); + + const create_output = execSync( + `node get_cluster.js ${projectId} ${LOCATION} ${realmId} ${gameClusterId}` + ); + assert.match(create_output, /Cluster name:/); + }); + + after(async () => { + const projectId = await realmsClient.getProjectId(); + + // Delete the Game Server cluster + const deleteClusterRequest = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + const [operation1] = await gameClustersClient.deleteGameServerCluster( + deleteClusterRequest + ); + await operation1.promise(); + + // Delete the realm + const deleteRealmRequest = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation2.promise(); + }); +}); diff --git a/generated,README.md/test/list_clusters.test.js b/generated,README.md/test/list_clusters.test.js new file mode 100644 index 0000000000..51d5478742 --- /dev/null +++ b/generated,README.md/test/list_clusters.test.js @@ -0,0 +1,111 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const { + RealmsServiceClient, + GameServerClustersServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; +const GKE_CLUSTER_NAME = + process.env.SAMPLE_CLUSTER_NAME || + 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + +describe('Game Servers List Clusters Test', () => { + const realmsClient = new RealmsServiceClient(); + const gameClustersClient = new GameServerClustersServiceClient(); + let realmId, gameClusterId; + + before(async () => { + await cleanup(); + + // Create a realm + const projectId = await realmsClient.getProjectId(); + realmId = `list-realm-${uuid.v4()}`; + gameClusterId = `test-${uuid.v4()}`; + + const createRealmRequest = { + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation1] = await realmsClient.createRealm(createRealmRequest); + await operation1.promise(); + + // Create a cluster + const createClusterRequest = { + parent: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + gameServerClusterId: gameClusterId, + gameServerCluster: { + description: 'My Game Server Cluster', + connectionInfo: { + gkeClusterReference: { + // Provide full resource name of a Kubernetes Engine cluster + cluster: GKE_CLUSTER_NAME, + }, + namespace: 'default', + }, + }, + }; + + const [operation2] = await gameClustersClient.createGameServerCluster( + createClusterRequest + ); + await operation2.promise(); + }); + + it('should list Game Server clusters in a realm', async () => { + const projectId = await realmsClient.getProjectId(); + + const create_output = execSync( + `node list_clusters.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(create_output, /Cluster name:/); + }); + + after(async () => { + const projectId = await realmsClient.getProjectId(); + + // Delete the Game Server cluster + const deleteClusterRequest = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + const [operation1] = await gameClustersClient.deleteGameServerCluster( + deleteClusterRequest + ); + await operation1.promise(); + + // Delete the realm + const deleteRealmRequest = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation2.promise(); + }); +}); From 8a2207c11fa758154b75174da9665cda453eb80a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 May 2020 06:54:18 +0200 Subject: [PATCH 15/60] chore(deps): update dependency uuid to v8 (#63) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [uuid](https://togithub.com/uuidjs/uuid) | devDependencies | major | [`^7.0.1` -> `^8.0.0`](https://renovatebot.com/diffs/npm/uuid/7.0.3/8.0.0) | --- ### Release Notes
uuidjs/uuid ### [`v8.0.0`](https://togithub.com/uuidjs/uuid/blob/master/CHANGELOG.md#​800-httpsgithubcomuuidjsuuidcomparev703v800-2020-04-29) [Compare Source](https://togithub.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) ##### ⚠ BREAKING CHANGES - For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export. ```diff -import uuid from 'uuid'; -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869' +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' ``` - Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported. Instead use the named exports that this module exports. For ECMAScript Modules (ESM): ```diff -import uuidv4 from 'uuid/v4'; +import { v4 as uuidv4 } from 'uuid'; uuidv4(); ``` For CommonJS: ```diff -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); uuidv4(); ``` ##### Features - native Node.js ES Modules (wrapper approach) ([#​423](https://togithub.com/uuidjs/uuid/issues/423)) ([2d9f590](https://togithub.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#​245](https://togithub.com/uuidjs/uuid/issues/245) [#​419](https://togithub.com/uuidjs/uuid/issues/419) [#​342](https://togithub.com/uuidjs/uuid/issues/342) - remove deep requires ([#​426](https://togithub.com/uuidjs/uuid/issues/426)) ([daf72b8](https://togithub.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba)) ##### Bug Fixes - add CommonJS syntax example to README quickstart section ([#​417](https://togithub.com/uuidjs/uuid/issues/417)) ([e0ec840](https://togithub.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0)) ##### [7.0.3](https://togithub.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31) ##### Bug Fixes - make deep require deprecation warning work in browsers ([#​409](https://togithub.com/uuidjs/uuid/issues/409)) ([4b71107](https://togithub.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#​408](https://togithub.com/uuidjs/uuid/issues/408) ##### [7.0.2](https://togithub.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04) ##### Bug Fixes - make access to msCrypto consistent ([#​393](https://togithub.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://togithub.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c)) - simplify link in deprecation warning ([#​391](https://togithub.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://togithub.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7)) - update links to match content in readme ([#​386](https://togithub.com/uuidjs/uuid/issues/386)) ([44f2f86](https://togithub.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4)) ##### [7.0.1](https://togithub.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25) ##### Bug Fixes - clean up esm builds for node and browser ([#​383](https://togithub.com/uuidjs/uuid/issues/383)) ([59e6a49](https://togithub.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc)) - provide browser versions independent from module system ([#​380](https://togithub.com/uuidjs/uuid/issues/380)) ([4344a22](https://togithub.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753)), closes [#​378](https://togithub.com/uuidjs/uuid/issues/378)
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-game-servers). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index b738ce91b0..4743b60f84 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -19,6 +19,6 @@ "c8": "^7.0.0", "chai": "^4.2.0", "mocha": "^7.0.0", - "uuid": "^7.0.1" + "uuid": "^8.0.0" } } From a642f6502c58be1176aef092c4028134bc413ba0 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 5 May 2020 18:35:09 -0700 Subject: [PATCH 16/60] feat: check status of long running operation by its name (#65) For each client method returning a long running operation, a separate method to check its status is added. Added methods: `checkCreateGameServerClusterProgress`, `checkCreateGameServerConfigProgress`, `checkCreateGameServerDeploymentProgress`, `checkCreateRealmProgress`, `checkDeleteGameServerClusterProgress`, `checkDeleteGameServerConfigProgress`, `checkDeleteGameServerDeploymentProgress`, `checkDeleteRealmProgress`, `checkUpdateGameServerClusterProgress`, `checkUpdateGameServerDeploymentProgress`, `checkUpdateGameServerDeploymentRolloutProgress`, `checkUpdateRealmProgress`. --- generated,README.md/README.md | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index ea7144fb66..f6806b8e41 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -12,9 +12,13 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Create_cluster](#create_cluster) * [Create_realm](#create_realm) + * [Delete_cluster](#delete_cluster) * [Delete_realm](#delete_realm) + * [Get_cluster](#get_cluster) * [Get_realm](#get_realm) + * [List_clusters](#list_clusters) * [List_realms](#list_realms) * [Create Game Server Realm](#create-game-server-realm) @@ -33,6 +37,23 @@ Before running the samples, make sure you've followed the steps outlined in +### Create_cluster + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/create_cluster.js` + + +----- + + + + ### Create_realm View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_realm.js). @@ -50,6 +71,23 @@ __Usage:__ +### Delete_cluster + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/delete_cluster.js` + + +----- + + + + ### Delete_realm View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_realm.js). @@ -67,6 +105,23 @@ __Usage:__ +### Get_cluster + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/get_cluster.js` + + +----- + + + + ### Get_realm View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_realm.js). @@ -84,6 +139,23 @@ __Usage:__ +### List_clusters + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_clusters.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_clusters.js,samples/README.md) + +__Usage:__ + + +`node samples/list_clusters.js` + + +----- + + + + ### List_realms View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_realms.js). From 38077f2652862160af64a7ddca44febf6baa2a67 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:05:54 -0700 Subject: [PATCH 17/60] chore: release 2.0.0 (#38) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 4743b60f84..e6a9411fa7 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^1.1.0" + "@google-cloud/game-servers": "^2.0.0" }, "devDependencies": { "c8": "^7.0.0", From 1419bf5596783fbb30c65263496dcf586ebfe1f1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 17:46:07 +0200 Subject: [PATCH 18/60] chore(deps): update dependency mocha to v8 (#72) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mocha](https://mochajs.org/) ([source](https://togithub.com/mochajs/mocha)) | devDependencies | major | [`^7.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/mocha/7.2.0/8.0.1) | --- ### Release Notes
mochajs/mocha ### [`v8.0.1`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​801--2020-06-10) [Compare Source](https://togithub.com/mochajs/mocha/compare/v8.0.0...v8.0.1) The obligatory patch after a major. #### :bug: Fixes - [#​4328](https://togithub.com/mochajs/mocha/issues/4328): Fix `--parallel` when combined with `--watch` ([**@​boneskull**](https://togithub.com/boneskull)) ### [`v8.0.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​800--2020-06-10) [Compare Source](https://togithub.com/mochajs/mocha/compare/v7.2.0...v8.0.0) In this major release, Mocha adds the ability to _run tests in parallel_. Better late than never! Please note the **breaking changes** detailed below. Let's welcome [**@​giltayar**](https://togithub.com/giltayar) and [**@​nicojs**](https://togithub.com/nicojs) to the maintenance team! #### :boom: Breaking Changes - [#​4164](https://togithub.com/mochajs/mocha/issues/4164): **Mocha v8.0.0 now requires Node.js v10.0.0 or newer.** Mocha no longer supports the Node.js v8.x line ("Carbon"), which entered End-of-Life at the end of 2019 ([**@​UlisesGascon**](https://togithub.com/UlisesGascon)) - [#​4175](https://togithub.com/mochajs/mocha/issues/4175): Having been deprecated with a warning since v7.0.0, **`mocha.opts` is no longer supported** ([**@​juergba**](https://togithub.com/juergba)) :sparkles: **WORKAROUND:** Replace `mocha.opts` with a [configuration file](https://mochajs.org/#configuring-mocha-nodejs). - [#​4260](https://togithub.com/mochajs/mocha/issues/4260): Remove `enableTimeout()` (`this.enableTimeout()`) from the context object ([**@​craigtaub**](https://togithub.com/craigtaub)) :sparkles: **WORKAROUND:** Replace usage of `this.enableTimeout(false)` in your tests with `this.timeout(0)`. - [#​4315](https://togithub.com/mochajs/mocha/issues/4315): The `spec` option no longer supports a comma-delimited list of files ([**@​juergba**](https://togithub.com/juergba)) :sparkles: **WORKAROUND**: Use an array instead (e.g., `"spec": "foo.js,bar.js"` becomes `"spec": ["foo.js", "bar.js"]`). - [#​4309](https://togithub.com/mochajs/mocha/issues/4309): Drop support for Node.js v13.x line, which is now End-of-Life ([**@​juergba**](https://togithub.com/juergba)) - [#​4282](https://togithub.com/mochajs/mocha/issues/4282): `--forbid-only` will throw an error even if exclusive tests are avoided via `--grep` or other means ([**@​arvidOtt**](https://togithub.com/arvidOtt)) - [#​4223](https://togithub.com/mochajs/mocha/issues/4223): The context object's `skip()` (`this.skip()`) in a "before all" (`before()`) hook will no longer execute subsequent sibling hooks, in addition to hooks in child suites ([**@​juergba**](https://togithub.com/juergba)) - [#​4178](https://togithub.com/mochajs/mocha/issues/4178): Remove previously soft-deprecated APIs ([**@​wnghdcjfe**](https://togithub.com/wnghdcjfe)): - `Mocha.prototype.ignoreLeaks()` - `Mocha.prototype.useColors()` - `Mocha.prototype.useInlineDiffs()` - `Mocha.prototype.hideDiff()` #### :tada: Enhancements - [#​4245](https://togithub.com/mochajs/mocha/issues/4245): Add ability to run tests in parallel for Node.js (see [docs](https://mochajs.org/#parallel-tests)) ([**@​boneskull**](https://togithub.com/boneskull)) :exclamation: See also [#​4244](https://togithub.com/mochajs/mocha/issues/4244); [Root Hook Plugins (docs)](https://mochajs.org/#root-hook-plugins) -- _root hooks must be defined via Root Hook Plugins to work in parallel mode_ - [#​4304](https://togithub.com/mochajs/mocha/issues/4304): `--require` now works with ES modules ([**@​JacobLey**](https://togithub.com/JacobLey)) - [#​4299](https://togithub.com/mochajs/mocha/issues/4299): In some circumstances, Mocha can run ES modules under Node.js v10 -- _use at your own risk!_ ([**@​giltayar**](https://togithub.com/giltayar)) #### :book: Documentation - [#​4246](https://togithub.com/mochajs/mocha/issues/4246): Add documentation for parallel mode and Root Hook plugins ([**@​boneskull**](https://togithub.com/boneskull)) #### :bug: Fixes (All bug fixes in Mocha v8.0.0 are also breaking changes, and are listed above)
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-game-servers). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index e6a9411fa7..b24d1d469b 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -18,7 +18,7 @@ "devDependencies": { "c8": "^7.0.0", "chai": "^4.2.0", - "mocha": "^7.0.0", + "mocha": "^8.0.0", "uuid": "^8.0.0" } } From ea12d18c9f9f00757952a8fcc2723e1b6fa78cf4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:01:48 -0700 Subject: [PATCH 19/60] chore: release 2.0.1 (#75) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index b24d1d469b..9b6401e6c3 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.0.0" + "@google-cloud/game-servers": "^2.0.1" }, "devDependencies": { "c8": "^7.0.0", From 18d561062dbc24075b05a37a58129b9ef019999b Mon Sep 17 00:00:00 2001 From: xwxw-g <58997759+xwxw-g@users.noreply.github.com> Date: Wed, 8 Jul 2020 18:03:04 -0700 Subject: [PATCH 20/60] test: fix sample test by pointing at a shared cluster with Agones (#81) --- generated,README.md/test/create_cluster.test.js | 2 +- generated,README.md/test/delete_cluster.test.js | 2 +- generated,README.md/test/get_cluster.test.js | 2 +- generated,README.md/test/list_clusters.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generated,README.md/test/create_cluster.test.js b/generated,README.md/test/create_cluster.test.js index dc0bb66235..a13ea88e66 100644 --- a/generated,README.md/test/create_cluster.test.js +++ b/generated,README.md/test/create_cluster.test.js @@ -30,7 +30,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const LOCATION = 'us-central1'; const GKE_CLUSTER_NAME = process.env.SAMPLE_CLUSTER_NAME || - 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + 'projects/217093627905/locations/us-central1/clusters/gke-shared-default'; describe('Game Servers Create Cluster Test', () => { const realmsClient = new RealmsServiceClient(); diff --git a/generated,README.md/test/delete_cluster.test.js b/generated,README.md/test/delete_cluster.test.js index c09a1b528a..832e51737b 100644 --- a/generated,README.md/test/delete_cluster.test.js +++ b/generated,README.md/test/delete_cluster.test.js @@ -30,7 +30,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const LOCATION = 'us-central1'; const GKE_CLUSTER_NAME = process.env.SAMPLE_CLUSTER_NAME || - 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + 'projects/217093627905/locations/us-central1/clusters/gke-shared-default'; describe('Game Servers Delete Cluster Test', () => { const realmsClient = new RealmsServiceClient(); diff --git a/generated,README.md/test/get_cluster.test.js b/generated,README.md/test/get_cluster.test.js index fc0a761ae2..d62765c3f5 100644 --- a/generated,README.md/test/get_cluster.test.js +++ b/generated,README.md/test/get_cluster.test.js @@ -30,7 +30,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const LOCATION = 'us-central1'; const GKE_CLUSTER_NAME = process.env.SAMPLE_CLUSTER_NAME || - 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + 'projects/217093627905/locations/us-central1/clusters/gke-shared-default'; describe('Game Servers Get Cluster Test', () => { const realmsClient = new RealmsServiceClient(); diff --git a/generated,README.md/test/list_clusters.test.js b/generated,README.md/test/list_clusters.test.js index 51d5478742..b32b7ed245 100644 --- a/generated,README.md/test/list_clusters.test.js +++ b/generated,README.md/test/list_clusters.test.js @@ -30,7 +30,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const LOCATION = 'us-central1'; const GKE_CLUSTER_NAME = process.env.SAMPLE_CLUSTER_NAME || - 'projects/1046198160504/locations/us-west1-a/clusters/grpc-bug-cluster'; + 'projects/217093627905/locations/us-central1/clusters/gke-shared-default'; describe('Game Servers List Clusters Test', () => { const realmsClient = new RealmsServiceClient(); From 97bbf1982aba91d29ad024be1e8604b703875def Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2020 01:14:15 +0000 Subject: [PATCH 21/60] chore: release 2.0.2 (#82) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.2](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.0.1...v2.0.2) (2020-07-09) ### Bug Fixes * correct return type of delete operations ([#79](https://www.github.com/googleapis/nodejs-game-servers/issues/79)) ([e946632](https://www.github.com/googleapis/nodejs-game-servers/commit/e9466329399c62c0f6f49a713f68ecf8ef96213b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 9b6401e6c3..92c20f638d 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.0.1" + "@google-cloud/game-servers": "^2.0.2" }, "devDependencies": { "c8": "^7.0.0", From a2da4503cd408bcb137f4bcddb846b883b2afe04 Mon Sep 17 00:00:00 2001 From: pooneh-m <46979170+pooneh-m@users.noreply.github.com> Date: Thu, 16 Jul 2020 09:23:07 -0700 Subject: [PATCH 22/60] docs(samples): fix sample formatting issues (#94) --- generated,README.md/create_cluster.js | 31 ++++++++++++++---------- generated,README.md/create_realm.js | 25 +++++++++++++------- generated,README.md/delete_cluster.js | 34 ++++++++++++++++++--------- generated,README.md/delete_realm.js | 28 +++++++++++++--------- generated,README.md/get_cluster.js | 34 ++++++++++++++++++--------- generated,README.md/get_realm.js | 27 +++++++++++++-------- generated,README.md/list_clusters.js | 27 +++++++++++++-------- generated,README.md/list_realms.js | 23 +++++++++++------- 8 files changed, 147 insertions(+), 82 deletions(-) diff --git a/generated,README.md/create_cluster.js b/generated,README.md/create_cluster.js index 57f19fc1ff..120e5f83b7 100644 --- a/generated,README.md/create_cluster.js +++ b/generated,README.md/create_cluster.js @@ -22,7 +22,7 @@ * @param {string} gkeClusterId the GKE cluster to connect to * @param {string} gkeLocation the location of the GKE cluster */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID', @@ -30,14 +30,6 @@ function main( gkeClusterName = 'GKE_CLUSTER_NAME' ) { // [START cloud_game_servers_create_cluster] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'The ID of the realm to locate this cluster in'; - // const gameClusterId = 'A unique ID for this Game Server Cluster'; - // const gkeClusterName= 'The full resource name of the GKE cluster to use'; const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -45,9 +37,17 @@ function main( const client = new GameServerClustersServiceClient(); async function createGameServerCluster() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'A unique ID for this Game Server Cluster'; + // const gkeClusterName= 'The full resource name of the GKE cluster to use'; const request = { // Provide full resource name of a Game Server Realm - parent: `projects/${projectId}/locations/${location}/realms/${realmId}`, + parent: client.realmPath(projectId, location, realmId), gameServerClusterId: gameClusterId, gameServerCluster: { description: 'My Game Server Cluster', @@ -70,10 +70,17 @@ function main( console.log( `\tGKE cluster: ${result.connectionInfo.gkeClusterReference.cluster}` ); - // [END cloud_game_servers_create_cluster] } createGameServerCluster(); + // [END cloud_game_servers_create_cluster] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/create_realm.js b/generated,README.md/create_realm.js index 8ce712035f..517b440313 100644 --- a/generated,README.md/create_realm.js +++ b/generated,README.md/create_realm.js @@ -19,23 +19,23 @@ * @param {string} location Compute Engine region. * @param {string} realmId a unique identifier for the new realm */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID' ) { // [START cloud_game_servers_create_realm] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'A unique identifier for the realm'; const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); async function createRealm() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'A unique identifier for the realm'; const request = { parent: `projects/${projectId}/locations/${location}`, realmId: realmId, @@ -56,10 +56,17 @@ function main( console.log(`\tRealm name: ${realm.name}`); console.log(`\tRealm description: ${realm.description}`); console.log(`\tRealm time zone: ${realm.timeZone}`); - // [END cloud_game_servers_create_realm] } createRealm(); + // [END cloud_game_servers_create_realm] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/delete_cluster.js b/generated,README.md/delete_cluster.js index 8ef0e09fea..4b4c4d4778 100644 --- a/generated,README.md/delete_cluster.js +++ b/generated,README.md/delete_cluster.js @@ -20,20 +20,13 @@ * @param {string} realmId the realm to use * @param {string} gameClusterId the game cluster to delete */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID', gameClusterId = 'GAME_CLUSTER_ID' ) { // [START cloud_game_servers_delete_cluster] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'The ID of the realm to locate this cluster in'; - // const gameClusterId = 'The unique ID for this Game Server Cluster'; const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -41,18 +34,37 @@ function main( const client = new GameServerClustersServiceClient(); async function deleteGameServerCluster() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'The unique ID for this Game Server Cluster'; const request = { // Provide full resource name of a Game Server Realm - name: `projects/${projectId}/locations/${location}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + name: client.gameServerClusterPath( + projectId, + location, + realmId, + gameClusterId + ), }; await client.deleteGameServerCluster(request); console.log('Game Server cluster deleted'); - // [END cloud_game_servers_delete_cluster] } deleteGameServerCluster(); + // [END cloud_game_servers_delete_cluster] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/delete_realm.js b/generated,README.md/delete_realm.js index f5224437c3..d5ba2ed6fc 100644 --- a/generated,README.md/delete_realm.js +++ b/generated,README.md/delete_realm.js @@ -19,37 +19,43 @@ * @param {string} location Compute Engine region. * @param {string} realmId the unique ID of the realm */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID' ) { // [START cloud_game_servers_delete_realm] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'Unique identifier of the realm'; const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); async function deleteRealm() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'Unique identifier of the realm'; const request = { // Realm name is the full resource name including project ID,location, // and the realm ID. - name: `projects/${projectId}/locations/${location}/realms/${realmId}`, + name: client.realmPath(projectId, location, realmId), }; const [operation] = await client.deleteRealm(request); await operation.promise(); console.log(`Realm with ID ${realmId} deleted.`); - - // [END cloud_game_servers_delete_realm] } deleteRealm(); + // [END cloud_game_servers_delete_realm] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/get_cluster.js b/generated,README.md/get_cluster.js index 8cebc8ff75..5fb715e544 100644 --- a/generated,README.md/get_cluster.js +++ b/generated,README.md/get_cluster.js @@ -20,20 +20,13 @@ * @param {string} realmId the realm to use * @param {string} gameClusterId the game cluster to get */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID', gameClusterId = 'GAME_CLUSTER_ID' ) { // [START cloud_game_servers_get_cluster] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'The ID of the realm to locate this cluster in'; - // const gameClusterId = 'The unique ID for this Game Server Cluster'; const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -41,9 +34,21 @@ function main( const client = new GameServerClustersServiceClient(); async function getGameServerCluster() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; + // const gameClusterId = 'The unique ID for this Game Server Cluster'; const request = { // Provide full resource name of a Game Server Realm - name: `projects/${projectId}/locations/${location}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + name: client.gameServerClusterPath( + projectId, + location, + realmId, + gameClusterId + ), }; const [cluster] = await client.getGameServerCluster(request); @@ -54,10 +59,17 @@ function main( console.log( `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` ); - // [END cloud_game_servers_get_cluster] } getGameServerCluster(); + // [END cloud_game_servers_get_cluster] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/get_realm.js b/generated,README.md/get_realm.js index 620deadc14..b87e2f02d7 100644 --- a/generated,README.md/get_realm.js +++ b/generated,README.md/get_realm.js @@ -19,26 +19,26 @@ * @param {string} location Compute Engine region. * @param {string} realmId the unique ID of the realm */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID' ) { // [START cloud_game_servers_get_realm] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'Unique identifier of the realm'; const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); async function getRealm() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'Unique identifier of the realm'; const request = { // Realm name is the full resource name including project ID and location - name: `projects/${projectId}/locations/${location}/realms/${realmId}`, + name: client.realmPath(projectId, location, realmId), }; const [realm] = await client.getRealm(request); @@ -50,10 +50,17 @@ function main( const createDate = new Date(createTime.seconds * 1000); console.log(`Realm created on: ${createDate.toLocaleDateString()}`); - // [END cloud_game_servers_get_realm] } getRealm(); + // [END cloud_game_servers_get_realm] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/list_clusters.js b/generated,README.md/list_clusters.js index d2faa73f53..88c1b8e101 100644 --- a/generated,README.md/list_clusters.js +++ b/generated,README.md/list_clusters.js @@ -19,18 +19,12 @@ * @param {string} location Compute Engine region * @param {string} realmId the realm to use */ -function main( +async function main( projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID', realmId = 'REALM_ID' ) { // [START cloud_game_servers_list_clusters] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; - // const realmId = 'The ID of the realm to locate this cluster in'; const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -38,9 +32,15 @@ function main( const client = new GameServerClustersServiceClient(); async function listGameServerClusters() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm to locate this cluster in'; const request = { // Provide full resource name of a Game Server Realm - parent: `projects/${projectId}/locations/${location}/realms/${realmId}`, + parent: client.realmPath(projectId, location, realmId), }; const results = await client.listGameServerClusters(request); @@ -54,10 +54,17 @@ function main( `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` ); } - // [END cloud_game_servers_list_clusters] } listGameServerClusters(); + // [END cloud_game_servers_list_clusters] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/list_realms.js b/generated,README.md/list_realms.js index fbeb7256f8..b3c2253c4c 100644 --- a/generated,README.md/list_realms.js +++ b/generated,README.md/list_realms.js @@ -18,18 +18,18 @@ * @param {string} projectId string project identifier. * @param {string} location Compute Engine region. */ -function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { +async function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { // [START cloud_game_servers_list_realms] - /** - * TODO(developer): Uncomment these variables before running the sample. - */ - // const projectId = 'Your Google Cloud Project ID'; - // const location = 'A Compute Engine region, e.g. "us-central1"'; const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); async function listRealms() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; const request = { parent: `projects/${projectId}/locations/${location}`, }; @@ -44,10 +44,17 @@ function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { const createDate = new Date(createTime.seconds * 1000); console.log(`Realm created on: ${createDate.toLocaleDateString()}\n`); } - // [END cloud_game_servers_list_realms] } listRealms(); + // [END cloud_game_servers_list_realms] } -main(...process.argv.slice(2)); +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); From 15559ef18de3f9ee6c3fc33a3f4ad3be9f591ce3 Mon Sep 17 00:00:00 2001 From: pooneh-m <46979170+pooneh-m@users.noreply.github.com> Date: Thu, 16 Jul 2020 09:31:19 -0700 Subject: [PATCH 23/60] docs(samples): Add Game Server deployment samples (#92) Co-authored-by: Justin Beckwith --- generated,README.md/README.md | 84 +++++++++++++++++-- generated,README.md/create_cluster.js | 4 +- generated,README.md/create_deployment.js | 66 +++++++++++++++ generated,README.md/delete_deployment.js | 60 +++++++++++++ generated,README.md/get_deployment.js | 64 ++++++++++++++ generated,README.md/list_deployments.js | 62 ++++++++++++++ generated,README.md/package.json | 2 +- .../test/crud_deployment.test.js | 68 +++++++++++++++ 8 files changed, 399 insertions(+), 11 deletions(-) create mode 100644 generated,README.md/create_deployment.js create mode 100644 generated,README.md/delete_deployment.js create mode 100644 generated,README.md/get_deployment.js create mode 100644 generated,README.md/list_deployments.js create mode 100644 generated,README.md/test/crud_deployment.test.js diff --git a/generated,README.md/README.md b/generated,README.md/README.md index f6806b8e41..7f38b04897 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -46,7 +46,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/create_cluster.js` +`node samples/create_cluster.js ` ----- @@ -63,7 +63,24 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/create_realm.js` +`node samples/create_realm.js ` + + +----- + + + + +### Create_deployment + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_deployment.js,samples/README.md) + +__Usage:__ + + +`node samples/create_deployment.js ` ----- @@ -80,7 +97,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/delete_cluster.js` +`node samples/delete_cluster.js ` ----- @@ -97,7 +114,24 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/delete_realm.js` +`node samples/delete_realm.js ` + + +----- + + + + +### Delete_deployment + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_deployment.js,samples/README.md) + +__Usage:__ + + +`node samples/delete_deployment.js ` ----- @@ -114,7 +148,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/get_cluster.js` +`node samples/get_cluster.js ` ----- @@ -131,7 +165,24 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/get_realm.js` +`node samples/get_realm.js ` + + +----- + + + + +### Get_deployment + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_deployment.js,samples/README.md) + +__Usage:__ + + +`node samples/get_deployment.js ` ----- @@ -148,7 +199,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/list_clusters.js` +`node samples/list_clusters.js ` ----- @@ -165,7 +216,24 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/list_realms.js` +`node samples/list_realms.js ` + + +----- + + + + +### List_deployments + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_deployments.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_deployments.js,samples/README.md) + +__Usage:__ + + +`node samples/list_deployments.js ` ----- diff --git a/generated,README.md/create_cluster.js b/generated,README.md/create_cluster.js index 120e5f83b7..3455b846c6 100644 --- a/generated,README.md/create_cluster.js +++ b/generated,README.md/create_cluster.js @@ -19,8 +19,7 @@ * @param {string} location Compute Engine region * @param {string} realmId the realm to use * @param {string} gameClusterId unique identifier for the new Game Cluster - * @param {string} gkeClusterId the GKE cluster to connect to - * @param {string} gkeLocation the location of the GKE cluster + * @param {string} gkeClusterName The full resource name of the GKE cluster to use */ async function main( projectId = 'YOUR_PROJECT_ID', @@ -54,6 +53,7 @@ async function main( connectionInfo: { gkeClusterReference: { // Provide full resource name of a Kubernetes Engine cluster + // In the form of 'projects//locations//clusters/' cluster: gkeClusterName, }, namespace: 'default', diff --git a/generated,README.md/create_deployment.js b/generated,README.md/create_deployment.js new file mode 100644 index 0000000000..d4d9813259 --- /dev/null +++ b/generated,README.md/create_deployment.js @@ -0,0 +1,66 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Create a Game Servers Deployment. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_create_deployment] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function createGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + parent: `projects/${projectId}/locations/global`, + deploymentId: deploymentId, + gameServerDeployment: { + description: 'nodejs test deployment', + }, + }; + + const [operation] = await client.createGameServerDeployment(request); + const [result] = await operation.promise(); + + console.log('Game Server Deployment created:'); + console.log(`\t Deployment name: ${result.name}`); + console.log(`\t Deployment description: ${result.description}`); + } + + createGameServerDeployment(); + + // [END cloud_game_servers_create_deployment] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/delete_deployment.js b/generated,README.md/delete_deployment.js new file mode 100644 index 0000000000..7dbebde90b --- /dev/null +++ b/generated,README.md/delete_deployment.js @@ -0,0 +1,60 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Delete a Game Servers Deployment. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_delete_deployment] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function deleteGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + // The full resource name + name: client.gameServerDeploymentPath(projectId, 'global', deploymentId), + }; + + await client.deleteGameServerDeployment(request); + + console.log('deleted.'); + } + + deleteGameServerDeployment(); + + // [END cloud_game_servers_delete_deployment] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/get_deployment.js b/generated,README.md/get_deployment.js new file mode 100644 index 0000000000..70361bfd51 --- /dev/null +++ b/generated,README.md/get_deployment.js @@ -0,0 +1,64 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Get a Game Servers Deployment. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_get_deployment] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + // The full resource name + name: client.gameServerDeploymentPath(projectId, 'global', deploymentId), + }; + + const [deployment] = await client.getGameServerDeployment(request); + console.log(`Deployment name: ${deployment.name}`); + console.log(`Deployment description: ${deployment.description}`); + + const createTime = deployment.createTime; + const createDate = new Date(createTime.seconds * 1000); + console.log(`Deployment created on: ${createDate.toLocaleDateString()}\n`); + } + + getGameServerDeployment(); + + // [END cloud_game_servers_get_deployment] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/list_deployments.js b/generated,README.md/list_deployments.js new file mode 100644 index 0000000000..4c39dbbb9e --- /dev/null +++ b/generated,README.md/list_deployments.js @@ -0,0 +1,62 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * List all the Game Servers Deployments. + * @param {string} projectId string project identifier + */ +async function main(projectId = 'YOUR_PROJECT_ID') { + // [START cloud_game_servers_list_deployments] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function listGameServerDeployments() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + const request = { + parent: `projects/${projectId}/locations/global`, + }; + + const [results] = await client.listGameServerDeployments(request); + for (const deployment of results) { + console.log(`Deployment name: ${deployment.name}`); + console.log(`Deployment description: ${deployment.description}`); + + const createTime = deployment.createTime; + const createDate = new Date(createTime.seconds * 1000); + console.log( + `Deployment created on: ${createDate.toLocaleDateString()}\n` + ); + } + } + + listGameServerDeployments(); + + // [END cloud_game_servers_list_deployments] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 92c20f638d..d6364f03a0 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -16,7 +16,7 @@ "@google-cloud/game-servers": "^2.0.2" }, "devDependencies": { - "c8": "^7.0.0", + "c8": "^7.2.1", "chai": "^4.2.0", "mocha": "^8.0.0", "uuid": "^8.0.0" diff --git a/generated,README.md/test/crud_deployment.test.js b/generated,README.md/test/crud_deployment.test.js new file mode 100644 index 0000000000..229c5c0f8e --- /dev/null +++ b/generated,README.md/test/crud_deployment.test.js @@ -0,0 +1,68 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, before, it} = require('mocha'); +const { + GameServerDeploymentsServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +describe('Game Server Deployment Test', () => { + const client = new GameServerDeploymentsServiceClient(); + let deploymentId; + let projectId; + + before(async () => { + projectId = await client.getProjectId(); + deploymentId = `test-${uuid.v4()}`; + + await cleanup(); + }); + + it('should create a game server deployment', async () => { + const create_output = execSync( + `node create_deployment.js ${projectId} ${deploymentId}` + ); + assert.match(create_output, /Deployment name:/); + }); + + it('should get a game server deployment', async () => { + const get_output = execSync( + `node get_deployment.js ${projectId} ${deploymentId}` + ); + assert.match(get_output, /Deployment name:/); + }); + + it('should list a game server deployment', async () => { + const list_output = execSync( + `node list_deployments.js ${projectId} ${deploymentId}` + ); + assert.match(list_output, /Deployment name:/); + }); + + it('should delete a game server deployment', async () => { + const delete_output = execSync( + `node delete_deployment.js ${projectId} ${deploymentId}` + ); + assert.match(delete_output, /deleted./); + }); +}); From 375de1e45c891a2f43e7bbfd57a18bd064a891d8 Mon Sep 17 00:00:00 2001 From: pooneh-m <46979170+pooneh-m@users.noreply.github.com> Date: Thu, 16 Jul 2020 13:21:44 -0700 Subject: [PATCH 24/60] docs(samples): change tags to be aligned with golang samples (#97) --- generated,README.md/create_cluster.js | 4 ++-- generated,README.md/create_deployment.js | 4 ++-- generated,README.md/create_realm.js | 4 ++-- generated,README.md/delete_cluster.js | 4 ++-- generated,README.md/delete_deployment.js | 4 ++-- generated,README.md/delete_realm.js | 4 ++-- generated,README.md/get_cluster.js | 4 ++-- generated,README.md/get_deployment.js | 4 ++-- generated,README.md/get_realm.js | 4 ++-- generated,README.md/list_clusters.js | 4 ++-- generated,README.md/list_deployments.js | 4 ++-- generated,README.md/list_realms.js | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/generated,README.md/create_cluster.js b/generated,README.md/create_cluster.js index 3455b846c6..71b177fe07 100644 --- a/generated,README.md/create_cluster.js +++ b/generated,README.md/create_cluster.js @@ -28,7 +28,7 @@ async function main( gameClusterId = 'GAME_CLUSTER_ID', gkeClusterName = 'GKE_CLUSTER_NAME' ) { - // [START cloud_game_servers_create_cluster] + // [START cloud_game_servers_cluster_create] const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -73,7 +73,7 @@ async function main( } createGameServerCluster(); - // [END cloud_game_servers_create_cluster] + // [END cloud_game_servers_cluster_create] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/create_deployment.js b/generated,README.md/create_deployment.js index d4d9813259..4b057352f7 100644 --- a/generated,README.md/create_deployment.js +++ b/generated,README.md/create_deployment.js @@ -22,7 +22,7 @@ async function main( projectId = 'YOUR_PROJECT_ID', deploymentId = 'DEPLOYMENT_ID' ) { - // [START cloud_game_servers_create_deployment] + // [START cloud_game_servers_deployment_create] const { GameServerDeploymentsServiceClient, } = require('@google-cloud/game-servers'); @@ -53,7 +53,7 @@ async function main( createGameServerDeployment(); - // [END cloud_game_servers_create_deployment] + // [END cloud_game_servers_deployment_create] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/create_realm.js b/generated,README.md/create_realm.js index 517b440313..456de890f7 100644 --- a/generated,README.md/create_realm.js +++ b/generated,README.md/create_realm.js @@ -24,7 +24,7 @@ async function main( location = 'LOCATION_ID', realmId = 'REALM_ID' ) { - // [START cloud_game_servers_create_realm] + // [START cloud_game_servers_realm_create] const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); @@ -59,7 +59,7 @@ async function main( } createRealm(); - // [END cloud_game_servers_create_realm] + // [END cloud_game_servers_realm_create] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/delete_cluster.js b/generated,README.md/delete_cluster.js index 4b4c4d4778..7c0b327870 100644 --- a/generated,README.md/delete_cluster.js +++ b/generated,README.md/delete_cluster.js @@ -26,7 +26,7 @@ async function main( realmId = 'REALM_ID', gameClusterId = 'GAME_CLUSTER_ID' ) { - // [START cloud_game_servers_delete_cluster] + // [START cloud_game_servers_cluster_delete] const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -57,7 +57,7 @@ async function main( } deleteGameServerCluster(); - // [END cloud_game_servers_delete_cluster] + // [END cloud_game_servers_cluster_delete] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/delete_deployment.js b/generated,README.md/delete_deployment.js index 7dbebde90b..b85ee6e266 100644 --- a/generated,README.md/delete_deployment.js +++ b/generated,README.md/delete_deployment.js @@ -22,7 +22,7 @@ async function main( projectId = 'YOUR_PROJECT_ID', deploymentId = 'DEPLOYMENT_ID' ) { - // [START cloud_game_servers_delete_deployment] + // [START cloud_game_servers_deployment_delete] const { GameServerDeploymentsServiceClient, } = require('@google-cloud/game-servers'); @@ -47,7 +47,7 @@ async function main( deleteGameServerDeployment(); - // [END cloud_game_servers_delete_deployment] + // [END cloud_game_servers_deployment_delete] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/delete_realm.js b/generated,README.md/delete_realm.js index d5ba2ed6fc..da1f98ba19 100644 --- a/generated,README.md/delete_realm.js +++ b/generated,README.md/delete_realm.js @@ -24,7 +24,7 @@ async function main( location = 'LOCATION_ID', realmId = 'REALM_ID' ) { - // [START cloud_game_servers_delete_realm] + // [START cloud_game_servers_realm_delete] const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); @@ -48,7 +48,7 @@ async function main( } deleteRealm(); - // [END cloud_game_servers_delete_realm] + // [END cloud_game_servers_realm_delete] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/get_cluster.js b/generated,README.md/get_cluster.js index 5fb715e544..cbe3ee4641 100644 --- a/generated,README.md/get_cluster.js +++ b/generated,README.md/get_cluster.js @@ -26,7 +26,7 @@ async function main( realmId = 'REALM_ID', gameClusterId = 'GAME_CLUSTER_ID' ) { - // [START cloud_game_servers_get_cluster] + // [START cloud_game_servers_cluster_get] const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -62,7 +62,7 @@ async function main( } getGameServerCluster(); - // [END cloud_game_servers_get_cluster] + // [END cloud_game_servers_cluster_get] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/get_deployment.js b/generated,README.md/get_deployment.js index 70361bfd51..d1b65c936f 100644 --- a/generated,README.md/get_deployment.js +++ b/generated,README.md/get_deployment.js @@ -22,7 +22,7 @@ async function main( projectId = 'YOUR_PROJECT_ID', deploymentId = 'DEPLOYMENT_ID' ) { - // [START cloud_game_servers_get_deployment] + // [START cloud_game_servers_deployment_get] const { GameServerDeploymentsServiceClient, } = require('@google-cloud/game-servers'); @@ -51,7 +51,7 @@ async function main( getGameServerDeployment(); - // [END cloud_game_servers_get_deployment] + // [END cloud_game_servers_deployment_get] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/get_realm.js b/generated,README.md/get_realm.js index b87e2f02d7..ae35dd99c0 100644 --- a/generated,README.md/get_realm.js +++ b/generated,README.md/get_realm.js @@ -24,7 +24,7 @@ async function main( location = 'LOCATION_ID', realmId = 'REALM_ID' ) { - // [START cloud_game_servers_get_realm] + // [START cloud_game_servers_realm_get] const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); @@ -53,7 +53,7 @@ async function main( } getRealm(); - // [END cloud_game_servers_get_realm] + // [END cloud_game_servers_realm_get] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/list_clusters.js b/generated,README.md/list_clusters.js index 88c1b8e101..5a8d92a819 100644 --- a/generated,README.md/list_clusters.js +++ b/generated,README.md/list_clusters.js @@ -24,7 +24,7 @@ async function main( location = 'LOCATION_ID', realmId = 'REALM_ID' ) { - // [START cloud_game_servers_list_clusters] + // [START cloud_game_servers_cluster_list] const { GameServerClustersServiceClient, } = require('@google-cloud/game-servers'); @@ -57,7 +57,7 @@ async function main( } listGameServerClusters(); - // [END cloud_game_servers_list_clusters] + // [END cloud_game_servers_cluster_list] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/list_deployments.js b/generated,README.md/list_deployments.js index 4c39dbbb9e..d79534ecd0 100644 --- a/generated,README.md/list_deployments.js +++ b/generated,README.md/list_deployments.js @@ -18,7 +18,7 @@ * @param {string} projectId string project identifier */ async function main(projectId = 'YOUR_PROJECT_ID') { - // [START cloud_game_servers_list_deployments] + // [START cloud_game_servers_deployment_list] const { GameServerDeploymentsServiceClient, } = require('@google-cloud/game-servers'); @@ -49,7 +49,7 @@ async function main(projectId = 'YOUR_PROJECT_ID') { listGameServerDeployments(); - // [END cloud_game_servers_list_deployments] + // [END cloud_game_servers_deployment_list] } main(...process.argv.slice(2)).catch(err => { diff --git a/generated,README.md/list_realms.js b/generated,README.md/list_realms.js index b3c2253c4c..ded96df687 100644 --- a/generated,README.md/list_realms.js +++ b/generated,README.md/list_realms.js @@ -19,7 +19,7 @@ * @param {string} location Compute Engine region. */ async function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { - // [START cloud_game_servers_list_realms] + // [START cloud_game_servers_realm_list] const {RealmsServiceClient} = require('@google-cloud/game-servers'); const client = new RealmsServiceClient(); @@ -47,7 +47,7 @@ async function main(projectId = 'YOUR_PROJECT_ID', location = 'LOCATION_ID') { } listRealms(); - // [END cloud_game_servers_list_realms] + // [END cloud_game_servers_realm_list] } main(...process.argv.slice(2)).catch(err => { From 97037c81148bbedb283054dccbce6c585c03b0d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 17 Jul 2020 15:44:35 -0700 Subject: [PATCH 25/60] chore: updates to readme, add Node8 tests --- generated,README.md/README.md | 76 ++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index 7f38b04897..f95bdb3e71 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -13,12 +13,16 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Create_cluster](#create_cluster) + * [Create_deployment](#create_deployment) * [Create_realm](#create_realm) * [Delete_cluster](#delete_cluster) + * [Delete_deployment](#delete_deployment) * [Delete_realm](#delete_realm) * [Get_cluster](#get_cluster) + * [Get_deployment](#get_deployment) * [Get_realm](#get_realm) * [List_clusters](#list_clusters) + * [List_deployments](#list_deployments) * [List_realms](#list_realms) * [Create Game Server Realm](#create-game-server-realm) @@ -46,7 +50,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/create_cluster.js ` +`node samples/create_cluster.js` ----- @@ -54,16 +58,16 @@ __Usage:__ -### Create_realm +### Create_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_deployment.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_realm.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_deployment.js,samples/README.md) __Usage:__ -`node samples/create_realm.js ` +`node samples/create_deployment.js` ----- @@ -71,16 +75,16 @@ __Usage:__ -### Create_deployment +### Create_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_realm.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_deployment.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_realm.js,samples/README.md) __Usage:__ -`node samples/create_deployment.js ` +`node samples/create_realm.js` ----- @@ -97,7 +101,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/delete_cluster.js ` +`node samples/delete_cluster.js` ----- @@ -105,16 +109,16 @@ __Usage:__ -### Delete_realm +### Delete_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_deployment.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_realm.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_deployment.js,samples/README.md) __Usage:__ -`node samples/delete_realm.js ` +`node samples/delete_deployment.js` ----- @@ -122,16 +126,16 @@ __Usage:__ -### Delete_deployment +### Delete_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_realm.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_deployment.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_realm.js,samples/README.md) __Usage:__ -`node samples/delete_deployment.js ` +`node samples/delete_realm.js` ----- @@ -148,7 +152,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/get_cluster.js ` +`node samples/get_cluster.js` ----- @@ -156,16 +160,16 @@ __Usage:__ -### Get_realm +### Get_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_deployment.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_realm.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_deployment.js,samples/README.md) __Usage:__ -`node samples/get_realm.js ` +`node samples/get_deployment.js` ----- @@ -173,16 +177,16 @@ __Usage:__ -### Get_deployment +### Get_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_realm.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_deployment.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_realm.js,samples/README.md) __Usage:__ -`node samples/get_deployment.js ` +`node samples/get_realm.js` ----- @@ -199,7 +203,7 @@ View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/ma __Usage:__ -`node samples/list_clusters.js ` +`node samples/list_clusters.js` ----- @@ -207,16 +211,16 @@ __Usage:__ -### List_realms +### List_deployments -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_realms.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_deployments.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_realms.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_deployments.js,samples/README.md) __Usage:__ -`node samples/list_realms.js ` +`node samples/list_deployments.js` ----- @@ -224,16 +228,16 @@ __Usage:__ -### List_deployments +### List_realms -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_deployments.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_realms.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_deployments.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_realms.js,samples/README.md) __Usage:__ -`node samples/list_deployments.js ` +`node samples/list_realms.js` ----- From 2596c2cdb3e04f24b66b9ff61d77798a5146d6ee Mon Sep 17 00:00:00 2001 From: pooneh-m <46979170+pooneh-m@users.noreply.github.com> Date: Fri, 24 Jul 2020 09:59:57 -0700 Subject: [PATCH 26/60] Add samples for GameServerConfigs (#98) Co-authored-by: Justin Beckwith --- generated,README.md/create_config.js | 144 ++++++++++++++++++ generated,README.md/delete_cluster.js | 3 +- generated,README.md/delete_config.js | 68 +++++++++ generated,README.md/delete_deployment.js | 5 +- generated,README.md/get_config.js | 72 +++++++++ generated,README.md/list_configs.js | 69 +++++++++ generated,README.md/test/crud_config.test.js | 97 ++++++++++++ .../test/delete_cluster.test.js | 19 +-- 8 files changed, 457 insertions(+), 20 deletions(-) create mode 100644 generated,README.md/create_config.js create mode 100644 generated,README.md/delete_config.js create mode 100644 generated,README.md/get_config.js create mode 100644 generated,README.md/list_configs.js create mode 100644 generated,README.md/test/crud_config.test.js diff --git a/generated,README.md/create_config.js b/generated,README.md/create_config.js new file mode 100644 index 0000000000..db1b526157 --- /dev/null +++ b/generated,README.md/create_config.js @@ -0,0 +1,144 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Create a Game Servers Config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the parent Game Server Deployment + * @param {string} configId unique identifier for the new Game Server Config + * @param {string} fleetName fleet name to be stored in Agones + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID', + configId = 'CONFIG_ID', + fleetName = 'FLEET_NAME' +) { + // [START cloud_game_servers_config_create] + const { + GameServerConfigsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerConfigsServiceClient(); + + async function createGameServerConfig() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + // const configId = 'A unique ID for the Game Server Config'; + // const fleetName = 'The fleet name to be stored in Agones'; + // fleet is the spec portion of an agones Fleet. It must be in JSON format. + // See https://agones.dev/site/docs/reference/fleet/ for more on fleets. + const fleet = ` +{ + "replicas": 10, + "scheduling": "Packed", + "strategy": { + "type": "RollingUpdate", + "rollingUpdate": { + "maxSurge": "25%", + "maxUnavailable": "25%" + } + }, + "template": { + "metadata": { + "labels": { + "gameName": "udp-server" + } + }, + "spec": { + "ports": [ + { + "name": "default", + "portPolicy": "Dynamic", + "containerPort": 2156, + "protocol": "TCP" + } + ], + "health": { + "initialDelaySeconds": 30, + "periodSeconds": 60 + }, + "sdkServer": { + "logLevel": "Info", + "grpcPort": 9357, + "httpPort": 9358 + }, + "template": { + "spec": { + "containers": [ + { + "name": "dedicated", + "image": "gcr.io/agones-images/udp-server:0.17", + "imagePullPolicy": "Always", + "resources": { + "requests": { + "memory": "200Mi", + "cpu": "500m" + }, + "limits": { + "memory": "200Mi", + "cpu": "500m" + } + } + } + ] + } + } + } + } +} +`; + const request = { + parent: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + configId: configId, + gameServerConfig: { + fleetConfigs: [ + { + name: fleetName, + fleetSpec: fleet, + }, + ], + description: 'nodejs test config', + }, + }; + + const [operation] = await client.createGameServerConfig(request); + const [result] = await operation.promise(); + + console.log('Game Server Config created:'); + console.log(`\t Config name: ${result.name}`); + console.log(`\t Config description: ${result.description}`); + } + + createGameServerConfig(); + + // [END cloud_game_servers_config_create] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/delete_cluster.js b/generated,README.md/delete_cluster.js index 7c0b327870..ec1266bc88 100644 --- a/generated,README.md/delete_cluster.js +++ b/generated,README.md/delete_cluster.js @@ -51,7 +51,8 @@ async function main( ), }; - await client.deleteGameServerCluster(request); + const [operation] = await client.deleteGameServerCluster(request); + await operation.promise(); console.log('Game Server cluster deleted'); } diff --git a/generated,README.md/delete_config.js b/generated,README.md/delete_config.js new file mode 100644 index 0000000000..b083f29813 --- /dev/null +++ b/generated,README.md/delete_config.js @@ -0,0 +1,68 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Delete a Game Servers Config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + * @param {string} configId unique identifier for the new Game Server Config + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID', + configId = 'CONFIG_ID' +) { + // [START cloud_game_servers_config_delete] + const { + GameServerConfigsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerConfigsServiceClient(); + + async function deleteGameServerConfig() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + // const configId = 'A unique ID for the Game Server Config'; + const request = { + // The full resource name + name: client.gameServerConfigPath( + projectId, + 'global', + deploymentId, + configId + ), + }; + + const [operation] = await client.deleteGameServerConfig(request); + await operation.promise(); + console.log(`Config with name ${request.name} deleted.`); + } + + deleteGameServerConfig(); + + // [END cloud_game_servers_config_delete] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/delete_deployment.js b/generated,README.md/delete_deployment.js index b85ee6e266..e45b144f50 100644 --- a/generated,README.md/delete_deployment.js +++ b/generated,README.md/delete_deployment.js @@ -40,9 +40,10 @@ async function main( name: client.gameServerDeploymentPath(projectId, 'global', deploymentId), }; - await client.deleteGameServerDeployment(request); + const [operation] = await client.deleteGameServerDeployment(request); + await operation.promise(); - console.log('deleted.'); + console.log(`Deployment with name ${request.name} deleted.`); } deleteGameServerDeployment(); diff --git a/generated,README.md/get_config.js b/generated,README.md/get_config.js new file mode 100644 index 0000000000..1272918fec --- /dev/null +++ b/generated,README.md/get_config.js @@ -0,0 +1,72 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Get a Game Servers Config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + * @param {string} configId unique identifier for the new Game Server Config + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID', + configId = 'CONFIG_ID' +) { + // [START cloud_game_servers_config_get] + const { + GameServerConfigsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerConfigsServiceClient(); + + async function getGameServerConfig() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + // const configId = 'A unique ID for the Game Server Config'; + const request = { + // The full resource name + name: client.gameServerConfigPath( + projectId, + 'global', + deploymentId, + configId + ), + }; + + const [config] = await client.getGameServerConfig(request); + console.log(`Config name: ${config.name}`); + console.log(`Config description: ${config.description}`); + + const createTime = config.createTime; + const createDate = new Date(createTime.seconds * 1000); + console.log(`Config created on: ${createDate.toLocaleDateString()}\n`); + } + + getGameServerConfig(); + + // [END cloud_game_servers_config_get] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/list_configs.js b/generated,README.md/list_configs.js new file mode 100644 index 0000000000..f6a844b50c --- /dev/null +++ b/generated,README.md/list_configs.js @@ -0,0 +1,69 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * List all the Game Servers Configs. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_config_list] + const { + GameServerConfigsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerConfigsServiceClient(); + + async function listGameServerConfigs() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + parent: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }; + + const [results] = await client.listGameServerConfigs(request); + for (const config of results) { + console.log(`Config name: ${config.name}`); + console.log(`Config description: ${config.description}`); + + const createTime = config.createTime; + const createDate = new Date(createTime.seconds * 1000); + console.log(`Config created on: ${createDate.toLocaleDateString()}\n`); + } + } + + listGameServerConfigs(); + + // [END cloud_game_servers_config_list] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/test/crud_config.test.js b/generated,README.md/test/crud_config.test.js new file mode 100644 index 0000000000..d5c533c3d1 --- /dev/null +++ b/generated,README.md/test/crud_config.test.js @@ -0,0 +1,97 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, before, after, it} = require('mocha'); +const { + GameServerConfigsServiceClient, + GameServerDeploymentsServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +describe('Game Server Config Test', () => { + const client = new GameServerConfigsServiceClient(); + const deploymentClient = new GameServerDeploymentsServiceClient(); + let deploymentId; + let configId; + let projectId; + + before(async () => { + await cleanup(); + + projectId = await client.getProjectId(); + deploymentId = `test-${uuid.v4()}`; + configId = `test-${uuid.v4()}`; + + const request = { + parent: `projects/${projectId}/locations/global`, + deploymentId: deploymentId, + }; + const [operation] = await deploymentClient.createGameServerDeployment( + request + ); + await operation.promise(); + }); + + it('should create a game server config', async () => { + const create_output = execSync( + `node create_config.js ${projectId} ${deploymentId} ${configId} nodejs_fleet_name` + ); + assert.match(create_output, /Config name:/); + }); + + it('should get a game server config', async () => { + const get_output = execSync( + `node get_config.js ${projectId} ${deploymentId} ${configId}` + ); + assert.match(get_output, /Config name:/); + }); + + it('should list a game server config', async () => { + const list_output = execSync( + `node list_configs.js ${projectId} ${deploymentId} ${configId}` + ); + assert.match(list_output, /Config name:/); + }); + + it('should delete a game server config', async () => { + const delete_output = execSync( + `node delete_config.js ${projectId} ${deploymentId} ${configId}` + ); + assert.match(delete_output, /deleted./); + }); + + after(async () => { + // Delete the Game Server Deployment + const request = { + // Provide full resource name of a Game Server Deployment + name: deploymentClient.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }; + const [operation] = await deploymentClient.deleteGameServerDeployment( + request + ); + await operation.promise(); + }); +}); diff --git a/generated,README.md/test/delete_cluster.test.js b/generated,README.md/test/delete_cluster.test.js index 832e51737b..d6b2003a41 100644 --- a/generated,README.md/test/delete_cluster.test.js +++ b/generated,README.md/test/delete_cluster.test.js @@ -87,26 +87,11 @@ describe('Game Servers Delete Cluster Test', () => { }); after(async () => { - // Delete the Game Server cluster - const deleteClusterRequest = { - // Provide full resource name of a Game Server Realm - name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, - }; - try { - const [operation1] = await gameClustersClient.deleteGameServerCluster( - deleteClusterRequest - ); - await operation1.promise(); - } catch (ex) { - console.log(ex); - console.log(`Realm ID: ${realmId}`); - console.log(`Cluster ID: ${gameClusterId}`); - } // Delete the realm const deleteRealmRequest = { name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, }; - const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); - await operation2.promise(); + const [operation] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation.promise(); }); }); From 7d99b927a5b08dac7732810ab7013c5a3288a38d Mon Sep 17 00:00:00 2001 From: pooneh-m <46979170+pooneh-m@users.noreply.github.com> Date: Fri, 24 Jul 2020 10:34:08 -0700 Subject: [PATCH 27/60] Add sample for game server rollout (#102) Co-authored-by: Justin Beckwith --- generated,README.md/get_rollout.js | 70 ++++++ generated,README.md/test/rollout.js | 207 ++++++++++++++++++ generated,README.md/update_rollout_default.js | 73 ++++++ .../update_rollout_override.js | 86 ++++++++ .../update_rollout_remove_default.js | 70 ++++++ .../update_rollout_remove_override.js | 69 ++++++ 6 files changed, 575 insertions(+) create mode 100644 generated,README.md/get_rollout.js create mode 100644 generated,README.md/test/rollout.js create mode 100644 generated,README.md/update_rollout_default.js create mode 100644 generated,README.md/update_rollout_override.js create mode 100644 generated,README.md/update_rollout_remove_default.js create mode 100644 generated,README.md/update_rollout_remove_override.js diff --git a/generated,README.md/get_rollout.js b/generated,README.md/get_rollout.js new file mode 100644 index 0000000000..72ba1ff80c --- /dev/null +++ b/generated,README.md/get_rollout.js @@ -0,0 +1,70 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Get a Game Servers Rollout. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_rollout_get] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeploymentRollout() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + // The full resource name + name: client.gameServerDeploymentPath(projectId, 'global', deploymentId), + }; + + const [rollout] = await client.getGameServerDeploymentRollout(request); + console.log(`Rollout name: ${rollout.name}`); + console.log(`Rollout default: ${rollout.defaultGameServerConfig}`); + for (const override of rollout.gameServerConfigOverrides) { + console.log(`Rollout config overrides: ${override.configVersion}`); + console.log( + `Rollout realm overrides: ${JSON.stringify(override.realmsSelector)}` + ); + } + + const updateTime = rollout.updateTime; + const updateDate = new Date(updateTime.seconds * 1000); + console.log(`Rollout updated on: ${updateDate.toLocaleDateString()}\n`); + } + + getGameServerDeploymentRollout(); + + // [END cloud_game_servers_rollout_get] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/test/rollout.js b/generated,README.md/test/rollout.js new file mode 100644 index 0000000000..975a78f936 --- /dev/null +++ b/generated,README.md/test/rollout.js @@ -0,0 +1,207 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, before, after, it} = require('mocha'); +const { + GameServerConfigsServiceClient, + GameServerDeploymentsServiceClient, + RealmsServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +describe('Game Server Rollout Test', () => { + const configClient = new GameServerConfigsServiceClient(); + const deploymentClient = new GameServerDeploymentsServiceClient(); + const realmClient = new RealmsServiceClient(); + let projectId; + const deploymentId = `test-nodejs-${uuid.v4()}`; + const configId = `test-nodejs-${uuid.v4()}`; + const realmId = `test-nodejs-${uuid.v4()}`; + const realmLocation = 'us-central1'; + + before(async () => { + await cleanup(); + + projectId = await deploymentClient.getProjectId(); + + const request = { + parent: `projects/${projectId}/locations/global`, + deploymentId: deploymentId, + }; + const [operation] = await deploymentClient.createGameServerDeployment( + request + ); + await operation.promise(); + + const request2 = { + parent: configClient.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + configId: configId, + }; + const [operation2] = await configClient.createGameServerConfig(request2); + await operation2.promise(); + + const request3 = { + parent: `projects/${projectId}/locations/${realmLocation}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation3] = await realmClient.createRealm(request3); + await operation3.promise(); + }); + + it('should update rollout default', async () => { + const updateDefaultOutput = execSync( + `node update_rollout_default.js ${projectId} ${deploymentId} ${configId}` + ); + + assert.match(updateDefaultOutput, /Deployment updated:/); + + const getRolloutOutput = execSync( + `node get_rollout.js ${projectId} ${deploymentId} ${configId}` + ); + + const configName = configClient.gameServerConfigPath( + projectId, + 'global', + deploymentId, + configId + ); + assert.match(getRolloutOutput, /Rollout name:/); + assert.match( + getRolloutOutput, + new RegExp(`Rollout default: ${configName}`) + ); + }); + + it('should remove rollout default', async () => { + const removeDefaultOutput = execSync( + `node update_rollout_remove_default.js ${projectId} ${deploymentId} ${configId}` + ); + + assert.match(removeDefaultOutput, /Deployment updated:/); + + const request = { + // The full resource name + name: deploymentClient.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }; + + const [rollout] = await deploymentClient.getGameServerDeploymentRollout( + request + ); + assert.strictEqual(rollout.defaultGameServerConfig, ''); + }); + + it('should update rollout override', async () => { + const updateOverrideOutput = execSync( + `node update_rollout_override.js ${projectId} ${deploymentId} ${configId} ${realmId} ${realmLocation}` + ); + assert.match(updateOverrideOutput, /Deployment updated:/); + + const getRolloutOutput = execSync( + `node get_rollout.js ${projectId} ${deploymentId} ${configId}` + ); + + const configName = configClient.gameServerConfigPath( + projectId, + 'global', + deploymentId, + configId + ); + const realmName = realmClient.realmPath(projectId, realmLocation, realmId); + assert.match( + getRolloutOutput, + new RegExp(`Rollout config overrides: .*${configName}`) + ); + assert.match(getRolloutOutput, new RegExp(realmName)); + }); + + it('should remove rollout override', async () => { + const removeOverrideOutput = execSync( + `node update_rollout_remove_override.js ${projectId} ${deploymentId}` + ); + + assert.match(removeOverrideOutput, /Deployment updated:/); + + const request = { + // The full resource name + name: deploymentClient.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }; + + const [rollout] = await deploymentClient.getGameServerDeploymentRollout( + request + ); + assert.strictEqual(rollout.gameServerConfigOverrides.length, 0); + }); + + after(async () => { + // Delete the Game Server Config + const request = { + // Provide full resource name of a Game Server Config + name: configClient.gameServerConfigPath( + projectId, + 'global', + deploymentId, + configId + ), + }; + const [operation] = await configClient.deleteGameServerConfig(request); + await operation.promise(); + + // Delete the Game Server Deployment + const request2 = { + // Provide full resource name of a Game Server Deployment + name: deploymentClient.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }; + const [operation2] = await deploymentClient.deleteGameServerDeployment( + request2 + ); + await operation2.promise(); + + // Delete the Realm + const request3 = { + // Provide full resource name of a Realm + name: realmClient.realmPath(projectId, realmLocation, realmId), + }; + const [operation3] = await realmClient.deleteRealm(request3); + await operation3.promise(); + }); +}); diff --git a/generated,README.md/update_rollout_default.js b/generated,README.md/update_rollout_default.js new file mode 100644 index 0000000000..1aa9edf372 --- /dev/null +++ b/generated,README.md/update_rollout_default.js @@ -0,0 +1,73 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Rollout update to add default config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + * @param {string} configId unique identifier for the new Game Server Config + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID', + configId = 'CONFIG_ID' +) { + // [START cloud_game_servers_deployment_rollout_default] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function rolloutDefaultGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + // const configId = 'A unique ID for the Game Server Config'; + const request = { + rollout: { + name: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + defaultGameServerConfig: configId, + }, + updateMask: { + paths: ['default_game_server_config'], + }, + }; + + const [operation] = await client.updateGameServerDeploymentRollout(request); + const [deployment] = await operation.promise(); + + console.log(`Deployment updated: ${deployment.name}`); + } + + rolloutDefaultGameServerDeployment(); + + // [END cloud_game_servers_deployment_rollout_default] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/update_rollout_override.js b/generated,README.md/update_rollout_override.js new file mode 100644 index 0000000000..ee27d4b738 --- /dev/null +++ b/generated,README.md/update_rollout_override.js @@ -0,0 +1,86 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Rollout update to add override config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + * @param {string} configId unique identifier for the new Game Server Config + * @param {string} realmId the unique ID of the realm + * @param {string} realmLocation Compute Engine region for realm location. + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID', + configId = 'CONFIG_ID', + realmId = 'REALM_ID', + realmLocation = 'REALM_LOCATION' +) { + // [START cloud_game_servers_deployment_rollout_override] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function rolloutGameServerDeploymentOverride() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + // const configId = 'A unique ID for the Game Server Config'; + // const realmId = 'A unique ID for the realm' + // const realmLocation = 'compute engine region for realm location' + const request = { + rollout: { + name: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + gameServerConfigOverrides: [ + { + realmsSelector: { + realms: [client.realmPath(projectId, realmLocation, realmId)], + }, + configVersion: configId, + }, + ], + }, + updateMask: { + paths: ['game_server_config_overrides'], + }, + }; + + const [operation] = await client.updateGameServerDeploymentRollout(request); + const [deployment] = await operation.promise(); + + console.log(`Deployment updated: ${deployment.name}`); + } + + rolloutGameServerDeploymentOverride(); + + // [END cloud_game_servers_deployment_rollout_override] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/update_rollout_remove_default.js b/generated,README.md/update_rollout_remove_default.js new file mode 100644 index 0000000000..7584a00bfc --- /dev/null +++ b/generated,README.md/update_rollout_remove_default.js @@ -0,0 +1,70 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Rollout update to remove default config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_deployment_rollout_remove_default] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function removeRolloutDefaultGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + rollout: { + name: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + defaultGameServerConfig: '', + }, + updateMask: { + paths: ['default_game_server_config'], + }, + }; + + const [operation] = await client.updateGameServerDeploymentRollout(request); + const [deployment] = await operation.promise(); + + console.log(`Deployment updated: ${deployment.name}`); + } + + removeRolloutDefaultGameServerDeployment(); + + // [END cloud_game_servers_deployment_rollout_remove_default] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/update_rollout_remove_override.js b/generated,README.md/update_rollout_remove_override.js new file mode 100644 index 0000000000..031e950c01 --- /dev/null +++ b/generated,README.md/update_rollout_remove_override.js @@ -0,0 +1,69 @@ +// Copyright 2020, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Rollout update to remove override config. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the new Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_deployment_rollout_remove_override] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function removeRolloutGameServerDeploymentOverride() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'A unique ID for the Game Server Deployment'; + const request = { + rollout: { + name: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + }, + updateMask: { + paths: ['game_server_config_overrides'], + }, + }; + + const [operation] = await client.updateGameServerDeploymentRollout(request); + const [deployment] = await operation.promise(); + + console.log(`Deployment updated: ${deployment.name}`); + } + + removeRolloutGameServerDeploymentOverride(); + + // [END cloud_game_servers_deployment_rollout_remove_override] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); From b292ebc4e09517bc8faf586ee24f531557debcd7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 25 Jul 2020 10:46:41 -0700 Subject: [PATCH 28/60] docs: update README with additional samples (#104) --- generated,README.md/README.md | 162 ++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index f95bdb3e71..49270a0813 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -13,18 +13,27 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) * [Create_cluster](#create_cluster) + * [Create_config](#create_config) * [Create_deployment](#create_deployment) * [Create_realm](#create_realm) * [Delete_cluster](#delete_cluster) + * [Delete_config](#delete_config) * [Delete_deployment](#delete_deployment) * [Delete_realm](#delete_realm) * [Get_cluster](#get_cluster) + * [Get_config](#get_config) * [Get_deployment](#get_deployment) * [Get_realm](#get_realm) + * [Get_rollout](#get_rollout) * [List_clusters](#list_clusters) + * [List_configs](#list_configs) * [List_deployments](#list_deployments) * [List_realms](#list_realms) * [Create Game Server Realm](#create-game-server-realm) + * [Update_rollout_default](#update_rollout_default) + * [Update_rollout_override](#update_rollout_override) + * [Update_rollout_remove_default](#update_rollout_remove_default) + * [Update_rollout_remove_override](#update_rollout_remove_override) ## Before you begin @@ -58,6 +67,23 @@ __Usage:__ +### Create_config + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_config.js,samples/README.md) + +__Usage:__ + + +`node samples/create_config.js` + + +----- + + + + ### Create_deployment View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_deployment.js). @@ -109,6 +135,23 @@ __Usage:__ +### Delete_config + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_config.js,samples/README.md) + +__Usage:__ + + +`node samples/delete_config.js` + + +----- + + + + ### Delete_deployment View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_deployment.js). @@ -160,6 +203,23 @@ __Usage:__ +### Get_config + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_config.js,samples/README.md) + +__Usage:__ + + +`node samples/get_config.js` + + +----- + + + + ### Get_deployment View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_deployment.js). @@ -194,6 +254,23 @@ __Usage:__ +### Get_rollout + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_rollout.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_rollout.js,samples/README.md) + +__Usage:__ + + +`node samples/get_rollout.js` + + +----- + + + + ### List_clusters View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_clusters.js). @@ -211,6 +288,23 @@ __Usage:__ +### List_configs + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_configs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_configs.js,samples/README.md) + +__Usage:__ + + +`node samples/list_configs.js` + + +----- + + + + ### List_deployments View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_deployments.js). @@ -259,6 +353,74 @@ __Usage:__ `node quickstart.js ` +----- + + + + +### Update_rollout_default + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_default.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_default.js,samples/README.md) + +__Usage:__ + + +`node samples/update_rollout_default.js` + + +----- + + + + +### Update_rollout_override + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_override.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_override.js,samples/README.md) + +__Usage:__ + + +`node samples/update_rollout_override.js` + + +----- + + + + +### Update_rollout_remove_default + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_remove_default.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_remove_default.js,samples/README.md) + +__Usage:__ + + +`node samples/update_rollout_remove_default.js` + + +----- + + + + +### Update_rollout_remove_override + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_remove_override.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_remove_override.js,samples/README.md) + +__Usage:__ + + +`node samples/update_rollout_remove_override.js` + + From 90df7924bbeb48dc149624375936f7aa73866bce Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:25:11 -0700 Subject: [PATCH 29/60] chore: release 2.1.0 (#110) --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index d6364f03a0..c3fcc34a9d 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.0.2" + "@google-cloud/game-servers": "^2.1.0" }, "devDependencies": { "c8": "^7.2.1", From 9db427d46550fa2a5f5e76cdd1dc94245eec7f3b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2020 12:53:46 -0800 Subject: [PATCH 30/60] chore: release 2.1.1 (#133) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index c3fcc34a9d..0fa8ddcac8 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.1.0" + "@google-cloud/game-servers": "^2.1.1" }, "devDependencies": { "c8": "^7.2.1", From ea9e63a7e4031ec228114dcf317865cddc2caf83 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 19:40:31 +0000 Subject: [PATCH 31/60] chore: release 2.1.2 (#137) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.2](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.1.1...v2.1.2) (2020-11-25) ### Bug Fixes * **browser:** check for fetch on window ([#136](https://www.github.com/googleapis/nodejs-game-servers/issues/136)) ([3c28ff7](https://www.github.com/googleapis/nodejs-game-servers/commit/3c28ff7c610caf58df0dfbd4b3acd2954ae7f019)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 0fa8ddcac8..c90597a47a 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.1.1" + "@google-cloud/game-servers": "^2.1.2" }, "devDependencies": { "c8": "^7.2.1", From 1de97601b55793313f44e51c930b0b0b9b48018d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 12 Jan 2021 18:36:19 +0000 Subject: [PATCH 32/60] chore: release 2.2.0 (#143) :robot: I have created a release \*beep\* \*boop\* --- ## [2.2.0](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.1.2...v2.2.0) (2021-01-09) ### Features * adds style enumeration ([#142](https://www.github.com/googleapis/nodejs-game-servers/issues/142)) ([59f7332](https://www.github.com/googleapis/nodejs-game-servers/commit/59f7332fee754b11e8a395d19013cc78351e5659)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index c90597a47a..e898dd45b9 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.1.2" + "@google-cloud/game-servers": "^2.2.0" }, "devDependencies": { "c8": "^7.2.1", From c5c992a7774e5154aed98c4150f34322fd76172f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 1 Mar 2021 16:22:19 -0800 Subject: [PATCH 33/60] chore: release 2.3.0 (#148) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index e898dd45b9..39fa4d8023 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.2.0" + "@google-cloud/game-servers": "^2.3.0" }, "devDependencies": { "c8": "^7.2.1", From d9a245a3a3f10373cfb45ee1cab6862fb9e3da57 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Mon, 17 May 2021 17:45:33 -0700 Subject: [PATCH 34/60] chore: migrate to owl bot (#153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: migrate to owl bot * chore: copy files from googleapis-gen fb91803ccef5d7c695139b22788b309e2197856b * chore: run the post processor * 🦉 Updates from OwlBot * fix: help tests pass * 🦉 Updates from OwlBot * update Docker image * 🦉 Updates from OwlBot Co-authored-by: Owl Bot Co-authored-by: Sofia Leon --- generated,README.md/test/clean.js | 14 ++++++-------- generated,README.md/test/list_clusters.test.js | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/generated,README.md/test/clean.js b/generated,README.md/test/clean.js index cf62661619..bed48b96ca 100644 --- a/generated,README.md/test/clean.js +++ b/generated,README.md/test/clean.js @@ -42,20 +42,18 @@ module.exports = async () => { parent: realm.name, }; - const clustersResult = await gameServerClusterClient.listGameServerClusters( - clustersRequest - ); + const clustersResult = + await gameServerClusterClient.listGameServerClusters(clustersRequest); const [clusters] = clustersResult; for (const cluster of clusters) { const deleteClusterRequest = { name: cluster.name, }; - const [ - deleteClusterOperation, - ] = await gameServerClusterClient.deleteGameServerCluster( - deleteClusterRequest - ); + const [deleteClusterOperation] = + await gameServerClusterClient.deleteGameServerCluster( + deleteClusterRequest + ); await deleteClusterOperation.promise(); } diff --git a/generated,README.md/test/list_clusters.test.js b/generated,README.md/test/list_clusters.test.js index b32b7ed245..419e138fb8 100644 --- a/generated,README.md/test/list_clusters.test.js +++ b/generated,README.md/test/list_clusters.test.js @@ -79,7 +79,7 @@ describe('Game Servers List Clusters Test', () => { await operation2.promise(); }); - it('should list Game Server clusters in a realm', async () => { + it.only('should list Game Server clusters in a realm', async () => { const projectId = await realmsClient.getProjectId(); const create_output = execSync( From dc510f55f20108b2b2d4aad0760284a5facddb56 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 20 May 2021 00:56:04 +0000 Subject: [PATCH 35/60] chore: release 2.3.1 (#163) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.1](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.0...v2.3.1) (2021-05-20) ### Bug Fixes * **deps:** require google-gax v2.12.0 ([#162](https://www.github.com/googleapis/nodejs-game-servers/issues/162)) ([546c13d](https://www.github.com/googleapis/nodejs-game-servers/commit/546c13d64abedafd055fad9c118d58750f0f9f25)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 39fa4d8023..b120a2ad55 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.0" + "@google-cloud/game-servers": "^2.3.1" }, "devDependencies": { "c8": "^7.2.1", From 50b35494084cfa2646ddacf87ecc21f259f14090 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 24 May 2021 23:10:02 +0000 Subject: [PATCH 36/60] chore: release 2.3.2 (#173) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.2](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.1...v2.3.2) (2021-05-24) ### Bug Fixes * use require() to load JSON protos ([#164](https://www.github.com/googleapis/nodejs-game-servers/issues/164)) ([b77e1e5](https://www.github.com/googleapis/nodejs-game-servers/commit/b77e1e5f7fc9396cdb30d4f1bfac370dd85800b8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index b120a2ad55..639c3a8d8b 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.1" + "@google-cloud/game-servers": "^2.3.2" }, "devDependencies": { "c8": "^7.2.1", From fe0efaf178edb2283bba1912693335ad369db18b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 00:34:05 +0000 Subject: [PATCH 37/60] chore: release 2.3.3 (#180) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.3](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.2...v2.3.3) (2021-06-10) ### Bug Fixes * GoogleAdsError missing using generator version after 1.3.0 ([#175](https://www.github.com/googleapis/nodejs-game-servers/issues/175)) ([a0df035](https://www.github.com/googleapis/nodejs-game-servers/commit/a0df03530d0dc438c8c4318854fbcfa8d7752f8d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 639c3a8d8b..84cd65e15f 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.2" + "@google-cloud/game-servers": "^2.3.3" }, "devDependencies": { "c8": "^7.2.1", From 01cf5a81dad39ee96eba1dd4f433c97ad6062e16 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:40:43 +0000 Subject: [PATCH 38/60] chore: release 2.3.4 (#187) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.4](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.3...v2.3.4) (2021-06-22) ### Bug Fixes * make request optional in all cases ([#186](https://www.github.com/googleapis/nodejs-game-servers/issues/186)) ([99424ec](https://www.github.com/googleapis/nodejs-game-servers/commit/99424ecd0f87341bd4814cdbe092d2820c9a78d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 84cd65e15f..1d19919d30 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.3" + "@google-cloud/game-servers": "^2.3.4" }, "devDependencies": { "c8": "^7.2.1", From 7decd229cd14d0a5513bd392e4760ee5970d0bbb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:02:27 +0000 Subject: [PATCH 39/60] chore: release 2.3.5 (#193) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.5](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.4...v2.3.5) (2021-06-29) ### Bug Fixes * **deps:** google-gax v2.17.0 with mTLS ([#192](https://www.github.com/googleapis/nodejs-game-servers/issues/192)) ([4d37a74](https://www.github.com/googleapis/nodejs-game-servers/commit/4d37a7497ebe77cbfabc5e2bb0ea925e7ac138bb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 1d19919d30..61df81ac9d 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.4" + "@google-cloud/game-servers": "^2.3.5" }, "devDependencies": { "c8": "^7.2.1", From fecc92db29aef8ae65b7175b3cbcb3e6fa3408c2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Jul 2021 22:04:22 +0000 Subject: [PATCH 40/60] chore: release 2.3.6 (#197) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.6](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.5...v2.3.6) (2021-07-12) ### Bug Fixes * **deps:** google-gax v2.17.1 ([#196](https://www.github.com/googleapis/nodejs-game-servers/issues/196)) ([5a65e3f](https://www.github.com/googleapis/nodejs-game-servers/commit/5a65e3f4398667b2aba2295088c1cc0e2ecf0a8c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 61df81ac9d..ab077b18bb 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.5" + "@google-cloud/game-servers": "^2.3.6" }, "devDependencies": { "c8": "^7.2.1", From f40585382f585c0eca51731d6f4095ef40ea78d0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 12:53:10 -0700 Subject: [PATCH 41/60] chore: release 2.3.7 (#199) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index ab077b18bb..bcb0f98605 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.6" + "@google-cloud/game-servers": "^2.3.7" }, "devDependencies": { "c8": "^7.2.1", From 52c01d36f45cd5b544a8e5ca9c6c23c3c0a4e728 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Sat, 14 Aug 2021 00:41:00 -0700 Subject: [PATCH 42/60] fix(build): migrate to using main branch (#206) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(build): migrate to using main branch * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- generated,README.md/README.md | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/generated,README.md/README.md b/generated,README.md/README.md index 49270a0813..d1bb5f5f01 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -52,7 +52,7 @@ Before running the samples, make sure you've followed the steps outlined in ### Create_cluster -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_cluster.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/create_cluster.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) @@ -69,7 +69,7 @@ __Usage:__ ### Create_config -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_config.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/create_config.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_config.js,samples/README.md) @@ -86,7 +86,7 @@ __Usage:__ ### Create_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/create_deployment.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_deployment.js,samples/README.md) @@ -103,7 +103,7 @@ __Usage:__ ### Create_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/create_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/create_realm.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/create_realm.js,samples/README.md) @@ -120,7 +120,7 @@ __Usage:__ ### Delete_cluster -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_cluster.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/delete_cluster.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) @@ -137,7 +137,7 @@ __Usage:__ ### Delete_config -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_config.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/delete_config.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_config.js,samples/README.md) @@ -154,7 +154,7 @@ __Usage:__ ### Delete_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/delete_deployment.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_deployment.js,samples/README.md) @@ -171,7 +171,7 @@ __Usage:__ ### Delete_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/delete_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/delete_realm.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/delete_realm.js,samples/README.md) @@ -188,7 +188,7 @@ __Usage:__ ### Get_cluster -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_cluster.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/get_cluster.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_cluster.js,samples/README.md) @@ -205,7 +205,7 @@ __Usage:__ ### Get_config -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_config.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/get_config.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_config.js,samples/README.md) @@ -222,7 +222,7 @@ __Usage:__ ### Get_deployment -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_deployment.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/get_deployment.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_deployment.js,samples/README.md) @@ -239,7 +239,7 @@ __Usage:__ ### Get_realm -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_realm.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/get_realm.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_realm.js,samples/README.md) @@ -256,7 +256,7 @@ __Usage:__ ### Get_rollout -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/get_rollout.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/get_rollout.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/get_rollout.js,samples/README.md) @@ -273,7 +273,7 @@ __Usage:__ ### List_clusters -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_clusters.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/list_clusters.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_clusters.js,samples/README.md) @@ -290,7 +290,7 @@ __Usage:__ ### List_configs -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_configs.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/list_configs.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_configs.js,samples/README.md) @@ -307,7 +307,7 @@ __Usage:__ ### List_deployments -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_deployments.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/list_deployments.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_deployments.js,samples/README.md) @@ -324,7 +324,7 @@ __Usage:__ ### List_realms -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/list_realms.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/list_realms.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/list_realms.js,samples/README.md) @@ -343,7 +343,7 @@ __Usage:__ Creates a new Realm within Cloud Game Servers -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/quickstart.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/quickstart.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) @@ -360,7 +360,7 @@ __Usage:__ ### Update_rollout_default -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_default.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_rollout_default.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_default.js,samples/README.md) @@ -377,7 +377,7 @@ __Usage:__ ### Update_rollout_override -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_override.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_rollout_override.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_override.js,samples/README.md) @@ -394,7 +394,7 @@ __Usage:__ ### Update_rollout_remove_default -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_remove_default.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_rollout_remove_default.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_remove_default.js,samples/README.md) @@ -411,7 +411,7 @@ __Usage:__ ### Update_rollout_remove_override -View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/master/samples/update_rollout_remove_override.js). +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_rollout_remove_override.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_rollout_remove_override.js,samples/README.md) From c49e8295417a9dac0f96952a5f4f3cf40deee2a8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Aug 2021 17:20:26 +0000 Subject: [PATCH 43/60] chore: release 2.3.8 (#207) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.8](https://www.github.com/googleapis/nodejs-game-servers/compare/v2.3.7...v2.3.8) (2021-08-17) ### Bug Fixes * **build:** migrate to using main branch ([#206](https://www.github.com/googleapis/nodejs-game-servers/issues/206)) ([04998bf](https://www.github.com/googleapis/nodejs-game-servers/commit/04998bf4f24613792beb12fff9d1a14da795b74b)) * **deps:** google-gax v2.24.1 ([#208](https://www.github.com/googleapis/nodejs-game-servers/issues/208)) ([8462da4](https://www.github.com/googleapis/nodejs-game-servers/commit/8462da415e3df130356f70e34f97698628f48b2b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index bcb0f98605..ffba77a5fb 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.7" + "@google-cloud/game-servers": "^2.3.8" }, "devDependencies": { "c8": "^7.2.1", From 4948df50a5cc26344c04f848aa992639244b13fc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 Aug 2021 08:31:08 -0700 Subject: [PATCH 44/60] chore: release 2.4.0 (#210) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index ffba77a5fb..5955bdb378 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.3.8" + "@google-cloud/game-servers": "^2.4.0" }, "devDependencies": { "c8": "^7.2.1", From 053b6b2d387073a89f9035fe62dd64f97c0f896c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 10:58:41 -0500 Subject: [PATCH 45/60] chore: release 2.5.0 (#214) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 5955bdb378..2ea3f59a0b 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.4.0" + "@google-cloud/game-servers": "^2.5.0" }, "devDependencies": { "c8": "^7.2.1", From 7e4880aeacb15b8eaf210ed4effd5938e9df0050 Mon Sep 17 00:00:00 2001 From: Nicholas Cook Date: Wed, 1 Sep 2021 17:20:28 -0700 Subject: [PATCH 46/60] chore: show cluster installation state details for get and list methods (#216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [X] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-game-servers/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [X] Ensure the tests and linter pass - [X] Code coverage does not decrease (if any source code was changed) - [X] Appropriate docs were updated (if necessary) Fixes b:179738605 🦕 --- generated,README.md/get_cluster.js | 10 ++++++++++ generated,README.md/list_clusters.js | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/generated,README.md/get_cluster.js b/generated,README.md/get_cluster.js index cbe3ee4641..8701ac805b 100644 --- a/generated,README.md/get_cluster.js +++ b/generated,README.md/get_cluster.js @@ -49,6 +49,7 @@ async function main( realmId, gameClusterId ), + view: 'FULL', }; const [cluster] = await client.getGameServerCluster(request); @@ -56,6 +57,15 @@ async function main( console.log('Game Server Cluster:'); console.log(`\tCluster name: ${cluster.name}`); console.log(`\tCluster description: ${cluster.description}`); + console.log( + `\tCluster installed Agones version: ${cluster.clusterState.agonesVersionInstalled}` + ); + console.log( + `\tCluster installed Kubernetes version: ${cluster.clusterState.kubernetesVersionInstalled}` + ); + console.log( + `\tCluster installation state: ${cluster.clusterState.installationState}` + ); console.log( `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` ); diff --git a/generated,README.md/list_clusters.js b/generated,README.md/list_clusters.js index 5a8d92a819..c73a7f0d26 100644 --- a/generated,README.md/list_clusters.js +++ b/generated,README.md/list_clusters.js @@ -41,6 +41,7 @@ async function main( const request = { // Provide full resource name of a Game Server Realm parent: client.realmPath(projectId, location, realmId), + view: 'FULL', }; const results = await client.listGameServerClusters(request); @@ -50,6 +51,15 @@ async function main( console.log('Game Server Cluster:'); console.log(`\tCluster name: ${cluster.name}`); console.log(`\tCluster description: ${cluster.description}`); + console.log( + `\tCluster installed Agones version: ${cluster.clusterState.agonesVersionInstalled}` + ); + console.log( + `\tCluster installed Kubernetes version: ${cluster.clusterState.kubernetesVersionInstalled}` + ); + console.log( + `\tCluster installation state: ${cluster.clusterState.installationState}` + ); console.log( `\tGKE cluster: ${cluster.connectionInfo.gkeClusterReference.cluster}` ); From 5cbfc1cf272f10cbc1f6f0dddbfdf83fdeade3dd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Sep 2021 23:36:33 +0000 Subject: [PATCH 47/60] docs(samples): add auto-generated samples for Node with api short name in region tag (#221) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 399287285 Source-Link: https://github.com/googleapis/googleapis/commit/15759865d1c54e3d46429010f7e472fe6c3d3715 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b27fff623a5d8d586b703b5e4919856abe7c2eb3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjI3ZmZmNjIzYTVkOGQ1ODZiNzAzYjVlNDkxOTg1NmFiZTdjMmViMyJ9 --- ...ters_service.create_game_server_cluster.js | 65 ++++++++++++++ ...ters_service.delete_game_server_cluster.js | 55 ++++++++++++ ...lusters_service.get_game_server_cluster.js | 63 ++++++++++++++ ...sters_service.list_game_server_clusters.js | 86 +++++++++++++++++++ ...vice.preview_create_game_server_cluster.js | 73 ++++++++++++++++ ...vice.preview_delete_game_server_cluster.js | 58 +++++++++++++ ...vice.preview_update_game_server_cluster.js | 65 ++++++++++++++ ...ters_service.update_game_server_cluster.js | 62 +++++++++++++ ...nfigs_service.create_game_server_config.js | 65 ++++++++++++++ ...nfigs_service.delete_game_server_config.js | 55 ++++++++++++ ..._configs_service.get_game_server_config.js | 54 ++++++++++++ ...onfigs_service.list_game_server_configs.js | 77 +++++++++++++++++ ...s_service.create_game_server_deployment.js | 65 ++++++++++++++ ...s_service.delete_game_server_deployment.js | 55 ++++++++++++ ...loyments_service.fetch_deployment_state.js | 54 ++++++++++++ ...ents_service.get_game_server_deployment.js | 54 ++++++++++++ ...vice.get_game_server_deployment_rollout.js | 54 ++++++++++++ ...ts_service.list_game_server_deployments.js | 78 +++++++++++++++++ ....preview_game_server_deployment_rollout.js | 67 +++++++++++++++ ...s_service.update_game_server_deployment.js | 62 +++++++++++++ ...e.update_game_server_deployment_rollout.js | 64 ++++++++++++++ .../v1/realms_service.create_realm.js | 64 ++++++++++++++ .../v1/realms_service.delete_realm.js | 54 ++++++++++++ .../generated/v1/realms_service.get_realm.js | 53 ++++++++++++ .../v1/realms_service.list_realms.js | 77 +++++++++++++++++ .../v1/realms_service.preview_realm_update.js | 64 ++++++++++++++ .../v1/realms_service.update_realm.js | 61 +++++++++++++ ...ters_service.create_game_server_cluster.js | 65 ++++++++++++++ ...ters_service.delete_game_server_cluster.js | 55 ++++++++++++ ...lusters_service.get_game_server_cluster.js | 54 ++++++++++++ ...sters_service.list_game_server_clusters.js | 78 +++++++++++++++++ ...vice.preview_create_game_server_cluster.js | 68 +++++++++++++++ ...vice.preview_delete_game_server_cluster.js | 58 +++++++++++++ ...vice.preview_update_game_server_cluster.js | 67 +++++++++++++++ ...ters_service.update_game_server_cluster.js | 64 ++++++++++++++ ...nfigs_service.create_game_server_config.js | 65 ++++++++++++++ ...nfigs_service.delete_game_server_config.js | 55 ++++++++++++ ..._configs_service.get_game_server_config.js | 54 ++++++++++++ ...onfigs_service.list_game_server_configs.js | 78 +++++++++++++++++ ...s_service.create_game_server_deployment.js | 65 ++++++++++++++ ...s_service.delete_game_server_deployment.js | 55 ++++++++++++ ...loyments_service.fetch_deployment_state.js | 54 ++++++++++++ ...ents_service.get_game_server_deployment.js | 55 ++++++++++++ ...vice.get_game_server_deployment_rollout.js | 55 ++++++++++++ ...ts_service.list_game_server_deployments.js | 78 +++++++++++++++++ ....preview_game_server_deployment_rollout.js | 69 +++++++++++++++ ...s_service.update_game_server_deployment.js | 64 ++++++++++++++ ...e.update_game_server_deployment_rollout.js | 66 ++++++++++++++ .../v1beta/realms_service.create_realm.js | 64 ++++++++++++++ .../v1beta/realms_service.delete_realm.js | 54 ++++++++++++ .../v1beta/realms_service.get_realm.js | 53 ++++++++++++ .../v1beta/realms_service.list_realms.js | 77 +++++++++++++++++ .../realms_service.preview_realm_update.js | 66 ++++++++++++++ .../v1beta/realms_service.update_realm.js | 63 ++++++++++++++ generated,README.md/package.json | 2 +- 55 files changed, 3404 insertions(+), 1 deletion(-) create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js create mode 100644 generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js create mode 100644 generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js create mode 100644 generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js create mode 100644 generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js create mode 100644 generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1/realms_service.create_realm.js create mode 100644 generated,README.md/generated/v1/realms_service.delete_realm.js create mode 100644 generated,README.md/generated/v1/realms_service.get_realm.js create mode 100644 generated,README.md/generated/v1/realms_service.list_realms.js create mode 100644 generated,README.md/generated/v1/realms_service.preview_realm_update.js create mode 100644 generated,README.md/generated/v1/realms_service.update_realm.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js create mode 100644 generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js create mode 100644 generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js create mode 100644 generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js create mode 100644 generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js create mode 100644 generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js create mode 100644 generated,README.md/generated/v1beta/realms_service.create_realm.js create mode 100644 generated,README.md/generated/v1beta/realms_service.delete_realm.js create mode 100644 generated,README.md/generated/v1beta/realms_service.get_realm.js create mode 100644 generated,README.md/generated/v1beta/realms_service.list_realms.js create mode 100644 generated,README.md/generated/v1beta/realms_service.preview_realm_update.js create mode 100644 generated,README.md/generated/v1beta/realms_service.update_realm.js diff --git a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js new file mode 100644 index 0000000000..86db5d71b1 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, gameServerClusterId, gameServerCluster) { + // [START gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/realms/{realm-id}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server cluster resource to be created. + */ + // const gameServerClusterId = 'abc123' + /** + * Required. The game server cluster resource to be created. + */ + // const gameServerCluster = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function createGameServerCluster() { + // Construct request + const request = { + parent, + gameServerClusterId, + gameServerCluster, + }; + + // Run request + const [operation] = await gamingClient.createGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js new file mode 100644 index 0000000000..fb1fc07618 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to delete, in the following form: + * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function deleteGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js new file mode 100644 index 0000000000..c74cc5ccc7 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to retrieve, in the following form: + * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + /** + * Optional. View for the returned GameServerCluster objects. When `FULL` is + * specified, the `cluster_state` field is also returned in the + * GameServerCluster object, which includes the state of the referenced + * Kubernetes cluster such as versions and provider info. The default/unset + * value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does + * not return the `cluster_state` field. + */ + // const view = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function getGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerCluster(request); + console.log(response); + } + + getGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js new file mode 100644 index 0000000000..4d78ff56fb --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * "projects/{project}/locations/{location}/realms/{realm}". + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, the server + * will pick an appropriate default. The server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token] to + * determine if there are more GameServerClusters left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + /** + * Optional. View for the returned GameServerCluster objects. When `FULL` is + * specified, the `cluster_state` field is also returned in the + * GameServerCluster object, which includes the state of the referenced + * Kubernetes cluster such as versions and provider info. The default/unset + * value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does + * not return the `cluster_state` field. + */ + // const view = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function listGameServerClusters() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerClustersAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerClusters(); + // [END gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js new file mode 100644 index 0000000000..43871a8423 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, gameServerClusterId, gameServerCluster) { + // [START gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server cluster resource to be created. + */ + // const gameServerClusterId = 'abc123' + /** + * Required. The game server cluster resource to be created. + */ + // const gameServerCluster = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + /** + * Optional. This field is deprecated, preview will always return + * KubernetesClusterState. + */ + // const view = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewCreateGameServerCluster() { + // Construct request + const request = { + parent, + gameServerClusterId, + gameServerCluster, + }; + + // Run request + const response = await gamingClient.previewCreateGameServerCluster(request); + console.log(response); + } + + previewCreateGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js new file mode 100644 index 0000000000..00e7ddfb63 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to delete, in the following form: + * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewDeleteGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.previewDeleteGameServerCluster(request); + console.log(response); + } + + previewDeleteGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js new file mode 100644 index 0000000000..5393942098 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerCluster, updateMask) { + // [START gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server cluster to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerCluster = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewUpdateGameServerCluster() { + // Construct request + const request = { + gameServerCluster, + updateMask, + }; + + // Run request + const response = await gamingClient.previewUpdateGameServerCluster(request); + console.log(response); + } + + previewUpdateGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js new file mode 100644 index 0000000000..839dcdb280 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerCluster, updateMask) { + // [START gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server cluster to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerCluster = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function updateGameServerCluster() { + // Construct request + const request = { + gameServerCluster, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerCluster(); + // [END gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js new file mode 100644 index 0000000000..1bba873787 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, configId, gameServerConfig) { + // [START gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server config resource to be created. + */ + // const configId = 'abc123' + /** + * Required. The game server config resource to be created. + */ + // const gameServerConfig = '' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function createGameServerConfig() { + // Construct request + const request = { + parent, + configId, + gameServerConfig, + }; + + // Run request + const [operation] = await gamingClient.createGameServerConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerConfig(); + // [END gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js new file mode 100644 index 0000000000..338f504ec0 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server config to delete, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function deleteGameServerConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerConfig(); + // [END gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js new file mode 100644 index 0000000000..f49e46065d --- /dev/null +++ b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server config to retrieve, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function getGameServerConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerConfig(request); + console.log(response); + } + + getGameServerConfig(); + // [END gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js new file mode 100644 index 0000000000..8cd6207c2f --- /dev/null +++ b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, server + * will pick an appropriate default. Server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token] to + * determine if there are more GameServerConfigs left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous list request, if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function listGameServerConfigs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerConfigsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerConfigs(); + // [END gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js new file mode 100644 index 0000000000..49404fc822 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, deploymentId, gameServerDeployment) { + // [START gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server delpoyment resource to be created. + */ + // const deploymentId = 'abc123' + /** + * Required. The game server delpoyment resource to be created. + */ + // const gameServerDeployment = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function createGameServerDeployment() { + // Construct request + const request = { + parent, + deploymentId, + gameServerDeployment, + }; + + // Run request + const [operation] = await gamingClient.createGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerDeployment(); + // [END gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js new file mode 100644 index 0000000000..7490fae313 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to delete, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function deleteGameServerDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerDeployment(); + // [END gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js new file mode 100644 index 0000000000..bbc19ee785 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function fetchDeploymentState() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.fetchDeploymentState(request); + console.log(response); + } + + fetchDeploymentState(); + // [END gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js new file mode 100644 index 0000000000..3137207f20 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to retrieve, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerDeployment(request); + console.log(response); + } + + getGameServerDeployment(); + // [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js new file mode 100644 index 0000000000..596aeeb55d --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to retrieve, in the following form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeploymentRollout() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerDeploymentRollout(request); + console.log(response); + } + + getGameServerDeploymentRollout(); + // [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js new file mode 100644 index 0000000000..122ff09ded --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, the server + * will pick an appropriate default. The server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1.ListGameServerDeploymentsResponse.next_page_token] to + * determine if there are more GameServerDeployments left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function listGameServerDeployments() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerDeploymentsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerDeployments(); + // [END gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js new file mode 100644 index 0000000000..f17b9bf4a0 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(rollout) { + // [START gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server deployment rollout to be updated. + * Only fields specified in update_mask are updated. + */ + // const rollout = '' + /** + * Optional. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. Defaults to the immediately + * after the proposed rollout completes. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function previewGameServerDeploymentRollout() { + // Construct request + const request = { + rollout, + }; + + // Run request + const response = await gamingClient.previewGameServerDeploymentRollout( + request + ); + console.log(response); + } + + previewGameServerDeploymentRollout(); + // [END gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js new file mode 100644 index 0000000000..4e9a5482e8 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerDeployment, updateMask) { + // [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server delpoyment to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerDeployment = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function updateGameServerDeployment() { + // Construct request + const request = { + gameServerDeployment, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerDeployment(); + // [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js new file mode 100644 index 0000000000..44d9a90797 --- /dev/null +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(rollout, updateMask) { + // [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server delpoyment rollout to be updated. + * Only fields specified in update_mask are updated. + */ + // const rollout = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function updateGameServerDeploymentRollout() { + // Construct request + const request = { + rollout, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerDeploymentRollout( + request + ); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerDeploymentRollout(); + // [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.create_realm.js b/generated,README.md/generated/v1/realms_service.create_realm.js new file mode 100644 index 0000000000..1cf5a86c92 --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.create_realm.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, realmId, realm) { + // [START gameservices_v1_generated_RealmsService_CreateRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the realm resource to be created. + */ + // const realmId = 'abc123' + /** + * Required. The realm resource to be created. + */ + // const realm = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function createRealm() { + // Construct request + const request = { + parent, + realmId, + realm, + }; + + // Run request + const [operation] = await gamingClient.createRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + createRealm(); + // [END gameservices_v1_generated_RealmsService_CreateRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.delete_realm.js b/generated,README.md/generated/v1/realms_service.delete_realm.js new file mode 100644 index 0000000000..dcfcd99bf3 --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.delete_realm.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_RealmsService_DeleteRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the realm to delete, in the following form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function deleteRealm() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteRealm(); + // [END gameservices_v1_generated_RealmsService_DeleteRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.get_realm.js b/generated,README.md/generated/v1/realms_service.get_realm.js new file mode 100644 index 0000000000..9858e1d77a --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.get_realm.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1_generated_RealmsService_GetRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the realm to retrieve, in the following form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function getRealm() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getRealm(request); + console.log(response); + } + + getRealm(); + // [END gameservices_v1_generated_RealmsService_GetRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.list_realms.js b/generated,README.md/generated/v1/realms_service.list_realms.js new file mode 100644 index 0000000000..c78d60d790 --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.list_realms.js @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1_generated_RealmsService_ListRealms_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name, in the following form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, server + * will pick an appropriate default. Server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1.ListRealmsResponse.next_page_token] to + * determine if there are more realms left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function listRealms() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listRealmsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listRealms(); + // [END gameservices_v1_generated_RealmsService_ListRealms_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.preview_realm_update.js b/generated,README.md/generated/v1/realms_service.preview_realm_update.js new file mode 100644 index 0000000000..e0d48f2206 --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.preview_realm_update.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(realm, updateMask) { + // [START gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The realm to be updated. + * Only fields specified in update_mask are updated. + */ + // const realm = '' + /** + * Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function previewRealmUpdate() { + // Construct request + const request = { + realm, + updateMask, + }; + + // Run request + const response = await gamingClient.previewRealmUpdate(request); + console.log(response); + } + + previewRealmUpdate(); + // [END gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1/realms_service.update_realm.js b/generated,README.md/generated/v1/realms_service.update_realm.js new file mode 100644 index 0000000000..e6d6bae74d --- /dev/null +++ b/generated,README.md/generated/v1/realms_service.update_realm.js @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(realm, updateMask) { + // [START gameservices_v1_generated_RealmsService_UpdateRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The realm to be updated. + * Only fields specified in update_mask are updated. + */ + // const realm = '' + /** + * Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function updateRealm() { + // Construct request + const request = { + realm, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateRealm(); + // [END gameservices_v1_generated_RealmsService_UpdateRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js new file mode 100644 index 0000000000..2ee63e6712 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, gameServerClusterId, gameServerCluster) { + // [START gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}/realms/{realm-id}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server cluster resource to be created. + */ + // const gameServerClusterId = 'abc123' + /** + * Required. The game server cluster resource to be created. + */ + // const gameServerCluster = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function createGameServerCluster() { + // Construct request + const request = { + parent, + gameServerClusterId, + gameServerCluster, + }; + + // Run request + const [operation] = await gamingClient.createGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js new file mode 100644 index 0000000000..082e32d1c8 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to delete. Uses the form: + * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function deleteGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js new file mode 100644 index 0000000000..1d3b65cd00 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to retrieve. Uses the form: + * `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function getGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerCluster(request); + console.log(response); + } + + getGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js new file mode 100644 index 0000000000..39fdeb1a32 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * "projects/{project}/locations/{location}/realms/{realm}". + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, the + * server will pick an appropriate default. The server may return fewer items + * than requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token] + * to determine if there are more GameServerClusters left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function listGameServerClusters() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerClustersAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerClusters(); + // [END gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js new file mode 100644 index 0000000000..b0db2425fb --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, gameServerClusterId, gameServerCluster) { + // [START gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server cluster resource to be created. + */ + // const gameServerClusterId = 'abc123' + /** + * Required. The game server cluster resource to be created. + */ + // const gameServerCluster = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewCreateGameServerCluster() { + // Construct request + const request = { + parent, + gameServerClusterId, + gameServerCluster, + }; + + // Run request + const response = await gamingClient.previewCreateGameServerCluster(request); + console.log(response); + } + + previewCreateGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js new file mode 100644 index 0000000000..343ce92397 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server cluster to delete. Uses the form: + * `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. + */ + // const name = 'abc123' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewDeleteGameServerCluster() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.previewDeleteGameServerCluster(request); + console.log(response); + } + + previewDeleteGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js new file mode 100644 index 0000000000..4b8c891903 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerCluster, updateMask) { + // [START gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server cluster to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerCluster = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function previewUpdateGameServerCluster() { + // Construct request + const request = { + gameServerCluster, + updateMask, + }; + + // Run request + const response = await gamingClient.previewUpdateGameServerCluster(request); + console.log(response); + } + + previewUpdateGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js new file mode 100644 index 0000000000..f876ea73c3 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerCluster, updateMask) { + // [START gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server cluster to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerCluster = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerClustersServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerClustersServiceClient(); + + async function updateGameServerCluster() { + // Construct request + const request = { + gameServerCluster, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerCluster(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerCluster(); + // [END gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js new file mode 100644 index 0000000000..a1f8b4aadf --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, configId, gameServerConfig) { + // [START gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server config resource to be created. + */ + // const configId = 'abc123' + /** + * Required. The game server config resource to be created. + */ + // const gameServerConfig = '' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function createGameServerConfig() { + // Construct request + const request = { + parent, + configId, + gameServerConfig, + }; + + // Run request + const [operation] = await gamingClient.createGameServerConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerConfig(); + // [END gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js new file mode 100644 index 0000000000..cf3e70ff6e --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server config to delete. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function deleteGameServerConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerConfig(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerConfig(); + // [END gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js new file mode 100644 index 0000000000..3d6415c031 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server config to retrieve. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function getGameServerConfig() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerConfig(request); + console.log(response); + } + + getGameServerConfig(); + // [END gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js new file mode 100644 index 0000000000..fa8c9cc0d2 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, server + * will pick an appropriate default. Server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token] + * to determine if there are more GameServerConfigs left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous list request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {GameServerConfigsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerConfigsServiceClient(); + + async function listGameServerConfigs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerConfigsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerConfigs(); + // [END gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js new file mode 100644 index 0000000000..bace431d64 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, deploymentId, gameServerDeployment) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the game server delpoyment resource to be created. + */ + // const deploymentId = 'abc123' + /** + * Required. The game server delpoyment resource to be created. + */ + // const gameServerDeployment = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function createGameServerDeployment() { + // Construct request + const request = { + parent, + deploymentId, + gameServerDeployment, + }; + + // Run request + const [operation] = await gamingClient.createGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + createGameServerDeployment(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js new file mode 100644 index 0000000000..ecc1cad27d --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to delete. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function deleteGameServerDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteGameServerDeployment(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js new file mode 100644 index 0000000000..f869cfb4f9 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment. Uses the form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function fetchDeploymentState() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.fetchDeploymentState(request); + console.log(response); + } + + fetchDeploymentState(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js new file mode 100644 index 0000000000..d50635d386 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to retrieve. Uses the + * form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeployment() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerDeployment(request); + console.log(response); + } + + getGameServerDeployment(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js new file mode 100644 index 0000000000..3eb5c2cc60 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the game server delpoyment to retrieve. Uses the + * form: + * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function getGameServerDeploymentRollout() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getGameServerDeploymentRollout(request); + console.log(response); + } + + getGameServerDeploymentRollout(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js new file mode 100644 index 0000000000..5b63f101ec --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, the + * server will pick an appropriate default. The server may return fewer items + * than requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token] + * to determine if there are more GameServerDeployments left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function listGameServerDeployments() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listGameServerDeploymentsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listGameServerDeployments(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js new file mode 100644 index 0000000000..234c777e01 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(rollout) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server deployment rollout to be updated. + * Only fields specified in update_mask are updated. + */ + // const rollout = '' + /** + * Optional. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. Defaults to the + * immediately after the proposed rollout completes. + */ + // const previewTime = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function previewGameServerDeploymentRollout() { + // Construct request + const request = { + rollout, + }; + + // Run request + const response = await gamingClient.previewGameServerDeploymentRollout( + request + ); + console.log(response); + } + + previewGameServerDeploymentRollout(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js new file mode 100644 index 0000000000..46ac791964 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(gameServerDeployment, updateMask) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server delpoyment to be updated. + * Only fields specified in update_mask are updated. + */ + // const gameServerDeployment = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function updateGameServerDeployment() { + // Construct request + const request = { + gameServerDeployment, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerDeployment(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerDeployment(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js new file mode 100644 index 0000000000..3599b1b373 --- /dev/null +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(rollout, updateMask) { + // [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The game server delpoyment rollout to be updated. + * Only fields specified in update_mask are updated. + */ + // const rollout = '' + /** + * Required. Mask of fields to update. At least one path must be supplied in + * this field. For the `FieldMask` definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {GameServerDeploymentsServiceClient} = + require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new GameServerDeploymentsServiceClient(); + + async function updateGameServerDeploymentRollout() { + // Construct request + const request = { + rollout, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateGameServerDeploymentRollout( + request + ); + const [response] = await operation.promise(); + console.log(response); + } + + updateGameServerDeploymentRollout(); + // [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.create_realm.js b/generated,README.md/generated/v1beta/realms_service.create_realm.js new file mode 100644 index 0000000000..7f57922ea2 --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.create_realm.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent, realmId, realm) { + // [START gameservices_v1beta_generated_RealmsService_CreateRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Required. The ID of the realm resource to be created. + */ + // const realmId = 'abc123' + /** + * Required. The realm resource to be created. + */ + // const realm = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function createRealm() { + // Construct request + const request = { + parent, + realmId, + realm, + }; + + // Run request + const [operation] = await gamingClient.createRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + createRealm(); + // [END gameservices_v1beta_generated_RealmsService_CreateRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.delete_realm.js b/generated,README.md/generated/v1beta/realms_service.delete_realm.js new file mode 100644 index 0000000000..6fac763ee6 --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.delete_realm.js @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_RealmsService_DeleteRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the realm to delete. Uses the form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function deleteRealm() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await gamingClient.deleteRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + deleteRealm(); + // [END gameservices_v1beta_generated_RealmsService_DeleteRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.get_realm.js b/generated,README.md/generated/v1beta/realms_service.get_realm.js new file mode 100644 index 0000000000..c730f3260c --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.get_realm.js @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(name) { + // [START gameservices_v1beta_generated_RealmsService_GetRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the realm to retrieve. Uses the form: + * `projects/{project}/locations/{location}/realms/{realm}`. + */ + // const name = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function getRealm() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await gamingClient.getRealm(request); + console.log(response); + } + + getRealm(); + // [END gameservices_v1beta_generated_RealmsService_GetRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.list_realms.js b/generated,README.md/generated/v1beta/realms_service.list_realms.js new file mode 100644 index 0000000000..bd56b4deff --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.list_realms.js @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(parent) { + // [START gameservices_v1beta_generated_RealmsService_ListRealms_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The parent resource name. Uses the form: + * `projects/{project}/locations/{location}`. + */ + // const parent = 'abc123' + /** + * Optional. The maximum number of items to return. If unspecified, server + * will pick an appropriate default. Server may return fewer items than + * requested. A caller should only rely on response's + * [next_page_token][google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token] + * to determine if there are more realms left to be queried. + */ + // const pageSize = 1234 + /** + * Optional. The next_page_token value returned from a previous List request, + * if any. + */ + // const pageToken = 'abc123' + /** + * Optional. The filter to apply to list results. + */ + // const filter = 'abc123' + /** + * Optional. Specifies the ordering of results following syntax at + * https://cloud.google.com/apis/design/design_patterns#sorting_order. + */ + // const orderBy = 'abc123' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function listRealms() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await gamingClient.listRealmsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listRealms(); + // [END gameservices_v1beta_generated_RealmsService_ListRealms_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js new file mode 100644 index 0000000000..1958e72b10 --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(realm, updateMask) { + // [START gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The realm to be updated. + * Only fields specified in update_mask are updated. + */ + // const realm = '' + /** + * Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + /** + * Optional. The target timestamp to compute the preview. + */ + // const previewTime = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function previewRealmUpdate() { + // Construct request + const request = { + realm, + updateMask, + }; + + // Run request + const response = await gamingClient.previewRealmUpdate(request); + console.log(response); + } + + previewRealmUpdate(); + // [END gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/generated/v1beta/realms_service.update_realm.js b/generated,README.md/generated/v1beta/realms_service.update_realm.js new file mode 100644 index 0000000000..cbcceb69a6 --- /dev/null +++ b/generated,README.md/generated/v1beta/realms_service.update_realm.js @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +function main(realm, updateMask) { + // [START gameservices_v1beta_generated_RealmsService_UpdateRealm_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The realm to be updated. + * Only fields specified in update_mask are updated. + */ + // const realm = '' + /** + * Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https: + * //developers.google.com/protocol-buffers + * // /docs/reference/google.protobuf#fieldmask + */ + // const updateMask = '' + + // Imports the Gaming library + const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; + + // Instantiates a client + const gamingClient = new RealmsServiceClient(); + + async function updateRealm() { + // Construct request + const request = { + realm, + updateMask, + }; + + // Run request + const [operation] = await gamingClient.updateRealm(request); + const [response] = await operation.promise(); + console.log(response); + } + + updateRealm(); + // [END gameservices_v1beta_generated_RealmsService_UpdateRealm_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 2ea3f59a0b..589bce6b6a 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=8" + "node": ">=10" }, "files": [ "*.js" From e56afbe3fc85a9d6dc5572ea1f7f9589783aa8d2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 11 Nov 2021 14:46:13 -0800 Subject: [PATCH 48/60] docs(samples): add example tags to generated samples (#229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(samples): add example tags to generated samples PiperOrigin-RevId: 408439482 Source-Link: https://github.com/googleapis/googleapis/commit/b9f61843dc80c7c285fc34fd3a40aae55082c2b9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/eb888bc214efc7bf43bf4634b470254565a659a5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...rver_clusters_service.create_game_server_cluster.js | 6 +++--- ...rver_clusters_service.delete_game_server_cluster.js | 4 ++-- ..._server_clusters_service.get_game_server_cluster.js | 6 +++--- ...erver_clusters_service.list_game_server_clusters.js | 8 ++++---- ...sters_service.preview_create_game_server_cluster.js | 10 +++++----- ...sters_service.preview_delete_game_server_cluster.js | 6 +++--- ...sters_service.preview_update_game_server_cluster.js | 10 +++++----- ...rver_clusters_service.update_game_server_cluster.js | 8 ++++---- ...server_configs_service.create_game_server_config.js | 6 +++--- ...server_configs_service.delete_game_server_config.js | 4 ++-- ...me_server_configs_service.get_game_server_config.js | 4 ++-- ..._server_configs_service.list_game_server_configs.js | 6 +++--- ...eployments_service.create_game_server_deployment.js | 6 +++--- ...eployments_service.delete_game_server_deployment.js | 4 ++-- ...erver_deployments_service.fetch_deployment_state.js | 4 ++-- ...r_deployments_service.get_game_server_deployment.js | 4 ++-- ...ments_service.get_game_server_deployment_rollout.js | 4 ++-- ...deployments_service.list_game_server_deployments.js | 6 +++--- ...s_service.preview_game_server_deployment_rollout.js | 10 +++++----- ...eployments_service.update_game_server_deployment.js | 8 ++++---- ...ts_service.update_game_server_deployment_rollout.js | 8 ++++---- .../generated/v1/realms_service.create_realm.js | 6 +++--- .../generated/v1/realms_service.delete_realm.js | 4 ++-- .../generated/v1/realms_service.get_realm.js | 4 ++-- .../generated/v1/realms_service.list_realms.js | 6 +++--- .../v1/realms_service.preview_realm_update.js | 10 +++++----- .../generated/v1/realms_service.update_realm.js | 8 ++++---- ...rver_clusters_service.create_game_server_cluster.js | 6 +++--- ...rver_clusters_service.delete_game_server_cluster.js | 4 ++-- ..._server_clusters_service.get_game_server_cluster.js | 4 ++-- ...erver_clusters_service.list_game_server_clusters.js | 6 +++--- ...sters_service.preview_create_game_server_cluster.js | 8 ++++---- ...sters_service.preview_delete_game_server_cluster.js | 6 +++--- ...sters_service.preview_update_game_server_cluster.js | 10 +++++----- ...rver_clusters_service.update_game_server_cluster.js | 8 ++++---- ...server_configs_service.create_game_server_config.js | 6 +++--- ...server_configs_service.delete_game_server_config.js | 4 ++-- ...me_server_configs_service.get_game_server_config.js | 4 ++-- ..._server_configs_service.list_game_server_configs.js | 6 +++--- ...eployments_service.create_game_server_deployment.js | 6 +++--- ...eployments_service.delete_game_server_deployment.js | 4 ++-- ...erver_deployments_service.fetch_deployment_state.js | 4 ++-- ...r_deployments_service.get_game_server_deployment.js | 4 ++-- ...ments_service.get_game_server_deployment_rollout.js | 4 ++-- ...deployments_service.list_game_server_deployments.js | 6 +++--- ...s_service.preview_game_server_deployment_rollout.js | 10 +++++----- ...eployments_service.update_game_server_deployment.js | 8 ++++---- ...ts_service.update_game_server_deployment_rollout.js | 8 ++++---- .../generated/v1beta/realms_service.create_realm.js | 6 +++--- .../generated/v1beta/realms_service.delete_realm.js | 4 ++-- .../generated/v1beta/realms_service.get_realm.js | 4 ++-- .../generated/v1beta/realms_service.list_realms.js | 6 +++--- .../v1beta/realms_service.preview_realm_update.js | 10 +++++----- .../generated/v1beta/realms_service.update_realm.js | 8 ++++---- 54 files changed, 167 insertions(+), 167 deletions(-) diff --git a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js index 86db5d71b1..9d81d1f4f3 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js @@ -31,7 +31,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { /** * Required. The game server cluster resource to be created. */ - // const gameServerCluster = '' + // const gameServerCluster = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -40,7 +40,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function createGameServerCluster() { + async function callCreateGameServerCluster() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { console.log(response); } - createGameServerCluster(); + callCreateGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js index fb1fc07618..08e9c16177 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function deleteGameServerCluster() { + async function callDeleteGameServerCluster() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerCluster(); + callDeleteGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js index c74cc5ccc7..d5b0d7f1b7 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js @@ -32,7 +32,7 @@ function main(name) { * value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does * not return the `cluster_state` field. */ - // const view = '' + // const view = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -41,7 +41,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function getGameServerCluster() { + async function callGetGameServerCluster() { // Construct request const request = { name, @@ -52,7 +52,7 @@ function main(name) { console.log(response); } - getGameServerCluster(); + callGetGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js index 4d78ff56fb..a600d19ff6 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the server * will pick an appropriate default. The server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token] to + * next_page_token google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token to * determine if there are more GameServerClusters left to be queried. */ // const pageSize = 1234 @@ -53,7 +53,7 @@ function main(parent) { * value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does * not return the `cluster_state` field. */ - // const view = '' + // const view = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -62,7 +62,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function listGameServerClusters() { + async function callListGameServerClusters() { // Construct request const request = { parent, @@ -75,7 +75,7 @@ function main(parent) { } } - listGameServerClusters(); + callListGameServerClusters(); // [END gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js index 43871a8423..a316e3059f 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js @@ -31,16 +31,16 @@ function main(parent, gameServerClusterId, gameServerCluster) { /** * Required. The game server cluster resource to be created. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} /** * Optional. This field is deprecated, preview will always return * KubernetesClusterState. */ - // const view = '' + // const view = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -49,7 +49,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewCreateGameServerCluster() { + async function callPreviewCreateGameServerCluster() { // Construct request const request = { parent, @@ -62,7 +62,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { console.log(response); } - previewCreateGameServerCluster(); + callPreviewCreateGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js index 00e7ddfb63..f969af575b 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -27,7 +27,7 @@ function main(name) { /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -36,7 +36,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewDeleteGameServerCluster() { + async function callPreviewDeleteGameServerCluster() { // Construct request const request = { name, @@ -47,7 +47,7 @@ function main(name) { console.log(response); } - previewDeleteGameServerCluster(); + callPreviewDeleteGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js index 5393942098..c851f46d71 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js @@ -23,17 +23,17 @@ function main(gameServerCluster, updateMask) { * Required. The game server cluster to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -42,7 +42,7 @@ function main(gameServerCluster, updateMask) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewUpdateGameServerCluster() { + async function callPreviewUpdateGameServerCluster() { // Construct request const request = { gameServerCluster, @@ -54,7 +54,7 @@ function main(gameServerCluster, updateMask) { console.log(response); } - previewUpdateGameServerCluster(); + callPreviewUpdateGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js index 839dcdb280..134116d2f8 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js @@ -23,13 +23,13 @@ function main(gameServerCluster, updateMask) { * Required. The game server cluster to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -38,7 +38,7 @@ function main(gameServerCluster, updateMask) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function updateGameServerCluster() { + async function callUpdateGameServerCluster() { // Construct request const request = { gameServerCluster, @@ -51,7 +51,7 @@ function main(gameServerCluster, updateMask) { console.log(response); } - updateGameServerCluster(); + callUpdateGameServerCluster(); // [END gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js index 1bba873787..b00270a8bd 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js @@ -31,7 +31,7 @@ function main(parent, configId, gameServerConfig) { /** * Required. The game server config resource to be created. */ - // const gameServerConfig = '' + // const gameServerConfig = {} // Imports the Gaming library const {GameServerConfigsServiceClient} = @@ -40,7 +40,7 @@ function main(parent, configId, gameServerConfig) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function createGameServerConfig() { + async function callCreateGameServerConfig() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, configId, gameServerConfig) { console.log(response); } - createGameServerConfig(); + callCreateGameServerConfig(); // [END gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async] } diff --git a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js index 338f504ec0..e1c6fa0eaf 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function deleteGameServerConfig() { + async function callDeleteGameServerConfig() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerConfig(); + callDeleteGameServerConfig(); // [END gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async] } diff --git a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js index f49e46065d..4fd433c6a1 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function getGameServerConfig() { + async function callGetGameServerConfig() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getGameServerConfig(); + callGetGameServerConfig(); // [END gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async] } diff --git a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js index 8cd6207c2f..1b98b61f53 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token] to + * next_page_token google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token to * determine if there are more GameServerConfigs left to be queried. */ // const pageSize = 1234 @@ -53,7 +53,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function listGameServerConfigs() { + async function callListGameServerConfigs() { // Construct request const request = { parent, @@ -66,7 +66,7 @@ function main(parent) { } } - listGameServerConfigs(); + callListGameServerConfigs(); // [END gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js index 49404fc822..b84a8301a8 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js @@ -31,7 +31,7 @@ function main(parent, deploymentId, gameServerDeployment) { /** * Required. The game server delpoyment resource to be created. */ - // const gameServerDeployment = '' + // const gameServerDeployment = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -40,7 +40,7 @@ function main(parent, deploymentId, gameServerDeployment) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function createGameServerDeployment() { + async function callCreateGameServerDeployment() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, deploymentId, gameServerDeployment) { console.log(response); } - createGameServerDeployment(); + callCreateGameServerDeployment(); // [END gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js index 7490fae313..c8759d5f39 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function deleteGameServerDeployment() { + async function callDeleteGameServerDeployment() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerDeployment(); + callDeleteGameServerDeployment(); // [END gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js index bbc19ee785..8dcd0c7b8f 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function fetchDeploymentState() { + async function callFetchDeploymentState() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - fetchDeploymentState(); + callFetchDeploymentState(); // [END gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js index 3137207f20..eb72b2fce7 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function getGameServerDeployment() { + async function callGetGameServerDeployment() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getGameServerDeployment(); + callGetGameServerDeployment(); // [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js index 596aeeb55d..96a1b1fe02 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function getGameServerDeploymentRollout() { + async function callGetGameServerDeploymentRollout() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getGameServerDeploymentRollout(); + callGetGameServerDeploymentRollout(); // [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js index 122ff09ded..7902b09806 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the server * will pick an appropriate default. The server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1.ListGameServerDeploymentsResponse.next_page_token] to + * next_page_token google.cloud.gaming.v1.ListGameServerDeploymentsResponse.next_page_token to * determine if there are more GameServerDeployments left to be queried. */ // const pageSize = 1234 @@ -54,7 +54,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function listGameServerDeployments() { + async function callListGameServerDeployments() { // Construct request const request = { parent, @@ -67,7 +67,7 @@ function main(parent) { } } - listGameServerDeployments(); + callListGameServerDeployments(); // [END gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js index f17b9bf4a0..8aa76ba565 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -23,18 +23,18 @@ function main(rollout) { * Required. The game server deployment rollout to be updated. * Only fields specified in update_mask are updated. */ - // const rollout = '' + // const rollout = {} /** * Optional. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. Defaults to the immediately * after the proposed rollout completes. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -43,7 +43,7 @@ function main(rollout) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function previewGameServerDeploymentRollout() { + async function callPreviewGameServerDeploymentRollout() { // Construct request const request = { rollout, @@ -56,7 +56,7 @@ function main(rollout) { console.log(response); } - previewGameServerDeploymentRollout(); + callPreviewGameServerDeploymentRollout(); // [END gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js index 4e9a5482e8..0c7e0135a5 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js @@ -23,13 +23,13 @@ function main(gameServerDeployment, updateMask) { * Required. The game server delpoyment to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerDeployment = '' + // const gameServerDeployment = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -38,7 +38,7 @@ function main(gameServerDeployment, updateMask) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function updateGameServerDeployment() { + async function callUpdateGameServerDeployment() { // Construct request const request = { gameServerDeployment, @@ -51,7 +51,7 @@ function main(gameServerDeployment, updateMask) { console.log(response); } - updateGameServerDeployment(); + callUpdateGameServerDeployment(); // [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js index 44d9a90797..63687b493e 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -23,13 +23,13 @@ function main(rollout, updateMask) { * Required. The game server delpoyment rollout to be updated. * Only fields specified in update_mask are updated. */ - // const rollout = '' + // const rollout = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -38,7 +38,7 @@ function main(rollout, updateMask) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function updateGameServerDeploymentRollout() { + async function callUpdateGameServerDeploymentRollout() { // Construct request const request = { rollout, @@ -53,7 +53,7 @@ function main(rollout, updateMask) { console.log(response); } - updateGameServerDeploymentRollout(); + callUpdateGameServerDeploymentRollout(); // [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1/realms_service.create_realm.js b/generated,README.md/generated/v1/realms_service.create_realm.js index 1cf5a86c92..3eb57e7c10 100644 --- a/generated,README.md/generated/v1/realms_service.create_realm.js +++ b/generated,README.md/generated/v1/realms_service.create_realm.js @@ -31,7 +31,7 @@ function main(parent, realmId, realm) { /** * Required. The realm resource to be created. */ - // const realm = '' + // const realm = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; @@ -39,7 +39,7 @@ function main(parent, realmId, realm) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function createRealm() { + async function callCreateRealm() { // Construct request const request = { parent, @@ -53,7 +53,7 @@ function main(parent, realmId, realm) { console.log(response); } - createRealm(); + callCreateRealm(); // [END gameservices_v1_generated_RealmsService_CreateRealm_async] } diff --git a/generated,README.md/generated/v1/realms_service.delete_realm.js b/generated,README.md/generated/v1/realms_service.delete_realm.js index dcfcd99bf3..9ae7732eae 100644 --- a/generated,README.md/generated/v1/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1/realms_service.delete_realm.js @@ -31,7 +31,7 @@ function main(name) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function deleteRealm() { + async function callDeleteRealm() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - deleteRealm(); + callDeleteRealm(); // [END gameservices_v1_generated_RealmsService_DeleteRealm_async] } diff --git a/generated,README.md/generated/v1/realms_service.get_realm.js b/generated,README.md/generated/v1/realms_service.get_realm.js index 9858e1d77a..4e72bd258c 100644 --- a/generated,README.md/generated/v1/realms_service.get_realm.js +++ b/generated,README.md/generated/v1/realms_service.get_realm.js @@ -31,7 +31,7 @@ function main(name) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function getRealm() { + async function callGetRealm() { // Construct request const request = { name, @@ -42,7 +42,7 @@ function main(name) { console.log(response); } - getRealm(); + callGetRealm(); // [END gameservices_v1_generated_RealmsService_GetRealm_async] } diff --git a/generated,README.md/generated/v1/realms_service.list_realms.js b/generated,README.md/generated/v1/realms_service.list_realms.js index c78d60d790..94b606f23b 100644 --- a/generated,README.md/generated/v1/realms_service.list_realms.js +++ b/generated,README.md/generated/v1/realms_service.list_realms.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1.ListRealmsResponse.next_page_token] to + * next_page_token google.cloud.gaming.v1.ListRealmsResponse.next_page_token to * determine if there are more realms left to be queried. */ // const pageSize = 1234 @@ -53,7 +53,7 @@ function main(parent) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function listRealms() { + async function callListRealms() { // Construct request const request = { parent, @@ -66,7 +66,7 @@ function main(parent) { } } - listRealms(); + callListRealms(); // [END gameservices_v1_generated_RealmsService_ListRealms_async] } diff --git a/generated,README.md/generated/v1/realms_service.preview_realm_update.js b/generated,README.md/generated/v1/realms_service.preview_realm_update.js index e0d48f2206..6536851d12 100644 --- a/generated,README.md/generated/v1/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1/realms_service.preview_realm_update.js @@ -23,17 +23,17 @@ function main(realm, updateMask) { * Required. The realm to be updated. * Only fields specified in update_mask are updated. */ - // const realm = '' + // const realm = {} /** * Required. The update mask applies to the resource. For the `FieldMask` * definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; @@ -41,7 +41,7 @@ function main(realm, updateMask) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function previewRealmUpdate() { + async function callPreviewRealmUpdate() { // Construct request const request = { realm, @@ -53,7 +53,7 @@ function main(realm, updateMask) { console.log(response); } - previewRealmUpdate(); + callPreviewRealmUpdate(); // [END gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async] } diff --git a/generated,README.md/generated/v1/realms_service.update_realm.js b/generated,README.md/generated/v1/realms_service.update_realm.js index e6d6bae74d..e64466e863 100644 --- a/generated,README.md/generated/v1/realms_service.update_realm.js +++ b/generated,README.md/generated/v1/realms_service.update_realm.js @@ -23,13 +23,13 @@ function main(realm, updateMask) { * Required. The realm to be updated. * Only fields specified in update_mask are updated. */ - // const realm = '' + // const realm = {} /** * Required. The update mask applies to the resource. For the `FieldMask` * definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1; @@ -37,7 +37,7 @@ function main(realm, updateMask) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function updateRealm() { + async function callUpdateRealm() { // Construct request const request = { realm, @@ -50,7 +50,7 @@ function main(realm, updateMask) { console.log(response); } - updateRealm(); + callUpdateRealm(); // [END gameservices_v1_generated_RealmsService_UpdateRealm_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js index 2ee63e6712..fc106621cc 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js @@ -31,7 +31,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { /** * Required. The game server cluster resource to be created. */ - // const gameServerCluster = '' + // const gameServerCluster = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -40,7 +40,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function createGameServerCluster() { + async function callCreateGameServerCluster() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { console.log(response); } - createGameServerCluster(); + callCreateGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js index 082e32d1c8..a3b81d0822 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function deleteGameServerCluster() { + async function callDeleteGameServerCluster() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerCluster(); + callDeleteGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js index 1d3b65cd00..6b988fcad6 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function getGameServerCluster() { + async function callGetGameServerCluster() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getGameServerCluster(); + callGetGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js index 39fdeb1a32..58f4b6a6fa 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the * server will pick an appropriate default. The server may return fewer items * than requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token] + * next_page_token google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token * to determine if there are more GameServerClusters left to be queried. */ // const pageSize = 1234 @@ -54,7 +54,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function listGameServerClusters() { + async function callListGameServerClusters() { // Construct request const request = { parent, @@ -67,7 +67,7 @@ function main(parent) { } } - listGameServerClusters(); + callListGameServerClusters(); // [END gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js index b0db2425fb..5b1230bcc6 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js @@ -31,11 +31,11 @@ function main(parent, gameServerClusterId, gameServerCluster) { /** * Required. The game server cluster resource to be created. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -44,7 +44,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewCreateGameServerCluster() { + async function callPreviewCreateGameServerCluster() { // Construct request const request = { parent, @@ -57,7 +57,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { console.log(response); } - previewCreateGameServerCluster(); + callPreviewCreateGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js index 343ce92397..32fa469fcd 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -27,7 +27,7 @@ function main(name) { /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -36,7 +36,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewDeleteGameServerCluster() { + async function callPreviewDeleteGameServerCluster() { // Construct request const request = { name, @@ -47,7 +47,7 @@ function main(name) { console.log(response); } - previewDeleteGameServerCluster(); + callPreviewDeleteGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js index 4b8c891903..46a3436daf 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js @@ -23,7 +23,7 @@ function main(gameServerCluster, updateMask) { * Required. The game server cluster to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see @@ -31,11 +31,11 @@ function main(gameServerCluster, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -44,7 +44,7 @@ function main(gameServerCluster, updateMask) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function previewUpdateGameServerCluster() { + async function callPreviewUpdateGameServerCluster() { // Construct request const request = { gameServerCluster, @@ -56,7 +56,7 @@ function main(gameServerCluster, updateMask) { console.log(response); } - previewUpdateGameServerCluster(); + callPreviewUpdateGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js index f876ea73c3..c1b499f9ad 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js @@ -23,7 +23,7 @@ function main(gameServerCluster, updateMask) { * Required. The game server cluster to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerCluster = '' + // const gameServerCluster = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see @@ -31,7 +31,7 @@ function main(gameServerCluster, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerClustersServiceClient} = @@ -40,7 +40,7 @@ function main(gameServerCluster, updateMask) { // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); - async function updateGameServerCluster() { + async function callUpdateGameServerCluster() { // Construct request const request = { gameServerCluster, @@ -53,7 +53,7 @@ function main(gameServerCluster, updateMask) { console.log(response); } - updateGameServerCluster(); + callUpdateGameServerCluster(); // [END gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async] } diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js index a1f8b4aadf..c2d07eab3e 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js @@ -31,7 +31,7 @@ function main(parent, configId, gameServerConfig) { /** * Required. The game server config resource to be created. */ - // const gameServerConfig = '' + // const gameServerConfig = {} // Imports the Gaming library const {GameServerConfigsServiceClient} = @@ -40,7 +40,7 @@ function main(parent, configId, gameServerConfig) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function createGameServerConfig() { + async function callCreateGameServerConfig() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, configId, gameServerConfig) { console.log(response); } - createGameServerConfig(); + callCreateGameServerConfig(); // [END gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async] } diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js index cf3e70ff6e..542e3ae20a 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function deleteGameServerConfig() { + async function callDeleteGameServerConfig() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerConfig(); + callDeleteGameServerConfig(); // [END gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async] } diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js index 3d6415c031..a1c3286ffc 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function getGameServerConfig() { + async function callGetGameServerConfig() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getGameServerConfig(); + callGetGameServerConfig(); // [END gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async] } diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js index fa8c9cc0d2..c89d1e5ad2 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token] + * next_page_token google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token * to determine if there are more GameServerConfigs left to be queried. */ // const pageSize = 1234 @@ -54,7 +54,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); - async function listGameServerConfigs() { + async function callListGameServerConfigs() { // Construct request const request = { parent, @@ -67,7 +67,7 @@ function main(parent) { } } - listGameServerConfigs(); + callListGameServerConfigs(); // [END gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js index bace431d64..c59f86509a 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js @@ -31,7 +31,7 @@ function main(parent, deploymentId, gameServerDeployment) { /** * Required. The game server delpoyment resource to be created. */ - // const gameServerDeployment = '' + // const gameServerDeployment = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -40,7 +40,7 @@ function main(parent, deploymentId, gameServerDeployment) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function createGameServerDeployment() { + async function callCreateGameServerDeployment() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent, deploymentId, gameServerDeployment) { console.log(response); } - createGameServerDeployment(); + callCreateGameServerDeployment(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js index ecc1cad27d..5657ae1399 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function deleteGameServerDeployment() { + async function callDeleteGameServerDeployment() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteGameServerDeployment(); + callDeleteGameServerDeployment(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js index f869cfb4f9..d151b9148a 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function fetchDeploymentState() { + async function callFetchDeploymentState() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - fetchDeploymentState(); + callFetchDeploymentState(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js index d50635d386..610399c249 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function getGameServerDeployment() { + async function callGetGameServerDeployment() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getGameServerDeployment(); + callGetGameServerDeployment(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js index 3eb5c2cc60..6878f5d45b 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function getGameServerDeploymentRollout() { + async function callGetGameServerDeploymentRollout() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getGameServerDeploymentRollout(); + callGetGameServerDeploymentRollout(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js index 5b63f101ec..4a97f09dfa 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the * server will pick an appropriate default. The server may return fewer items * than requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token] + * next_page_token google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token * to determine if there are more GameServerDeployments left to be queried. */ // const pageSize = 1234 @@ -54,7 +54,7 @@ function main(parent) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function listGameServerDeployments() { + async function callListGameServerDeployments() { // Construct request const request = { parent, @@ -67,7 +67,7 @@ function main(parent) { } } - listGameServerDeployments(); + callListGameServerDeployments(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js index 234c777e01..46117d3c4e 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -23,7 +23,7 @@ function main(rollout) { * Required. The game server deployment rollout to be updated. * Only fields specified in update_mask are updated. */ - // const rollout = '' + // const rollout = {} /** * Optional. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see @@ -31,12 +31,12 @@ function main(rollout) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. Defaults to the * immediately after the proposed rollout completes. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -45,7 +45,7 @@ function main(rollout) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function previewGameServerDeploymentRollout() { + async function callPreviewGameServerDeploymentRollout() { // Construct request const request = { rollout, @@ -58,7 +58,7 @@ function main(rollout) { console.log(response); } - previewGameServerDeploymentRollout(); + callPreviewGameServerDeploymentRollout(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js index 46ac791964..51e0641a4a 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js @@ -23,7 +23,7 @@ function main(gameServerDeployment, updateMask) { * Required. The game server delpoyment to be updated. * Only fields specified in update_mask are updated. */ - // const gameServerDeployment = '' + // const gameServerDeployment = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see @@ -31,7 +31,7 @@ function main(gameServerDeployment, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -40,7 +40,7 @@ function main(gameServerDeployment, updateMask) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function updateGameServerDeployment() { + async function callUpdateGameServerDeployment() { // Construct request const request = { gameServerDeployment, @@ -53,7 +53,7 @@ function main(gameServerDeployment, updateMask) { console.log(response); } - updateGameServerDeployment(); + callUpdateGameServerDeployment(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js index 3599b1b373..d14ae6c62d 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -23,7 +23,7 @@ function main(rollout, updateMask) { * Required. The game server delpoyment rollout to be updated. * Only fields specified in update_mask are updated. */ - // const rollout = '' + // const rollout = {} /** * Required. Mask of fields to update. At least one path must be supplied in * this field. For the `FieldMask` definition, see @@ -31,7 +31,7 @@ function main(rollout, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {GameServerDeploymentsServiceClient} = @@ -40,7 +40,7 @@ function main(rollout, updateMask) { // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); - async function updateGameServerDeploymentRollout() { + async function callUpdateGameServerDeploymentRollout() { // Construct request const request = { rollout, @@ -55,7 +55,7 @@ function main(rollout, updateMask) { console.log(response); } - updateGameServerDeploymentRollout(); + callUpdateGameServerDeploymentRollout(); // [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.create_realm.js b/generated,README.md/generated/v1beta/realms_service.create_realm.js index 7f57922ea2..d68f803591 100644 --- a/generated,README.md/generated/v1beta/realms_service.create_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.create_realm.js @@ -31,7 +31,7 @@ function main(parent, realmId, realm) { /** * Required. The realm resource to be created. */ - // const realm = '' + // const realm = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; @@ -39,7 +39,7 @@ function main(parent, realmId, realm) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function createRealm() { + async function callCreateRealm() { // Construct request const request = { parent, @@ -53,7 +53,7 @@ function main(parent, realmId, realm) { console.log(response); } - createRealm(); + callCreateRealm(); // [END gameservices_v1beta_generated_RealmsService_CreateRealm_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.delete_realm.js b/generated,README.md/generated/v1beta/realms_service.delete_realm.js index 6fac763ee6..1dd3076b9d 100644 --- a/generated,README.md/generated/v1beta/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.delete_realm.js @@ -31,7 +31,7 @@ function main(name) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function deleteRealm() { + async function callDeleteRealm() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - deleteRealm(); + callDeleteRealm(); // [END gameservices_v1beta_generated_RealmsService_DeleteRealm_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.get_realm.js b/generated,README.md/generated/v1beta/realms_service.get_realm.js index c730f3260c..929ee21c41 100644 --- a/generated,README.md/generated/v1beta/realms_service.get_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.get_realm.js @@ -31,7 +31,7 @@ function main(name) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function getRealm() { + async function callGetRealm() { // Construct request const request = { name, @@ -42,7 +42,7 @@ function main(name) { console.log(response); } - getRealm(); + callGetRealm(); // [END gameservices_v1beta_generated_RealmsService_GetRealm_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.list_realms.js b/generated,README.md/generated/v1beta/realms_service.list_realms.js index bd56b4deff..c16b2e3664 100644 --- a/generated,README.md/generated/v1beta/realms_service.list_realms.js +++ b/generated,README.md/generated/v1beta/realms_service.list_realms.js @@ -28,7 +28,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * [next_page_token][google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token] + * next_page_token google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token * to determine if there are more realms left to be queried. */ // const pageSize = 1234 @@ -53,7 +53,7 @@ function main(parent) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function listRealms() { + async function callListRealms() { // Construct request const request = { parent, @@ -66,7 +66,7 @@ function main(parent) { } } - listRealms(); + callListRealms(); // [END gameservices_v1beta_generated_RealmsService_ListRealms_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js index 1958e72b10..ac5c2a8050 100644 --- a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js @@ -23,7 +23,7 @@ function main(realm, updateMask) { * Required. The realm to be updated. * Only fields specified in update_mask are updated. */ - // const realm = '' + // const realm = {} /** * Required. The update mask applies to the resource. For the `FieldMask` * definition, see @@ -31,11 +31,11 @@ function main(realm, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} /** * Optional. The target timestamp to compute the preview. */ - // const previewTime = '' + // const previewTime = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; @@ -43,7 +43,7 @@ function main(realm, updateMask) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function previewRealmUpdate() { + async function callPreviewRealmUpdate() { // Construct request const request = { realm, @@ -55,7 +55,7 @@ function main(realm, updateMask) { console.log(response); } - previewRealmUpdate(); + callPreviewRealmUpdate(); // [END gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async] } diff --git a/generated,README.md/generated/v1beta/realms_service.update_realm.js b/generated,README.md/generated/v1beta/realms_service.update_realm.js index cbcceb69a6..7efc58d669 100644 --- a/generated,README.md/generated/v1beta/realms_service.update_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.update_realm.js @@ -23,7 +23,7 @@ function main(realm, updateMask) { * Required. The realm to be updated. * Only fields specified in update_mask are updated. */ - // const realm = '' + // const realm = {} /** * Required. The update mask applies to the resource. For the `FieldMask` * definition, see @@ -31,7 +31,7 @@ function main(realm, updateMask) { * //developers.google.com/protocol-buffers * // /docs/reference/google.protobuf#fieldmask */ - // const updateMask = '' + // const updateMask = {} // Imports the Gaming library const {RealmsServiceClient} = require('@google-cloud/game-servers').v1beta; @@ -39,7 +39,7 @@ function main(realm, updateMask) { // Instantiates a client const gamingClient = new RealmsServiceClient(); - async function updateRealm() { + async function callUpdateRealm() { // Construct request const request = { realm, @@ -52,7 +52,7 @@ function main(realm, updateMask) { console.log(response); } - updateRealm(); + callUpdateRealm(); // [END gameservices_v1beta_generated_RealmsService_UpdateRealm_async] } From 6a7bcf39dc85a4df192b117397e727dd2496cfa1 Mon Sep 17 00:00:00 2001 From: Nicholas Cook Date: Thu, 18 Nov 2021 10:07:03 -0800 Subject: [PATCH 49/60] docs: add update samples (#230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add update samples * Address feedback * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- generated,README.md/README.md | 54 ++++++++ .../test/crud_deployment.test.js | 11 ++ .../test/list_clusters.test.js | 2 +- .../test/update_cluster_test.js | 115 ++++++++++++++++++ generated,README.md/test/update_realm_test.js | 70 +++++++++++ generated,README.md/update_cluster.js | 80 ++++++++++++ generated,README.md/update_deployment.js | 73 +++++++++++ generated,README.md/update_realm.js | 71 +++++++++++ 8 files changed, 475 insertions(+), 1 deletion(-) create mode 100644 generated,README.md/test/update_cluster_test.js create mode 100644 generated,README.md/test/update_realm_test.js create mode 100644 generated,README.md/update_cluster.js create mode 100644 generated,README.md/update_deployment.js create mode 100644 generated,README.md/update_realm.js diff --git a/generated,README.md/README.md b/generated,README.md/README.md index d1bb5f5f01..e328ce9123 100644 --- a/generated,README.md/README.md +++ b/generated,README.md/README.md @@ -30,6 +30,9 @@ * [List_deployments](#list_deployments) * [List_realms](#list_realms) * [Create Game Server Realm](#create-game-server-realm) + * [Update_cluster](#update_cluster) + * [Update_deployment](#update_deployment) + * [Update_realm](#update_realm) * [Update_rollout_default](#update_rollout_default) * [Update_rollout_override](#update_rollout_override) * [Update_rollout_remove_default](#update_rollout_remove_default) @@ -358,6 +361,57 @@ __Usage:__ +### Update_cluster + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/update_cluster.js` + + +----- + + + + +### Update_deployment + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_deployment.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_deployment.js,samples/README.md) + +__Usage:__ + + +`node samples/update_deployment.js` + + +----- + + + + +### Update_realm + +View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_realm.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-game-servers&page=editor&open_in_editor=samples/update_realm.js,samples/README.md) + +__Usage:__ + + +`node samples/update_realm.js` + + +----- + + + + ### Update_rollout_default View the [source code](https://github.com/googleapis/nodejs-game-servers/blob/main/samples/update_rollout_default.js). diff --git a/generated,README.md/test/crud_deployment.test.js b/generated,README.md/test/crud_deployment.test.js index 229c5c0f8e..5dd7218b30 100644 --- a/generated,README.md/test/crud_deployment.test.js +++ b/generated,README.md/test/crud_deployment.test.js @@ -45,11 +45,22 @@ describe('Game Server Deployment Test', () => { assert.match(create_output, /Deployment name:/); }); + it('should update a game server deployment', async () => { + const update_output = execSync( + `node update_deployment.js ${projectId} ${deploymentId}` + ); + assert.match(update_output, /Deployment updated:/); + }); + it('should get a game server deployment', async () => { const get_output = execSync( `node get_deployment.js ${projectId} ${deploymentId}` ); assert.match(get_output, /Deployment name:/); + assert.match( + get_output, + /Deployment description: My updated Game Server deployment/ + ); }); it('should list a game server deployment', async () => { diff --git a/generated,README.md/test/list_clusters.test.js b/generated,README.md/test/list_clusters.test.js index 419e138fb8..b32b7ed245 100644 --- a/generated,README.md/test/list_clusters.test.js +++ b/generated,README.md/test/list_clusters.test.js @@ -79,7 +79,7 @@ describe('Game Servers List Clusters Test', () => { await operation2.promise(); }); - it.only('should list Game Server clusters in a realm', async () => { + it('should list Game Server clusters in a realm', async () => { const projectId = await realmsClient.getProjectId(); const create_output = execSync( diff --git a/generated,README.md/test/update_cluster_test.js b/generated,README.md/test/update_cluster_test.js new file mode 100644 index 0000000000..7eadb4b428 --- /dev/null +++ b/generated,README.md/test/update_cluster_test.js @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const { + RealmsServiceClient, + GameServerClustersServiceClient, +} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; +const GKE_CLUSTER_NAME = + process.env.SAMPLE_CLUSTER_NAME || + 'projects/217093627905/locations/us-central1/clusters/gke-shared-default'; + +describe('Game Servers Update Cluster Test', () => { + const realmsClient = new RealmsServiceClient(); + const gameClustersClient = new GameServerClustersServiceClient(); + let realmId, gameClusterId, projectId; + + before(async () => { + await cleanup(); + + // Create a realm + projectId = await realmsClient.getProjectId(); + realmId = `update-realm-${uuid.v4()}`; + gameClusterId = `test-${uuid.v4()}`; + + const createRealmRequest = { + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Server realm', + }, + }; + + const [operation1] = await realmsClient.createRealm(createRealmRequest); + await operation1.promise(); + + // Create a cluster + const createClusterRequest = { + parent: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + gameServerClusterId: gameClusterId, + gameServerCluster: { + description: 'My Game Server Cluster', + connectionInfo: { + gkeClusterReference: { + // Provide full resource name of a Kubernetes Engine cluster + cluster: GKE_CLUSTER_NAME, + }, + namespace: 'default', + }, + }, + }; + + const [operation2] = await gameClustersClient.createGameServerCluster( + createClusterRequest + ); + await operation2.promise(); + }); + + it('should update a Game Server cluster in a realm', async () => { + const update_output = execSync( + `node update_cluster.js ${projectId} ${LOCATION} ${realmId} ${gameClusterId}` + ); + assert.match(update_output, /Cluster updated:/); + + const get_output = execSync( + `node get_cluster.js ${projectId} ${LOCATION} ${realmId} ${gameClusterId}` + ); + assert.match( + get_output, + /Cluster description: My updated Game Server Cluster/ + ); + }); + + after(async () => { + // Delete the Game Server cluster + const deleteClusterRequest = { + // Provide full resource name of a Game Server Realm + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}/gameServerClusters/${gameClusterId}`, + }; + const [operation1] = await gameClustersClient.deleteGameServerCluster( + deleteClusterRequest + ); + await operation1.promise(); + + // Delete the realm + const deleteRealmRequest = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation2] = await realmsClient.deleteRealm(deleteRealmRequest); + await operation2.promise(); + }); +}); diff --git a/generated,README.md/test/update_realm_test.js b/generated,README.md/test/update_realm_test.js new file mode 100644 index 0000000000..f55ae28291 --- /dev/null +++ b/generated,README.md/test/update_realm_test.js @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +const {assert} = require('chai'); +const cleanup = require('./clean.js'); +const {describe, it, before, after} = require('mocha'); +const {RealmsServiceClient} = require('@google-cloud/game-servers'); + +const cp = require('child_process'); +const uuid = require('uuid'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +const LOCATION = 'us-central1'; + +describe('Game Servers Update Realms Test', () => { + const client = new RealmsServiceClient(); + let realmId, projectId; + + before(async () => { + projectId = await client.getProjectId(); + + // Clean up any stray realms + await cleanup(); + + realmId = `test-${uuid.v4()}`; + + await client.createRealm({ + parent: `projects/${projectId}/locations/${LOCATION}`, + realmId: realmId, + realm: { + timeZone: 'US/Pacific', + description: 'Test Game Realm', + }, + }); + }); + + it('should update a realm', async () => { + const update_output = execSync( + `node update_realm.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(update_output, /Realm updated:/); + + const get_output = execSync( + `node get_realm.js ${projectId} ${LOCATION} ${realmId}` + ); + assert.match(get_output, /Realm description: My updated Game Server realm/); + }); + + after(async () => { + const request = { + name: `projects/${projectId}/locations/${LOCATION}/realms/${realmId}`, + }; + const [operation] = await client.deleteRealm(request); + await operation.promise(); + }); +}); diff --git a/generated,README.md/update_cluster.js b/generated,README.md/update_cluster.js new file mode 100644 index 0000000000..b07342fc39 --- /dev/null +++ b/generated,README.md/update_cluster.js @@ -0,0 +1,80 @@ +// Copyright 2021, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Update a Game Servers cluster. + * @param {string} projectId string project identifier + * @param {string} location Compute Engine region for the realm + * @param {string} realmId the realm to use + * @param {string} gameClusterId unique identifier for the Game Cluster + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID', + gameClusterId = 'GAME_CLUSTER_ID' +) { + // [START cloud_game_servers_cluster_update] + const { + GameServerClustersServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerClustersServiceClient(); + + async function updateGameServerCluster() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The ID of the realm of this cluster'; + // const gameClusterId = 'A unique ID for this Game Server Cluster'; + const request = { + // Provide full resource name of a Game Server Cluster + gameServerCluster: { + name: client.gameServerClusterPath( + projectId, + location, + realmId, + gameClusterId + ), + labels: { + 'label-key-1': 'label-value-1', + }, + description: 'My updated Game Server Cluster', + }, + updateMask: { + paths: ['labels', 'description'], + }, + }; + + const [operation] = await client.updateGameServerCluster(request); + const [result] = await operation.promise(); + + console.log(`Cluster updated: ${result.name}`); + } + + updateGameServerCluster(); + // [END cloud_game_servers_cluster_update] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/update_deployment.js b/generated,README.md/update_deployment.js new file mode 100644 index 0000000000..dde260eacf --- /dev/null +++ b/generated,README.md/update_deployment.js @@ -0,0 +1,73 @@ +// Copyright 2021, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Update a Game Servers Deployment. + * @param {string} projectId string project identifier + * @param {string} deploymentId unique identifier for the Game Server Deployment + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + deploymentId = 'DEPLOYMENT_ID' +) { + // [START cloud_game_servers_deployment_update] + const { + GameServerDeploymentsServiceClient, + } = require('@google-cloud/game-servers'); + + const client = new GameServerDeploymentsServiceClient(); + + async function updateGameServerDeployment() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const deploymentId = 'The unique ID for the Game Server Deployment'; + const request = { + gameServerDeployment: { + name: client.gameServerDeploymentPath( + projectId, + 'global', + deploymentId + ), + labels: { + 'label-key-1': 'label-value-1', + }, + description: 'My updated Game Server deployment', + }, + updateMask: { + paths: ['labels', 'description'], + }, + }; + + const [operation] = await client.updateGameServerDeployment(request); + const [result] = await operation.promise(); + + console.log(`Deployment updated: ${result.name}`); + } + + updateGameServerDeployment(); + + // [END cloud_game_servers_deployment_update] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); diff --git a/generated,README.md/update_realm.js b/generated,README.md/update_realm.js new file mode 100644 index 0000000000..ffdd19a817 --- /dev/null +++ b/generated,README.md/update_realm.js @@ -0,0 +1,71 @@ +// Copyright 2021, Google LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +'use strict'; + +/** + * Update a Game Servers realm. + * @param {string} projectId string project identifier. + * @param {string} location Compute Engine region. + * @param {string} realmId unique identifier for the realm + */ +async function main( + projectId = 'YOUR_PROJECT_ID', + location = 'LOCATION_ID', + realmId = 'REALM_ID' +) { + // [START cloud_game_servers_realm_update] + const {RealmsServiceClient} = require('@google-cloud/game-servers'); + + const client = new RealmsServiceClient(); + + async function updateRealm() { + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + // const projectId = 'Your Google Cloud Project ID'; + // const location = 'A Compute Engine region, e.g. "us-central1"'; + // const realmId = 'The unique identifier for the realm'; + const request = { + realm: { + name: client.realmPath(projectId, location, realmId), + labels: { + 'label-key-1': 'label-value-1', + }, + timeZone: 'US/Pacific', + description: 'My updated Game Server realm', + }, + updateMask: { + paths: ['labels', 'time_zone', 'description'], + }, + }; + + const [operation] = await client.updateRealm(request); + const results = await operation.promise(); + const [realm] = results; + + console.log(`Realm updated: ${realm.name}`); + } + + updateRealm(); + // [END cloud_game_servers_realm_update] +} + +main(...process.argv.slice(2)).catch(err => { + console.error(err.message); + process.exitCode = 1; +}); +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); From 2d1a6884a60898fd38ca12e9cb878445842d5c37 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 20 Jan 2022 00:05:39 -0800 Subject: [PATCH 50/60] build: update copyright year to 2022 (#241) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): upgrade gapic-generator-java to 2.4.1 PiperOrigin-RevId: 422607515 Source-Link: https://github.com/googleapis/googleapis/commit/ba2ffd6fe6642e28b4fed2ffae217b4c5f084034 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73ba4add239a619da567ffbd4e5730fdd6de04d3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNiYTRhZGQyMzlhNjE5ZGE1NjdmZmJkNGU1NzMwZmRkNmRlMDRkMyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ..._server_clusters_service.create_game_server_cluster.js | 4 ++-- ..._server_clusters_service.delete_game_server_cluster.js | 4 ++-- ...ame_server_clusters_service.get_game_server_cluster.js | 4 ++-- ...e_server_clusters_service.list_game_server_clusters.js | 6 +++--- ...clusters_service.preview_create_game_server_cluster.js | 4 ++-- ...clusters_service.preview_delete_game_server_cluster.js | 4 ++-- ...clusters_service.preview_update_game_server_cluster.js | 4 ++-- ..._server_clusters_service.update_game_server_cluster.js | 4 ++-- ...me_server_configs_service.create_game_server_config.js | 4 ++-- ...me_server_configs_service.delete_game_server_config.js | 4 ++-- .../game_server_configs_service.get_game_server_config.js | 4 ++-- ...ame_server_configs_service.list_game_server_configs.js | 6 +++--- ...r_deployments_service.create_game_server_deployment.js | 4 ++-- ...r_deployments_service.delete_game_server_deployment.js | 4 ++-- ...e_server_deployments_service.fetch_deployment_state.js | 4 ++-- ...rver_deployments_service.get_game_server_deployment.js | 4 ++-- ...loyments_service.get_game_server_deployment_rollout.js | 4 ++-- ...er_deployments_service.list_game_server_deployments.js | 6 +++--- ...ents_service.preview_game_server_deployment_rollout.js | 8 +++----- ...r_deployments_service.update_game_server_deployment.js | 4 ++-- ...ments_service.update_game_server_deployment_rollout.js | 8 +++----- .../generated/v1/realms_service.create_realm.js | 1 + .../generated/v1/realms_service.delete_realm.js | 1 + .../generated/v1/realms_service.get_realm.js | 1 + .../generated/v1/realms_service.list_realms.js | 3 ++- .../generated/v1/realms_service.preview_realm_update.js | 1 + .../generated/v1/realms_service.update_realm.js | 1 + ..._server_clusters_service.create_game_server_cluster.js | 4 ++-- ..._server_clusters_service.delete_game_server_cluster.js | 4 ++-- ...ame_server_clusters_service.get_game_server_cluster.js | 4 ++-- ...e_server_clusters_service.list_game_server_clusters.js | 8 ++++---- ...clusters_service.preview_create_game_server_cluster.js | 4 ++-- ...clusters_service.preview_delete_game_server_cluster.js | 4 ++-- ...clusters_service.preview_update_game_server_cluster.js | 4 ++-- ..._server_clusters_service.update_game_server_cluster.js | 4 ++-- ...me_server_configs_service.create_game_server_config.js | 4 ++-- ...me_server_configs_service.delete_game_server_config.js | 4 ++-- .../game_server_configs_service.get_game_server_config.js | 4 ++-- ...ame_server_configs_service.list_game_server_configs.js | 8 ++++---- ...r_deployments_service.create_game_server_deployment.js | 4 ++-- ...r_deployments_service.delete_game_server_deployment.js | 4 ++-- ...e_server_deployments_service.fetch_deployment_state.js | 4 ++-- ...rver_deployments_service.get_game_server_deployment.js | 4 ++-- ...loyments_service.get_game_server_deployment_rollout.js | 4 ++-- ...er_deployments_service.list_game_server_deployments.js | 8 ++++---- ...ents_service.preview_game_server_deployment_rollout.js | 8 +++----- ...r_deployments_service.update_game_server_deployment.js | 4 ++-- ...ments_service.update_game_server_deployment_rollout.js | 8 +++----- .../generated/v1beta/realms_service.create_realm.js | 1 + .../generated/v1beta/realms_service.delete_realm.js | 1 + .../generated/v1beta/realms_service.get_realm.js | 1 + .../generated/v1beta/realms_service.list_realms.js | 5 +++-- .../v1beta/realms_service.preview_realm_update.js | 1 + .../generated/v1beta/realms_service.update_realm.js | 1 + 54 files changed, 112 insertions(+), 108 deletions(-) diff --git a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js index 9d81d1f4f3..1b491dda1c 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, gameServerClusterId, gameServerCluster) { @@ -34,8 +35,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // const gameServerCluster = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js index 08e9c16177..cbae0a2941 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js index d5b0d7f1b7..3f6b27faeb 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -35,8 +36,7 @@ function main(name) { // const view = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js index a600d19ff6..40164730ea 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -56,8 +57,7 @@ function main(parent) { // const view = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); @@ -71,7 +71,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerClustersAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js index a316e3059f..5bf08151e2 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, gameServerClusterId, gameServerCluster) { @@ -43,8 +44,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // const view = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js index f969af575b..597cf932c3 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -30,8 +31,7 @@ function main(name) { // const previewTime = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js index c851f46d71..89f7316653 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerCluster, updateMask) { @@ -36,8 +37,7 @@ function main(gameServerCluster, updateMask) { // const previewTime = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js index 134116d2f8..e7295274f8 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerCluster, updateMask) { @@ -32,8 +33,7 @@ function main(gameServerCluster, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js index b00270a8bd..4ca6464fc1 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, configId, gameServerConfig) { @@ -34,8 +35,7 @@ function main(parent, configId, gameServerConfig) { // const gameServerConfig = {} // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js index e1c6fa0eaf..9adc528296 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js index 4fd433c6a1..55e36f6e3a 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js index 1b98b61f53..e2267756b1 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -47,8 +48,7 @@ function main(parent) { // const orderBy = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); @@ -62,7 +62,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerConfigsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js index b84a8301a8..584ca1b8bd 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, deploymentId, gameServerDeployment) { @@ -34,8 +35,7 @@ function main(parent, deploymentId, gameServerDeployment) { // const gameServerDeployment = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js index c8759d5f39..c501197969 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js index 8dcd0c7b8f..11b708d1dc 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js index eb72b2fce7..d1c20fa720 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js index 96a1b1fe02..6c950c54c9 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js index 7902b09806..988847e5a9 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -48,8 +49,7 @@ function main(parent) { // const orderBy = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -63,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerDeploymentsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js index 8aa76ba565..e0c26bde66 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(rollout) { @@ -37,8 +38,7 @@ function main(rollout) { // const previewTime = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -50,9 +50,7 @@ function main(rollout) { }; // Run request - const response = await gamingClient.previewGameServerDeploymentRollout( - request - ); + const response = await gamingClient.previewGameServerDeploymentRollout(request); console.log(response); } diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js index 0c7e0135a5..cf0bdeb2fb 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerDeployment, updateMask) { @@ -32,8 +33,7 @@ function main(gameServerDeployment, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js index 63687b493e..847b94a878 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(rollout, updateMask) { @@ -32,8 +33,7 @@ function main(rollout, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -46,9 +46,7 @@ function main(rollout, updateMask) { }; // Run request - const [operation] = await gamingClient.updateGameServerDeploymentRollout( - request - ); + const [operation] = await gamingClient.updateGameServerDeploymentRollout(request); const [response] = await operation.promise(); console.log(response); } diff --git a/generated,README.md/generated/v1/realms_service.create_realm.js b/generated,README.md/generated/v1/realms_service.create_realm.js index 3eb57e7c10..2861a76b57 100644 --- a/generated,README.md/generated/v1/realms_service.create_realm.js +++ b/generated,README.md/generated/v1/realms_service.create_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, realmId, realm) { diff --git a/generated,README.md/generated/v1/realms_service.delete_realm.js b/generated,README.md/generated/v1/realms_service.delete_realm.js index 9ae7732eae..0d3db7ecaf 100644 --- a/generated,README.md/generated/v1/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1/realms_service.delete_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/generated,README.md/generated/v1/realms_service.get_realm.js b/generated,README.md/generated/v1/realms_service.get_realm.js index 4e72bd258c..54fea01d8b 100644 --- a/generated,README.md/generated/v1/realms_service.get_realm.js +++ b/generated,README.md/generated/v1/realms_service.get_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/generated,README.md/generated/v1/realms_service.list_realms.js b/generated,README.md/generated/v1/realms_service.list_realms.js index 94b606f23b..34a6cb6967 100644 --- a/generated,README.md/generated/v1/realms_service.list_realms.js +++ b/generated,README.md/generated/v1/realms_service.list_realms.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -62,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listRealmsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1/realms_service.preview_realm_update.js b/generated,README.md/generated/v1/realms_service.preview_realm_update.js index 6536851d12..a17ef4bc7c 100644 --- a/generated,README.md/generated/v1/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1/realms_service.preview_realm_update.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(realm, updateMask) { diff --git a/generated,README.md/generated/v1/realms_service.update_realm.js b/generated,README.md/generated/v1/realms_service.update_realm.js index e64466e863..5d37c1116d 100644 --- a/generated,README.md/generated/v1/realms_service.update_realm.js +++ b/generated,README.md/generated/v1/realms_service.update_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(realm, updateMask) { diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js index fc106621cc..ec95445d0a 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, gameServerClusterId, gameServerCluster) { @@ -34,8 +35,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // const gameServerCluster = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js index a3b81d0822..5b3dc3745b 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js index 6b988fcad6..642862abd5 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js index 58f4b6a6fa..b11734560b 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -28,7 +29,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the * server will pick an appropriate default. The server may return fewer items * than requested. A caller should only rely on response's - * next_page_token google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token + * next_page_token google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token * to determine if there are more GameServerClusters left to be queried. */ // const pageSize = 1234 @@ -48,8 +49,7 @@ function main(parent) { // const orderBy = 'abc123' // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); @@ -63,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerClustersAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js index 5b1230bcc6..d03e0806af 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, gameServerClusterId, gameServerCluster) { @@ -38,8 +39,7 @@ function main(parent, gameServerClusterId, gameServerCluster) { // const previewTime = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js index 32fa469fcd..0f9a602474 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -30,8 +31,7 @@ function main(name) { // const previewTime = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js index 46a3436daf..5852893624 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerCluster, updateMask) { @@ -38,8 +39,7 @@ function main(gameServerCluster, updateMask) { // const previewTime = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js index c1b499f9ad..b1311769d6 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerCluster, updateMask) { @@ -34,8 +35,7 @@ function main(gameServerCluster, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerClustersServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerClustersServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerClustersServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js index c2d07eab3e..8f513a44ae 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, configId, gameServerConfig) { @@ -34,8 +35,7 @@ function main(parent, configId, gameServerConfig) { // const gameServerConfig = {} // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js index 542e3ae20a..f5d0a3edef 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js index a1c3286ffc..2470ef8ac9 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js index c89d1e5ad2..2c3a8f277a 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -28,7 +29,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * next_page_token google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token + * next_page_token google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token * to determine if there are more GameServerConfigs left to be queried. */ // const pageSize = 1234 @@ -48,8 +49,7 @@ function main(parent) { // const orderBy = 'abc123' // Imports the Gaming library - const {GameServerConfigsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerConfigsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerConfigsServiceClient(); @@ -63,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerConfigsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js index c59f86509a..0caafdf77c 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, deploymentId, gameServerDeployment) { @@ -34,8 +35,7 @@ function main(parent, deploymentId, gameServerDeployment) { // const gameServerDeployment = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js index 5657ae1399..64f6abb996 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js index d151b9148a..eca2261ca3 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -26,8 +27,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js index 610399c249..7c72499cf1 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js index 6878f5d45b..cace5989c7 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { @@ -27,8 +28,7 @@ function main(name) { // const name = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js index 4a97f09dfa..6946901690 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -28,7 +29,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, the * server will pick an appropriate default. The server may return fewer items * than requested. A caller should only rely on response's - * next_page_token google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token + * next_page_token google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token * to determine if there are more GameServerDeployments left to be queried. */ // const pageSize = 1234 @@ -48,8 +49,7 @@ function main(parent) { // const orderBy = 'abc123' // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -63,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listGameServerDeploymentsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js index 46117d3c4e..4877a525b2 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(rollout) { @@ -39,8 +40,7 @@ function main(rollout) { // const previewTime = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -52,9 +52,7 @@ function main(rollout) { }; // Run request - const response = await gamingClient.previewGameServerDeploymentRollout( - request - ); + const response = await gamingClient.previewGameServerDeploymentRollout(request); console.log(response); } diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js index 51e0641a4a..317c7699ec 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(gameServerDeployment, updateMask) { @@ -34,8 +35,7 @@ function main(gameServerDeployment, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js index d14ae6c62d..f93d129112 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(rollout, updateMask) { @@ -34,8 +35,7 @@ function main(rollout, updateMask) { // const updateMask = {} // Imports the Gaming library - const {GameServerDeploymentsServiceClient} = - require('@google-cloud/game-servers').v1beta; + const {GameServerDeploymentsServiceClient} = require('@google-cloud/game-servers').v1beta; // Instantiates a client const gamingClient = new GameServerDeploymentsServiceClient(); @@ -48,9 +48,7 @@ function main(rollout, updateMask) { }; // Run request - const [operation] = await gamingClient.updateGameServerDeploymentRollout( - request - ); + const [operation] = await gamingClient.updateGameServerDeploymentRollout(request); const [response] = await operation.promise(); console.log(response); } diff --git a/generated,README.md/generated/v1beta/realms_service.create_realm.js b/generated,README.md/generated/v1beta/realms_service.create_realm.js index d68f803591..e0315948f7 100644 --- a/generated,README.md/generated/v1beta/realms_service.create_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.create_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, realmId, realm) { diff --git a/generated,README.md/generated/v1beta/realms_service.delete_realm.js b/generated,README.md/generated/v1beta/realms_service.delete_realm.js index 1dd3076b9d..d2efc481af 100644 --- a/generated,README.md/generated/v1beta/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.delete_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/generated,README.md/generated/v1beta/realms_service.get_realm.js b/generated,README.md/generated/v1beta/realms_service.get_realm.js index 929ee21c41..25a1f5e6f2 100644 --- a/generated,README.md/generated/v1beta/realms_service.get_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.get_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/generated,README.md/generated/v1beta/realms_service.list_realms.js b/generated,README.md/generated/v1beta/realms_service.list_realms.js index c16b2e3664..012301b9ee 100644 --- a/generated,README.md/generated/v1beta/realms_service.list_realms.js +++ b/generated,README.md/generated/v1beta/realms_service.list_realms.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -28,7 +29,7 @@ function main(parent) { * Optional. The maximum number of items to return. If unspecified, server * will pick an appropriate default. Server may return fewer items than * requested. A caller should only rely on response's - * next_page_token google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token + * next_page_token google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token * to determine if there are more realms left to be queried. */ // const pageSize = 1234 @@ -62,7 +63,7 @@ function main(parent) { // Run request const iterable = await gamingClient.listRealmsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js index ac5c2a8050..5214e7dbb8 100644 --- a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(realm, updateMask) { diff --git a/generated,README.md/generated/v1beta/realms_service.update_realm.js b/generated,README.md/generated/v1beta/realms_service.update_realm.js index 7efc58d669..8729b17d85 100644 --- a/generated,README.md/generated/v1beta/realms_service.update_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.update_realm.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(realm, updateMask) { From 1207fcbbdd992ab3ff9075b669fd960fcb5461aa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Feb 2022 02:08:56 +0000 Subject: [PATCH 51/60] docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#248) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 --- ...ters_service.create_game_server_cluster.js | 9 +- ...ters_service.delete_game_server_cluster.js | 9 +- ...lusters_service.get_game_server_cluster.js | 9 +- ...sters_service.list_game_server_clusters.js | 9 +- ...vice.preview_create_game_server_cluster.js | 9 +- ...vice.preview_delete_game_server_cluster.js | 9 +- ...vice.preview_update_game_server_cluster.js | 9 +- ...ters_service.update_game_server_cluster.js | 9 +- ...nfigs_service.create_game_server_config.js | 9 +- ...nfigs_service.delete_game_server_config.js | 9 +- ..._configs_service.get_game_server_config.js | 9 +- ...onfigs_service.list_game_server_configs.js | 9 +- ...s_service.create_game_server_deployment.js | 9 +- ...s_service.delete_game_server_deployment.js | 9 +- ...loyments_service.fetch_deployment_state.js | 9 +- ...ents_service.get_game_server_deployment.js | 9 +- ...vice.get_game_server_deployment_rollout.js | 9 +- ...ts_service.list_game_server_deployments.js | 9 +- ....preview_game_server_deployment_rollout.js | 9 +- ...s_service.update_game_server_deployment.js | 9 +- ...e.update_game_server_deployment_rollout.js | 9 +- .../v1/realms_service.create_realm.js | 9 +- .../v1/realms_service.delete_realm.js | 9 +- .../generated/v1/realms_service.get_realm.js | 9 +- .../v1/realms_service.list_realms.js | 9 +- .../v1/realms_service.preview_realm_update.js | 9 +- .../v1/realms_service.update_realm.js | 9 +- ...ippet_metadata.google.cloud.gaming.v1.json | 1259 +++++++++++++++++ ...ters_service.create_game_server_cluster.js | 9 +- ...ters_service.delete_game_server_cluster.js | 9 +- ...lusters_service.get_game_server_cluster.js | 9 +- ...sters_service.list_game_server_clusters.js | 9 +- ...vice.preview_create_game_server_cluster.js | 9 +- ...vice.preview_delete_game_server_cluster.js | 9 +- ...vice.preview_update_game_server_cluster.js | 9 +- ...ters_service.update_game_server_cluster.js | 9 +- ...nfigs_service.create_game_server_config.js | 9 +- ...nfigs_service.delete_game_server_config.js | 9 +- ..._configs_service.get_game_server_config.js | 9 +- ...onfigs_service.list_game_server_configs.js | 9 +- ...s_service.create_game_server_deployment.js | 9 +- ...s_service.delete_game_server_deployment.js | 9 +- ...loyments_service.fetch_deployment_state.js | 9 +- ...ents_service.get_game_server_deployment.js | 9 +- ...vice.get_game_server_deployment_rollout.js | 9 +- ...ts_service.list_game_server_deployments.js | 9 +- ....preview_game_server_deployment_rollout.js | 9 +- ...s_service.update_game_server_deployment.js | 9 +- ...e.update_game_server_deployment_rollout.js | 9 +- .../v1beta/realms_service.create_realm.js | 9 +- .../v1beta/realms_service.delete_realm.js | 9 +- .../v1beta/realms_service.get_realm.js | 9 +- .../v1beta/realms_service.list_realms.js | 9 +- .../realms_service.preview_realm_update.js | 9 +- .../v1beta/realms_service.update_realm.js | 9 +- ...t_metadata.google.cloud.gaming.v1beta.json | 1247 ++++++++++++++++ 56 files changed, 2884 insertions(+), 108 deletions(-) create mode 100644 generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json create mode 100644 generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json diff --git a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js index 1b491dda1c..13050309aa 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js index cbae0a2941..df81eef6b4 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js index 3f6b27faeb..0a72477981 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js index 40164730ea..18dd322052 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js index 5bf08151e2..b758128f84 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js index 597cf932c3..3c9385b20b 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js index 89f7316653..3b654d16a0 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js index e7295274f8..157dba34d1 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js index 4ca6464fc1..68c3234866 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js index 9adc528296..3b6ac2b286 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js index 55e36f6e3a..bc8668be39 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js index e2267756b1..926292b640 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js index 584ca1b8bd..579d2aed4e 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js index c501197969..c1764e7d17 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js index 11b708d1dc..88a9378d12 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js index d1c20fa720..46e1f6dcf9 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js index 6c950c54c9..0ace7cd478 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js index 988847e5a9..cd7aa5b94c 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js index e0c26bde66..0632186c9d 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js index cf0bdeb2fb..37f0ebf942 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js index 847b94a878..21de72e147 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.create_realm.js b/generated,README.md/generated/v1/realms_service.create_realm.js index 2861a76b57..e0ff05579d 100644 --- a/generated,README.md/generated/v1/realms_service.create_realm.js +++ b/generated,README.md/generated/v1/realms_service.create_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.delete_realm.js b/generated,README.md/generated/v1/realms_service.delete_realm.js index 0d3db7ecaf..8bd12c0e81 100644 --- a/generated,README.md/generated/v1/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1/realms_service.delete_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.get_realm.js b/generated,README.md/generated/v1/realms_service.get_realm.js index 54fea01d8b..0cafdb3515 100644 --- a/generated,README.md/generated/v1/realms_service.get_realm.js +++ b/generated,README.md/generated/v1/realms_service.get_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.list_realms.js b/generated,README.md/generated/v1/realms_service.list_realms.js index 34a6cb6967..49a416dff2 100644 --- a/generated,README.md/generated/v1/realms_service.list_realms.js +++ b/generated,README.md/generated/v1/realms_service.list_realms.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.preview_realm_update.js b/generated,README.md/generated/v1/realms_service.preview_realm_update.js index a17ef4bc7c..de43ea2dc0 100644 --- a/generated,README.md/generated/v1/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1/realms_service.preview_realm_update.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/realms_service.update_realm.js b/generated,README.md/generated/v1/realms_service.update_realm.js index 5d37c1116d..c878c0efe9 100644 --- a/generated,README.md/generated/v1/realms_service.update_realm.js +++ b/generated,README.md/generated/v1/realms_service.update_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json new file mode 100644 index 0000000000..d3ad67d4b5 --- /dev/null +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -0,0 +1,1259 @@ +{ + "clientLibrary": { + "name": "nodejs-gaming", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.gaming.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async", + "title": "GameServerClustersService listGameServerClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists game server clusters in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.list_game_server_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerClustersResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async", + "title": "GameServerClustersService getGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.get_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerCluster", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async", + "title": "GameServerClustersService createGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", + "title": "GameServerClustersService previewCreateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews creation of a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.preview_create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async", + "title": "GameServerClustersService deleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", + "title": "GameServerClustersService previewDeleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews deletion of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async", + "title": "GameServerClustersService updateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", + "title": "GameServerClustersService previewUpdateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews updating a GameServerCluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async", + "title": "GameServerClustersService listGameServerConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists game server configs in a given project, location, and game server deployment.", + "canonical": true, + "file": "game_server_configs_service.list_game_server_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerConfigsResponse", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async", + "title": "GameServerClustersService getGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server config.", + "canonical": true, + "file": "game_server_configs_service.get_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerConfig", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async", + "title": "GameServerClustersService createGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", + "canonical": true, + "file": "game_server_configs_service.create_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "config_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_config", + "type": ".google.cloud.gaming.v1.GameServerConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async", + "title": "GameServerClustersService deleteGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", + "canonical": true, + "file": "game_server_configs_service.delete_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async", + "title": "GameServerClustersService listGameServerDeployments Sample", + "origin": "API_DEFINITION", + "description": " Lists game server deployments in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.list_game_server_deployments.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerDeploymentsResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async", + "title": "GameServerClustersService getGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerDeployment", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", + "title": "GameServerClustersService createGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server deployment in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.create_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "deployment_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1.GameServerDeployment" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", + "title": "GameServerClustersService deleteGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.delete_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", + "title": "GameServerClustersService updateGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Patches a game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1.GameServerDeployment" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", + "title": "GameServerClustersService getGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Gets details a single game server deployment rollout.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerDeploymentRollout", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", + "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", + "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", + "canonical": true, + "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async", + "title": "GameServerClustersService fetchDeploymentState Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.fetch_deployment_state.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.FetchDeploymentStateResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_ListRealms_async", + "title": "GameServerClustersService listRealms Sample", + "origin": "API_DEFINITION", + "description": " Lists realms in a given project and location.", + "canonical": true, + "file": "realms_service.list_realms.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListRealmsResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_GetRealm_async", + "title": "GameServerClustersService getRealm Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single realm.", + "canonical": true, + "file": "realms_service.get_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.Realm", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_CreateRealm_async", + "title": "GameServerClustersService createRealm Sample", + "origin": "API_DEFINITION", + "description": " Creates a new realm in a given project and location.", + "canonical": true, + "file": "realms_service.create_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "realm_id", + "type": "TYPE_STRING" + }, + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_DeleteRealm_async", + "title": "GameServerClustersService deleteRealm Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single realm.", + "canonical": true, + "file": "realms_service.delete_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_UpdateRealm_async", + "title": "GameServerClustersService updateRealm Sample", + "origin": "API_DEFINITION", + "description": " Patches a single realm.", + "canonical": true, + "file": "realms_service.update_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async", + "title": "GameServerClustersService previewRealmUpdate Sample", + "origin": "API_DEFINITION", + "description": " Previews patches to a single realm.", + "canonical": true, + "file": "realms_service.preview_realm_update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewRealmUpdateResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } + } + ] +} diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js index ec95445d0a..ef5d601d36 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js index 5b3dc3745b..2a62e7880a 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js index 642862abd5..e7f1b11d25 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js index b11734560b..696634bff3 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js index d03e0806af..044068729b 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js index 0f9a602474..1fade1029d 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js index 5852893624..bde1416614 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js index b1311769d6..3b6cc045b4 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js index 8f513a44ae..fb49085c1d 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js index f5d0a3edef..2b6c0dc87f 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js index 2470ef8ac9..a633554f0f 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js index 2c3a8f277a..0172aad78b 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js index 0caafdf77c..1bb5584958 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js index 64f6abb996..8ea0e55675 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js index eca2261ca3..4b59aeb94e 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js index 7c72499cf1..b856e6699a 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js index cace5989c7..b3dcc1d196 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js index 6946901690..f592e7f1b0 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js index 4877a525b2..cd4fe13f70 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js index 317c7699ec..69fe50d038 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js index f93d129112..402f60f424 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.create_realm.js b/generated,README.md/generated/v1beta/realms_service.create_realm.js index e0315948f7..240e45545b 100644 --- a/generated,README.md/generated/v1beta/realms_service.create_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.create_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.delete_realm.js b/generated,README.md/generated/v1beta/realms_service.delete_realm.js index d2efc481af..6b4b5e9d48 100644 --- a/generated,README.md/generated/v1beta/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.delete_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.get_realm.js b/generated,README.md/generated/v1beta/realms_service.get_realm.js index 25a1f5e6f2..ba1726f2e7 100644 --- a/generated,README.md/generated/v1beta/realms_service.get_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.get_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.list_realms.js b/generated,README.md/generated/v1beta/realms_service.list_realms.js index 012301b9ee..cd1b5f2c49 100644 --- a/generated,README.md/generated/v1beta/realms_service.list_realms.js +++ b/generated,README.md/generated/v1beta/realms_service.list_realms.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js index 5214e7dbb8..38f7cebd15 100644 --- a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/realms_service.update_realm.js b/generated,README.md/generated/v1beta/realms_service.update_realm.js index 8729b17d85..d906682544 100644 --- a/generated,README.md/generated/v1beta/realms_service.update_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.update_realm.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json new file mode 100644 index 0000000000..40642960f2 --- /dev/null +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -0,0 +1,1247 @@ +{ + "clientLibrary": { + "name": "nodejs-gaming", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.gaming.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async", + "title": "GameServerClustersService listGameServerClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists game server clusters in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.list_game_server_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerClustersResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async", + "title": "GameServerClustersService getGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.get_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerCluster", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async", + "title": "GameServerClustersService createGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", + "title": "GameServerClustersService previewCreateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews creation of a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.preview_create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async", + "title": "GameServerClustersService deleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", + "title": "GameServerClustersService previewDeleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews deletion of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async", + "title": "GameServerClustersService updateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", + "title": "GameServerClustersService previewUpdateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews updating a GameServerCluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async", + "title": "GameServerClustersService listGameServerConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists game server configs in a given project, location, and game server deployment.", + "canonical": true, + "file": "game_server_configs_service.list_game_server_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerConfigsResponse", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async", + "title": "GameServerClustersService getGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server config.", + "canonical": true, + "file": "game_server_configs_service.get_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerConfig", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async", + "title": "GameServerClustersService createGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", + "canonical": true, + "file": "game_server_configs_service.create_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "config_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_config", + "type": ".google.cloud.gaming.v1beta.GameServerConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async", + "title": "GameServerClustersService deleteGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", + "canonical": true, + "file": "game_server_configs_service.delete_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async", + "title": "GameServerClustersService listGameServerDeployments Sample", + "origin": "API_DEFINITION", + "description": " Lists game server deployments in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.list_game_server_deployments.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async", + "title": "GameServerClustersService getGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerDeployment", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", + "title": "GameServerClustersService createGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server deployment in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.create_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "deployment_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1beta.GameServerDeployment" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", + "title": "GameServerClustersService deleteGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.delete_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", + "title": "GameServerClustersService updateGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Patches a game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1beta.GameServerDeployment" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", + "title": "GameServerClustersService getGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Gets details a single game server deployment rollout.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", + "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", + "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", + "canonical": true, + "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async", + "title": "GameServerClustersService fetchDeploymentState Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.fetch_deployment_state.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.FetchDeploymentStateResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_ListRealms_async", + "title": "GameServerClustersService listRealms Sample", + "origin": "API_DEFINITION", + "description": " Lists realms in a given project and location.", + "canonical": true, + "file": "realms_service.list_realms.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListRealmsResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_GetRealm_async", + "title": "GameServerClustersService getRealm Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single realm.", + "canonical": true, + "file": "realms_service.get_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.Realm", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_CreateRealm_async", + "title": "GameServerClustersService createRealm Sample", + "origin": "API_DEFINITION", + "description": " Creates a new realm in a given project and location.", + "canonical": true, + "file": "realms_service.create_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "realm_id", + "type": "TYPE_STRING" + }, + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_DeleteRealm_async", + "title": "GameServerClustersService deleteRealm Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single realm.", + "canonical": true, + "file": "realms_service.delete_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_UpdateRealm_async", + "title": "GameServerClustersService updateRealm Sample", + "origin": "API_DEFINITION", + "description": " Patches a single realm.", + "canonical": true, + "file": "realms_service.update_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + }, + { + "regionTag": "gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async", + "title": "GameServerClustersService previewRealmUpdate Sample", + "origin": "API_DEFINITION", + "description": " Previews patches to a single realm.", + "canonical": true, + "file": "realms_service.preview_realm_update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewRealmUpdateResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } + } + ] +} From 6c7551cc1f04d05eb0cba2fd4ed95dfbfd99d934 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:30:15 +0000 Subject: [PATCH 52/60] build(node): update client library version in samples metadata (#1356) (#260) * build(node): add feat in node post-processor to add client library version number in snippet metadata Co-authored-by: Benjamin E. Coe Source-Link: https://github.com/googleapis/synthtool/commit/d337b88dd1494365183718a2de0b7b4056b6fdfe Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d106724ad2a96daa1b8d88de101ba50bdb30b8df62ffa0aa2b451d93b4556641 --- ...ippet_metadata.google.cloud.gaming.v1.json | 2408 ++++++++--------- ...t_metadata.google.cloud.gaming.v1beta.json | 2384 ++++++++-------- 2 files changed, 2396 insertions(+), 2396 deletions(-) diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index d3ad67d4b5..df21cddba1 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -1,1259 +1,1259 @@ { - "clientLibrary": { - "name": "nodejs-gaming", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gaming.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async", - "title": "GameServerClustersService listGameServerClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists game server clusters in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.list_game_server_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.gaming.v1.GameServerClusterView" - } - ], - "resultType": ".google.cloud.gaming.v1.ListGameServerClustersResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" - }, - "method": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } + "clientLibrary": { + "name": "nodejs-gaming", + "version": "2.5.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.gaming.v1", + "version": "v1" + } + ] }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async", - "title": "GameServerClustersService getGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.get_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.gaming.v1.GameServerClusterView" - } - ], - "resultType": ".google.cloud.gaming.v1.GameServerCluster", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async", + "title": "GameServerClustersService listGameServerClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists game server clusters in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.list_game_server_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerClustersResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async", - "title": "GameServerClustersService createGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server cluster in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.create_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1.GameServerCluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async", + "title": "GameServerClustersService getGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.get_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerCluster", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", - "title": "GameServerClustersService previewCreateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews creation of a new game server cluster in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.preview_create_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1.GameServerCluster" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "view", - "type": ".google.cloud.gaming.v1.GameServerClusterView" - } - ], - "resultType": ".google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async", + "title": "GameServerClustersService createGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async", - "title": "GameServerClustersService deleteGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.delete_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", + "title": "GameServerClustersService previewCreateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews creation of a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.preview_create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + }, + { + "name": "view", + "type": ".google.cloud.gaming.v1.GameServerClusterView" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", - "title": "GameServerClustersService previewDeleteGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews deletion of a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async", + "title": "GameServerClustersService deleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async", - "title": "GameServerClustersService updateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Patches a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.update_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1.GameServerCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", + "title": "GameServerClustersService previewDeleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews deletion of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", - "title": "GameServerClustersService previewUpdateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews updating a GameServerCluster.", - "canonical": true, - "file": "game_server_clusters_service.preview_update_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1.GameServerCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async", + "title": "GameServerClustersService updateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async", - "title": "GameServerClustersService listGameServerConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists game server configs in a given project, location, and game server deployment.", - "canonical": true, - "file": "game_server_configs_service.list_game_server_configs.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.ListGameServerConfigsResponse", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", + "title": "GameServerClustersService previewUpdateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews updating a GameServerCluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async", - "title": "GameServerClustersService getGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server config.", - "canonical": true, - "file": "game_server_configs_service.get_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.GameServerConfig", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async", + "title": "GameServerClustersService listGameServerConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists game server configs in a given project, location, and game server deployment.", + "canonical": true, + "file": "game_server_configs_service.list_game_server_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerConfigsResponse", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async", - "title": "GameServerClustersService createGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", - "canonical": true, - "file": "game_server_configs_service.create_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_config", - "type": ".google.cloud.gaming.v1.GameServerConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async", + "title": "GameServerClustersService getGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server config.", + "canonical": true, + "file": "game_server_configs_service.get_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerConfig", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async", - "title": "GameServerClustersService deleteGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", - "canonical": true, - "file": "game_server_configs_service.delete_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async", + "title": "GameServerClustersService createGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", + "canonical": true, + "file": "game_server_configs_service.create_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "config_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_config", + "type": ".google.cloud.gaming.v1.GameServerConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async", - "title": "GameServerClustersService listGameServerDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists game server deployments in a given project and location.", - "canonical": true, - "file": "game_server_deployments_service.list_game_server_deployments.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.ListGameServerDeploymentsResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async", + "title": "GameServerClustersService deleteGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", + "canonical": true, + "file": "game_server_configs_service.delete_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async", - "title": "GameServerClustersService getGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.get_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.GameServerDeployment", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async", + "title": "GameServerClustersService listGameServerDeployments Sample", + "origin": "API_DEFINITION", + "description": " Lists game server deployments in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.list_game_server_deployments.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListGameServerDeploymentsResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", - "title": "GameServerClustersService createGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server deployment in a given project and location.", - "canonical": true, - "file": "game_server_deployments_service.create_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_deployment", - "type": ".google.cloud.gaming.v1.GameServerDeployment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async", + "title": "GameServerClustersService getGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerDeployment", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", - "title": "GameServerClustersService deleteGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.delete_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", + "title": "GameServerClustersService createGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server deployment in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.create_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "deployment_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1.GameServerDeployment" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", - "title": "GameServerClustersService updateGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Patches a game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.update_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "game_server_deployment", - "type": ".google.cloud.gaming.v1.GameServerDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", + "title": "GameServerClustersService deleteGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.delete_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", - "title": "GameServerClustersService getGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details a single game server deployment rollout.", - "canonical": true, - "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.GameServerDeploymentRollout", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", + "title": "GameServerClustersService updateGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Patches a game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1.GameServerDeployment" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", - "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", - "canonical": true, - "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", + "title": "GameServerClustersService getGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Gets details a single game server deployment rollout.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.GameServerDeploymentRollout", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", - "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", - "canonical": true, - "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", + "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async", - "title": "GameServerClustersService fetchDeploymentState Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.fetch_deployment_state.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.FetchDeploymentStateResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", + "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", + "canonical": true, + "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_ListRealms_async", - "title": "GameServerClustersService listRealms Sample", - "origin": "API_DEFINITION", - "description": " Lists realms in a given project and location.", - "canonical": true, - "file": "realms_service.list_realms.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.ListRealmsResponse", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async", + "title": "GameServerClustersService fetchDeploymentState Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.fetch_deployment_state.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.FetchDeploymentStateResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_GetRealm_async", - "title": "GameServerClustersService getRealm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single realm.", - "canonical": true, - "file": "realms_service.get_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1.Realm", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_RealmsService_ListRealms_async", + "title": "GameServerClustersService listRealms Sample", + "origin": "API_DEFINITION", + "description": " Lists realms in a given project and location.", + "canonical": true, + "file": "realms_service.list_realms.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.ListRealmsResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } }, - "method": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_CreateRealm_async", - "title": "GameServerClustersService createRealm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new realm in a given project and location.", - "canonical": true, - "file": "realms_service.create_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "realm_id", - "type": "TYPE_STRING" - }, - { - "name": "realm", - "type": ".google.cloud.gaming.v1.Realm" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_RealmsService_GetRealm_async", + "title": "GameServerClustersService getRealm Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single realm.", + "canonical": true, + "file": "realms_service.get_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1.Realm", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } }, - "method": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_DeleteRealm_async", - "title": "GameServerClustersService deleteRealm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single realm.", - "canonical": true, - "file": "realms_service.delete_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_RealmsService_CreateRealm_async", + "title": "GameServerClustersService createRealm Sample", + "origin": "API_DEFINITION", + "description": " Creates a new realm in a given project and location.", + "canonical": true, + "file": "realms_service.create_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "realm_id", + "type": "TYPE_STRING" + }, + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } }, - "method": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_UpdateRealm_async", - "title": "GameServerClustersService updateRealm Sample", - "origin": "API_DEFINITION", - "description": " Patches a single realm.", - "canonical": true, - "file": "realms_service.update_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", - "async": true, - "parameters": [ - { - "name": "realm", - "type": ".google.cloud.gaming.v1.Realm" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_RealmsService_DeleteRealm_async", + "title": "GameServerClustersService deleteRealm Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single realm.", + "canonical": true, + "file": "realms_service.delete_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } }, - "method": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async", - "title": "GameServerClustersService previewRealmUpdate Sample", - "origin": "API_DEFINITION", - "description": " Previews patches to a single realm.", - "canonical": true, - "file": "realms_service.preview_realm_update.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", - "async": true, - "parameters": [ - { - "name": "realm", - "type": ".google.cloud.gaming.v1.Realm" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1.PreviewRealmUpdateResponse", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + "regionTag": "gameservices_v1_generated_RealmsService_UpdateRealm_async", + "title": "GameServerClustersService updateRealm Sample", + "origin": "API_DEFINITION", + "description": " Patches a single realm.", + "canonical": true, + "file": "realms_service.update_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } }, - "method": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } + { + "regionTag": "gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async", + "title": "GameServerClustersService previewRealmUpdate Sample", + "origin": "API_DEFINITION", + "description": " Previews patches to a single realm.", + "canonical": true, + "file": "realms_service.preview_realm_update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1.PreviewRealmUpdateResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1.RealmsServiceClient" + }, + "method": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1.RealmsService" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 40642960f2..fd8ae59f91 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -1,1247 +1,1247 @@ { - "clientLibrary": { - "name": "nodejs-gaming", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gaming.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async", - "title": "GameServerClustersService listGameServerClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists game server clusters in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.list_game_server_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.ListGameServerClustersResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" - }, - "method": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } + "clientLibrary": { + "name": "nodejs-gaming", + "version": "2.5.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.gaming.v1beta", + "version": "v1beta" + } + ] }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async", - "title": "GameServerClustersService getGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.get_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.GameServerCluster", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async", + "title": "GameServerClustersService listGameServerClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists game server clusters in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.list_game_server_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerClustersResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "ListGameServerClusters", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async", - "title": "GameServerClustersService createGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server cluster in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.create_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1beta.GameServerCluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async", + "title": "GameServerClustersService getGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.get_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerCluster", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "GetGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", - "title": "GameServerClustersService previewCreateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews creation of a new game server cluster in a given project and location.", - "canonical": true, - "file": "game_server_clusters_service.preview_create_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1beta.GameServerCluster" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async", + "title": "GameServerClustersService createGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "CreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async", - "title": "GameServerClustersService deleteGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.delete_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async", + "title": "GameServerClustersService previewCreateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews creation of a new game server cluster in a given project and location.", + "canonical": true, + "file": "game_server_clusters_service.preview_create_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewCreateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", - "title": "GameServerClustersService previewDeleteGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews deletion of a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async", + "title": "GameServerClustersService deleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "DeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async", - "title": "GameServerClustersService updateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Patches a single game server cluster.", - "canonical": true, - "file": "game_server_clusters_service.update_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1beta.GameServerCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async", + "title": "GameServerClustersService previewDeleteGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews deletion of a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_delete_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewDeleteGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", - "title": "GameServerClustersService previewUpdateGameServerCluster Sample", - "origin": "API_DEFINITION", - "description": " Previews updating a GameServerCluster.", - "canonical": true, - "file": "game_server_clusters_service.preview_update_game_server_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", - "async": true, - "parameters": [ - { - "name": "game_server_cluster", - "type": ".google.cloud.gaming.v1beta.GameServerCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async", + "title": "GameServerClustersService updateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server cluster.", + "canonical": true, + "file": "game_server_clusters_service.update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "UpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async", - "title": "GameServerClustersService listGameServerConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists game server configs in a given project, location, and game server deployment.", - "canonical": true, - "file": "game_server_configs_service.list_game_server_configs.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.ListGameServerConfigsResponse", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async", + "title": "GameServerClustersService previewUpdateGameServerCluster Sample", + "origin": "API_DEFINITION", + "description": " Previews updating a GameServerCluster.", + "canonical": true, + "file": "game_server_clusters_service.preview_update_game_server_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", + "async": true, + "parameters": [ + { + "name": "game_server_cluster", + "type": ".google.cloud.gaming.v1beta.GameServerCluster" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse", + "client": { + "shortName": "GameServerClustersServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersServiceClient" + }, + "method": { + "shortName": "PreviewUpdateGameServerCluster", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", + "service": { + "shortName": "GameServerClustersService", + "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" + } + } + } }, - "method": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async", - "title": "GameServerClustersService getGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server config.", - "canonical": true, - "file": "game_server_configs_service.get_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.GameServerConfig", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async", + "title": "GameServerClustersService listGameServerConfigs Sample", + "origin": "API_DEFINITION", + "description": " Lists game server configs in a given project, location, and game server deployment.", + "canonical": true, + "file": "game_server_configs_service.list_game_server_configs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerConfigsResponse", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "ListGameServerConfigs", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async", - "title": "GameServerClustersService createGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", - "canonical": true, - "file": "game_server_configs_service.create_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_config", - "type": ".google.cloud.gaming.v1beta.GameServerConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async", + "title": "GameServerClustersService getGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server config.", + "canonical": true, + "file": "game_server_configs_service.get_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerConfig", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "GetGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async", - "title": "GameServerClustersService deleteGameServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", - "canonical": true, - "file": "game_server_configs_service.delete_game_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerConfigsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async", + "title": "GameServerClustersService createGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server config in a given project, location, and game server deployment. Game server configs are immutable, and are not applied until referenced in the game server deployment rollout resource.", + "canonical": true, + "file": "game_server_configs_service.create_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "config_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_config", + "type": ".google.cloud.gaming.v1beta.GameServerConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "CreateGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async", - "title": "GameServerClustersService listGameServerDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists game server deployments in a given project and location.", - "canonical": true, - "file": "game_server_deployments_service.list_game_server_deployments.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async", + "title": "GameServerClustersService deleteGameServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server config. The deletion will fail if the game server config is referenced in a game server deployment rollout.", + "canonical": true, + "file": "game_server_configs_service.delete_game_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerConfigsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerConfig", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", + "service": { + "shortName": "GameServerConfigsService", + "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" + } + } + } }, - "method": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async", - "title": "GameServerClustersService getGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.get_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.GameServerDeployment", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async", + "title": "GameServerClustersService listGameServerDeployments Sample", + "origin": "API_DEFINITION", + "description": " Lists game server deployments in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.list_game_server_deployments.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "ListGameServerDeployments", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", - "title": "GameServerClustersService createGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new game server deployment in a given project and location.", - "canonical": true, - "file": "game_server_deployments_service.create_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "game_server_deployment", - "type": ".google.cloud.gaming.v1beta.GameServerDeployment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async", + "title": "GameServerClustersService getGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerDeployment", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", - "title": "GameServerClustersService deleteGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.delete_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async", + "title": "GameServerClustersService createGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Creates a new game server deployment in a given project and location.", + "canonical": true, + "file": "game_server_deployments_service.create_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "deployment_id", + "type": "TYPE_STRING" + }, + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1beta.GameServerDeployment" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "CreateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", - "title": "GameServerClustersService updateGameServerDeployment Sample", - "origin": "API_DEFINITION", - "description": " Patches a game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.update_game_server_deployment.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", - "async": true, - "parameters": [ - { - "name": "game_server_deployment", - "type": ".google.cloud.gaming.v1beta.GameServerDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async", + "title": "GameServerClustersService deleteGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.delete_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "DeleteGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", - "title": "GameServerClustersService getGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details a single game server deployment rollout.", - "canonical": true, - "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async", + "title": "GameServerClustersService updateGameServerDeployment Sample", + "origin": "API_DEFINITION", + "description": " Patches a game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", + "async": true, + "parameters": [ + { + "name": "game_server_deployment", + "type": ".google.cloud.gaming.v1beta.GameServerDeployment" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeployment", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", - "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", - "canonical": true, - "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async", + "title": "GameServerClustersService getGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Gets details a single game server deployment rollout.", + "canonical": true, + "file": "game_server_deployments_service.get_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "GetGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", - "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", - "origin": "API_DEFINITION", - "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", - "canonical": true, - "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async", + "title": "GameServerClustersService updateGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Patches a single game server deployment rollout. The method will not return an error if the update does not affect any existing realms. For example - if the default_game_server_config is changed but all existing realms use the override, that is valid. Similarly, if a non existing realm is explicitly called out in game_server_config_overrides field, that will also not result in an error.", + "canonical": true, + "file": "game_server_deployments_service.update_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "UpdateGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async", - "title": "GameServerClustersService fetchDeploymentState Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", - "canonical": true, - "file": "game_server_deployments_service.fetch_deployment_state.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.FetchDeploymentStateResponse", - "client": { - "shortName": "GameServerDeploymentsServiceClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async", + "title": "GameServerClustersService previewGameServerDeploymentRollout Sample", + "origin": "API_DEFINITION", + "description": " Previews the game server deployment rollout. This API does not mutate the rollout resource.", + "canonical": true, + "file": "game_server_deployments_service.preview_game_server_deployment_rollout.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "async": true, + "parameters": [ + { + "name": "rollout", + "type": ".google.cloud.gaming.v1beta.GameServerDeploymentRollout" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "PreviewGameServerDeploymentRollout", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_ListRealms_async", - "title": "GameServerClustersService listRealms Sample", - "origin": "API_DEFINITION", - "description": " Lists realms in a given project and location.", - "canonical": true, - "file": "realms_service.list_realms.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.ListRealmsResponse", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async", + "title": "GameServerClustersService fetchDeploymentState Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the current state of the game server deployment. Gathers all the Agones fleets and Agones autoscalers, including fleets running an older version of the game server deployment.", + "canonical": true, + "file": "game_server_deployments_service.fetch_deployment_state.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.FetchDeploymentStateResponse", + "client": { + "shortName": "GameServerDeploymentsServiceClient", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsServiceClient" + }, + "method": { + "shortName": "FetchDeploymentState", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", + "service": { + "shortName": "GameServerDeploymentsService", + "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" + } + } + } }, - "method": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_GetRealm_async", - "title": "GameServerClustersService getRealm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single realm.", - "canonical": true, - "file": "realms_service.get_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gaming.v1beta.Realm", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_RealmsService_ListRealms_async", + "title": "GameServerClustersService listRealms Sample", + "origin": "API_DEFINITION", + "description": " Lists realms in a given project and location.", + "canonical": true, + "file": "realms_service.list_realms.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.ListRealmsResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "ListRealms", + "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } }, - "method": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_CreateRealm_async", - "title": "GameServerClustersService createRealm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new realm in a given project and location.", - "canonical": true, - "file": "realms_service.create_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "realm_id", - "type": "TYPE_STRING" - }, - { - "name": "realm", - "type": ".google.cloud.gaming.v1beta.Realm" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_RealmsService_GetRealm_async", + "title": "GameServerClustersService getRealm Sample", + "origin": "API_DEFINITION", + "description": " Gets details of a single realm.", + "canonical": true, + "file": "realms_service.get_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.gaming.v1beta.Realm", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "GetRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } }, - "method": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_DeleteRealm_async", - "title": "GameServerClustersService deleteRealm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single realm.", - "canonical": true, - "file": "realms_service.delete_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_RealmsService_CreateRealm_async", + "title": "GameServerClustersService createRealm Sample", + "origin": "API_DEFINITION", + "description": " Creates a new realm in a given project and location.", + "canonical": true, + "file": "realms_service.create_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "realm_id", + "type": "TYPE_STRING" + }, + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "CreateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } }, - "method": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_UpdateRealm_async", - "title": "GameServerClustersService updateRealm Sample", - "origin": "API_DEFINITION", - "description": " Patches a single realm.", - "canonical": true, - "file": "realms_service.update_realm.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", - "async": true, - "parameters": [ - { - "name": "realm", - "type": ".google.cloud.gaming.v1beta.Realm" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_RealmsService_DeleteRealm_async", + "title": "GameServerClustersService deleteRealm Sample", + "origin": "API_DEFINITION", + "description": " Deletes a single realm.", + "canonical": true, + "file": "realms_service.delete_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 52, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "DeleteRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } }, - "method": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - } - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async", - "title": "GameServerClustersService previewRealmUpdate Sample", - "origin": "API_DEFINITION", - "description": " Previews patches to a single realm.", - "canonical": true, - "file": "realms_service.preview_realm_update.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", - "async": true, - "parameters": [ - { - "name": "realm", - "type": ".google.cloud.gaming.v1beta.Realm" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preview_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.gaming.v1beta.PreviewRealmUpdateResponse", - "client": { - "shortName": "RealmsServiceClient", - "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + "regionTag": "gameservices_v1beta_generated_RealmsService_UpdateRealm_async", + "title": "GameServerClustersService updateRealm Sample", + "origin": "API_DEFINITION", + "description": " Patches a single realm.", + "canonical": true, + "file": "realms_service.update_realm.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "UpdateRealm", + "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } }, - "method": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } + { + "regionTag": "gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async", + "title": "GameServerClustersService previewRealmUpdate Sample", + "origin": "API_DEFINITION", + "description": " Previews patches to a single realm.", + "canonical": true, + "file": "realms_service.preview_realm_update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", + "async": true, + "parameters": [ + { + "name": "realm", + "type": ".google.cloud.gaming.v1beta.Realm" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "preview_time", + "type": ".google.protobuf.Timestamp" + } + ], + "resultType": ".google.cloud.gaming.v1beta.PreviewRealmUpdateResponse", + "client": { + "shortName": "RealmsServiceClient", + "fullName": "google.cloud.gaming.v1beta.RealmsServiceClient" + }, + "method": { + "shortName": "PreviewRealmUpdate", + "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", + "service": { + "shortName": "RealmsService", + "fullName": "google.cloud.gaming.v1beta.RealmsService" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file From 3cbbc3f7206620f543e87ba5fc9e3a0a07807b54 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 16 May 2022 17:35:19 -0700 Subject: [PATCH 53/60] build!: update library to use Node 12 (#266) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat!: Update library to use Node 12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 589bce6b6a..fb42c43aee 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google LLC", "engines": { - "node": ">=10" + "node": ">=12.0.0" }, "files": [ "*.js" From a3faa95ea3a74faca2510548eb98199b6934bb7b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 17:04:19 -0700 Subject: [PATCH 54/60] chore(main): release 3.0.0 (#267) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 3.0.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .../generated/v1/snippet_metadata.google.cloud.gaming.v1.json | 2 +- .../v1beta/snippet_metadata.google.cloud.gaming.v1beta.json | 2 +- generated,README.md/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index df21cddba1..74bd7a7325 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "2.5.0", + "version": "3.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index fd8ae59f91..6eb15e8048 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "2.5.0", + "version": "3.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/package.json b/generated,README.md/package.json index fb42c43aee..6efa1c0e16 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^2.5.0" + "@google-cloud/game-servers": "^3.0.0" }, "devDependencies": { "c8": "^7.2.1", From 71f5d44c40df45ed402c77e084f6555b5da99959 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Jul 2022 11:21:16 -0400 Subject: [PATCH 55/60] chore(main): release 3.1.0 (#272) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 3.1.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .../generated/v1/snippet_metadata.google.cloud.gaming.v1.json | 2 +- .../v1beta/snippet_metadata.google.cloud.gaming.v1beta.json | 2 +- generated,README.md/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index 74bd7a7325..335980fe8b 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.0.0", + "version": "3.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 6eb15e8048..0476d2c8b2 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.0.0", + "version": "3.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 6efa1c0e16..1a9843e3a4 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^3.0.0" + "@google-cloud/game-servers": "^3.1.0" }, "devDependencies": { "c8": "^7.2.1", From b12231c1874b80e7c60195a8aa4b2af0893069f5 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Tue, 12 Jul 2022 13:32:03 -0700 Subject: [PATCH 56/60] build: do not test if service is unavailable (#275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build: do not test if service is unavailable * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- generated,README.md/test/rollout.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/generated,README.md/test/rollout.js b/generated,README.md/test/rollout.js index 975a78f936..c2bbb53c35 100644 --- a/generated,README.md/test/rollout.js +++ b/generated,README.md/test/rollout.js @@ -162,9 +162,18 @@ describe('Game Server Rollout Test', () => { ), }; - const [rollout] = await deploymentClient.getGameServerDeploymentRollout( - request - ); + let rollout; + try { + [rollout] = await deploymentClient.getGameServerDeploymentRollout( + request + ); + } catch (err) { + if (err.message.includes(/The service is currently unavailable/)) { + return; + } + throw err; + } + assert.strictEqual(rollout.gameServerConfigOverrides.length, 0); }); From 76e0bd013c39dad60776e3338b95e4128b149f5d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:08:15 +0000 Subject: [PATCH 57/60] fix: better support for fallback mode (#305) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 --- ...ters_service.create_game_server_cluster.js | 3 ++ ...ters_service.delete_game_server_cluster.js | 3 ++ ...lusters_service.get_game_server_cluster.js | 3 ++ ...sters_service.list_game_server_clusters.js | 3 ++ ...vice.preview_create_game_server_cluster.js | 3 ++ ...vice.preview_delete_game_server_cluster.js | 3 ++ ...vice.preview_update_game_server_cluster.js | 3 ++ ...ters_service.update_game_server_cluster.js | 3 ++ ...nfigs_service.create_game_server_config.js | 3 ++ ...nfigs_service.delete_game_server_config.js | 3 ++ ..._configs_service.get_game_server_config.js | 3 ++ ...onfigs_service.list_game_server_configs.js | 3 ++ ...s_service.create_game_server_deployment.js | 3 ++ ...s_service.delete_game_server_deployment.js | 3 ++ ...loyments_service.fetch_deployment_state.js | 3 ++ ...ents_service.get_game_server_deployment.js | 3 ++ ...vice.get_game_server_deployment_rollout.js | 3 ++ ...ts_service.list_game_server_deployments.js | 3 ++ ....preview_game_server_deployment_rollout.js | 3 ++ ...s_service.update_game_server_deployment.js | 3 ++ ...e.update_game_server_deployment_rollout.js | 3 ++ .../v1/realms_service.create_realm.js | 3 ++ .../v1/realms_service.delete_realm.js | 3 ++ .../generated/v1/realms_service.get_realm.js | 3 ++ .../v1/realms_service.list_realms.js | 3 ++ .../v1/realms_service.preview_realm_update.js | 3 ++ .../v1/realms_service.update_realm.js | 3 ++ ...ippet_metadata.google.cloud.gaming.v1.json | 54 +++++++++---------- ...ters_service.create_game_server_cluster.js | 3 ++ ...ters_service.delete_game_server_cluster.js | 3 ++ ...lusters_service.get_game_server_cluster.js | 3 ++ ...sters_service.list_game_server_clusters.js | 3 ++ ...vice.preview_create_game_server_cluster.js | 3 ++ ...vice.preview_delete_game_server_cluster.js | 3 ++ ...vice.preview_update_game_server_cluster.js | 3 ++ ...ters_service.update_game_server_cluster.js | 3 ++ ...nfigs_service.create_game_server_config.js | 3 ++ ...nfigs_service.delete_game_server_config.js | 3 ++ ..._configs_service.get_game_server_config.js | 3 ++ ...onfigs_service.list_game_server_configs.js | 3 ++ ...s_service.create_game_server_deployment.js | 3 ++ ...s_service.delete_game_server_deployment.js | 3 ++ ...loyments_service.fetch_deployment_state.js | 3 ++ ...ents_service.get_game_server_deployment.js | 3 ++ ...vice.get_game_server_deployment_rollout.js | 3 ++ ...ts_service.list_game_server_deployments.js | 3 ++ ....preview_game_server_deployment_rollout.js | 3 ++ ...s_service.update_game_server_deployment.js | 3 ++ ...e.update_game_server_deployment_rollout.js | 3 ++ .../v1beta/realms_service.create_realm.js | 3 ++ .../v1beta/realms_service.delete_realm.js | 3 ++ .../v1beta/realms_service.get_realm.js | 3 ++ .../v1beta/realms_service.list_realms.js | 3 ++ .../realms_service.preview_realm_update.js | 3 ++ .../v1beta/realms_service.update_realm.js | 3 ++ ...t_metadata.google.cloud.gaming.v1beta.json | 54 +++++++++---------- 56 files changed, 216 insertions(+), 54 deletions(-) diff --git a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js index 13050309aa..b9a8eecf7d 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.create_game_server_cluster.js @@ -23,6 +23,9 @@ function main(parent, gameServerClusterId, gameServerCluster) { // [START gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js index df81eef6b4..1966da6a80 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.delete_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js index 0a72477981..6a741c5ce8 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.get_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js index 18dd322052..f6411da17b 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.list_game_server_clusters.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js index b758128f84..0713a62e3d 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js @@ -23,6 +23,9 @@ function main(parent, gameServerClusterId, gameServerCluster) { // [START gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js index 3c9385b20b..786f351980 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js index 3b654d16a0..6348196369 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js @@ -23,6 +23,9 @@ function main(gameServerCluster, updateMask) { // [START gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js index 157dba34d1..4da22444a2 100644 --- a/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1/game_server_clusters_service.update_game_server_cluster.js @@ -23,6 +23,9 @@ function main(gameServerCluster, updateMask) { // [START gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js index 68c3234866..78e713d791 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.create_game_server_config.js @@ -23,6 +23,9 @@ function main(parent, configId, gameServerConfig) { // [START gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js index 3b6ac2b286..889474896f 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.delete_game_server_config.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js index bc8668be39..3d31a53248 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1/game_server_configs_service.get_game_server_config.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js index 926292b640..b583c33dd2 100644 --- a/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1/game_server_configs_service.list_game_server_configs.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js index 579d2aed4e..e3f2af1d78 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.create_game_server_deployment.js @@ -23,6 +23,9 @@ function main(parent, deploymentId, gameServerDeployment) { // [START gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js index c1764e7d17..1112f3ff16 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.delete_game_server_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js index 88a9378d12..d2f510c0d2 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.fetch_deployment_state.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js index 46e1f6dcf9..612f36c9da 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js index 0ace7cd478..dd2864a56b 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js index cd7aa5b94c..5b163c39d2 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.list_game_server_deployments.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js index 0632186c9d..5293fca061 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(rollout) { // [START gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js index 37f0ebf942..cabc47340f 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment.js @@ -23,6 +23,9 @@ function main(gameServerDeployment, updateMask) { // [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js index 21de72e147..f6f3711069 100644 --- a/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(rollout, updateMask) { // [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.create_realm.js b/generated,README.md/generated/v1/realms_service.create_realm.js index e0ff05579d..fbc6a819f4 100644 --- a/generated,README.md/generated/v1/realms_service.create_realm.js +++ b/generated,README.md/generated/v1/realms_service.create_realm.js @@ -23,6 +23,9 @@ function main(parent, realmId, realm) { // [START gameservices_v1_generated_RealmsService_CreateRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.delete_realm.js b/generated,README.md/generated/v1/realms_service.delete_realm.js index 8bd12c0e81..eced01aade 100644 --- a/generated,README.md/generated/v1/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1/realms_service.delete_realm.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_RealmsService_DeleteRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.get_realm.js b/generated,README.md/generated/v1/realms_service.get_realm.js index 0cafdb3515..d3f94b1712 100644 --- a/generated,README.md/generated/v1/realms_service.get_realm.js +++ b/generated,README.md/generated/v1/realms_service.get_realm.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1_generated_RealmsService_GetRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.list_realms.js b/generated,README.md/generated/v1/realms_service.list_realms.js index 49a416dff2..68bef442ee 100644 --- a/generated,README.md/generated/v1/realms_service.list_realms.js +++ b/generated,README.md/generated/v1/realms_service.list_realms.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1_generated_RealmsService_ListRealms_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.preview_realm_update.js b/generated,README.md/generated/v1/realms_service.preview_realm_update.js index de43ea2dc0..644e93d491 100644 --- a/generated,README.md/generated/v1/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1/realms_service.preview_realm_update.js @@ -23,6 +23,9 @@ function main(realm, updateMask) { // [START gameservices_v1_generated_RealmsService_PreviewRealmUpdate_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/realms_service.update_realm.js b/generated,README.md/generated/v1/realms_service.update_realm.js index c878c0efe9..4179dbef7a 100644 --- a/generated,README.md/generated/v1/realms_service.update_realm.js +++ b/generated,README.md/generated/v1/realms_service.update_realm.js @@ -23,6 +23,9 @@ function main(realm, updateMask) { // [START gameservices_v1_generated_RealmsService_UpdateRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index 335980fe8b..7ea1b6a86e 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -82,7 +82,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -126,7 +126,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -174,7 +174,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -270,7 +270,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -314,7 +314,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -358,7 +358,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -406,7 +406,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -462,7 +462,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -502,7 +502,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -550,7 +550,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -590,7 +590,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -646,7 +646,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -686,7 +686,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -734,7 +734,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -774,7 +774,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -818,7 +818,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -858,7 +858,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -902,7 +902,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -950,7 +950,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -990,7 +990,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -1046,7 +1046,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1086,7 +1086,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -1134,7 +1134,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1174,7 +1174,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1218,7 +1218,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js index ef5d601d36..fe5320c14c 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.create_game_server_cluster.js @@ -23,6 +23,9 @@ function main(parent, gameServerClusterId, gameServerCluster) { // [START gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js index 2a62e7880a..84cabe9b3a 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.delete_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js index e7f1b11d25..4c507a67da 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.get_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js index 696634bff3..31a2a5947b 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.list_game_server_clusters.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js index 044068729b..9bf2f6dc0c 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_create_game_server_cluster.js @@ -23,6 +23,9 @@ function main(parent, gameServerClusterId, gameServerCluster) { // [START gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js index 1fade1029d..eaf085e063 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_delete_game_server_cluster.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js index bde1416614..95cabe4e80 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.preview_update_game_server_cluster.js @@ -23,6 +23,9 @@ function main(gameServerCluster, updateMask) { // [START gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js index 3b6cc045b4..fcd3349436 100644 --- a/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js +++ b/generated,README.md/generated/v1beta/game_server_clusters_service.update_game_server_cluster.js @@ -23,6 +23,9 @@ function main(gameServerCluster, updateMask) { // [START gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js index fb49085c1d..878996af86 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.create_game_server_config.js @@ -23,6 +23,9 @@ function main(parent, configId, gameServerConfig) { // [START gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js index 2b6c0dc87f..e3f307627d 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.delete_game_server_config.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js index a633554f0f..9fd03435d6 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.get_game_server_config.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js index 0172aad78b..459bf2af4a 100644 --- a/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js +++ b/generated,README.md/generated/v1beta/game_server_configs_service.list_game_server_configs.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js index 1bb5584958..491fa24737 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.create_game_server_deployment.js @@ -23,6 +23,9 @@ function main(parent, deploymentId, gameServerDeployment) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js index 8ea0e55675..64d0d47e95 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.delete_game_server_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js index 4b59aeb94e..fe8618d547 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.fetch_deployment_state.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js index b856e6699a..99533e086c 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js index b3dcc1d196..60c630a448 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.get_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js index f592e7f1b0..f216b0082d 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.list_game_server_deployments.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js index cd4fe13f70..d1050e5f01 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.preview_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(rollout) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js index 69fe50d038..3c29a23ada 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment.js @@ -23,6 +23,9 @@ function main(gameServerDeployment, updateMask) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js index 402f60f424..f4033b8ee3 100644 --- a/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js +++ b/generated,README.md/generated/v1beta/game_server_deployments_service.update_game_server_deployment_rollout.js @@ -23,6 +23,9 @@ function main(rollout, updateMask) { // [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.create_realm.js b/generated,README.md/generated/v1beta/realms_service.create_realm.js index 240e45545b..62c0fcd4b7 100644 --- a/generated,README.md/generated/v1beta/realms_service.create_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.create_realm.js @@ -23,6 +23,9 @@ function main(parent, realmId, realm) { // [START gameservices_v1beta_generated_RealmsService_CreateRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.delete_realm.js b/generated,README.md/generated/v1beta/realms_service.delete_realm.js index 6b4b5e9d48..f082d26994 100644 --- a/generated,README.md/generated/v1beta/realms_service.delete_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.delete_realm.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_RealmsService_DeleteRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.get_realm.js b/generated,README.md/generated/v1beta/realms_service.get_realm.js index ba1726f2e7..3a0f060662 100644 --- a/generated,README.md/generated/v1beta/realms_service.get_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.get_realm.js @@ -23,6 +23,9 @@ function main(name) { // [START gameservices_v1beta_generated_RealmsService_GetRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.list_realms.js b/generated,README.md/generated/v1beta/realms_service.list_realms.js index cd1b5f2c49..10b0feb181 100644 --- a/generated,README.md/generated/v1beta/realms_service.list_realms.js +++ b/generated,README.md/generated/v1beta/realms_service.list_realms.js @@ -23,6 +23,9 @@ function main(parent) { // [START gameservices_v1beta_generated_RealmsService_ListRealms_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js index 38f7cebd15..67c55bd2f7 100644 --- a/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js +++ b/generated,README.md/generated/v1beta/realms_service.preview_realm_update.js @@ -23,6 +23,9 @@ function main(realm, updateMask) { // [START gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/realms_service.update_realm.js b/generated,README.md/generated/v1beta/realms_service.update_realm.js index d906682544..ba91f2afba 100644 --- a/generated,README.md/generated/v1beta/realms_service.update_realm.js +++ b/generated,README.md/generated/v1beta/realms_service.update_realm.js @@ -23,6 +23,9 @@ function main(realm, updateMask) { // [START gameservices_v1beta_generated_RealmsService_UpdateRealm_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 0476d2c8b2..1fba6b48d5 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -78,7 +78,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -118,7 +118,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -166,7 +166,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -218,7 +218,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -258,7 +258,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -302,7 +302,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -346,7 +346,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -394,7 +394,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -450,7 +450,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -490,7 +490,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -538,7 +538,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -578,7 +578,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -634,7 +634,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -674,7 +674,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -722,7 +722,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -762,7 +762,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -806,7 +806,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -846,7 +846,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -890,7 +890,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -938,7 +938,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -1034,7 +1034,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1074,7 +1074,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -1122,7 +1122,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1162,7 +1162,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -1206,7 +1206,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], From 3a3fcb45aa999cd51b985b785e6a625a4c4298f3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 17:55:06 -0400 Subject: [PATCH 58/60] chore(main): release 3.1.1 (#307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 3.1.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .../generated/v1/snippet_metadata.google.cloud.gaming.v1.json | 2 +- .../v1beta/snippet_metadata.google.cloud.gaming.v1beta.json | 2 +- generated,README.md/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index 7ea1b6a86e..7addbe0592 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.1.0", + "version": "3.1.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 1fba6b48d5..1855a58d18 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.1.0", + "version": "3.1.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 1a9843e3a4..43808d1bbe 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^3.1.0" + "@google-cloud/game-servers": "^3.1.1" }, "devDependencies": { "c8": "^7.2.1", From d93d5b3540353efe12c7100e244d799dd5b09a46 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 01:26:20 +0200 Subject: [PATCH 59/60] chore(deps): update dependency uuid to v9 (#312) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [uuid](https://togithub.com/uuidjs/uuid) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/uuid/8.3.2/9.0.0) | [![age](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/compatibility-slim/8.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/confidence-slim/8.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
uuidjs/uuid ### [`v9.0.0`](https://togithub.com/uuidjs/uuid/blob/HEAD/CHANGELOG.md#​900-httpsgithubcomuuidjsuuidcomparev832v900-2022-09-05) [Compare Source](https://togithub.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) ##### ⚠ BREAKING CHANGES - Drop Node.js 10.x support. This library always aims at supporting one EOLed LTS release which by this time now is 12.x which has reached EOL 30 Apr 2022. - Remove the minified UMD build from the package. Minified code is hard to audit and since this is a widely used library it seems more appropriate nowadays to optimize for auditability than to ship a legacy module format that, at best, serves educational purposes nowadays. For production browser use cases, users should be using a bundler. For educational purposes, today's online sandboxes like replit.com offer convenient ways to load npm modules, so the use case for UMD through repos like UNPKG or jsDelivr has largely vanished. - Drop IE 11 and Safari 10 support. Drop support for browsers that don't correctly implement const/let and default arguments, and no longer transpile the browser build to ES2015. This also removes the fallback on msCrypto instead of the crypto API. Browser tests are run in the first supported version of each supported browser and in the latest (as of this commit) version available on Browserstack. ##### Features - optimize uuid.v1 by 1.3x uuid.v4 by 4.3x (430%) ([#​597](https://togithub.com/uuidjs/uuid/issues/597)) ([3a033f6](https://togithub.com/uuidjs/uuid/commit/3a033f6bab6bb3780ece6d645b902548043280bc)) - remove UMD build ([#​645](https://togithub.com/uuidjs/uuid/issues/645)) ([e948a0f](https://togithub.com/uuidjs/uuid/commit/e948a0f22bf22f4619b27bd913885e478e20fe6f)), closes [#​620](https://togithub.com/uuidjs/uuid/issues/620) - use native crypto.randomUUID when available ([#​600](https://togithub.com/uuidjs/uuid/issues/600)) ([c9e076c](https://togithub.com/uuidjs/uuid/commit/c9e076c852edad7e9a06baaa1d148cf4eda6c6c4)) ##### Bug Fixes - add Jest/jsdom compatibility ([#​642](https://togithub.com/uuidjs/uuid/issues/642)) ([16f9c46](https://togithub.com/uuidjs/uuid/commit/16f9c469edf46f0786164cdf4dc980743984a6fd)) - change default export to named function ([#​545](https://togithub.com/uuidjs/uuid/issues/545)) ([c57bc5a](https://togithub.com/uuidjs/uuid/commit/c57bc5a9a0653273aa639cda9177ce52efabe42a)) - handle error when parameter is not set in v3 and v5 ([#​622](https://togithub.com/uuidjs/uuid/issues/622)) ([fcd7388](https://togithub.com/uuidjs/uuid/commit/fcd73881692d9fabb63872576ba28e30ff852091)) - run npm audit fix ([#​644](https://togithub.com/uuidjs/uuid/issues/644)) ([04686f5](https://togithub.com/uuidjs/uuid/commit/04686f54c5fed2cfffc1b619f4970c4bb8532353)) - upgrading from uuid3 broken link ([#​568](https://togithub.com/uuidjs/uuid/issues/568)) ([1c849da](https://togithub.com/uuidjs/uuid/commit/1c849da6e164259e72e18636726345b13a7eddd6)) ##### build - drop Node.js 8.x from babel transpile target ([#​603](https://togithub.com/uuidjs/uuid/issues/603)) ([aa11485](https://togithub.com/uuidjs/uuid/commit/aa114858260402107ec8a1e1a825dea0a259bcb5)) - drop support for legacy browsers (IE11, Safari 10) ([#​604](https://togithub.com/uuidjs/uuid/issues/604)) ([0f433e5](https://togithub.com/uuidjs/uuid/commit/0f433e5ec444edacd53016de67db021102f36148)) - drop node 10.x to upgrade dev dependencies ([#​653](https://togithub.com/uuidjs/uuid/issues/653)) ([28a5712](https://togithub.com/uuidjs/uuid/commit/28a571283f8abda6b9d85e689f95b7d3ee9e282e)), closes [#​643](https://togithub.com/uuidjs/uuid/issues/643) ##### [8.3.2](https://togithub.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08) ##### Bug Fixes - lazy load getRandomValues ([#​537](https://togithub.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://togithub.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#​536](https://togithub.com/uuidjs/uuid/issues/536) ##### [8.3.1](https://togithub.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04) ##### Bug Fixes - support expo>=39.0.0 ([#​515](https://togithub.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://togithub.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#​375](https://togithub.com/uuidjs/uuid/issues/375)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-game-servers). --- generated,README.md/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 43808d1bbe..0575371282 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -19,6 +19,6 @@ "c8": "^7.2.1", "chai": "^4.2.0", "mocha": "^8.0.0", - "uuid": "^8.0.0" + "uuid": "^9.0.0" } } From 2520a8b1bfeecf9e60e0982ace0efbda2f519535 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 14:24:02 -0700 Subject: [PATCH 60/60] chore(main): release 3.1.2 (#314) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 3.1.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- .../generated/v1/snippet_metadata.google.cloud.gaming.v1.json | 2 +- .../v1beta/snippet_metadata.google.cloud.gaming.v1beta.json | 2 +- generated,README.md/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json index 7addbe0592..e01e8e711e 100644 --- a/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json +++ b/generated,README.md/generated/v1/snippet_metadata.google.cloud.gaming.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.1.1", + "version": "3.1.2", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json index 1855a58d18..4a97faa7c8 100644 --- a/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ b/generated,README.md/generated/v1beta/snippet_metadata.google.cloud.gaming.v1beta.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-gaming", - "version": "3.1.1", + "version": "3.1.2", "language": "TYPESCRIPT", "apis": [ { diff --git a/generated,README.md/package.json b/generated,README.md/package.json index 0575371282..e9d4c3a6e8 100644 --- a/generated,README.md/package.json +++ b/generated,README.md/package.json @@ -13,7 +13,7 @@ "test": "c8 mocha --timeout 600000 test/*.js" }, "dependencies": { - "@google-cloud/game-servers": "^3.1.1" + "@google-cloud/game-servers": "^3.1.2" }, "devDependencies": { "c8": "^7.2.1",