realms_service.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/realms.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. // A realm is a grouping of game server clusters that are considered
  25. // interchangeable.
  26. service RealmsService {
  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 realms in a given project and location.
  31. rpc ListRealms(ListRealmsRequest) returns (ListRealmsResponse) {
  32. option (google.api.http) = {
  33. get: "/v1beta/{parent=projects/*/locations/*}/realms"
  34. };
  35. option (google.api.method_signature) = "parent";
  36. }
  37. // Gets details of a single realm.
  38. rpc GetRealm(GetRealmRequest) returns (Realm) {
  39. option (google.api.http) = {
  40. get: "/v1beta/{name=projects/*/locations/*/realms/*}"
  41. };
  42. option (google.api.method_signature) = "name";
  43. }
  44. // Creates a new realm in a given project and location.
  45. rpc CreateRealm(CreateRealmRequest) returns (google.longrunning.Operation) {
  46. option (google.api.http) = {
  47. post: "/v1beta/{parent=projects/*/locations/*}/realms"
  48. body: "realm"
  49. };
  50. option (google.api.method_signature) = "parent,realm,realm_id";
  51. option (google.longrunning.operation_info) = {
  52. response_type: "Realm"
  53. metadata_type: "OperationMetadata"
  54. };
  55. }
  56. // Deletes a single realm.
  57. rpc DeleteRealm(DeleteRealmRequest) returns (google.longrunning.Operation) {
  58. option (google.api.http) = {
  59. delete: "/v1beta/{name=projects/*/locations/*/realms/*}"
  60. };
  61. option (google.api.method_signature) = "name";
  62. option (google.longrunning.operation_info) = {
  63. response_type: "google.protobuf.Empty"
  64. metadata_type: "OperationMetadata"
  65. };
  66. }
  67. // Patches a single realm.
  68. rpc UpdateRealm(UpdateRealmRequest) returns (google.longrunning.Operation) {
  69. option (google.api.http) = {
  70. patch: "/v1beta/{realm.name=projects/*/locations/*/realms/*}"
  71. body: "realm"
  72. };
  73. option (google.api.method_signature) = "realm,update_mask";
  74. option (google.longrunning.operation_info) = {
  75. response_type: "Realm"
  76. metadata_type: "OperationMetadata"
  77. };
  78. }
  79. // Previews patches to a single realm.
  80. rpc PreviewRealmUpdate(PreviewRealmUpdateRequest)
  81. returns (PreviewRealmUpdateResponse) {
  82. option (google.api.http) = {
  83. patch: "/v1beta/{realm.name=projects/*/locations/*/realms/*}:previewUpdate"
  84. body: "realm"
  85. };
  86. }
  87. }