cloud_sql_tiers.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.sql.v1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1;sql";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "CloudSqlTiersProto";
  21. option java_package = "com.google.cloud.sql.v1";
  22. // LINT: LEGACY_NAMES
  23. // Service for providing machine types (tiers) for Cloud SQL instances.
  24. service SqlTiersService {
  25. option (google.api.default_host) = "sqladmin.googleapis.com";
  26. option (google.api.oauth_scopes) =
  27. "https://www.googleapis.com/auth/cloud-platform,"
  28. "https://www.googleapis.com/auth/sqlservice.admin";
  29. // Lists all available machine types (tiers) for Cloud SQL, for example,
  30. // db-custom-1-3840. For more information, see
  31. // https://cloud.google.com/sql/pricing.
  32. rpc List(SqlTiersListRequest) returns (TiersListResponse) {
  33. option (google.api.http) = {
  34. get: "/v1/projects/{project}/tiers"
  35. };
  36. }
  37. }
  38. // Tiers list request.
  39. message SqlTiersListRequest {
  40. // Project ID of the project for which to list tiers.
  41. string project = 1;
  42. }
  43. // Tiers list response.
  44. message TiersListResponse {
  45. // This is always **sql#tiersList**.
  46. string kind = 1;
  47. // List of tiers.
  48. repeated Tier items = 2;
  49. }
  50. // A Google Cloud SQL service tier resource.
  51. message Tier {
  52. // An identifier for the machine type, for example, db-custom-1-3840. For
  53. // related information, see [Pricing](/sql/pricing).
  54. string tier = 1;
  55. // The maximum RAM usage of this tier in bytes.
  56. int64 RAM = 2;
  57. // This is always **sql#tier**.
  58. string kind = 3;
  59. // The maximum disk size of this tier in bytes.
  60. int64 Disk_Quota = 4;
  61. // The applicable regions for this tier.
  62. repeated string region = 5;
  63. }