Skip to content

Commit

Permalink
feat(custom_ns): mark endpoints as deprecated (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 21, 2025
1 parent bd55d31 commit c730ef6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zones/customnameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ func NewCustomNameserverService(opts ...option.RequestOption) (r *CustomNameserv
//
// Deprecated in favor of
// [Update DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-a-zone-update-dns-settings).
//
// Deprecated: Use
// [DNS settings API](https://developers.cloudflare.com/api/resources/dns/subresources/settings/methods/put/)
// instead.
func (r *CustomNameserverService) Update(ctx context.Context, params CustomNameserverUpdateParams, opts ...option.RequestOption) (res *[]string, err error) {
var env CustomNameserverUpdateResponseEnvelope
opts = append(r.Options[:], opts...)
Expand All @@ -62,6 +66,10 @@ func (r *CustomNameserverService) Update(ctx context.Context, params CustomNames
//
// Deprecated in favor of
// [Show DNS Settings](https://developers.cloudflare.com/api/operations/dns-settings-for-a-zone-list-dns-settings).
//
// Deprecated: Use
// [DNS settings API](https://developers.cloudflare.com/api/resources/dns/subresources/settings/methods/get/)
// instead.
func (r *CustomNameserverService) Get(ctx context.Context, query CustomNameserverGetParams, opts ...option.RequestOption) (res *CustomNameserverGetResponse, err error) {
opts = append(r.Options[:], opts...)
if query.ZoneID.Value == "" {
Expand Down

0 comments on commit c730ef6

Please sign in to comment.