123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- syntax = "proto3";
- package google.cloud.sql.v1;
- import "google/api/annotations.proto";
- import "google/cloud/sql/v1/cloud_sql_resources.proto";
- import "google/api/client.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1;sql";
- option java_multiple_files = true;
- option java_outer_classname = "CloudSqlDatabasesProto";
- option java_package = "com.google.cloud.sql.v1";
- service SqlDatabasesService {
- option (google.api.default_host) = "sqladmin.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/sqlservice.admin";
-
- rpc Delete(SqlDatabasesDeleteRequest) returns (Operation) {
- option (google.api.http) = {
- delete: "/v1/projects/{project}/instances/{instance}/databases/{database}"
- };
- }
-
-
- rpc Get(SqlDatabasesGetRequest) returns (Database) {
- option (google.api.http) = {
- get: "/v1/projects/{project}/instances/{instance}/databases/{database}"
- };
- }
-
-
- rpc Insert(SqlDatabasesInsertRequest) returns (Operation) {
- option (google.api.http) = {
- post: "/v1/projects/{project}/instances/{instance}/databases"
- body: "body"
- };
- }
-
- rpc List(SqlDatabasesListRequest) returns (DatabasesListResponse) {
- option (google.api.http) = {
- get: "/v1/projects/{project}/instances/{instance}/databases"
- };
- }
-
-
- rpc Patch(SqlDatabasesUpdateRequest) returns (Operation) {
- option (google.api.http) = {
- patch: "/v1/projects/{project}/instances/{instance}/databases/{database}"
- body: "body"
- };
- }
-
-
- rpc Update(SqlDatabasesUpdateRequest) returns (Operation) {
- option (google.api.http) = {
- put: "/v1/projects/{project}/instances/{instance}/databases/{database}"
- body: "body"
- };
- }
- }
- message SqlDatabasesDeleteRequest {
-
- string database = 1;
-
- string instance = 2;
-
- string project = 3;
- }
- message SqlDatabasesGetRequest {
-
- string database = 1;
-
- string instance = 2;
-
- string project = 3;
- }
- message SqlDatabasesInsertRequest {
-
- string instance = 1;
-
- string project = 2;
- Database body = 100;
- }
- message SqlDatabasesListRequest {
-
- string instance = 1;
-
- string project = 2;
- }
- message SqlDatabasesUpdateRequest {
-
- string database = 1;
-
- string instance = 2;
-
- string project = 3;
- Database body = 100;
- }
- message DatabasesListResponse {
-
- string kind = 1;
-
- repeated Database items = 2;
- }
|