-
Notifications
You must be signed in to change notification settings - Fork 32
/
datasource_avi_dynamicdnsrecord.go
105 lines (102 loc) · 2.18 KB
/
datasource_avi_dynamicdnsrecord.go
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0
package avi
import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
// nolint
func dataSourceAviDynamicDnsRecord() *schema.Resource {
return &schema.Resource{
Read: ResourceAviDynamicDnsRecordRead,
Schema: map[string]*schema.Schema{
"algorithm": {
Type: schema.TypeString,
Computed: true,
},
"cname": {
Type: schema.TypeSet,
Computed: true,
Elem: ResourceDnsCnameRdataSchema(),
},
"delegated": {
Type: schema.TypeString,
Computed: true,
},
"description": {
Type: schema.TypeString,
Computed: true,
},
"dns_vs_uuid": {
Type: schema.TypeString,
Computed: true,
},
"fqdn": {
Type: schema.TypeString,
Computed: true,
},
"ip6_address": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsAAAARdataSchema(),
},
"ip_address": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsARdataSchema(),
},
"metadata": {
Type: schema.TypeString,
Computed: true,
},
"mx_records": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsMxRdataSchema(),
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"ns": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsNsRdataSchema(),
},
"num_records_in_response": {
Type: schema.TypeString,
Computed: true,
},
"service_locators": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsSrvRdataSchema(),
},
"tenant_ref": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"ttl": {
Type: schema.TypeString,
Computed: true,
},
"txt_records": {
Type: schema.TypeList,
Computed: true,
Elem: ResourceDnsTxtRdataSchema(),
},
"type": {
Type: schema.TypeString,
Computed: true,
},
"uuid": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"wildcard_match": {
Type: schema.TypeString,
Computed: true,
},
},
}
}