cloud_sql_tiers.proto 2.3 KB

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