game_server_clusters_service.proto 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.gaming.v1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/cloud/gaming/v1/game_server_clusters.proto";
  19. import "google/longrunning/operations.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1;gaming";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.cloud.gaming.v1";
  23. // The game server cluster maps to Kubernetes clusters running Agones and is
  24. // used to manage fleets within clusters.
  25. service GameServerClustersService {
  26. option (google.api.default_host) = "gameservices.googleapis.com";
  27. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  28. // Lists game server clusters in a given project and location.
  29. rpc ListGameServerClusters(ListGameServerClustersRequest) returns (ListGameServerClustersResponse) {
  30. option (google.api.http) = {
  31. get: "/v1/{parent=projects/*/locations/*/realms/*}/gameServerClusters"
  32. };
  33. option (google.api.method_signature) = "parent";
  34. }
  35. // Gets details of a single game server cluster.
  36. rpc GetGameServerCluster(GetGameServerClusterRequest) returns (GameServerCluster) {
  37. option (google.api.http) = {
  38. get: "/v1/{name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  39. };
  40. option (google.api.method_signature) = "name";
  41. }
  42. // Creates a new game server cluster in a given project and location.
  43. rpc CreateGameServerCluster(CreateGameServerClusterRequest) returns (google.longrunning.Operation) {
  44. option (google.api.http) = {
  45. post: "/v1/{parent=projects/*/locations/*/realms/*}/gameServerClusters"
  46. body: "game_server_cluster"
  47. };
  48. option (google.api.method_signature) = "parent,game_server_cluster,game_server_cluster_id";
  49. option (google.longrunning.operation_info) = {
  50. response_type: "GameServerCluster"
  51. metadata_type: "OperationMetadata"
  52. };
  53. }
  54. // Previews creation of a new game server cluster in a given project and
  55. // location.
  56. rpc PreviewCreateGameServerCluster(PreviewCreateGameServerClusterRequest) returns (PreviewCreateGameServerClusterResponse) {
  57. option (google.api.http) = {
  58. post: "/v1/{parent=projects/*/locations/*/realms/*}/gameServerClusters:previewCreate"
  59. body: "game_server_cluster"
  60. };
  61. }
  62. // Deletes a single game server cluster.
  63. rpc DeleteGameServerCluster(DeleteGameServerClusterRequest) returns (google.longrunning.Operation) {
  64. option (google.api.http) = {
  65. delete: "/v1/{name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  66. };
  67. option (google.api.method_signature) = "name";
  68. option (google.longrunning.operation_info) = {
  69. response_type: "google.protobuf.Empty"
  70. metadata_type: "OperationMetadata"
  71. };
  72. }
  73. // Previews deletion of a single game server cluster.
  74. rpc PreviewDeleteGameServerCluster(PreviewDeleteGameServerClusterRequest) returns (PreviewDeleteGameServerClusterResponse) {
  75. option (google.api.http) = {
  76. delete: "/v1/{name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewDelete"
  77. };
  78. }
  79. // Patches a single game server cluster.
  80. rpc UpdateGameServerCluster(UpdateGameServerClusterRequest) returns (google.longrunning.Operation) {
  81. option (google.api.http) = {
  82. patch: "/v1/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  83. body: "game_server_cluster"
  84. };
  85. option (google.api.method_signature) = "game_server_cluster,update_mask";
  86. option (google.longrunning.operation_info) = {
  87. response_type: "GameServerCluster"
  88. metadata_type: "OperationMetadata"
  89. };
  90. }
  91. // Previews updating a GameServerCluster.
  92. rpc PreviewUpdateGameServerCluster(PreviewUpdateGameServerClusterRequest) returns (PreviewUpdateGameServerClusterResponse) {
  93. option (google.api.http) = {
  94. patch: "/v1/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewUpdate"
  95. body: "game_server_cluster"
  96. };
  97. }
  98. }