diff --git a/pkg/cloudapi/k8s/list.go b/pkg/cloudapi/k8s/list.go index 7eb89e8..a48e76b 100644 --- a/pkg/cloudapi/k8s/list.go +++ b/pkg/cloudapi/k8s/list.go @@ -9,9 +9,9 @@ import ( ) type ListRequest struct { - IncludeDeleted bool `json:"includedeleted"` - Page uint64 `json:"page"` - Size uint64 `json:"size"` + IncludeDeleted bool `url:"includedeleted"` + Page uint64 `url:"page"` + Size uint64 `url:"size"` } func (k8s K8S) List(ctx context.Context, req ListRequest, options ...opts.DecortOpts) (K8SList, error) { diff --git a/pkg/cloudapi/k8s/list_deleted.go b/pkg/cloudapi/k8s/list_deleted.go index 01375a0..cb4fcea 100644 --- a/pkg/cloudapi/k8s/list_deleted.go +++ b/pkg/cloudapi/k8s/list_deleted.go @@ -9,8 +9,8 @@ import ( ) type ListDeletedRequest struct { - Page uint64 `json:"page"` - Size uint64 `json:"size"` + Page uint64 `url:"page"` + Size uint64 `url:"size"` } func (k8s K8S) ListDeleted(ctx context.Context, req ListDeletedRequest, options ...opts.DecortOpts) (K8SList, error) {