Skip to content

Commit 8af85ad

Browse files
feat(api): api update
1 parent 2bf6f70 commit 8af85ad

File tree

8 files changed

+2514
-109
lines changed

8 files changed

+2514
-109
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-804fc0d86290c20077a43f3431fe416d4598e41fa50a451d332c7e9715630a23.yml
3-
openapi_spec_hash: bab1e779a469c296c467c90c38c5d302
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4437ddd6f78afc134ce2b610ca8e48867edfc75b71fda57b76b31a57a1418d43.yml
3+
openapi_spec_hash: 4d08ab4df814a7d840f32f6d20331010
44
config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1

dns/zonetransferacl.go

Lines changed: 400 additions & 17 deletions
Large diffs are not rendered by default.

dns/zonetransferforceaxfr.go

Lines changed: 100 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"github.com/cloudflare/cloudflare-go/v4/internal/param"
1313
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
1414
"github.com/cloudflare/cloudflare-go/v4/option"
15-
"github.com/cloudflare/cloudflare-go/v4/shared"
1615
)
1716

1817
// ZoneTransferForceAXFRService contains methods and other services that help with
@@ -63,9 +62,9 @@ func (r ZoneTransferForceAXFRNewParams) MarshalJSON() (data []byte, err error) {
6362
}
6463

6564
type ZoneTransferForceAXFRNewResponseEnvelope struct {
66-
Errors []shared.ResponseInfo `json:"errors,required"`
67-
Messages []shared.ResponseInfo `json:"messages,required"`
68-
// Whether the API call was successful
65+
Errors []ZoneTransferForceAXFRNewResponseEnvelopeErrors `json:"errors,required"`
66+
Messages []ZoneTransferForceAXFRNewResponseEnvelopeMessages `json:"messages,required"`
67+
// Whether the API call was successful.
6968
Success ZoneTransferForceAXFRNewResponseEnvelopeSuccess `json:"success,required"`
7069
// When force_axfr query parameter is set to true, the response is a simple string
7170
Result ForceAXFR `json:"result"`
@@ -91,7 +90,103 @@ func (r zoneTransferForceAXFRNewResponseEnvelopeJSON) RawJSON() string {
9190
return r.raw
9291
}
9392

94-
// Whether the API call was successful
93+
type ZoneTransferForceAXFRNewResponseEnvelopeErrors struct {
94+
Code int64 `json:"code,required"`
95+
Message string `json:"message,required"`
96+
DocumentationURL string `json:"documentation_url"`
97+
Source ZoneTransferForceAXFRNewResponseEnvelopeErrorsSource `json:"source"`
98+
JSON zoneTransferForceAXFRNewResponseEnvelopeErrorsJSON `json:"-"`
99+
}
100+
101+
// zoneTransferForceAXFRNewResponseEnvelopeErrorsJSON contains the JSON metadata
102+
// for the struct [ZoneTransferForceAXFRNewResponseEnvelopeErrors]
103+
type zoneTransferForceAXFRNewResponseEnvelopeErrorsJSON struct {
104+
Code apijson.Field
105+
Message apijson.Field
106+
DocumentationURL apijson.Field
107+
Source apijson.Field
108+
raw string
109+
ExtraFields map[string]apijson.Field
110+
}
111+
112+
func (r *ZoneTransferForceAXFRNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error) {
113+
return apijson.UnmarshalRoot(data, r)
114+
}
115+
116+
func (r zoneTransferForceAXFRNewResponseEnvelopeErrorsJSON) RawJSON() string {
117+
return r.raw
118+
}
119+
120+
type ZoneTransferForceAXFRNewResponseEnvelopeErrorsSource struct {
121+
Pointer string `json:"pointer"`
122+
JSON zoneTransferForceAXFRNewResponseEnvelopeErrorsSourceJSON `json:"-"`
123+
}
124+
125+
// zoneTransferForceAXFRNewResponseEnvelopeErrorsSourceJSON contains the JSON
126+
// metadata for the struct [ZoneTransferForceAXFRNewResponseEnvelopeErrorsSource]
127+
type zoneTransferForceAXFRNewResponseEnvelopeErrorsSourceJSON struct {
128+
Pointer apijson.Field
129+
raw string
130+
ExtraFields map[string]apijson.Field
131+
}
132+
133+
func (r *ZoneTransferForceAXFRNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error) {
134+
return apijson.UnmarshalRoot(data, r)
135+
}
136+
137+
func (r zoneTransferForceAXFRNewResponseEnvelopeErrorsSourceJSON) RawJSON() string {
138+
return r.raw
139+
}
140+
141+
type ZoneTransferForceAXFRNewResponseEnvelopeMessages struct {
142+
Code int64 `json:"code,required"`
143+
Message string `json:"message,required"`
144+
DocumentationURL string `json:"documentation_url"`
145+
Source ZoneTransferForceAXFRNewResponseEnvelopeMessagesSource `json:"source"`
146+
JSON zoneTransferForceAXFRNewResponseEnvelopeMessagesJSON `json:"-"`
147+
}
148+
149+
// zoneTransferForceAXFRNewResponseEnvelopeMessagesJSON contains the JSON metadata
150+
// for the struct [ZoneTransferForceAXFRNewResponseEnvelopeMessages]
151+
type zoneTransferForceAXFRNewResponseEnvelopeMessagesJSON struct {
152+
Code apijson.Field
153+
Message apijson.Field
154+
DocumentationURL apijson.Field
155+
Source apijson.Field
156+
raw string
157+
ExtraFields map[string]apijson.Field
158+
}
159+
160+
func (r *ZoneTransferForceAXFRNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error) {
161+
return apijson.UnmarshalRoot(data, r)
162+
}
163+
164+
func (r zoneTransferForceAXFRNewResponseEnvelopeMessagesJSON) RawJSON() string {
165+
return r.raw
166+
}
167+
168+
type ZoneTransferForceAXFRNewResponseEnvelopeMessagesSource struct {
169+
Pointer string `json:"pointer"`
170+
JSON zoneTransferForceAXFRNewResponseEnvelopeMessagesSourceJSON `json:"-"`
171+
}
172+
173+
// zoneTransferForceAXFRNewResponseEnvelopeMessagesSourceJSON contains the JSON
174+
// metadata for the struct [ZoneTransferForceAXFRNewResponseEnvelopeMessagesSource]
175+
type zoneTransferForceAXFRNewResponseEnvelopeMessagesSourceJSON struct {
176+
Pointer apijson.Field
177+
raw string
178+
ExtraFields map[string]apijson.Field
179+
}
180+
181+
func (r *ZoneTransferForceAXFRNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error) {
182+
return apijson.UnmarshalRoot(data, r)
183+
}
184+
185+
func (r zoneTransferForceAXFRNewResponseEnvelopeMessagesSourceJSON) RawJSON() string {
186+
return r.raw
187+
}
188+
189+
// Whether the API call was successful.
95190
type ZoneTransferForceAXFRNewResponseEnvelopeSuccess bool
96191

97192
const (

0 commit comments

Comments
 (0)