diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index e670cd7a..0048c8ec 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -10,7 +10,6 @@ env_vars: { key: "JOB_TYPE" value: "integration" } - # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg index 8212ad4f..dded67a9 100644 --- a/.kokoro/presubmit/integration.cfg +++ b/.kokoro/presubmit/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GOOGLE_CLOUD_PROJECT" + key: "GCLOUD_PROJECT" value: "gcloud-devel" } env_vars: { - key: "GCLOUD_PROJECT" + key: "GOOGLE_CLOUD_PROJECT" value: "gcloud-devel" } diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg index 4082da61..01e09600 100644 --- a/.kokoro/presubmit/samples.cfg +++ b/.kokoro/presubmit/samples.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GOOGLE_CLOUD_PROJECT" + key: "GCLOUD_PROJECT" value: "java-docs-samples-testing" } env_vars: { - key: "GCLOUD_PROJECT" + key: "GOOGLE_CLOUD_PROJECT" value: "java-docs-samples-testing" } diff --git a/README.md b/README.md index 18772df0..1ef694f6 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,30 @@ use this Cloud Gaming Client Library. +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/java-game-servers/tree/master/samples) directory. The samples' `README.md` +has instructions for running the samples. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Create Cluster | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/clusters/CreateCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/clusters/CreateCluster.java) | +| Delete Cluster | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/clusters/DeleteCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/clusters/DeleteCluster.java) | +| Get Cluster | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/clusters/GetCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/clusters/GetCluster.java) | +| List Clusters | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/clusters/ListClusters.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/clusters/ListClusters.java) | +| Update Cluster | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/clusters/UpdateCluster.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/clusters/UpdateCluster.java) | +| Create Deployment | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/deployments/CreateDeployment.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/deployments/CreateDeployment.java) | +| Delete Deployment | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/deployments/DeleteDeployment.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/deployments/DeleteDeployment.java) | +| Get Deployment | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/deployments/GetDeployment.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/deployments/GetDeployment.java) | +| List Deployments | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/deployments/ListDeployments.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/deployments/ListDeployments.java) | +| Update Deployment | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/deployments/UpdateDeployment.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/deployments/UpdateDeployment.java) | +| Create Realm | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/realms/CreateRealm.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/realms/CreateRealm.java) | +| Delete Realm | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/realms/DeleteRealm.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/realms/DeleteRealm.java) | +| Get Realm | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/realms/GetRealm.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/realms/GetRealm.java) | +| List Realms | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/realms/ListRealms.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/realms/ListRealms.java) | +| Update Realm | [source code](https://github.com/googleapis/java-game-servers/blob/master/samples/snippets/src/main/java/com/example/gameservices/realms/UpdateRealm.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-game-servers&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/gameservices/realms/UpdateRealm.java) | + + ## Troubleshooting diff --git a/synth.metadata b/synth.metadata index bd1565bf..e5bdf00b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-game-servers.git", - "sha": "b3f6ca29a9559344e7a59f0496e0dddb49b07880" + "sha": "f775977f4679c02e8f551d8a22f644cbf0908dbe" } }, {