aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.com>2024-06-11 10:12:13 +0300
committeriddqd <iddqd@yandex-team.com>2024-06-11 10:22:43 +0300
commit07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch)
treea4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto
parent6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff)
downloadydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto')
-rw-r--r--contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto
new file mode 100644
index 0000000000..615ed5512b
--- /dev/null
+++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/user.proto
@@ -0,0 +1,40 @@
+syntax = "proto3";
+
+package yandex.cloud.mdb.mongodb.v1;
+
+import "yandex/cloud/validation.proto";
+
+option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1;mongodb";
+option java_package = "yandex.cloud.api.mdb.mongodb.v1";
+
+// A MongoDB User resource. For more information, see the
+// [Developer's Guide](/docs/managed-mongodb/concepts).
+message User {
+ // Name of the MongoDB user.
+ string name = 1;
+
+ // ID of the MongoDB cluster the user belongs to.
+ string cluster_id = 2;
+
+ // Set of permissions granted to the user.
+ repeated Permission permissions = 3;
+}
+
+message Permission {
+ // Name of the database that the permission grants access to.
+ string database_name = 1;
+
+ // MongoDB roles for the [database_name] database that the permission grants.
+ repeated string roles = 2;
+}
+
+message UserSpec {
+ // Name of the MongoDB user.
+ string name = 1 [(required) = true, (length) = "<=63", (pattern) = "[a-zA-Z0-9_]*"];
+
+ // Password of the MongoDB user.
+ string password = 2 [(required) = true, (length) = "8-128"];
+
+ // Set of permissions to grant to the user.
+ repeated Permission permissions = 3;
+}