Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

feat: support version reporting API #520

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -188,7 +188,7 @@ public final OperationsClient getOperationsClient() {
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* @param parent Required. The parent resource name, in the following form:
* "projects/{project}/locations/{location}/realms/{realm}".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -218,7 +218,7 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(RealmNam
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* @param parent Required. The parent resource name, in the following form:
* "projects/{project}/locations/{location}/realms/{realm}".
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -246,6 +246,7 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(String p
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setView(GameServerClusterView.forNumber(0))
* .build();
* for (GameServerCluster element :
* gameServerClustersServiceClient.listGameServerClusters(request).iterateAll()) {
Expand Down Expand Up @@ -280,6 +281,7 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setView(GameServerClusterView.forNumber(0))
* .build();
* ApiFuture<GameServerCluster> future =
* gameServerClustersServiceClient.listGameServerClustersPagedCallable().futureCall(request);
Expand Down Expand Up @@ -313,6 +315,7 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(
* .setPageToken("pageToken873572522")
* .setFilter("filter-1274492040")
* .setOrderBy("orderBy-1207110587")
* .setView(GameServerClusterView.forNumber(0))
* .build();
* while (true) {
* ListGameServerClustersResponse response =
Expand Down Expand Up @@ -350,8 +353,8 @@ public final ListGameServerClustersPagedResponse listGameServerClusters(
* }
* }</pre>
*
* @param name Required. The name of the game server cluster to retrieve. Uses the form:
* <p>`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @param name Required. The name of the game server cluster to retrieve, in the following form:
* `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GameServerCluster getGameServerCluster(GameServerClusterName name) {
Expand All @@ -377,8 +380,8 @@ public final GameServerCluster getGameServerCluster(GameServerClusterName name)
* }
* }</pre>
*
* @param name Required. The name of the game server cluster to retrieve. Uses the form:
* <p>`projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @param name Required. The name of the game server cluster to retrieve, in the following form:
* `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GameServerCluster getGameServerCluster(String name) {
Expand All @@ -401,6 +404,7 @@ public final GameServerCluster getGameServerCluster(String name) {
* .setName(
* GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
* .toString())
* .setView(GameServerClusterView.forNumber(0))
* .build();
* GameServerCluster response = gameServerClustersServiceClient.getGameServerCluster(request);
* }
Expand All @@ -427,6 +431,7 @@ public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest
* .setName(
* GameServerClusterName.of("[PROJECT]", "[LOCATION]", "[REALM]", "[CLUSTER]")
* .toString())
* .setView(GameServerClusterView.forNumber(0))
* .build();
* ApiFuture<GameServerCluster> future =
* gameServerClustersServiceClient.getGameServerClusterCallable().futureCall(request);
Expand Down Expand Up @@ -459,7 +464,7 @@ public final GameServerCluster getGameServerCluster(GetGameServerClusterRequest
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/realms/{realm-id}`.
* @param gameServerCluster Required. The game server cluster resource to be created.
* @param gameServerClusterId Required. The ID of the game server cluster resource to be created.
Expand Down Expand Up @@ -496,7 +501,7 @@ public final OperationFuture<GameServerCluster, OperationMetadata> createGameSer
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/realms/{realm-id}`.
* @param gameServerCluster Required. The game server cluster resource to be created.
* @param gameServerClusterId Required. The ID of the game server cluster resource to be created.
Expand Down Expand Up @@ -621,6 +626,7 @@ public final OperationFuture<GameServerCluster, OperationMetadata> createGameSer
* .setGameServerClusterId("gameServerClusterId-1301104032")
* .setGameServerCluster(GameServerCluster.newBuilder().build())
* .setPreviewTime(Timestamp.newBuilder().build())
* .setView(GameServerClusterView.forNumber(0))
* .build();
* PreviewCreateGameServerClusterResponse response =
* gameServerClustersServiceClient.previewCreateGameServerCluster(request);
Expand Down Expand Up @@ -652,6 +658,7 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust
* .setGameServerClusterId("gameServerClusterId-1301104032")
* .setGameServerCluster(GameServerCluster.newBuilder().build())
* .setPreviewTime(Timestamp.newBuilder().build())
* .setView(GameServerClusterView.forNumber(0))
* .build();
* ApiFuture<PreviewCreateGameServerClusterResponse> future =
* gameServerClustersServiceClient
Expand Down Expand Up @@ -683,7 +690,7 @@ public final PreviewCreateGameServerClusterResponse previewCreateGameServerClust
* }
* }</pre>
*
* @param name Required. The name of the game server cluster to delete. Uses the form:
* @param name Required. The name of the game server cluster to delete, in the following form:
* `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -711,7 +718,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteGameServerClusterAs
* }
* }</pre>
*
* @param name Required. The name of the game server cluster to delete. Uses the form:
* @param name Required. The name of the game server cluster to delete, in the following form:
* `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -886,8 +893,7 @@ public final PreviewDeleteGameServerClusterResponse previewDeleteGameServerClust
* in update_mask are updated.
* @param updateMask Required. Mask of fields to update. At least one path must be supplied in
* this field. For the `FieldMask` definition, see
* <p>https: //developers.google.com/protocol-buffers //
* /docs/reference/google.protobuf#fieldmask
* https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<GameServerCluster, OperationMetadata> updateGameServerClusterAsync(
Expand Down
Expand Up @@ -187,8 +187,8 @@ public final OperationsClient getOperationsClient() {
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/&#42;`.
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/&#42;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListGameServerConfigsPagedResponse listGameServerConfigs(
Expand Down Expand Up @@ -218,8 +218,8 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/&#42;`.
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/&#42;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListGameServerConfigsPagedResponse listGameServerConfigs(String parent) {
Expand Down Expand Up @@ -350,8 +350,8 @@ public final ListGameServerConfigsPagedResponse listGameServerConfigs(
* }
* }</pre>
*
* @param name Required. The name of the game server config to retrieve. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @param name Required. The name of the game server config to retrieve, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GameServerConfig getGameServerConfig(GameServerConfigName name) {
Expand All @@ -377,8 +377,8 @@ public final GameServerConfig getGameServerConfig(GameServerConfigName name) {
* }
* }</pre>
*
* @param name Required. The name of the game server config to retrieve. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @param name Required. The name of the game server config to retrieve, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final GameServerConfig getGameServerConfig(String name) {
Expand Down Expand Up @@ -461,8 +461,8 @@ public final GameServerConfig getGameServerConfig(GetGameServerConfigRequest req
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -497,8 +497,8 @@ public final OperationFuture<GameServerConfig, OperationMetadata> createGameServ
* }
* }</pre>
*
* @param parent Required. The parent resource name. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param parent Required. The parent resource name, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
* @param gameServerConfig Required. The game server config resource to be created.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -624,8 +624,8 @@ public final OperationFuture<GameServerConfig, OperationMetadata> createGameServ
* }
* }</pre>
*
* @param name Required. The name of the game server config to delete. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @param name Required. The name of the game server config to delete, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, OperationMetadata> deleteGameServerConfigAsync(
Expand Down Expand Up @@ -653,8 +653,8 @@ public final OperationFuture<Empty, OperationMetadata> deleteGameServerConfigAsy
* }
* }</pre>
*
* @param name Required. The name of the game server config to delete. Uses the form:
* <p>`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @param name Required. The name of the game server config to delete, in the following form:
* `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, OperationMetadata> deleteGameServerConfigAsync(String name) {
Expand Down