Skip to content

Commit

Permalink
feat(api): manual updates (#2956)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 28, 2024
1 parent bff8c67 commit f20eb85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 50 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: 1351
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9cf0f2e4dbcf94a6f29e0703c950ed01985ea901827a95279ef2c9a9966eb6ca.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a4e604861011b2b2b2d454e411a88c791e365bb09b44b9e012eaf6f89b2d2437.yml
48 changes: 2 additions & 46 deletions dns/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,6 @@ type ARecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[ARecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -447,8 +445,6 @@ type AAAARecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[AAAARecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -584,8 +580,6 @@ type CAARecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[CAARecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -735,8 +729,6 @@ type CERTRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[CERTRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -858,8 +850,6 @@ type CNAMERecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[CNAMERecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -999,8 +989,6 @@ type DNSKEYRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[DNSKEYRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1152,8 +1140,6 @@ type DSRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[DSRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1302,8 +1288,6 @@ type HTTPSRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[HTTPSRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1509,8 +1493,6 @@ type LOCRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[LOCRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1651,8 +1633,6 @@ type MXRecordParam struct {
Priority param.Field[float64] `json:"priority,required"`
// Record type.
Type param.Field[MXRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1794,8 +1774,6 @@ type NAPTRRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[NAPTRRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -1917,8 +1895,6 @@ type NSRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[NSRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -2020,8 +1996,6 @@ type PTRRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[PTRRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -2379,10 +2353,8 @@ type RecordParam struct {
Type param.Field[RecordType] `json:"type,required"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
// Identifier
ID param.Field[string] `json:"id"`
Tags param.Field[interface{}] `json:"tags,required"`
Comment param.Field[string] `json:"comment"`
Tags param.Field[interface{}] `json:"tags,required"`
// Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
// Value must be between 60 and 86400, with the minimum reduced to 30 for
// Enterprise zones.
Expand Down Expand Up @@ -2418,8 +2390,6 @@ type RecordOpenpgpkeyParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[RecordOpenpgpkeyType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -2627,8 +2597,6 @@ type SMIMEARecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[SMIMEARecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -2801,8 +2769,6 @@ type SRVRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[SRVRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -2964,8 +2930,6 @@ type SSHFPRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[SSHFPRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -3112,8 +3076,6 @@ type SVCBRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[SVCBRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -3263,8 +3225,6 @@ type TLSARecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[TLSARecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -3396,8 +3356,6 @@ type TXTRecordParam struct {
Name param.Field[string] `json:"name,required"`
// Record type.
Type param.Field[TXTRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down Expand Up @@ -3534,8 +3492,6 @@ type URIRecordParam struct {
Priority param.Field[float64] `json:"priority,required"`
// Record type.
Type param.Field[URIRecordType] `json:"type,required"`
// Identifier
ID param.Field[string] `json:"id"`
// Comments or notes about the DNS record. This field has no effect on DNS
// responses.
Comment param.Field[string] `json:"comment"`
Expand Down
3 changes: 0 additions & 3 deletions dns/record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestRecordNewWithOptionalParams(t *testing.T) {
Content: cloudflare.F("198.51.100.4"),
Name: cloudflare.F("example.com"),
Type: cloudflare.F(dns.ARecordTypeA),
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Comment: cloudflare.F("Domain verification record"),
Proxied: cloudflare.F(false),
Tags: cloudflare.F([]dns.RecordTagsParam{"owner:dns-team", "owner:dns-team", "owner:dns-team"}),
Expand Down Expand Up @@ -74,7 +73,6 @@ func TestRecordUpdateWithOptionalParams(t *testing.T) {
Content: cloudflare.F("198.51.100.4"),
Name: cloudflare.F("example.com"),
Type: cloudflare.F(dns.ARecordTypeA),
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Comment: cloudflare.F("Domain verification record"),
Proxied: cloudflare.F(false),
Tags: cloudflare.F([]dns.RecordTagsParam{"owner:dns-team", "owner:dns-team", "owner:dns-team"}),
Expand Down Expand Up @@ -195,7 +193,6 @@ func TestRecordEditWithOptionalParams(t *testing.T) {
Content: cloudflare.F("198.51.100.4"),
Name: cloudflare.F("example.com"),
Type: cloudflare.F(dns.ARecordTypeA),
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
Comment: cloudflare.F("Domain verification record"),
Proxied: cloudflare.F(false),
Tags: cloudflare.F([]dns.RecordTagsParam{"owner:dns-team", "owner:dns-team", "owner:dns-team"}),
Expand Down

0 comments on commit f20eb85

Please sign in to comment.