aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/mdb/mongodb/v1/database.proto
blob: 12442b577b941d1492849c011efd45362ee8c611 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 Database resource. For more information, see the 
// [Developer's Guide](/docs/managed-mongodb/concepts).
message Database {
  // Name of the database.
  string name = 1;

  // ID of the MongoDB cluster that the database belongs to.
  string cluster_id = 2;
}

message DatabaseSpec {
  // Name of the MongoDB database. 1-63 characters long.
  string name = 1 [(required) = true, (length) = "<=63", (pattern) = "[a-zA-Z0-9_-]{1,63}"];
}