Skip to content

Commit 5fdd967

Browse files
docs(samples): add example tags to generated samples (#229)
* docs(samples): add example tags to generated samples PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4759759 commit 5fdd967

File tree

63 files changed

+1531
-1659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1531
-1659
lines changed

packages/google-cloud-gaming/linkinator.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 10
9+
"concurrency": 5
1010
}

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.create_game_server_cluster.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main(parent, gameServerClusterId, gameServerCluster) {
3131
/**
3232
* Required. The game server cluster resource to be created.
3333
*/
34-
// const gameServerCluster = ''
34+
// const gameServerCluster = {}
3535

3636
// Imports the Gaming library
3737
const {GameServerClustersServiceClient} =
@@ -40,7 +40,7 @@ function main(parent, gameServerClusterId, gameServerCluster) {
4040
// Instantiates a client
4141
const gamingClient = new GameServerClustersServiceClient();
4242

43-
async function createGameServerCluster() {
43+
async function callCreateGameServerCluster() {
4444
// Construct request
4545
const request = {
4646
parent,
@@ -54,7 +54,7 @@ function main(parent, gameServerClusterId, gameServerCluster) {
5454
console.log(response);
5555
}
5656

57-
createGameServerCluster();
57+
callCreateGameServerCluster();
5858
// [END gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_async]
5959
}
6060

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.delete_game_server_cluster.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const gamingClient = new GameServerClustersServiceClient();
3434

35-
async function deleteGameServerCluster() {
35+
async function callDeleteGameServerCluster() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
deleteGameServerCluster();
47+
callDeleteGameServerCluster();
4848
// [END gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_async]
4949
}
5050

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.get_game_server_cluster.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
* value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
3333
* not return the `cluster_state` field.
3434
*/
35-
// const view = ''
35+
// const view = {}
3636

3737
// Imports the Gaming library
3838
const {GameServerClustersServiceClient} =
@@ -41,7 +41,7 @@ function main(name) {
4141
// Instantiates a client
4242
const gamingClient = new GameServerClustersServiceClient();
4343

44-
async function getGameServerCluster() {
44+
async function callGetGameServerCluster() {
4545
// Construct request
4646
const request = {
4747
name,
@@ -52,7 +52,7 @@ function main(name) {
5252
console.log(response);
5353
}
5454

55-
getGameServerCluster();
55+
callGetGameServerCluster();
5656
// [END gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_async]
5757
}
5858

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.list_game_server_clusters.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function main(parent) {
2828
* Optional. The maximum number of items to return. If unspecified, the server
2929
* will pick an appropriate default. The server may return fewer items than
3030
* requested. A caller should only rely on response's
31-
* [next_page_token][google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token] to
31+
* next_page_token google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token to
3232
* determine if there are more GameServerClusters left to be queried.
3333
*/
3434
// const pageSize = 1234
@@ -53,7 +53,7 @@ function main(parent) {
5353
* value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
5454
* not return the `cluster_state` field.
5555
*/
56-
// const view = ''
56+
// const view = {}
5757

5858
// Imports the Gaming library
5959
const {GameServerClustersServiceClient} =
@@ -62,7 +62,7 @@ function main(parent) {
6262
// Instantiates a client
6363
const gamingClient = new GameServerClustersServiceClient();
6464

65-
async function listGameServerClusters() {
65+
async function callListGameServerClusters() {
6666
// Construct request
6767
const request = {
6868
parent,
@@ -75,7 +75,7 @@ function main(parent) {
7575
}
7676
}
7777

78-
listGameServerClusters();
78+
callListGameServerClusters();
7979
// [END gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_async]
8080
}
8181

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.preview_create_game_server_cluster.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ function main(parent, gameServerClusterId, gameServerCluster) {
3131
/**
3232
* Required. The game server cluster resource to be created.
3333
*/
34-
// const gameServerCluster = ''
34+
// const gameServerCluster = {}
3535
/**
3636
* Optional. The target timestamp to compute the preview.
3737
*/
38-
// const previewTime = ''
38+
// const previewTime = {}
3939
/**
4040
* Optional. This field is deprecated, preview will always return
4141
* KubernetesClusterState.
4242
*/
43-
// const view = ''
43+
// const view = {}
4444

4545
// Imports the Gaming library
4646
const {GameServerClustersServiceClient} =
@@ -49,7 +49,7 @@ function main(parent, gameServerClusterId, gameServerCluster) {
4949
// Instantiates a client
5050
const gamingClient = new GameServerClustersServiceClient();
5151

52-
async function previewCreateGameServerCluster() {
52+
async function callPreviewCreateGameServerCluster() {
5353
// Construct request
5454
const request = {
5555
parent,
@@ -62,7 +62,7 @@ function main(parent, gameServerClusterId, gameServerCluster) {
6262
console.log(response);
6363
}
6464

65-
previewCreateGameServerCluster();
65+
callPreviewCreateGameServerCluster();
6666
// [END gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_async]
6767
}
6868

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.preview_delete_game_server_cluster.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main(name) {
2727
/**
2828
* Optional. The target timestamp to compute the preview.
2929
*/
30-
// const previewTime = ''
30+
// const previewTime = {}
3131

3232
// Imports the Gaming library
3333
const {GameServerClustersServiceClient} =
@@ -36,7 +36,7 @@ function main(name) {
3636
// Instantiates a client
3737
const gamingClient = new GameServerClustersServiceClient();
3838

39-
async function previewDeleteGameServerCluster() {
39+
async function callPreviewDeleteGameServerCluster() {
4040
// Construct request
4141
const request = {
4242
name,
@@ -47,7 +47,7 @@ function main(name) {
4747
console.log(response);
4848
}
4949

50-
previewDeleteGameServerCluster();
50+
callPreviewDeleteGameServerCluster();
5151
// [END gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_async]
5252
}
5353

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.preview_update_game_server_cluster.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ function main(gameServerCluster, updateMask) {
2323
* Required. The game server cluster to be updated.
2424
* Only fields specified in update_mask are updated.
2525
*/
26-
// const gameServerCluster = ''
26+
// const gameServerCluster = {}
2727
/**
2828
* Required. Mask of fields to update. At least one path must be supplied in
2929
* this field. For the `FieldMask` definition, see
3030
* https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
3131
*/
32-
// const updateMask = ''
32+
// const updateMask = {}
3333
/**
3434
* Optional. The target timestamp to compute the preview.
3535
*/
36-
// const previewTime = ''
36+
// const previewTime = {}
3737

3838
// Imports the Gaming library
3939
const {GameServerClustersServiceClient} =
@@ -42,7 +42,7 @@ function main(gameServerCluster, updateMask) {
4242
// Instantiates a client
4343
const gamingClient = new GameServerClustersServiceClient();
4444

45-
async function previewUpdateGameServerCluster() {
45+
async function callPreviewUpdateGameServerCluster() {
4646
// Construct request
4747
const request = {
4848
gameServerCluster,
@@ -54,7 +54,7 @@ function main(gameServerCluster, updateMask) {
5454
console.log(response);
5555
}
5656

57-
previewUpdateGameServerCluster();
57+
callPreviewUpdateGameServerCluster();
5858
// [END gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_async]
5959
}
6060

packages/google-cloud-gaming/samples/generated/v1/game_server_clusters_service.update_game_server_cluster.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ function main(gameServerCluster, updateMask) {
2323
* Required. The game server cluster to be updated.
2424
* Only fields specified in update_mask are updated.
2525
*/
26-
// const gameServerCluster = ''
26+
// const gameServerCluster = {}
2727
/**
2828
* Required. Mask of fields to update. At least one path must be supplied in
2929
* this field. For the `FieldMask` definition, see
3030
* https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
3131
*/
32-
// const updateMask = ''
32+
// const updateMask = {}
3333

3434
// Imports the Gaming library
3535
const {GameServerClustersServiceClient} =
@@ -38,7 +38,7 @@ function main(gameServerCluster, updateMask) {
3838
// Instantiates a client
3939
const gamingClient = new GameServerClustersServiceClient();
4040

41-
async function updateGameServerCluster() {
41+
async function callUpdateGameServerCluster() {
4242
// Construct request
4343
const request = {
4444
gameServerCluster,
@@ -51,7 +51,7 @@ function main(gameServerCluster, updateMask) {
5151
console.log(response);
5252
}
5353

54-
updateGameServerCluster();
54+
callUpdateGameServerCluster();
5555
// [END gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_async]
5656
}
5757

packages/google-cloud-gaming/samples/generated/v1/game_server_configs_service.create_game_server_config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main(parent, configId, gameServerConfig) {
3131
/**
3232
* Required. The game server config resource to be created.
3333
*/
34-
// const gameServerConfig = ''
34+
// const gameServerConfig = {}
3535

3636
// Imports the Gaming library
3737
const {GameServerConfigsServiceClient} =
@@ -40,7 +40,7 @@ function main(parent, configId, gameServerConfig) {
4040
// Instantiates a client
4141
const gamingClient = new GameServerConfigsServiceClient();
4242

43-
async function createGameServerConfig() {
43+
async function callCreateGameServerConfig() {
4444
// Construct request
4545
const request = {
4646
parent,
@@ -54,7 +54,7 @@ function main(parent, configId, gameServerConfig) {
5454
console.log(response);
5555
}
5656

57-
createGameServerConfig();
57+
callCreateGameServerConfig();
5858
// [END gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_async]
5959
}
6060

packages/google-cloud-gaming/samples/generated/v1/game_server_configs_service.delete_game_server_config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const gamingClient = new GameServerConfigsServiceClient();
3434

35-
async function deleteGameServerConfig() {
35+
async function callDeleteGameServerConfig() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
deleteGameServerConfig();
47+
callDeleteGameServerConfig();
4848
// [END gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_async]
4949
}
5050

packages/google-cloud-gaming/samples/generated/v1/game_server_configs_service.get_game_server_config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const gamingClient = new GameServerConfigsServiceClient();
3434

35-
async function getGameServerConfig() {
35+
async function callGetGameServerConfig() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -43,7 +43,7 @@ function main(name) {
4343
console.log(response);
4444
}
4545

46-
getGameServerConfig();
46+
callGetGameServerConfig();
4747
// [END gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_async]
4848
}
4949

packages/google-cloud-gaming/samples/generated/v1/game_server_configs_service.list_game_server_configs.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function main(parent) {
2828
* Optional. The maximum number of items to return. If unspecified, server
2929
* will pick an appropriate default. Server may return fewer items than
3030
* requested. A caller should only rely on response's
31-
* [next_page_token][google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token] to
31+
* next_page_token google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token to
3232
* determine if there are more GameServerConfigs left to be queried.
3333
*/
3434
// const pageSize = 1234
@@ -53,7 +53,7 @@ function main(parent) {
5353
// Instantiates a client
5454
const gamingClient = new GameServerConfigsServiceClient();
5555

56-
async function listGameServerConfigs() {
56+
async function callListGameServerConfigs() {
5757
// Construct request
5858
const request = {
5959
parent,
@@ -66,7 +66,7 @@ function main(parent) {
6666
}
6767
}
6868

69-
listGameServerConfigs();
69+
callListGameServerConfigs();
7070
// [END gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_async]
7171
}
7272

packages/google-cloud-gaming/samples/generated/v1/game_server_deployments_service.create_game_server_deployment.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main(parent, deploymentId, gameServerDeployment) {
3131
/**
3232
* Required. The game server delpoyment resource to be created.
3333
*/
34-
// const gameServerDeployment = ''
34+
// const gameServerDeployment = {}
3535

3636
// Imports the Gaming library
3737
const {GameServerDeploymentsServiceClient} =
@@ -40,7 +40,7 @@ function main(parent, deploymentId, gameServerDeployment) {
4040
// Instantiates a client
4141
const gamingClient = new GameServerDeploymentsServiceClient();
4242

43-
async function createGameServerDeployment() {
43+
async function callCreateGameServerDeployment() {
4444
// Construct request
4545
const request = {
4646
parent,
@@ -54,7 +54,7 @@ function main(parent, deploymentId, gameServerDeployment) {
5454
console.log(response);
5555
}
5656

57-
createGameServerDeployment();
57+
callCreateGameServerDeployment();
5858
// [END gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_async]
5959
}
6060

packages/google-cloud-gaming/samples/generated/v1/game_server_deployments_service.delete_game_server_deployment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(name) {
3232
// Instantiates a client
3333
const gamingClient = new GameServerDeploymentsServiceClient();
3434

35-
async function deleteGameServerDeployment() {
35+
async function callDeleteGameServerDeployment() {
3636
// Construct request
3737
const request = {
3838
name,
@@ -44,7 +44,7 @@ function main(name) {
4444
console.log(response);
4545
}
4646

47-
deleteGameServerDeployment();
47+
callDeleteGameServerDeployment();
4848
// [END gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_async]
4949
}
5050

0 commit comments

Comments
 (0)