Skip to content

Commit 4e178d5

Browse files
stainless-app[bot]stainless-bot
authored andcommittedNov 11, 2024·
feat(api): api update (#3587)
1 parent 64224a4 commit 4e178d5

File tree

5 files changed

+931
-416
lines changed

5 files changed

+931
-416
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1397
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a593104deaa88fb5478971c715a6f8874283042b438b1d9b1c66e640e6804e19.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4b20862f6df3429ea34d599d65f7731f729b50178dea827dd74159d1ea0e037.yml

‎api.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -3524,14 +3524,8 @@ Methods:
35243524

35253525
## PCAPs
35263526

3527-
Params Types:
3528-
3529-
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPFilterParam">PCAPFilterParam</a>
3530-
35313527
Response Types:
35323528

3533-
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAP">PCAP</a>
3534-
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPFilter">PCAPFilter</a>
35353529
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPNewResponse">PCAPNewResponse</a>
35363530
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPListResponse">PCAPListResponse</a>
35373531
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPGetResponse">PCAPGetResponse</a>
@@ -3546,14 +3540,16 @@ Methods:
35463540

35473541
Response Types:
35483542

3549-
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#Ownership">Ownership</a>
3543+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipNewResponse">PCAPOwnershipNewResponse</a>
3544+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipGetResponse">PCAPOwnershipGetResponse</a>
3545+
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipValidateResponse">PCAPOwnershipValidateResponse</a>
35503546

35513547
Methods:
35523548

3553-
- <code title="post /accounts/{account_id}/pcaps/ownership">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipNewParams">PCAPOwnershipNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#Ownership">Ownership</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
3549+
- <code title="post /accounts/{account_id}/pcaps/ownership">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipNewParams">PCAPOwnershipNewParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipNewResponse">PCAPOwnershipNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
35543550
- <code title="delete /accounts/{account_id}/pcaps/ownership/{ownership_id}">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, ownershipID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipDeleteParams">PCAPOwnershipDeleteParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
3555-
- <code title="get /accounts/{account_id}/pcaps/ownership">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipGetParams">PCAPOwnershipGetParams</a>) ([]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#Ownership">Ownership</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
3556-
- <code title="post /accounts/{account_id}/pcaps/ownership/validate">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.Validate">Validate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipValidateParams">PCAPOwnershipValidateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#Ownership">Ownership</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
3551+
- <code title="get /accounts/{account_id}/pcaps/ownership">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipGetParams">PCAPOwnershipGetParams</a>) ([]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipGetResponse">PCAPOwnershipGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
3552+
- <code title="post /accounts/{account_id}/pcaps/ownership/validate">client.MagicTransit.PCAPs.Ownership.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipService.Validate">Validate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipValidateParams">PCAPOwnershipValidateParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit">magic_transit</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/magic_transit#PCAPOwnershipValidateResponse">PCAPOwnershipValidateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
35573553

35583554
### Download
35593555

‎magic_transit/pcap.go

+785-375
Large diffs are not rendered by default.

‎magic_transit/pcap_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ func TestPCAPNewWithOptionalParams(t *testing.T) {
2929
)
3030
_, err := client.MagicTransit.PCAPs.New(context.TODO(), magic_transit.PCAPNewParams{
3131
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
32-
Body: magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimple{
32+
Body: magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsPCAPsRequestSimple{
3333
PacketLimit: cloudflare.F(10000.000000),
34-
System: cloudflare.F(magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleSystemMagicTransit),
34+
System: cloudflare.F(magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsPCAPsRequestSimpleSystemMagicTransit),
3535
TimeLimit: cloudflare.F(300.000000),
36-
Type: cloudflare.F(magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsRequestSimpleTypeSimple),
37-
FilterV1: cloudflare.F(magic_transit.PCAPFilterParam{
36+
Type: cloudflare.F(magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsPCAPsRequestSimpleTypeSimple),
37+
FilterV1: cloudflare.F(magic_transit.PCAPNewParamsBodyMagicVisibilityPCAPsPCAPsRequestSimpleFilterV1{
3838
DestinationAddress: cloudflare.F("1.2.3.4"),
3939
DestinationPort: cloudflare.F(80.000000),
4040
Protocol: cloudflare.F(6.000000),

‎magic_transit/pcapownership.go

+135-26
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewPCAPOwnershipService(opts ...option.RequestOption) (r *PCAPOwnershipServ
3535
}
3636

3737
// Adds an AWS or GCP bucket to use with full packet captures.
38-
func (r *PCAPOwnershipService) New(ctx context.Context, params PCAPOwnershipNewParams, opts ...option.RequestOption) (res *Ownership, err error) {
38+
func (r *PCAPOwnershipService) New(ctx context.Context, params PCAPOwnershipNewParams, opts ...option.RequestOption) (res *PCAPOwnershipNewResponse, err error) {
3939
var env PCAPOwnershipNewResponseEnvelope
4040
opts = append(r.Options[:], opts...)
4141
if params.AccountID.Value == "" {
@@ -69,7 +69,7 @@ func (r *PCAPOwnershipService) Delete(ctx context.Context, ownershipID string, b
6969
}
7070

7171
// List all buckets configured for use with PCAPs API.
72-
func (r *PCAPOwnershipService) Get(ctx context.Context, query PCAPOwnershipGetParams, opts ...option.RequestOption) (res *[]Ownership, err error) {
72+
func (r *PCAPOwnershipService) Get(ctx context.Context, query PCAPOwnershipGetParams, opts ...option.RequestOption) (res *[]PCAPOwnershipGetResponse, err error) {
7373
var env PCAPOwnershipGetResponseEnvelope
7474
opts = append(r.Options[:], opts...)
7575
if query.AccountID.Value == "" {
@@ -86,7 +86,7 @@ func (r *PCAPOwnershipService) Get(ctx context.Context, query PCAPOwnershipGetPa
8686
}
8787

8888
// Validates buckets added to the packet captures API.
89-
func (r *PCAPOwnershipService) Validate(ctx context.Context, params PCAPOwnershipValidateParams, opts ...option.RequestOption) (res *Ownership, err error) {
89+
func (r *PCAPOwnershipService) Validate(ctx context.Context, params PCAPOwnershipValidateParams, opts ...option.RequestOption) (res *PCAPOwnershipValidateResponse, err error) {
9090
var env PCAPOwnershipValidateResponseEnvelope
9191
opts = append(r.Options[:], opts...)
9292
if params.AccountID.Value == "" {
@@ -102,24 +102,25 @@ func (r *PCAPOwnershipService) Validate(ctx context.Context, params PCAPOwnershi
102102
return
103103
}
104104

105-
type Ownership struct {
105+
type PCAPOwnershipNewResponse struct {
106106
// The bucket ID associated with the packet captures API.
107107
ID string `json:"id,required"`
108108
// The full URI for the bucket. This field only applies to `full` packet captures.
109109
DestinationConf string `json:"destination_conf,required"`
110110
// The ownership challenge filename stored in the bucket.
111111
Filename string `json:"filename,required"`
112112
// The status of the ownership challenge. Can be pending, success or failed.
113-
Status OwnershipStatus `json:"status,required"`
113+
Status PCAPOwnershipNewResponseStatus `json:"status,required"`
114114
// The RFC 3339 timestamp when the bucket was added to packet captures API.
115115
Submitted string `json:"submitted,required"`
116116
// The RFC 3339 timestamp when the bucket was validated.
117-
Validated string `json:"validated"`
118-
JSON ownershipJSON `json:"-"`
117+
Validated string `json:"validated"`
118+
JSON pcapOwnershipNewResponseJSON `json:"-"`
119119
}
120120

121-
// ownershipJSON contains the JSON metadata for the struct [Ownership]
122-
type ownershipJSON struct {
121+
// pcapOwnershipNewResponseJSON contains the JSON metadata for the struct
122+
// [PCAPOwnershipNewResponse]
123+
type pcapOwnershipNewResponseJSON struct {
123124
ID apijson.Field
124125
DestinationConf apijson.Field
125126
Filename apijson.Field
@@ -130,26 +131,134 @@ type ownershipJSON struct {
130131
ExtraFields map[string]apijson.Field
131132
}
132133

133-
func (r *Ownership) UnmarshalJSON(data []byte) (err error) {
134+
func (r *PCAPOwnershipNewResponse) UnmarshalJSON(data []byte) (err error) {
134135
return apijson.UnmarshalRoot(data, r)
135136
}
136137

137-
func (r ownershipJSON) RawJSON() string {
138+
func (r pcapOwnershipNewResponseJSON) RawJSON() string {
138139
return r.raw
139140
}
140141

141142
// The status of the ownership challenge. Can be pending, success or failed.
142-
type OwnershipStatus string
143+
type PCAPOwnershipNewResponseStatus string
143144

144145
const (
145-
OwnershipStatusPending OwnershipStatus = "pending"
146-
OwnershipStatusSuccess OwnershipStatus = "success"
147-
OwnershipStatusFailed OwnershipStatus = "failed"
146+
PCAPOwnershipNewResponseStatusPending PCAPOwnershipNewResponseStatus = "pending"
147+
PCAPOwnershipNewResponseStatusSuccess PCAPOwnershipNewResponseStatus = "success"
148+
PCAPOwnershipNewResponseStatusFailed PCAPOwnershipNewResponseStatus = "failed"
148149
)
149150

150-
func (r OwnershipStatus) IsKnown() bool {
151+
func (r PCAPOwnershipNewResponseStatus) IsKnown() bool {
151152
switch r {
152-
case OwnershipStatusPending, OwnershipStatusSuccess, OwnershipStatusFailed:
153+
case PCAPOwnershipNewResponseStatusPending, PCAPOwnershipNewResponseStatusSuccess, PCAPOwnershipNewResponseStatusFailed:
154+
return true
155+
}
156+
return false
157+
}
158+
159+
type PCAPOwnershipGetResponse struct {
160+
// The bucket ID associated with the packet captures API.
161+
ID string `json:"id,required"`
162+
// The full URI for the bucket. This field only applies to `full` packet captures.
163+
DestinationConf string `json:"destination_conf,required"`
164+
// The ownership challenge filename stored in the bucket.
165+
Filename string `json:"filename,required"`
166+
// The status of the ownership challenge. Can be pending, success or failed.
167+
Status PCAPOwnershipGetResponseStatus `json:"status,required"`
168+
// The RFC 3339 timestamp when the bucket was added to packet captures API.
169+
Submitted string `json:"submitted,required"`
170+
// The RFC 3339 timestamp when the bucket was validated.
171+
Validated string `json:"validated"`
172+
JSON pcapOwnershipGetResponseJSON `json:"-"`
173+
}
174+
175+
// pcapOwnershipGetResponseJSON contains the JSON metadata for the struct
176+
// [PCAPOwnershipGetResponse]
177+
type pcapOwnershipGetResponseJSON struct {
178+
ID apijson.Field
179+
DestinationConf apijson.Field
180+
Filename apijson.Field
181+
Status apijson.Field
182+
Submitted apijson.Field
183+
Validated apijson.Field
184+
raw string
185+
ExtraFields map[string]apijson.Field
186+
}
187+
188+
func (r *PCAPOwnershipGetResponse) UnmarshalJSON(data []byte) (err error) {
189+
return apijson.UnmarshalRoot(data, r)
190+
}
191+
192+
func (r pcapOwnershipGetResponseJSON) RawJSON() string {
193+
return r.raw
194+
}
195+
196+
// The status of the ownership challenge. Can be pending, success or failed.
197+
type PCAPOwnershipGetResponseStatus string
198+
199+
const (
200+
PCAPOwnershipGetResponseStatusPending PCAPOwnershipGetResponseStatus = "pending"
201+
PCAPOwnershipGetResponseStatusSuccess PCAPOwnershipGetResponseStatus = "success"
202+
PCAPOwnershipGetResponseStatusFailed PCAPOwnershipGetResponseStatus = "failed"
203+
)
204+
205+
func (r PCAPOwnershipGetResponseStatus) IsKnown() bool {
206+
switch r {
207+
case PCAPOwnershipGetResponseStatusPending, PCAPOwnershipGetResponseStatusSuccess, PCAPOwnershipGetResponseStatusFailed:
208+
return true
209+
}
210+
return false
211+
}
212+
213+
type PCAPOwnershipValidateResponse struct {
214+
// The bucket ID associated with the packet captures API.
215+
ID string `json:"id,required"`
216+
// The full URI for the bucket. This field only applies to `full` packet captures.
217+
DestinationConf string `json:"destination_conf,required"`
218+
// The ownership challenge filename stored in the bucket.
219+
Filename string `json:"filename,required"`
220+
// The status of the ownership challenge. Can be pending, success or failed.
221+
Status PCAPOwnershipValidateResponseStatus `json:"status,required"`
222+
// The RFC 3339 timestamp when the bucket was added to packet captures API.
223+
Submitted string `json:"submitted,required"`
224+
// The RFC 3339 timestamp when the bucket was validated.
225+
Validated string `json:"validated"`
226+
JSON pcapOwnershipValidateResponseJSON `json:"-"`
227+
}
228+
229+
// pcapOwnershipValidateResponseJSON contains the JSON metadata for the struct
230+
// [PCAPOwnershipValidateResponse]
231+
type pcapOwnershipValidateResponseJSON struct {
232+
ID apijson.Field
233+
DestinationConf apijson.Field
234+
Filename apijson.Field
235+
Status apijson.Field
236+
Submitted apijson.Field
237+
Validated apijson.Field
238+
raw string
239+
ExtraFields map[string]apijson.Field
240+
}
241+
242+
func (r *PCAPOwnershipValidateResponse) UnmarshalJSON(data []byte) (err error) {
243+
return apijson.UnmarshalRoot(data, r)
244+
}
245+
246+
func (r pcapOwnershipValidateResponseJSON) RawJSON() string {
247+
return r.raw
248+
}
249+
250+
// The status of the ownership challenge. Can be pending, success or failed.
251+
type PCAPOwnershipValidateResponseStatus string
252+
253+
const (
254+
PCAPOwnershipValidateResponseStatusPending PCAPOwnershipValidateResponseStatus = "pending"
255+
PCAPOwnershipValidateResponseStatusSuccess PCAPOwnershipValidateResponseStatus = "success"
256+
PCAPOwnershipValidateResponseStatusFailed PCAPOwnershipValidateResponseStatus = "failed"
257+
)
258+
259+
func (r PCAPOwnershipValidateResponseStatus) IsKnown() bool {
260+
switch r {
261+
case PCAPOwnershipValidateResponseStatusPending, PCAPOwnershipValidateResponseStatusSuccess, PCAPOwnershipValidateResponseStatusFailed:
153262
return true
154263
}
155264
return false
@@ -167,9 +276,9 @@ func (r PCAPOwnershipNewParams) MarshalJSON() (data []byte, err error) {
167276
}
168277

169278
type PCAPOwnershipNewResponseEnvelope struct {
170-
Errors []shared.ResponseInfo `json:"errors,required"`
171-
Messages []shared.ResponseInfo `json:"messages,required"`
172-
Result Ownership `json:"result,required"`
279+
Errors []shared.ResponseInfo `json:"errors,required"`
280+
Messages []shared.ResponseInfo `json:"messages,required"`
281+
Result PCAPOwnershipNewResponse `json:"result,required"`
173282
// Whether the API call was successful
174283
Success PCAPOwnershipNewResponseEnvelopeSuccess `json:"success,required"`
175284
JSON pcapOwnershipNewResponseEnvelopeJSON `json:"-"`
@@ -220,9 +329,9 @@ type PCAPOwnershipGetParams struct {
220329
}
221330

222331
type PCAPOwnershipGetResponseEnvelope struct {
223-
Errors []shared.ResponseInfo `json:"errors,required"`
224-
Messages []shared.ResponseInfo `json:"messages,required"`
225-
Result []Ownership `json:"result,required,nullable"`
332+
Errors []shared.ResponseInfo `json:"errors,required"`
333+
Messages []shared.ResponseInfo `json:"messages,required"`
334+
Result []PCAPOwnershipGetResponse `json:"result,required,nullable"`
226335
// Whether the API call was successful
227336
Success PCAPOwnershipGetResponseEnvelopeSuccess `json:"success,required"`
228337
ResultInfo PCAPOwnershipGetResponseEnvelopeResultInfo `json:"result_info"`
@@ -309,9 +418,9 @@ func (r PCAPOwnershipValidateParams) MarshalJSON() (data []byte, err error) {
309418
}
310419

311420
type PCAPOwnershipValidateResponseEnvelope struct {
312-
Errors []shared.ResponseInfo `json:"errors,required"`
313-
Messages []shared.ResponseInfo `json:"messages,required"`
314-
Result Ownership `json:"result,required"`
421+
Errors []shared.ResponseInfo `json:"errors,required"`
422+
Messages []shared.ResponseInfo `json:"messages,required"`
423+
Result PCAPOwnershipValidateResponse `json:"result,required"`
315424
// Whether the API call was successful
316425
Success PCAPOwnershipValidateResponseEnvelopeSuccess `json:"success,required"`
317426
JSON pcapOwnershipValidateResponseEnvelopeJSON `json:"-"`

0 commit comments

Comments
 (0)
Please sign in to comment.