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