game_server_clusters_service.proto 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // Copyright 2020 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.v1beta;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/cloud/gaming/v1beta/game_server_clusters.proto";
  19. import "google/longrunning/operations.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/gaming/v1beta;gaming";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.cloud.gaming.v1beta";
  23. option php_namespace = "Google\\Cloud\\Gaming\\V1beta";
  24. // The game server cluster maps to Kubernetes clusters running Agones and is
  25. // used to manage fleets within clusters.
  26. service GameServerClustersService {
  27. option (google.api.default_host) = "gameservices.googleapis.com";
  28. option (google.api.oauth_scopes) =
  29. "https://www.googleapis.com/auth/cloud-platform";
  30. // Lists game server clusters in a given project and location.
  31. rpc ListGameServerClusters(ListGameServerClustersRequest)
  32. returns (ListGameServerClustersResponse) {
  33. option (google.api.http) = {
  34. get: "/v1beta/{parent=projects/*/locations/*/realms/*}/gameServerClusters"
  35. };
  36. option (google.api.method_signature) = "parent";
  37. }
  38. // Gets details of a single game server cluster.
  39. rpc GetGameServerCluster(GetGameServerClusterRequest)
  40. returns (GameServerCluster) {
  41. option (google.api.http) = {
  42. get: "/v1beta/{name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  43. };
  44. option (google.api.method_signature) = "name";
  45. }
  46. // Creates a new game server cluster in a given project and location.
  47. rpc CreateGameServerCluster(CreateGameServerClusterRequest)
  48. returns (google.longrunning.Operation) {
  49. option (google.api.http) = {
  50. post: "/v1beta/{parent=projects/*/locations/*/realms/*}/gameServerClusters"
  51. body: "game_server_cluster"
  52. };
  53. option (google.api.method_signature) =
  54. "parent,game_server_cluster,game_server_cluster_id";
  55. option (google.longrunning.operation_info) = {
  56. response_type: "GameServerCluster"
  57. metadata_type: "OperationMetadata"
  58. };
  59. }
  60. // Previews creation of a new game server cluster in a given project and
  61. // location.
  62. rpc PreviewCreateGameServerCluster(PreviewCreateGameServerClusterRequest)
  63. returns (PreviewCreateGameServerClusterResponse) {
  64. option (google.api.http) = {
  65. post: "/v1beta/{parent=projects/*/locations/*/realms/*}/gameServerClusters:previewCreate"
  66. body: "game_server_cluster"
  67. };
  68. }
  69. // Deletes a single game server cluster.
  70. rpc DeleteGameServerCluster(DeleteGameServerClusterRequest)
  71. returns (google.longrunning.Operation) {
  72. option (google.api.http) = {
  73. delete: "/v1beta/{name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  74. };
  75. option (google.api.method_signature) = "name";
  76. option (google.longrunning.operation_info) = {
  77. response_type: "google.protobuf.Empty"
  78. metadata_type: "OperationMetadata"
  79. };
  80. }
  81. // Previews deletion of a single game server cluster.
  82. rpc PreviewDeleteGameServerCluster(PreviewDeleteGameServerClusterRequest)
  83. returns (PreviewDeleteGameServerClusterResponse) {
  84. option (google.api.http) = {
  85. delete: "/v1beta/{name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewDelete"
  86. };
  87. }
  88. // Patches a single game server cluster.
  89. rpc UpdateGameServerCluster(UpdateGameServerClusterRequest)
  90. returns (google.longrunning.Operation) {
  91. option (google.api.http) = {
  92. patch: "/v1beta/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}"
  93. body: "game_server_cluster"
  94. };
  95. option (google.api.method_signature) = "game_server_cluster,update_mask";
  96. option (google.longrunning.operation_info) = {
  97. response_type: "GameServerCluster"
  98. metadata_type: "OperationMetadata"
  99. };
  100. }
  101. // Previews updating a GameServerCluster.
  102. rpc PreviewUpdateGameServerCluster(PreviewUpdateGameServerClusterRequest)
  103. returns (PreviewUpdateGameServerClusterResponse) {
  104. option (google.api.http) = {
  105. patch: "/v1beta/{game_server_cluster.name=projects/*/locations/*/realms/*/gameServerClusters/*}:previewUpdate"
  106. body: "game_server_cluster"
  107. };
  108. }
  109. }