Skip to content

Commit

Permalink
Merge pull request #1544 from cloudflare/release-please--branches--v2…
Browse files Browse the repository at this point in the history
…--changes--next

release: 2.0.0-beta.4
  • Loading branch information
jacobbednarz committed Mar 12, 2024
2 parents 3a7e6ec + 58c9656 commit 6f7d4ef
Show file tree
Hide file tree
Showing 282 changed files with 1,011 additions and 2,039 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0-beta.3"
".": "2.0.0-beta.4"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1288
configured_endpoints: 1282
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 2.0.0-beta.4 (2024-03-12)

Full Changelog: [v2.0.0-beta.3...v2.0.0-beta.4](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0-beta.3...v2.0.0-beta.4)

### Features

* chore: create issue and pull-request templates ([de5037e](https://github.com/cloudflare/cloudflare-go/commit/de5037e4e27aa68265ea2eb2574932d1a3dbe06e))
* OpenAPI spec update via Stainless API ([#1545](https://github.com/cloudflare/cloudflare-go/issues/1545)) ([755286e](https://github.com/cloudflare/cloudflare-go/commit/755286e7f5275ddd7ab4b79f895fc551b21911fd))
* OpenAPI spec update via Stainless API ([#1546](https://github.com/cloudflare/cloudflare-go/issues/1546)) ([c2bbbba](https://github.com/cloudflare/cloudflare-go/commit/c2bbbbaa31cf8ab8779688f3d067b4cd1ef4b710))
* OpenAPI spec update via Stainless API ([#1547](https://github.com/cloudflare/cloudflare-go/issues/1547)) ([2991edd](https://github.com/cloudflare/cloudflare-go/commit/2991eddb2bafc4e87e9066861c2685e42147b487))
* OpenAPI spec update via Stainless API ([#1550](https://github.com/cloudflare/cloudflare-go/issues/1550)) ([4ba8991](https://github.com/cloudflare/cloudflare-go/commit/4ba89916744666388d9fc5b6fe67f447f9e1dd77))
* OpenAPI spec update via Stainless API ([#1551](https://github.com/cloudflare/cloudflare-go/issues/1551)) ([8a14e82](https://github.com/cloudflare/cloudflare-go/commit/8a14e82483d3465bcf20d6e96ed230dd024a53af))
* update via SDK Studio ([#1543](https://github.com/cloudflare/cloudflare-go/issues/1543)) ([2d66983](https://github.com/cloudflare/cloudflare-go/commit/2d669834707fa2130e04ea07dfc403f0370c528e))

## 2.0.0-beta.3 (2024-03-12)

Full Changelog: [v2.0.0-beta.2...v2.0.0-beta.3](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0-beta.2...v2.0.0-beta.3)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/cloudflare/cloudflare-go/v2@v2.0.0-beta.3'
go get -u 'github.com/cloudflare/cloudflare-go/v2@v2.0.0-beta.4'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (r *AccountService) Get(ctx context.Context, query AccountGetParams, opts .
opts = append(r.Options[:], opts...)
var env AccountGetResponseEnvelope
path := fmt.Sprintf("accounts/%v", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions accounts/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (r *MemberService) Delete(ctx context.Context, memberID string, body Member
opts = append(r.Options[:], opts...)
var env MemberDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%v/members/%s", body.AccountID, memberID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -100,7 +100,7 @@ func (r *MemberService) Get(ctx context.Context, memberID string, query MemberGe
opts = append(r.Options[:], opts...)
var env MemberGetResponseEnvelope
path := fmt.Sprintf("accounts/%v/members/%s", query.AccountID, memberID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions accounts/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (r *RoleService) List(ctx context.Context, query RoleListParams, opts ...op
opts = append(r.Options[:], opts...)
var env RoleListResponseEnvelope
path := fmt.Sprintf("accounts/%v/roles", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -51,7 +51,7 @@ func (r *RoleService) Get(ctx context.Context, roleID interface{}, query RoleGet
opts = append(r.Options[:], opts...)
var env RoleGetResponseEnvelope
path := fmt.Sprintf("accounts/%v/roles/%v", query.AccountID, roleID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion acm/totaltls.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *TotalTLSService) Get(ctx context.Context, query TotalTLSGetParams, opts
opts = append(r.Options[:], opts...)
var env TotalTLSGetResponseEnvelope
path := fmt.Sprintf("zones/%s/acm/total_tls", query.ZoneID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
6 changes: 3 additions & 3 deletions addressing/addressmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *AddressMapService) List(ctx context.Context, query AddressMapListParams
opts = append(r.Options[:], opts...)
var env AddressMapListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -72,7 +72,7 @@ func (r *AddressMapService) Delete(ctx context.Context, addressMapID string, bod
opts = append(r.Options[:], opts...)
var env AddressMapDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s", body.AccountID, addressMapID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -98,7 +98,7 @@ func (r *AddressMapService) Get(ctx context.Context, addressMapID string, query
opts = append(r.Options[:], opts...)
var env AddressMapGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s", query.AccountID, addressMapID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions addressing/addressmapaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *AddressMapAccountService) Update(ctx context.Context, addressMapID stri
opts = append(r.Options[:], opts...)
var env AddressMapAccountUpdateResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/accounts/%s", body.AccountID, addressMapID, body.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -52,7 +52,7 @@ func (r *AddressMapAccountService) Delete(ctx context.Context, addressMapID stri
opts = append(r.Options[:], opts...)
var env AddressMapAccountDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/accounts/%s", body.AccountID, addressMapID, body.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions addressing/addressmapip.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *AddressMapIPService) Update(ctx context.Context, addressMapID string, i
opts = append(r.Options[:], opts...)
var env AddressMapIPUpdateResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/ips/%s", body.AccountID, addressMapID, ipAddress)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -52,7 +52,7 @@ func (r *AddressMapIPService) Delete(ctx context.Context, addressMapID string, i
opts = append(r.Options[:], opts...)
var env AddressMapIPDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/ips/%s", body.AccountID, addressMapID, ipAddress)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions addressing/addressmapzone.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *AddressMapZoneService) Update(ctx context.Context, addressMapID string,
accountOrZoneID = body.ZoneID
}
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/zones/%s", accountOrZone, addressMapID, accountOrZoneID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPut, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -70,7 +70,7 @@ func (r *AddressMapZoneService) Delete(ctx context.Context, addressMapID string,
accountOrZoneID = body.ZoneID
}
path := fmt.Sprintf("accounts/%s/addressing/address_maps/%s/zones/%s", accountOrZone, addressMapID, accountOrZoneID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion addressing/loadocumentdownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewLOADocumentDownloadService(opts ...option.RequestOption) (r *LOADocument
func (r *LOADocumentDownloadService) Get(ctx context.Context, loaDocumentID string, query LOADocumentDownloadGetParams, opts ...option.RequestOption) (res *LOADocumentDownloadGetResponse, err error) {
opts = append(r.Options[:], opts...)
path := fmt.Sprintf("accounts/%s/addressing/loa_documents/%s/download", query.AccountID, loaDocumentID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}

Expand Down
6 changes: 3 additions & 3 deletions addressing/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (r *PrefixService) List(ctx context.Context, query PrefixListParams, opts .
opts = append(r.Options[:], opts...)
var env PrefixListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -69,7 +69,7 @@ func (r *PrefixService) Delete(ctx context.Context, prefixID string, body Prefix
opts = append(r.Options[:], opts...)
var env PrefixDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s", body.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -95,7 +95,7 @@ func (r *PrefixService) Get(ctx context.Context, prefixID string, query PrefixGe
opts = append(r.Options[:], opts...)
var env PrefixGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s", query.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
6 changes: 3 additions & 3 deletions addressing/prefixbgpbinding.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (r *PrefixBGPBindingService) List(ctx context.Context, prefixID string, que
opts = append(r.Options[:], opts...)
var env PrefixBGPBindingListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bindings", query.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -73,7 +73,7 @@ func (r *PrefixBGPBindingService) Delete(ctx context.Context, prefixID string, b
opts = append(r.Options[:], opts...)
var env PrefixBGPBindingDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bindings/%s", body.AccountID, prefixID, bindingID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -86,7 +86,7 @@ func (r *PrefixBGPBindingService) Get(ctx context.Context, prefixID string, bind
opts = append(r.Options[:], opts...)
var env PrefixBGPBindingGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bindings/%s", query.AccountID, prefixID, bindingID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions addressing/prefixbgpprefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (r *PrefixBGPPrefixService) List(ctx context.Context, prefixID string, quer
opts = append(r.Options[:], opts...)
var env PrefixBGPPrefixListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bgp/prefixes", query.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -67,7 +67,7 @@ func (r *PrefixBGPPrefixService) Get(ctx context.Context, prefixID string, bgpPr
opts = append(r.Options[:], opts...)
var env PrefixBGPPrefixGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bgp/prefixes/%s", query.AccountID, prefixID, bgpPrefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion addressing/prefixbgpstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *PrefixBGPStatusService) Get(ctx context.Context, prefixID string, query
opts = append(r.Options[:], opts...)
var env PrefixBGPStatusGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/bgp/status", query.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions addressing/prefixdelegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *PrefixDelegationService) List(ctx context.Context, prefixID string, que
opts = append(r.Options[:], opts...)
var env PrefixDelegationListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/delegations", query.AccountID, prefixID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -63,7 +63,7 @@ func (r *PrefixDelegationService) Delete(ctx context.Context, prefixID string, d
opts = append(r.Options[:], opts...)
var env PrefixDelegationDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/prefixes/%s/delegations/%s", body.AccountID, prefixID, delegationID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion addressing/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (r *ServiceService) List(ctx context.Context, query ServiceListParams, opts
opts = append(r.Options[:], opts...)
var env ServiceListResponseEnvelope
path := fmt.Sprintf("accounts/%s/addressing/services", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion alerting/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *V3Service) List(ctx context.Context, query V3ListParams, opts ...option
opts = append(r.Options[:], opts...)
var env V3ListResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/available_alerts", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion alerting/v3destinationeligible.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *V3DestinationEligibleService) Get(ctx context.Context, query V3Destinat
opts = append(r.Options[:], opts...)
var env V3DestinationEligibleGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/eligible", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
8 changes: 4 additions & 4 deletions alerting/v3destinationpagerduty.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *V3DestinationPagerdutyService) New(ctx context.Context, body V3Destinat
opts = append(r.Options[:], opts...)
var env V3DestinationPagerdutyNewResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/pagerduty/connect", body.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -52,7 +52,7 @@ func (r *V3DestinationPagerdutyService) Delete(ctx context.Context, body V3Desti
opts = append(r.Options[:], opts...)
var env V3DestinationPagerdutyDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/pagerduty", body.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -65,7 +65,7 @@ func (r *V3DestinationPagerdutyService) Get(ctx context.Context, query V3Destina
opts = append(r.Options[:], opts...)
var env V3DestinationPagerdutyGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/pagerduty", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -78,7 +78,7 @@ func (r *V3DestinationPagerdutyService) Link(ctx context.Context, tokenID string
opts = append(r.Options[:], opts...)
var env V3DestinationPagerdutyLinkResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/pagerduty/connect/%s", query.AccountID, tokenID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
6 changes: 3 additions & 3 deletions alerting/v3destinationwebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (r *V3DestinationWebhookService) List(ctx context.Context, query V3Destinat
opts = append(r.Options[:], opts...)
var env V3DestinationWebhookListResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/webhooks", query.AccountID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -79,7 +79,7 @@ func (r *V3DestinationWebhookService) Delete(ctx context.Context, webhookID stri
opts = append(r.Options[:], opts...)
var env V3DestinationWebhookDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/webhooks/%s", body.AccountID, webhookID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, body, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &env, opts...)
if err != nil {
return
}
Expand All @@ -92,7 +92,7 @@ func (r *V3DestinationWebhookService) Get(ctx context.Context, webhookID string,
opts = append(r.Options[:], opts...)
var env V3DestinationWebhookGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/destinations/webhooks/%s", query.AccountID, webhookID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &env, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &env, opts...)
if err != nil {
return
}
Expand Down
Loading

0 comments on commit 6f7d4ef

Please sign in to comment.