Skip to content

Commit

Permalink
docs(samples): change tags to be aligned with golang samples (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
pooneh-m authored Jul 16, 2020
1 parent cbf88f8 commit d32da4d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/create_cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/create_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/create_realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/delete_cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/delete_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/delete_realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/get_cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/get_deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/get_realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/list_clusters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/list_deployments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions cloud-game-servers/snippets/list_realms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 => {
Expand Down

0 comments on commit d32da4d

Please sign in to comment.