game_server_configs_service.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_configs.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 config configures the game servers in an Agones fleet.
  25. service GameServerConfigsService {
  26. option (google.api.default_host) = "gameservices.googleapis.com";
  27. option (google.api.oauth_scopes) =
  28. "https://www.googleapis.com/auth/cloud-platform";
  29. // Lists game server configs in a given project, location, and game server
  30. // deployment.
  31. rpc ListGameServerConfigs(ListGameServerConfigsRequest)
  32. returns (ListGameServerConfigsResponse) {
  33. option (google.api.http) = {
  34. get: "/v1beta/{parent=projects/*/locations/*/gameServerDeployments/*}/configs"
  35. };
  36. option (google.api.method_signature) = "parent";
  37. }
  38. // Gets details of a single game server config.
  39. rpc GetGameServerConfig(GetGameServerConfigRequest)
  40. returns (GameServerConfig) {
  41. option (google.api.http) = {
  42. get: "/v1beta/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}"
  43. };
  44. option (google.api.method_signature) = "name";
  45. }
  46. // Creates a new game server config in a given project, location, and game
  47. // server deployment. Game server configs are immutable, and are not applied
  48. // until referenced in the game server deployment rollout resource.
  49. rpc CreateGameServerConfig(CreateGameServerConfigRequest)
  50. returns (google.longrunning.Operation) {
  51. option (google.api.http) = {
  52. post: "/v1beta/{parent=projects/*/locations/*/gameServerDeployments/*}/configs"
  53. body: "game_server_config"
  54. };
  55. option (google.api.method_signature) = "parent,game_server_config";
  56. option (google.longrunning.operation_info) = {
  57. response_type: "GameServerConfig"
  58. metadata_type: "OperationMetadata"
  59. };
  60. }
  61. // Deletes a single game server config. The deletion will fail if the game
  62. // server config is referenced in a game server deployment rollout.
  63. rpc DeleteGameServerConfig(DeleteGameServerConfigRequest)
  64. returns (google.longrunning.Operation) {
  65. option (google.api.http) = {
  66. delete: "/v1beta/{name=projects/*/locations/*/gameServerDeployments/*/configs/*}"
  67. };
  68. option (google.api.method_signature) = "name";
  69. option (google.longrunning.operation_info) = {
  70. response_type: "google.protobuf.Empty"
  71. metadata_type: "OperationMetadata"
  72. };
  73. }
  74. }