cloud_sql_tiers.proto 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.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 <a
  31. // href="/sql/pricing">Pricing</a>.
  32. rpc List(SqlTiersListRequest) returns (TiersListResponse) {
  33. option (google.api.http) = {
  34. get: "/sql/v1beta4/projects/{project}/tiers"
  35. };
  36. }
  37. }
  38. message SqlTiersListRequest {
  39. // Project ID of the project for which to list tiers.
  40. string project = 1;
  41. }
  42. // Tiers list response.
  43. message TiersListResponse {
  44. // This is always <b>sql#tiersList</b>.
  45. string kind = 1;
  46. // List of tiers.
  47. repeated Tier items = 2;
  48. }
  49. // A Google Cloud SQL service tier resource.
  50. message Tier {
  51. // An identifier for the machine type, for example, db-custom-1-3840. For
  52. // related information, see <a href="/sql/pricing">Pricing</a>.
  53. string tier = 1;
  54. // The maximum RAM usage of this tier in bytes.
  55. int64 RAM = 2;
  56. // This is always <b>sql#tier</b>.
  57. string kind = 3;
  58. // The maximum disk size of this tier in bytes.
  59. int64 Disk_Quota = 4;
  60. // The applicable regions for this tier.
  61. repeated string region = 5;
  62. }