123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- syntax = "proto3";
- package google.cloud.sql.v1;
- import "google/api/annotations.proto";
- import "google/api/field_behavior.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 = "CloudSqlUsersProto";
- option java_package = "com.google.cloud.sql.v1";
- service SqlUsersService {
- 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(SqlUsersDeleteRequest) returns (Operation) {
- option (google.api.http) = {
- delete: "/v1/projects/{project}/instances/{instance}/users"
- };
- }
-
- rpc Insert(SqlUsersInsertRequest) returns (Operation) {
- option (google.api.http) = {
- post: "/v1/projects/{project}/instances/{instance}/users"
- body: "body"
- };
- }
-
- rpc List(SqlUsersListRequest) returns (UsersListResponse) {
- option (google.api.http) = {
- get: "/v1/projects/{project}/instances/{instance}/users"
- };
- }
-
- rpc Update(SqlUsersUpdateRequest) returns (Operation) {
- option (google.api.http) = {
- put: "/v1/projects/{project}/instances/{instance}/users"
- body: "body"
- };
- }
- }
- message SqlUsersDeleteRequest {
-
- string host = 1;
-
- string instance = 2;
-
- string name = 3;
-
- string project = 4;
- }
- message SqlUsersInsertRequest {
-
- string instance = 1;
-
- string project = 2;
- User body = 100;
- }
- message SqlUsersListRequest {
-
- string instance = 1;
-
- string project = 2;
- }
- message SqlUsersUpdateRequest {
-
- string host = 1 [(google.api.field_behavior) = OPTIONAL];
-
- string instance = 2;
-
- string name = 3;
-
- string project = 4;
- User body = 100;
- }
- message User {
-
- enum SqlUserType {
-
- BUILT_IN = 0;
-
- CLOUD_IAM_USER = 1;
-
- CLOUD_IAM_SERVICE_ACCOUNT = 2;
- }
-
- string kind = 1;
-
- string password = 2;
-
-
- string etag = 3;
-
-
- string name = 4;
-
-
-
-
- string host = 5;
-
-
-
- string instance = 6;
-
-
-
- string project = 7;
-
-
- SqlUserType type = 8;
-
- oneof user_details {
- SqlServerUserDetails sqlserver_user_details = 9;
- }
- }
- message SqlServerUserDetails {
-
- bool disabled = 1;
-
- repeated string server_roles = 2;
- }
- message UsersListResponse {
-
- string kind = 1;
-
- repeated User items = 2;
-
-
-
- string next_page_token = 3;
- }
|