Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Mar 12, 2024
1 parent 755286e commit c2bbbba
Show file tree
Hide file tree
Showing 262 changed files with 439 additions and 439 deletions.
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
6 changes: 3 additions & 3 deletions alerting/v3policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (r *V3PolicyService) List(ctx context.Context, query V3PolicyListParams, op
opts = append(r.Options[:], opts...)
var env V3PolicyListResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/policies", 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 *V3PolicyService) Delete(ctx context.Context, policyID string, body V3Po
opts = append(r.Options[:], opts...)
var env V3PolicyDeleteResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/policies/%s", body.AccountID, policyID)
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 @@ -91,7 +91,7 @@ func (r *V3PolicyService) Get(ctx context.Context, policyID string, query V3Poli
opts = append(r.Options[:], opts...)
var env V3PolicyGetResponseEnvelope
path := fmt.Sprintf("accounts/%s/alerting/v3/policies/%s", query.AccountID, policyID)
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 argo/smartrouting.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *SmartRoutingService) Get(ctx context.Context, query SmartRoutingGetPara
opts = append(r.Options[:], opts...)
var env SmartRoutingGetResponseEnvelope
path := fmt.Sprintf("zones/%s/argo/smart_routing", 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
2 changes: 1 addition & 1 deletion argo/tieredcaching.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *TieredCachingService) Get(ctx context.Context, query TieredCachingGetPa
opts = append(r.Options[:], opts...)
var env TieredCachingGetResponseEnvelope
path := fmt.Sprintf("zones/%s/argo/tiered_caching", 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

0 comments on commit c2bbbba

Please sign in to comment.