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