Skip to content

Commit c6ec6b5

Browse files
committed
Add account_slug parameter to getDnsZones and extend dnsRecordCreate
Addressing PR comments
1 parent 5b27806 commit c6ec6b5

File tree

6 files changed

+77
-11
lines changed

6 files changed

+77
-11
lines changed

go/models/dns_record.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/dns_record_create.go

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/dns_zone.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/plumbing/operations/get_dns_zones_parameters.go

+35-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/plumbing/operations/get_dns_zones_responses.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swagger.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,6 @@ paths:
11521152
in: body
11531153
schema:
11541154
$ref: '#/definitions/siteSetup'
1155-
required: false
11561155
- name: configure_dns
11571156
type: boolean
11581157
in: query
@@ -1634,6 +1633,7 @@ paths:
16341633
/dns_zones:
16351634
post:
16361635
operationId: createDnsZone
1636+
tags: [dnsZone]
16371637
consumes:
16381638
- application/json
16391639
parameters:
@@ -1652,9 +1652,14 @@ paths:
16521652
get:
16531653
operationId: getDnsZones
16541654
tags: [dnsZone]
1655+
parameters:
1656+
- name: account_slug
1657+
in: query
1658+
type: string
1659+
required: false
16551660
responses:
16561661
'200':
1657-
description: 'get all DNS zones your user account has access to'
1662+
description: 'get all DNS zones the user has access to'
16581663
schema:
16591664
$ref: '#/definitions/dnsZones'
16601665
default:
@@ -1728,6 +1733,7 @@ paths:
17281733
required: true
17291734
get:
17301735
operationId: getDnsRecords
1736+
tags: [dnsZone]
17311737
responses:
17321738
'200':
17331739
description: 'get all DNS records for a single DNS zone'
@@ -2312,7 +2318,7 @@ definitions:
23122318
ipv6_enabled:
23132319
type: boolean
23142320
dedicated:
2315-
type: string
2321+
type: boolean
23162322
dnsRecordCreate:
23172323
type: object
23182324
properties:
@@ -2325,6 +2331,20 @@ definitions:
23252331
ttl:
23262332
type: integer
23272333
format: int64
2334+
priority:
2335+
type: integer
2336+
format: int64
2337+
weight:
2338+
type: integer
2339+
format: int64
2340+
port:
2341+
type: integer
2342+
format: int64
2343+
flag:
2344+
type: integer
2345+
format: int64
2346+
tag:
2347+
type: string
23282348
dnsRecords:
23292349
type: array
23302350
items:
@@ -2351,7 +2371,7 @@ definitions:
23512371
site_id:
23522372
type: string
23532373
flag:
2354-
type: string
2374+
type: integer
23552375
tag:
23562376
type: string
23572377
managed:

0 commit comments

Comments
 (0)