Skip to content

Commit

Permalink
feat(api): api update (#3752)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 18, 2024
1 parent 101518a commit e99bbde
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1480
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-44c89a561938bdc3a04bf86b60afa04650b1b9c246c07987e9ae26ca3cdf18fe.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-64d4fa2d88511612fbb26659965c2b7b2d016b10e3a96a786e93066817865e4f.yml
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,6 @@ Response Types:
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#NAPTRRecord">NAPTRRecord</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#NSRecord">NSRecord</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#PTRRecord">PTRRecord</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#RecordProcessTiming">RecordProcessTiming</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#RecordTags">RecordTags</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#SMIMEARecord">SMIMEARecord</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns">dns</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v3/dns#SRVRecord">SRVRecord</a>
Expand Down
33 changes: 0 additions & 33 deletions dns/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"net/http"
"net/url"
"reflect"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apiform"
"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
Expand Down Expand Up @@ -2924,34 +2923,6 @@ func (r RecordType) IsKnown() bool {
return false
}

type RecordProcessTiming struct {
// When the file parsing ended.
EndTime time.Time `json:"end_time" format:"date-time"`
// Processing time of the file in seconds.
ProcessTime float64 `json:"process_time"`
// When the file parsing started.
StartTime time.Time `json:"start_time" format:"date-time"`
JSON recordProcessTimingJSON `json:"-"`
}

// recordProcessTimingJSON contains the JSON metadata for the struct
// [RecordProcessTiming]
type recordProcessTimingJSON struct {
EndTime apijson.Field
ProcessTime apijson.Field
StartTime apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *RecordProcessTiming) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r recordProcessTimingJSON) RawJSON() string {
return r.raw
}

type RecordTags = string

type RecordTagsParam = string
Expand Down Expand Up @@ -7905,7 +7876,6 @@ type RecordImportResponseEnvelope struct {
// Whether the API call was successful
Success RecordImportResponseEnvelopeSuccess `json:"success,required"`
Result RecordImportResponse `json:"result"`
Timing RecordProcessTiming `json:"timing"`
JSON recordImportResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -7916,7 +7886,6 @@ type recordImportResponseEnvelopeJSON struct {
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Timing apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down Expand Up @@ -7960,7 +7929,6 @@ type RecordScanResponseEnvelope struct {
// Whether the API call was successful
Success RecordScanResponseEnvelopeSuccess `json:"success,required"`
Result RecordScanResponse `json:"result"`
Timing RecordProcessTiming `json:"timing"`
JSON recordScanResponseEnvelopeJSON `json:"-"`
}

Expand All @@ -7971,7 +7939,6 @@ type recordScanResponseEnvelopeJSON struct {
Messages apijson.Field
Success apijson.Field
Result apijson.Field
Timing apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit e99bbde

Please sign in to comment.