python/proto/sql/beta/user.proto (59 lines of code) (raw):
// Copyright 2021 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package dcl;
import "proto/connector/sdk.proto";
import "proto/empty.proto";
enum SqlBetaUserTypeEnum {
SqlBetaUserTypeEnumNO_VALUE_DO_NOT_USE = 0;
SqlBetaUserTypeEnumNATIVE = 1;
SqlBetaUserTypeEnumCLOUD_IAM_USER = 2;
SqlBetaUserTypeEnumCLOUD_IAM_SERVICE_ACCOUNT = 3;
}
message SqlBetaUser {
string name = 1;
string password = 2;
string project = 3;
string instance = 4;
SqlBetaUserSqlserverUserDetails sqlserver_user_details = 5;
SqlBetaUserTypeEnum type = 6;
string etag = 7;
string host = 8;
}
message SqlBetaUserSqlserverUserDetails {
bool disabled = 1;
repeated string server_roles = 2;
}
message ApplySqlBetaUserRequest {
SqlBetaUser resource = 1;
repeated LifecycleDirective lifecycle_directives = 2;
string service_account_file = 3;
}
message DeleteSqlBetaUserRequest {
string service_account_file = 1;
SqlBetaUser resource = 2;
}
message ListSqlBetaUserRequest {
string service_account_file = 1;
string Project = 2;
string Instance = 3;
}
message ListSqlBetaUserResponse {
repeated SqlBetaUser items = 1;
}
service SqlBetaUserService {
rpc ApplySqlBetaUser(ApplySqlBetaUserRequest) returns (SqlBetaUser);
rpc DeleteSqlBetaUser(DeleteSqlBetaUserRequest) returns (google.protobuf.Empty);
rpc ListSqlBetaUser(ListSqlBetaUserRequest) returns (ListSqlBetaUserResponse);
}