@@ -58,7 +58,7 @@ func (r *CertificatePackService) New(ctx context.Context, params CertificatePack
5858}
5959
6060// For a given zone, list all active certificate packs.
61- func (r * CertificatePackService ) List (ctx context.Context , params CertificatePackListParams , opts ... option.RequestOption ) (res * pagination.SinglePage [CertificatePackListResponse ], err error ) {
61+ func (r * CertificatePackService ) List (ctx context.Context , params CertificatePackListParams , opts ... option.RequestOption ) (res * pagination.V4PagePaginationArray [CertificatePackListResponse ], err error ) {
6262 var raw * http.Response
6363 opts = slices .Concat (r .Options , opts )
6464 opts = append ([]option.RequestOption {option .WithResponseInto (& raw )}, opts ... )
@@ -80,8 +80,8 @@ func (r *CertificatePackService) List(ctx context.Context, params CertificatePac
8080}
8181
8282// For a given zone, list all active certificate packs.
83- func (r * CertificatePackService ) ListAutoPaging (ctx context.Context , params CertificatePackListParams , opts ... option.RequestOption ) * pagination.SinglePageAutoPager [CertificatePackListResponse ] {
84- return pagination .NewSinglePageAutoPager (r .List (ctx , params , opts ... ))
83+ func (r * CertificatePackService ) ListAutoPaging (ctx context.Context , params CertificatePackListParams , opts ... option.RequestOption ) * pagination.V4PagePaginationArrayAutoPager [CertificatePackListResponse ] {
84+ return pagination .NewV4PagePaginationArrayAutoPager (r .List (ctx , params , opts ... ))
8585}
8686
8787// For a given zone, delete an advanced certificate pack.
@@ -1893,6 +1893,12 @@ func (r CertificatePackNewResponseEnvelopeSuccess) IsKnown() bool {
18931893type CertificatePackListParams struct {
18941894 // Identifier.
18951895 ZoneID param.Field [string ] `path:"zone_id,required"`
1896+ // Specify the deployment environment for the certificate packs.
1897+ Deploy param.Field [CertificatePackListParamsDeploy ] `query:"deploy"`
1898+ // Page number of paginated results.
1899+ Page param.Field [float64 ] `query:"page"`
1900+ // Number of certificate packs per page.
1901+ PerPage param.Field [float64 ] `query:"per_page"`
18961902 // Include Certificate Packs of all statuses, not just active ones.
18971903 Status param.Field [CertificatePackListParamsStatus ] `query:"status"`
18981904}
@@ -1906,6 +1912,22 @@ func (r CertificatePackListParams) URLQuery() (v url.Values) {
19061912 })
19071913}
19081914
1915+ // Specify the deployment environment for the certificate packs.
1916+ type CertificatePackListParamsDeploy string
1917+
1918+ const (
1919+ CertificatePackListParamsDeployStaging CertificatePackListParamsDeploy = "staging"
1920+ CertificatePackListParamsDeployProduction CertificatePackListParamsDeploy = "production"
1921+ )
1922+
1923+ func (r CertificatePackListParamsDeploy ) IsKnown () bool {
1924+ switch r {
1925+ case CertificatePackListParamsDeployStaging , CertificatePackListParamsDeployProduction :
1926+ return true
1927+ }
1928+ return false
1929+ }
1930+
19091931// Include Certificate Packs of all statuses, not just active ones.
19101932type CertificatePackListParamsStatus string
19111933
0 commit comments