aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/dns/v1/dns_zone.proto
blob: b384a4120c1e5c39b87cce50bdf45331f7e41cc9 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
syntax = "proto3";

package yandex.cloud.dns.v1;

import "yandex/cloud/validation.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/dns/v1;dns";
option java_package = "yandex.cloud.api.dns.v1";

// A DNS zone. For details about the concept, see [DNS zones](/docs/dns/concepts/dns-zone).
message DnsZone {
  // ID of the DNS zone. Generated at creation time.
  string id = 1;

  // ID of the folder that the DNS zone belongs to.
  string folder_id = 2;

  // Creation timestamp.
  google.protobuf.Timestamp created_at = 3;
  
  // Name of the DNS zone. 
  // The name is unique within the folder.
  string name = 4;

  // Description of the DNS zone.
  string description = 5;

  // DNS zone labels as `key:value` pairs.
  map<string, string> labels = 6;

  // DNS zone suffix.
  string zone = 7;

  // Privately visible zone settings.
  // Specifies whether records within the zone are visible from a VPC networks only.
  PrivateVisibility private_visibility = 8;

  // Publicly visible zone settings. 
  // Indicates whether records within the zone are publicly visible.
  PublicVisibility public_visibility = 9;

  //Prevents accidental zone removal.
  bool deletion_protection = 10;
}

// A record set. For details about the concept, see [Resource record](/docs/dns/concepts/resource-record).
message RecordSet {
  // Domain name.
  string name = 1 [(length) = "1-254"];

  // Record type.
  string type = 2 [(length) = "1-20"];

  // Time to live in seconds.
  int64 ttl = 3 [(value) = "0-2147483647"];

  // Data of the record set.
  repeated string data = 4 [(size) = "1-100", (length) = "1-255", (unique) = true];
}

// Configuration for privately visible zones.
message PrivateVisibility {
  // Network IDs.
  repeated string network_ids = 1 [(size) = "0-100", (length) = "20", (unique) = true];
}

// Configuration for publicly visible zones.
message PublicVisibility {
}