pullzone_remove_certificate.go raw
1 package bunny
2
3 import (
4 "context"
5 "fmt"
6 )
7
8 // RemoveCertificateOptions represents the request parameters for the Remove
9 // Certificate API Endpoint.
10 //
11 // Bunny.net API docs: https://docs.bunny.net/reference/pullzonepublic_removecertificate
12 type RemoveCertificateOptions struct {
13 Hostname *string `json:"Hostname,omitempty"`
14 }
15
16 // RemoveCertificate represents the Remove Certificate API Endpoint.
17 //
18 // Bunny.net API docs: https://docs.bunny.net/reference/pullzonepublic_removecertificate
19 func (s *PullZoneService) RemoveCertificate(ctx context.Context, pullZoneID int64, opts *RemoveCertificateOptions) error {
20 path := fmt.Sprintf("/pullzone/%d/removeCertificate", pullZoneID)
21 return resourceDelete(ctx, s.client, path, opts)
22 }
23