From de39196ca74ad4f4c5e06ce0d21661f232333cc6 Mon Sep 17 00:00:00 2001 From: "supabase-cli-releaser[bot]" <246109035+supabase-cli-releaser[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:39:20 +0000 Subject: [PATCH 1/2] chore: sync API types from infrastructure --- apps/cli-go/pkg/api/client.gen.go | 3195 +++++++++++++++++------- apps/cli-go/pkg/api/types.gen.go | 3775 ++++++++++++++++++++++++++++- 2 files changed, 5957 insertions(+), 1013 deletions(-) diff --git a/apps/cli-go/pkg/api/client.gen.go b/apps/cli-go/pkg/api/client.gen.go index 17a4a14ad1..b8684b994f 100644 --- a/apps/cli-go/pkg/api/client.gen.go +++ b/apps/cli-go/pkg/api/client.gen.go @@ -1,6 +1,6 @@ // Package api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. package api import ( @@ -3477,7 +3477,7 @@ func NewV1DeleteABranchRequest(server string, branchIdOrRef string, params *V1De var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3498,28 +3498,33 @@ func NewV1DeleteABranchRequest(server string, branchIdOrRef string, params *V1De } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Force != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -3533,7 +3538,7 @@ func NewV1GetABranchConfigRequest(server string, branchIdOrRef string) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3553,7 +3558,7 @@ func NewV1GetABranchConfigRequest(server string, branchIdOrRef string) (*http.Re return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3578,7 +3583,7 @@ func NewV1UpdateABranchConfigRequestWithBody(server string, branchIdOrRef string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3598,7 +3603,7 @@ func NewV1UpdateABranchConfigRequestWithBody(server string, branchIdOrRef string return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -3614,7 +3619,7 @@ func NewV1DiffABranchRequest(server string, branchIdOrRef string, params *V1Diff var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3635,19 +3640,21 @@ func NewV1DiffABranchRequest(server string, branchIdOrRef string, params *V1Diff } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.IncludedSchemas != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "included_schemas", runtime.ParamLocationQuery, *params.IncludedSchemas); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "included_schemas", *params.IncludedSchemas, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3655,24 +3662,23 @@ func NewV1DiffABranchRequest(server string, branchIdOrRef string, params *V1Diff if params.Pgdelta != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pgdelta", runtime.ParamLocationQuery, *params.Pgdelta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pgdelta", *params.Pgdelta, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3697,7 +3703,7 @@ func NewV1MergeABranchRequestWithBody(server string, branchIdOrRef string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3717,7 +3723,7 @@ func NewV1MergeABranchRequestWithBody(server string, branchIdOrRef string, conte return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3744,7 +3750,7 @@ func NewV1PushABranchRequestWithBody(server string, branchIdOrRef string, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3764,7 +3770,7 @@ func NewV1PushABranchRequestWithBody(server string, branchIdOrRef string, conten return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3791,7 +3797,7 @@ func NewV1ResetABranchRequestWithBody(server string, branchIdOrRef string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3811,7 +3817,7 @@ func NewV1ResetABranchRequestWithBody(server string, branchIdOrRef string, conte return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3827,7 +3833,7 @@ func NewV1RestoreABranchRequest(server string, branchIdOrRef string) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "branch_id_or_ref", runtime.ParamLocationPath, branchIdOrRef) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "branch_id_or_ref", branchIdOrRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -3847,7 +3853,7 @@ func NewV1RestoreABranchRequest(server string, branchIdOrRef string) (*http.Requ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -3875,55 +3881,45 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client_id", runtime.ParamLocationQuery, params.ClientId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "client_id", params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "response_type", runtime.ParamLocationQuery, params.ResponseType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "response_type", params.ResponseType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "redirect_uri", runtime.ParamLocationQuery, params.RedirectUri); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect_uri", params.RedirectUri, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Scope != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3931,15 +3927,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.State != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, *params.State); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3947,15 +3939,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.ResponseMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "response_mode", runtime.ParamLocationQuery, *params.ResponseMode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "response_mode", *params.ResponseMode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3963,15 +3951,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.CodeChallenge != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "code_challenge", runtime.ParamLocationQuery, *params.CodeChallenge); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code_challenge", *params.CodeChallenge, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3979,15 +3963,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.CodeChallengeMethod != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "code_challenge_method", runtime.ParamLocationQuery, *params.CodeChallengeMethod); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code_challenge_method", *params.CodeChallengeMethod, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -3995,15 +3975,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.OrganizationSlug != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization_slug", runtime.ParamLocationQuery, *params.OrganizationSlug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "organization_slug", *params.OrganizationSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4011,15 +3987,11 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.TargetFlow != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_flow", runtime.ParamLocationQuery, *params.TargetFlow); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "target_flow", *params.TargetFlow, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4027,24 +3999,23 @@ func NewV1AuthorizeUserRequest(server string, params *V1AuthorizeUserParams) (*h if params.Resource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource", runtime.ParamLocationQuery, *params.Resource); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "resource", *params.Resource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uri"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4072,67 +4043,53 @@ func NewV1OauthAuthorizeProjectClaimRequest(server string, params *V1OauthAuthor } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project_ref", runtime.ParamLocationQuery, params.ProjectRef); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "project_ref", params.ProjectRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client_id", runtime.ParamLocationQuery, params.ClientId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "client_id", params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "response_type", runtime.ParamLocationQuery, params.ResponseType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "response_type", params.ResponseType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "redirect_uri", runtime.ParamLocationQuery, params.RedirectUri); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirect_uri", params.RedirectUri, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.State != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, *params.State); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4140,15 +4097,11 @@ func NewV1OauthAuthorizeProjectClaimRequest(server string, params *V1OauthAuthor if params.ResponseMode != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "response_mode", runtime.ParamLocationQuery, *params.ResponseMode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "response_mode", *params.ResponseMode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4156,15 +4109,11 @@ func NewV1OauthAuthorizeProjectClaimRequest(server string, params *V1OauthAuthor if params.CodeChallenge != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "code_challenge", runtime.ParamLocationQuery, *params.CodeChallenge); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code_challenge", *params.CodeChallenge, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4172,24 +4121,23 @@ func NewV1OauthAuthorizeProjectClaimRequest(server string, params *V1OauthAuthor if params.CodeChallengeMethod != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "code_challenge_method", runtime.ParamLocationQuery, *params.CodeChallengeMethod); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code_challenge_method", *params.CodeChallengeMethod, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4227,7 +4175,7 @@ func NewV1RevokeTokenRequestWithBody(server string, contentType string, body io. return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4267,7 +4215,7 @@ func NewV1ExchangeOauthTokenRequestWithBody(server string, contentType string, b return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4296,7 +4244,7 @@ func NewV1ListAllOrganizationsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4334,7 +4282,7 @@ func NewV1CreateAnOrganizationRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4350,7 +4298,7 @@ func NewV1GetAnOrganizationRequest(server string, slug string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4370,7 +4318,7 @@ func NewV1GetAnOrganizationRequest(server string, slug string) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4384,7 +4332,7 @@ func NewV1GetOrganizationEntitlementsRequest(server string, slug string) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4404,7 +4352,7 @@ func NewV1GetOrganizationEntitlementsRequest(server string, slug string) (*http. return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4418,7 +4366,7 @@ func NewV1ListOrganizationMembersRequest(server string, slug string) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4438,7 +4386,7 @@ func NewV1ListOrganizationMembersRequest(server string, slug string) (*http.Requ return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4452,14 +4400,14 @@ func NewV1GetOrganizationProjectClaimRequest(server string, slug string, token s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "token", runtime.ParamLocationPath, token) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "token", token, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4479,7 +4427,7 @@ func NewV1GetOrganizationProjectClaimRequest(server string, slug string, token s return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4493,14 +4441,14 @@ func NewV1ClaimProjectForOrganizationRequest(server string, slug string, token s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "token", runtime.ParamLocationPath, token) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "token", token, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4520,7 +4468,7 @@ func NewV1ClaimProjectForOrganizationRequest(server string, slug string, token s return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -4534,7 +4482,7 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "slug", runtime.ParamLocationPath, slug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4555,19 +4503,21 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4575,15 +4525,11 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4591,15 +4537,11 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4607,15 +4549,11 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4623,24 +4561,23 @@ func NewV1GetAllProjectsForOrganizationRequest(server string, slug string, param if params.Statuses != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "statuses", *params.Statuses, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4667,7 +4604,7 @@ func NewV1GetProfileRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4694,7 +4631,7 @@ func NewV1ListAllProjectsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4732,7 +4669,7 @@ func NewV1CreateAProjectRequestWithBody(server string, contentType string, body return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -4762,31 +4699,29 @@ func NewV1GetAvailableRegionsRequest(server string, params *V1GetAvailableRegion } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization_slug", runtime.ParamLocationQuery, params.OrganizationSlug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "organization_slug", params.OrganizationSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Continent != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "continent", runtime.ParamLocationQuery, *params.Continent); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "continent", *params.Continent, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4794,24 +4729,23 @@ func NewV1GetAvailableRegionsRequest(server string, params *V1GetAvailableRegion if params.DesiredInstanceSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "desired_instance_size", runtime.ParamLocationQuery, *params.DesiredInstanceSize); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "desired_instance_size", *params.DesiredInstanceSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4825,7 +4759,7 @@ func NewV1DeleteAProjectRequest(server string, ref string) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4845,7 +4779,7 @@ func NewV1DeleteAProjectRequest(server string, ref string) (*http.Request, error return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -4859,7 +4793,7 @@ func NewV1GetProjectRequest(server string, ref string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4879,7 +4813,7 @@ func NewV1GetProjectRequest(server string, ref string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -4904,7 +4838,7 @@ func NewV1UpdateAProjectRequestWithBody(server string, ref string, contentType s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4924,7 +4858,7 @@ func NewV1UpdateAProjectRequestWithBody(server string, ref string, contentType s return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -4940,7 +4874,7 @@ func NewV1ListActionRunsRequest(server string, ref string, params *V1ListActionR var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -4961,19 +4895,21 @@ func NewV1ListActionRunsRequest(server string, ref string, params *V1ListActionR } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -4981,24 +4917,23 @@ func NewV1ListActionRunsRequest(server string, ref string, params *V1ListActionR if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5012,7 +4947,7 @@ func NewV1CountActionRunsRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5032,7 +4967,7 @@ func NewV1CountActionRunsRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("HEAD", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodHead, queryURL.String(), nil) if err != nil { return nil, err } @@ -5046,14 +4981,14 @@ func NewV1GetActionRunRequest(server string, ref string, runId string) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "run_id", runtime.ParamLocationPath, runId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "run_id", runId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5073,7 +5008,7 @@ func NewV1GetActionRunRequest(server string, ref string, runId string) (*http.Re return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5087,14 +5022,14 @@ func NewV1GetActionRunLogsRequest(server string, ref string, runId string) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "run_id", runtime.ParamLocationPath, runId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "run_id", runId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5114,7 +5049,7 @@ func NewV1GetActionRunLogsRequest(server string, ref string, runId string) (*htt return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5139,14 +5074,14 @@ func NewV1UpdateActionRunStatusRequestWithBody(server string, ref string, runId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "run_id", runtime.ParamLocationPath, runId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "run_id", runId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5166,7 +5101,7 @@ func NewV1UpdateActionRunStatusRequestWithBody(server string, ref string, runId return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -5182,7 +5117,7 @@ func NewV1GetPerformanceAdvisorsRequest(server string, ref string) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5202,7 +5137,7 @@ func NewV1GetPerformanceAdvisorsRequest(server string, ref string) (*http.Reques return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5216,7 +5151,7 @@ func NewV1GetSecurityAdvisorsRequest(server string, ref string, params *V1GetSec var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5237,28 +5172,33 @@ func NewV1GetSecurityAdvisorsRequest(server string, ref string, params *V1GetSec } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.LintType != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lint_type", runtime.ParamLocationQuery, *params.LintType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "lint_type", *params.LintType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5272,7 +5212,7 @@ func NewV1GetProjectFunctionCombinedStatsRequest(server string, ref string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5293,36 +5233,37 @@ func NewV1GetProjectFunctionCombinedStatsRequest(server string, ref string, para } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interval", runtime.ParamLocationQuery, params.Interval); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "interval", params.Interval, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "function_id", runtime.ParamLocationQuery, params.FunctionId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "function_id", params.FunctionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5336,7 +5277,7 @@ func NewV1GetProjectLogsRequest(server string, ref string, params *V1GetProjectL var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5357,19 +5298,21 @@ func NewV1GetProjectLogsRequest(server string, ref string, params *V1GetProjectL } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Sql != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sql", runtime.ParamLocationQuery, *params.Sql); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sql", *params.Sql, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5377,15 +5320,11 @@ func NewV1GetProjectLogsRequest(server string, ref string, params *V1GetProjectL if params.IsoTimestampStart != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "iso_timestamp_start", runtime.ParamLocationQuery, *params.IsoTimestampStart); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "iso_timestamp_start", *params.IsoTimestampStart, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5393,24 +5332,23 @@ func NewV1GetProjectLogsRequest(server string, ref string, params *V1GetProjectL if params.IsoTimestampEnd != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "iso_timestamp_end", runtime.ParamLocationQuery, *params.IsoTimestampEnd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "iso_timestamp_end", *params.IsoTimestampEnd, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5424,7 +5362,7 @@ func NewV1GetProjectLogsAllRequest(server string, ref string, params *V1GetProje var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5445,19 +5383,21 @@ func NewV1GetProjectLogsAllRequest(server string, ref string, params *V1GetProje } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Sql != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sql", runtime.ParamLocationQuery, *params.Sql); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sql", *params.Sql, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5465,15 +5405,11 @@ func NewV1GetProjectLogsAllRequest(server string, ref string, params *V1GetProje if params.IsoTimestampStart != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "iso_timestamp_start", runtime.ParamLocationQuery, *params.IsoTimestampStart); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "iso_timestamp_start", *params.IsoTimestampStart, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5481,24 +5417,23 @@ func NewV1GetProjectLogsAllRequest(server string, ref string, params *V1GetProje if params.IsoTimestampEnd != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "iso_timestamp_end", runtime.ParamLocationQuery, *params.IsoTimestampEnd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "iso_timestamp_end", *params.IsoTimestampEnd, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5512,7 +5447,7 @@ func NewV1ScrapeProjectMetricsRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5532,7 +5467,7 @@ func NewV1ScrapeProjectMetricsRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5546,7 +5481,7 @@ func NewV1GetProjectUsageApiCountRequest(server string, ref string, params *V1Ge var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5567,28 +5502,33 @@ func NewV1GetProjectUsageApiCountRequest(server string, ref string, params *V1Ge } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Interval != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "interval", runtime.ParamLocationQuery, *params.Interval); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "interval", *params.Interval, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5602,7 +5542,7 @@ func NewV1GetProjectUsageRequestCountRequest(server string, ref string) (*http.R var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5622,7 +5562,7 @@ func NewV1GetProjectUsageRequestCountRequest(server string, ref string) (*http.R return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5636,7 +5576,7 @@ func NewV1GetProjectApiKeysRequest(server string, ref string, params *V1GetProje var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5657,28 +5597,33 @@ func NewV1GetProjectApiKeysRequest(server string, ref string, params *V1GetProje } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Reveal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, *params.Reveal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reveal", *params.Reveal, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5703,7 +5648,7 @@ func NewV1CreateProjectApiKeyRequestWithBody(server string, ref string, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5724,28 +5669,33 @@ func NewV1CreateProjectApiKeyRequestWithBody(server string, ref string, params * } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Reveal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, *params.Reveal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reveal", *params.Reveal, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -5761,7 +5711,7 @@ func NewV1GetProjectLegacyApiKeysRequest(server string, ref string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5781,7 +5731,7 @@ func NewV1GetProjectLegacyApiKeysRequest(server string, ref string) (*http.Reque return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -5795,7 +5745,7 @@ func NewV1UpdateProjectLegacyApiKeysRequest(server string, ref string, params *V var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -5816,24 +5766,29 @@ func NewV1UpdateProjectLegacyApiKeysRequest(server string, ref string, params *V } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "enabled", runtime.ParamLocationQuery, params.Enabled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "enabled", params.Enabled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("PUT", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) if err != nil { return nil, err } @@ -5847,14 +5802,14 @@ func NewV1DeleteProjectApiKeyRequest(server string, ref string, id openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -5875,19 +5830,21 @@ func NewV1DeleteProjectApiKeyRequest(server string, ref string, id openapi_types } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Reveal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, *params.Reveal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reveal", *params.Reveal, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5895,15 +5852,11 @@ func NewV1DeleteProjectApiKeyRequest(server string, ref string, id openapi_types if params.WasCompromised != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "was_compromised", runtime.ParamLocationQuery, *params.WasCompromised); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "was_compromised", *params.WasCompromised, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -5911,24 +5864,23 @@ func NewV1DeleteProjectApiKeyRequest(server string, ref string, id openapi_types if params.Reason != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reason", runtime.ParamLocationQuery, *params.Reason); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reason", *params.Reason, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -5942,14 +5894,14 @@ func NewV1GetProjectApiKeyRequest(server string, ref string, id openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -5970,28 +5922,33 @@ func NewV1GetProjectApiKeyRequest(server string, ref string, id openapi_types.UU } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Reveal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, *params.Reveal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reveal", *params.Reveal, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6016,14 +5973,14 @@ func NewV1UpdateProjectApiKeyRequestWithBody(server string, ref string, id opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6044,28 +6001,33 @@ func NewV1UpdateProjectApiKeyRequestWithBody(server string, ref string, id opena } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Reveal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reveal", runtime.ParamLocationQuery, *params.Reveal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reveal", *params.Reveal, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -6081,7 +6043,7 @@ func NewV1ListProjectAddonsRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6101,7 +6063,7 @@ func NewV1ListProjectAddonsRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6126,7 +6088,7 @@ func NewV1ApplyProjectAddonRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6146,7 +6108,7 @@ func NewV1ApplyProjectAddonRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -6164,14 +6126,14 @@ func NewV1RemoveProjectAddonRequest(server string, ref string, addonVariant stru var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addon_variant", runtime.ParamLocationPath, addonVariant) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "addon_variant", addonVariant, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -6191,7 +6153,7 @@ func NewV1RemoveProjectAddonRequest(server string, ref string, addonVariant stru return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6205,7 +6167,7 @@ func NewV1DisablePreviewBranchingRequest(server string, ref string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6225,7 +6187,7 @@ func NewV1DisablePreviewBranchingRequest(server string, ref string) (*http.Reque return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6239,7 +6201,7 @@ func NewV1ListAllBranchesRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6259,7 +6221,7 @@ func NewV1ListAllBranchesRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6284,7 +6246,7 @@ func NewV1CreateABranchRequestWithBody(server string, ref string, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6304,7 +6266,7 @@ func NewV1CreateABranchRequestWithBody(server string, ref string, contentType st return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6320,14 +6282,14 @@ func NewV1GetABranchRequest(server string, ref string, name string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6347,7 +6309,7 @@ func NewV1GetABranchRequest(server string, ref string, name string) (*http.Reque return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6361,7 +6323,7 @@ func NewV1DeleteProjectClaimTokenRequest(server string, ref string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6381,7 +6343,7 @@ func NewV1DeleteProjectClaimTokenRequest(server string, ref string) (*http.Reque return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6395,7 +6357,7 @@ func NewV1GetProjectClaimTokenRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6415,7 +6377,7 @@ func NewV1GetProjectClaimTokenRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6429,7 +6391,7 @@ func NewV1CreateProjectClaimTokenRequest(server string, ref string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6449,7 +6411,7 @@ func NewV1CreateProjectClaimTokenRequest(server string, ref string) (*http.Reque return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -6463,7 +6425,7 @@ func NewV1DeleteLoginRolesRequest(server string, ref string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6483,7 +6445,7 @@ func NewV1DeleteLoginRolesRequest(server string, ref string) (*http.Request, err return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6508,7 +6470,7 @@ func NewV1CreateLoginRoleRequestWithBody(server string, ref string, contentType var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6528,7 +6490,7 @@ func NewV1CreateLoginRoleRequestWithBody(server string, ref string, contentType return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6544,7 +6506,7 @@ func NewV1GetAuthServiceConfigRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6564,7 +6526,7 @@ func NewV1GetAuthServiceConfigRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6589,7 +6551,7 @@ func NewV1UpdateAuthServiceConfigRequestWithBody(server string, ref string, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6609,7 +6571,7 @@ func NewV1UpdateAuthServiceConfigRequestWithBody(server string, ref string, cont return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -6625,7 +6587,7 @@ func NewV1GetProjectSigningKeysRequest(server string, ref string) (*http.Request var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6645,7 +6607,7 @@ func NewV1GetProjectSigningKeysRequest(server string, ref string) (*http.Request return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6670,7 +6632,7 @@ func NewV1CreateProjectSigningKeyRequestWithBody(server string, ref string, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6690,7 +6652,7 @@ func NewV1CreateProjectSigningKeyRequestWithBody(server string, ref string, cont return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6706,7 +6668,7 @@ func NewV1GetLegacySigningKeyRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6726,7 +6688,7 @@ func NewV1GetLegacySigningKeyRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6740,7 +6702,7 @@ func NewV1CreateLegacySigningKeyRequest(server string, ref string) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6760,7 +6722,7 @@ func NewV1CreateLegacySigningKeyRequest(server string, ref string) (*http.Reques return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -6774,14 +6736,14 @@ func NewV1RemoveProjectSigningKeyRequest(server string, ref string, id openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6801,7 +6763,7 @@ func NewV1RemoveProjectSigningKeyRequest(server string, ref string, id openapi_t return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6815,14 +6777,14 @@ func NewV1GetProjectSigningKeyRequest(server string, ref string, id openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6842,7 +6804,7 @@ func NewV1GetProjectSigningKeyRequest(server string, ref string, id openapi_type return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6867,14 +6829,14 @@ func NewV1UpdateProjectSigningKeyRequestWithBody(server string, ref string, id o var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6894,7 +6856,7 @@ func NewV1UpdateProjectSigningKeyRequestWithBody(server string, ref string, id o return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -6910,7 +6872,7 @@ func NewV1ListAllSsoProviderRequest(server string, ref string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6930,7 +6892,7 @@ func NewV1ListAllSsoProviderRequest(server string, ref string) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6955,7 +6917,7 @@ func NewV1CreateASsoProviderRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6975,7 +6937,7 @@ func NewV1CreateASsoProviderRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6991,14 +6953,14 @@ func NewV1DeleteASsoProviderRequest(server string, ref string, providerId openap var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "provider_id", runtime.ParamLocationPath, providerId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "provider_id", providerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7018,7 +6980,7 @@ func NewV1DeleteASsoProviderRequest(server string, ref string, providerId openap return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7032,14 +6994,14 @@ func NewV1GetASsoProviderRequest(server string, ref string, providerId openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "provider_id", runtime.ParamLocationPath, providerId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "provider_id", providerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7059,7 +7021,7 @@ func NewV1GetASsoProviderRequest(server string, ref string, providerId openapi_t return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7084,14 +7046,14 @@ func NewV1UpdateASsoProviderRequestWithBody(server string, ref string, providerI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "provider_id", runtime.ParamLocationPath, providerId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "provider_id", providerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7111,7 +7073,7 @@ func NewV1UpdateASsoProviderRequestWithBody(server string, ref string, providerI return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -7127,7 +7089,7 @@ func NewV1ListProjectTpaIntegrationsRequest(server string, ref string) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7147,7 +7109,7 @@ func NewV1ListProjectTpaIntegrationsRequest(server string, ref string) (*http.Re return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7172,7 +7134,7 @@ func NewV1CreateProjectTpaIntegrationRequestWithBody(server string, ref string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7192,7 +7154,7 @@ func NewV1CreateProjectTpaIntegrationRequestWithBody(server string, ref string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -7208,14 +7170,14 @@ func NewV1DeleteProjectTpaIntegrationRequest(server string, ref string, tpaId op var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tpa_id", runtime.ParamLocationPath, tpaId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tpa_id", tpaId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7235,7 +7197,7 @@ func NewV1DeleteProjectTpaIntegrationRequest(server string, ref string, tpaId op return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7249,14 +7211,14 @@ func NewV1GetProjectTpaIntegrationRequest(server string, ref string, tpaId opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tpa_id", runtime.ParamLocationPath, tpaId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tpa_id", tpaId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7276,7 +7238,7 @@ func NewV1GetProjectTpaIntegrationRequest(server string, ref string, tpaId opena return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7290,7 +7252,7 @@ func NewV1GetProjectPgbouncerConfigRequest(server string, ref string) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7310,7 +7272,7 @@ func NewV1GetProjectPgbouncerConfigRequest(server string, ref string) (*http.Req return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7324,7 +7286,7 @@ func NewV1GetPoolerConfigRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7344,7 +7306,7 @@ func NewV1GetPoolerConfigRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7369,7 +7331,7 @@ func NewV1UpdatePoolerConfigRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7389,7 +7351,7 @@ func NewV1UpdatePoolerConfigRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7405,7 +7367,7 @@ func NewV1GetPostgresConfigRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7425,7 +7387,7 @@ func NewV1GetPostgresConfigRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7450,7 +7412,7 @@ func NewV1UpdatePostgresConfigRequestWithBody(server string, ref string, content var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7470,7 +7432,7 @@ func NewV1UpdatePostgresConfigRequestWithBody(server string, ref string, content return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -7486,7 +7448,7 @@ func NewV1GetDatabaseDiskRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7506,7 +7468,7 @@ func NewV1GetDatabaseDiskRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7531,7 +7493,7 @@ func NewV1ModifyDatabaseDiskRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7551,7 +7513,7 @@ func NewV1ModifyDatabaseDiskRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -7567,7 +7529,7 @@ func NewV1GetProjectDiskAutoscaleConfigRequest(server string, ref string) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7587,7 +7549,7 @@ func NewV1GetProjectDiskAutoscaleConfigRequest(server string, ref string) (*http return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7601,7 +7563,7 @@ func NewV1GetDiskUtilizationRequest(server string, ref string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7621,7 +7583,7 @@ func NewV1GetDiskUtilizationRequest(server string, ref string) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7635,7 +7597,7 @@ func NewV1GetRealtimeConfigRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7655,7 +7617,7 @@ func NewV1GetRealtimeConfigRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7680,7 +7642,7 @@ func NewV1UpdateRealtimeConfigRequestWithBody(server string, ref string, content var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7700,7 +7662,7 @@ func NewV1UpdateRealtimeConfigRequestWithBody(server string, ref string, content return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7716,7 +7678,7 @@ func NewV1ShutdownRealtimeRequest(server string, ref string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7736,7 +7698,7 @@ func NewV1ShutdownRealtimeRequest(server string, ref string) (*http.Request, err return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -7750,7 +7712,7 @@ func NewV1GetStorageConfigRequest(server string, ref string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7770,7 +7732,7 @@ func NewV1GetStorageConfigRequest(server string, ref string) (*http.Request, err return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7795,7 +7757,7 @@ func NewV1UpdateStorageConfigRequestWithBody(server string, ref string, contentT var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7815,7 +7777,7 @@ func NewV1UpdateStorageConfigRequestWithBody(server string, ref string, contentT return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7831,7 +7793,7 @@ func NewV1DeleteHostnameConfigRequest(server string, ref string, params *V1Delet var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7852,28 +7814,33 @@ func NewV1DeleteHostnameConfigRequest(server string, ref string, params *V1Delet } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.RemoveAddon != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove_addon", runtime.ParamLocationQuery, *params.RemoveAddon); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "remove_addon", *params.RemoveAddon, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7887,7 +7854,7 @@ func NewV1GetHostnameConfigRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7907,7 +7874,7 @@ func NewV1GetHostnameConfigRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7921,7 +7888,7 @@ func NewV1ActivateCustomHostnameRequest(server string, ref string) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7941,7 +7908,7 @@ func NewV1ActivateCustomHostnameRequest(server string, ref string) (*http.Reques return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -7966,7 +7933,7 @@ func NewV1UpdateHostnameConfigRequestWithBody(server string, ref string, content var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7986,7 +7953,7 @@ func NewV1UpdateHostnameConfigRequestWithBody(server string, ref string, content return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8002,7 +7969,7 @@ func NewV1VerifyDnsConfigRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8022,7 +7989,7 @@ func NewV1VerifyDnsConfigRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -8036,7 +8003,7 @@ func NewV1ListAllBackupsRequest(server string, ref string) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8056,7 +8023,7 @@ func NewV1ListAllBackupsRequest(server string, ref string) (*http.Request, error return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8081,7 +8048,7 @@ func NewV1RestorePhysicalBackupRequestWithBody(server string, ref string, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8101,7 +8068,7 @@ func NewV1RestorePhysicalBackupRequestWithBody(server string, ref string, conten return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8128,7 +8095,7 @@ func NewV1RestorePitrBackupRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8148,7 +8115,7 @@ func NewV1RestorePitrBackupRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8164,7 +8131,7 @@ func NewV1GetRestorePointRequest(server string, ref string, params *V1GetRestore var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8185,28 +8152,33 @@ func NewV1GetRestorePointRequest(server string, ref string, params *V1GetRestore } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8231,7 +8203,7 @@ func NewV1CreateRestorePointRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8251,7 +8223,7 @@ func NewV1CreateRestorePointRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8267,7 +8239,7 @@ func NewV1GetBackupScheduleRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8287,7 +8259,7 @@ func NewV1GetBackupScheduleRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8312,7 +8284,7 @@ func NewV1UpdateBackupScheduleRequestWithBody(server string, ref string, content var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8332,7 +8304,7 @@ func NewV1UpdateBackupScheduleRequestWithBody(server string, ref string, content return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -8359,7 +8331,7 @@ func NewV1UndoRequestWithBody(server string, ref string, contentType string, bod var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8379,7 +8351,7 @@ func NewV1UndoRequestWithBody(server string, ref string, contentType string, bod return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8395,7 +8367,7 @@ func NewV1GetDatabaseMetadataRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8415,7 +8387,7 @@ func NewV1GetDatabaseMetadataRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8429,7 +8401,7 @@ func NewV1GetJitAccessRequest(server string, ref string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8449,7 +8421,7 @@ func NewV1GetJitAccessRequest(server string, ref string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8474,7 +8446,7 @@ func NewV1AuthorizeJitAccessRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8494,7 +8466,7 @@ func NewV1AuthorizeJitAccessRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8521,7 +8493,7 @@ func NewV1UpdateJitAccessRequestWithBody(server string, ref string, contentType var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8541,7 +8513,7 @@ func NewV1UpdateJitAccessRequestWithBody(server string, ref string, contentType return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -8568,7 +8540,7 @@ func NewV1InviteExternalJitAccessRequestWithBody(server string, ref string, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8588,7 +8560,7 @@ func NewV1InviteExternalJitAccessRequestWithBody(server string, ref string, cont return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8615,7 +8587,7 @@ func NewV1AcceptInviteExternalJitAccessRequestWithBody(server string, ref string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8635,7 +8607,7 @@ func NewV1AcceptInviteExternalJitAccessRequestWithBody(server string, ref string return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8651,14 +8623,14 @@ func NewV1DeleteInviteExternalJitAccessRequest(server string, ref string, invite var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invite_id", runtime.ParamLocationPath, inviteId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "invite_id", inviteId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8678,7 +8650,7 @@ func NewV1DeleteInviteExternalJitAccessRequest(server string, ref string, invite return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -8692,7 +8664,7 @@ func NewV1ListJitAccessRequest(server string, ref string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8712,7 +8684,7 @@ func NewV1ListJitAccessRequest(server string, ref string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8726,14 +8698,14 @@ func NewV1DeleteJitAccessRequest(server string, ref string, userId openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "user_id", runtime.ParamLocationPath, userId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "user_id", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8753,7 +8725,7 @@ func NewV1DeleteJitAccessRequest(server string, ref string, userId openapi_types return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -8767,7 +8739,7 @@ func NewV1RollbackMigrationsRequest(server string, ref string, params *V1Rollbac var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8788,24 +8760,29 @@ func NewV1RollbackMigrationsRequest(server string, ref string, params *V1Rollbac } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gte", runtime.ParamLocationQuery, params.Gte); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "gte", params.Gte, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -8819,7 +8796,7 @@ func NewV1ListMigrationHistoryRequest(server string, ref string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8839,7 +8816,7 @@ func NewV1ListMigrationHistoryRequest(server string, ref string) (*http.Request, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8864,7 +8841,7 @@ func NewV1ApplyAMigrationRequestWithBody(server string, ref string, params *V1Ap var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8884,7 +8861,7 @@ func NewV1ApplyAMigrationRequestWithBody(server string, ref string, params *V1Ap return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8896,7 +8873,7 @@ func NewV1ApplyAMigrationRequestWithBody(server string, ref string, params *V1Ap if params.IdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Idempotency-Key", runtime.ParamLocationHeader, *params.IdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", *params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8926,7 +8903,7 @@ func NewV1UpsertAMigrationRequestWithBody(server string, ref string, params *V1U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8946,7 +8923,7 @@ func NewV1UpsertAMigrationRequestWithBody(server string, ref string, params *V1U return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -8958,7 +8935,7 @@ func NewV1UpsertAMigrationRequestWithBody(server string, ref string, params *V1U if params.IdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Idempotency-Key", runtime.ParamLocationHeader, *params.IdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", *params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -8977,14 +8954,14 @@ func NewV1GetAMigrationRequest(server string, ref string, version string) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "version", runtime.ParamLocationPath, version) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "version", version, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9004,7 +8981,7 @@ func NewV1GetAMigrationRequest(server string, ref string, version string) (*http return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9029,14 +9006,14 @@ func NewV1PatchAMigrationRequestWithBody(server string, ref string, version stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "version", runtime.ParamLocationPath, version) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "version", version, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9056,7 +9033,7 @@ func NewV1PatchAMigrationRequestWithBody(server string, ref string, version stri return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -9072,7 +9049,7 @@ func NewV1GetDatabaseOpenapiRequest(server string, ref string, params *V1GetData var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9093,28 +9070,33 @@ func NewV1GetDatabaseOpenapiRequest(server string, ref string, params *V1GetData } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Schema != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "schema", runtime.ParamLocationQuery, *params.Schema); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "schema", *params.Schema, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9139,7 +9121,7 @@ func NewV1UpdateDatabasePasswordRequestWithBody(server string, ref string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9159,7 +9141,7 @@ func NewV1UpdateDatabasePasswordRequestWithBody(server string, ref string, conte return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -9186,7 +9168,7 @@ func NewV1RunAQueryRequestWithBody(server string, ref string, contentType string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9206,7 +9188,7 @@ func NewV1RunAQueryRequestWithBody(server string, ref string, contentType string return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9233,7 +9215,7 @@ func NewV1ReadOnlyQueryRequestWithBody(server string, ref string, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9253,7 +9235,7 @@ func NewV1ReadOnlyQueryRequestWithBody(server string, ref string, contentType st return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9269,7 +9251,7 @@ func NewV1EnableDatabaseWebhookRequest(server string, ref string) (*http.Request var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9289,7 +9271,7 @@ func NewV1EnableDatabaseWebhookRequest(server string, ref string) (*http.Request return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -9303,7 +9285,7 @@ func NewV1ListAllFunctionsRequest(server string, ref string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9323,7 +9305,7 @@ func NewV1ListAllFunctionsRequest(server string, ref string) (*http.Request, err return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9348,7 +9330,7 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9369,19 +9351,21 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Slug != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slug", *params.Slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9389,15 +9373,11 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9405,15 +9385,11 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.VerifyJwt != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "verify_jwt", runtime.ParamLocationQuery, *params.VerifyJwt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "verify_jwt", *params.VerifyJwt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9421,15 +9397,11 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.ImportMap != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_map", runtime.ParamLocationQuery, *params.ImportMap); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "import_map", *params.ImportMap, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9437,15 +9409,11 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.EntrypointPath != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entrypoint_path", runtime.ParamLocationQuery, *params.EntrypointPath); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "entrypoint_path", *params.EntrypointPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9453,15 +9421,11 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.ImportMapPath != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_map_path", runtime.ParamLocationQuery, *params.ImportMapPath); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "import_map_path", *params.ImportMapPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9469,24 +9433,23 @@ func NewV1CreateAFunctionRequestWithBody(server string, ref string, params *V1Cr if params.EzbrSha256 != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ezbr_sha256", runtime.ParamLocationQuery, *params.EzbrSha256); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ezbr_sha256", *params.EzbrSha256, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9513,7 +9476,7 @@ func NewV1BulkUpdateFunctionsRequestWithBody(server string, ref string, contentT var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9533,7 +9496,7 @@ func NewV1BulkUpdateFunctionsRequestWithBody(server string, ref string, contentT return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -9549,7 +9512,7 @@ func NewV1DeployAFunctionRequestWithBody(server string, ref string, params *V1De var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9570,19 +9533,21 @@ func NewV1DeployAFunctionRequestWithBody(server string, ref string, params *V1De } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Slug != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slug", *params.Slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9590,24 +9555,23 @@ func NewV1DeployAFunctionRequestWithBody(server string, ref string, params *V1De if params.BundleOnly != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "bundleOnly", runtime.ParamLocationQuery, *params.BundleOnly); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "bundleOnly", *params.BundleOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9623,14 +9587,14 @@ func NewV1DeleteAFunctionRequest(server string, ref string, functionSlug string) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "function_slug", runtime.ParamLocationPath, functionSlug) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "function_slug", functionSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9650,7 +9614,7 @@ func NewV1DeleteAFunctionRequest(server string, ref string, functionSlug string) return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -9664,14 +9628,14 @@ func NewV1GetAFunctionRequest(server string, ref string, functionSlug string) (* var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "function_slug", runtime.ParamLocationPath, functionSlug) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "function_slug", functionSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9691,7 +9655,7 @@ func NewV1GetAFunctionRequest(server string, ref string, functionSlug string) (* return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9716,14 +9680,14 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "function_slug", runtime.ParamLocationPath, functionSlug) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "function_slug", functionSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9744,19 +9708,21 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Slug != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slug", runtime.ParamLocationQuery, *params.Slug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slug", *params.Slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9764,15 +9730,11 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9780,15 +9742,11 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.VerifyJwt != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "verify_jwt", runtime.ParamLocationQuery, *params.VerifyJwt); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "verify_jwt", *params.VerifyJwt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9796,15 +9754,11 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.ImportMap != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_map", runtime.ParamLocationQuery, *params.ImportMap); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "import_map", *params.ImportMap, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9812,15 +9766,11 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.EntrypointPath != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entrypoint_path", runtime.ParamLocationQuery, *params.EntrypointPath); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "entrypoint_path", *params.EntrypointPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9828,15 +9778,11 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.ImportMapPath != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "import_map_path", runtime.ParamLocationQuery, *params.ImportMapPath); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "import_map_path", *params.ImportMapPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9844,24 +9790,23 @@ func NewV1UpdateAFunctionRequestWithBody(server string, ref string, functionSlug if params.EzbrSha256 != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ezbr_sha256", runtime.ParamLocationQuery, *params.EzbrSha256); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ezbr_sha256", *params.EzbrSha256, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -9877,14 +9822,14 @@ func NewV1GetAFunctionBodyRequest(server string, ref string, functionSlug string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "function_slug", runtime.ParamLocationPath, functionSlug) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "function_slug", functionSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9904,7 +9849,7 @@ func NewV1GetAFunctionBodyRequest(server string, ref string, functionSlug string return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9918,7 +9863,7 @@ func NewV1GetServicesHealthRequest(server string, ref string, params *V1GetServi var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -9939,40 +9884,45 @@ func NewV1GetServicesHealthRequest(server string, ref string, params *V1GetServi } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "services", runtime.ParamLocationQuery, params.Services); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) + if params.Services != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "services", params.Services, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } + } if params.TimeoutMs != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "timeout_ms", runtime.ParamLocationQuery, *params.TimeoutMs); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout_ms", *params.TimeoutMs, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9986,7 +9936,7 @@ func NewV1GetJitAccessConfigRequest(server string, ref string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10006,7 +9956,7 @@ func NewV1GetJitAccessConfigRequest(server string, ref string) (*http.Request, e return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10031,7 +9981,7 @@ func NewV1UpdateJitAccessConfigRequestWithBody(server string, ref string, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10051,7 +10001,7 @@ func NewV1UpdateJitAccessConfigRequestWithBody(server string, ref string, conten return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -10078,7 +10028,7 @@ func NewV1DeleteNetworkBansRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10098,7 +10048,7 @@ func NewV1DeleteNetworkBansRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -10114,7 +10064,7 @@ func NewV1ListAllNetworkBansRequest(server string, ref string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10134,7 +10084,7 @@ func NewV1ListAllNetworkBansRequest(server string, ref string) (*http.Request, e return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10148,7 +10098,7 @@ func NewV1ListAllNetworkBansEnrichedRequest(server string, ref string) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10168,7 +10118,7 @@ func NewV1ListAllNetworkBansEnrichedRequest(server string, ref string) (*http.Re return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10182,7 +10132,7 @@ func NewV1GetNetworkRestrictionsRequest(server string, ref string) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10202,7 +10152,7 @@ func NewV1GetNetworkRestrictionsRequest(server string, ref string) (*http.Reques return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10227,7 +10177,7 @@ func NewV1PatchNetworkRestrictionsRequestWithBody(server string, ref string, con var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10247,7 +10197,7 @@ func NewV1PatchNetworkRestrictionsRequestWithBody(server string, ref string, con return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -10274,7 +10224,7 @@ func NewV1UpdateNetworkRestrictionsRequestWithBody(server string, ref string, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10294,7 +10244,7 @@ func NewV1UpdateNetworkRestrictionsRequestWithBody(server string, ref string, co return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10310,7 +10260,7 @@ func NewV1PauseAProjectRequest(server string, ref string) (*http.Request, error) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10330,7 +10280,7 @@ func NewV1PauseAProjectRequest(server string, ref string) (*http.Request, error) return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10344,7 +10294,7 @@ func NewV1GetPgsodiumConfigRequest(server string, ref string) (*http.Request, er var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10364,7 +10314,7 @@ func NewV1GetPgsodiumConfigRequest(server string, ref string) (*http.Request, er return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10389,7 +10339,7 @@ func NewV1UpdatePgsodiumConfigRequestWithBody(server string, ref string, content var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10409,7 +10359,7 @@ func NewV1UpdatePgsodiumConfigRequestWithBody(server string, ref string, content return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -10425,7 +10375,7 @@ func NewV1GetPostgrestServiceConfigRequest(server string, ref string) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10445,7 +10395,7 @@ func NewV1GetPostgrestServiceConfigRequest(server string, ref string) (*http.Req return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10470,7 +10420,7 @@ func NewV1UpdatePostgrestServiceConfigRequestWithBody(server string, ref string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10490,7 +10440,7 @@ func NewV1UpdatePostgrestServiceConfigRequestWithBody(server string, ref string, return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -10517,7 +10467,7 @@ func NewV1RemoveAReadReplicaRequestWithBody(server string, ref string, contentTy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10537,7 +10487,7 @@ func NewV1RemoveAReadReplicaRequestWithBody(server string, ref string, contentTy return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10564,7 +10514,7 @@ func NewV1SetupAReadReplicaRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10584,7 +10534,7 @@ func NewV1SetupAReadReplicaRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10600,7 +10550,7 @@ func NewV1GetReadonlyModeStatusRequest(server string, ref string) (*http.Request var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10620,7 +10570,7 @@ func NewV1GetReadonlyModeStatusRequest(server string, ref string) (*http.Request return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10634,7 +10584,7 @@ func NewV1DisableReadonlyModeTemporarilyRequest(server string, ref string) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10654,7 +10604,7 @@ func NewV1DisableReadonlyModeTemporarilyRequest(server string, ref string) (*htt return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10668,7 +10618,7 @@ func NewV1RestartAProjectRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10688,7 +10638,7 @@ func NewV1RestartAProjectRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10702,7 +10652,7 @@ func NewV1ListAvailableRestoreVersionsRequest(server string, ref string) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10722,7 +10672,7 @@ func NewV1ListAvailableRestoreVersionsRequest(server string, ref string) (*http. return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10736,7 +10686,7 @@ func NewV1RestoreAProjectRequest(server string, ref string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10756,7 +10706,7 @@ func NewV1RestoreAProjectRequest(server string, ref string) (*http.Request, erro return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10770,7 +10720,7 @@ func NewV1CancelAProjectRestorationRequest(server string, ref string) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10790,7 +10740,7 @@ func NewV1CancelAProjectRestorationRequest(server string, ref string) (*http.Req return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10815,7 +10765,7 @@ func NewV1BulkDeleteSecretsRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10835,7 +10785,7 @@ func NewV1BulkDeleteSecretsRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -10851,7 +10801,7 @@ func NewV1ListAllSecretsRequest(server string, ref string) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10871,7 +10821,7 @@ func NewV1ListAllSecretsRequest(server string, ref string) (*http.Request, error return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10896,7 +10846,7 @@ func NewV1BulkCreateSecretsRequestWithBody(server string, ref string, contentTyp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10916,7 +10866,7 @@ func NewV1BulkCreateSecretsRequestWithBody(server string, ref string, contentTyp return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10932,7 +10882,7 @@ func NewV1GetSslEnforcementConfigRequest(server string, ref string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10952,7 +10902,7 @@ func NewV1GetSslEnforcementConfigRequest(server string, ref string) (*http.Reque return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10977,7 +10927,7 @@ func NewV1UpdateSslEnforcementConfigRequestWithBody(server string, ref string, c var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -10997,7 +10947,7 @@ func NewV1UpdateSslEnforcementConfigRequestWithBody(server string, ref string, c return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -11013,7 +10963,7 @@ func NewV1ListAllBucketsRequest(server string, ref string) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11033,7 +10983,7 @@ func NewV1ListAllBucketsRequest(server string, ref string) (*http.Request, error return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11047,7 +10997,7 @@ func NewV1GenerateTypescriptTypesRequest(server string, ref string, params *V1Ge var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11068,28 +11018,33 @@ func NewV1GenerateTypescriptTypesRequest(server string, ref string, params *V1Ge } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.IncludedSchemas != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "included_schemas", runtime.ParamLocationQuery, *params.IncludedSchemas); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "included_schemas", *params.IncludedSchemas, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11114,7 +11069,7 @@ func NewV1UpgradePostgresVersionRequestWithBody(server string, ref string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11134,7 +11089,7 @@ func NewV1UpgradePostgresVersionRequestWithBody(server string, ref string, conte return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11150,7 +11105,7 @@ func NewV1GetPostgresUpgradeEligibilityRequest(server string, ref string) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11170,7 +11125,7 @@ func NewV1GetPostgresUpgradeEligibilityRequest(server string, ref string) (*http return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11184,7 +11139,7 @@ func NewV1GetPostgresUpgradeStatusRequest(server string, ref string, params *V1G var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11205,28 +11160,33 @@ func NewV1GetPostgresUpgradeStatusRequest(server string, ref string, params *V1G } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.TrackingId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tracking_id", runtime.ParamLocationQuery, *params.TrackingId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tracking_id", *params.TrackingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11240,7 +11200,7 @@ func NewV1DeactivateVanitySubdomainConfigRequest(server string, ref string) (*ht var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11260,7 +11220,7 @@ func NewV1DeactivateVanitySubdomainConfigRequest(server string, ref string) (*ht return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11274,7 +11234,7 @@ func NewV1GetVanitySubdomainConfigRequest(server string, ref string) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11294,7 +11254,7 @@ func NewV1GetVanitySubdomainConfigRequest(server string, ref string) (*http.Requ return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11319,7 +11279,7 @@ func NewV1ActivateVanitySubdomainConfigRequestWithBody(server string, ref string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11339,7 +11299,7 @@ func NewV1ActivateVanitySubdomainConfigRequestWithBody(server string, ref string return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11366,7 +11326,7 @@ func NewV1CheckVanitySubdomainAvailabilityRequestWithBody(server string, ref str var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "ref", runtime.ParamLocationPath, ref) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ref", ref, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11386,7 +11346,7 @@ func NewV1CheckVanitySubdomainAvailabilityRequestWithBody(server string, ref str return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11416,19 +11376,21 @@ func NewV1ListAllSnippetsRequest(server string, params *V1ListAllSnippetsParams) } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.ProjectRef != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project_ref", runtime.ParamLocationQuery, *params.ProjectRef); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "project_ref", *params.ProjectRef, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11436,15 +11398,11 @@ func NewV1ListAllSnippetsRequest(server string, params *V1ListAllSnippetsParams) if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cursor", runtime.ParamLocationQuery, *params.Cursor); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11452,15 +11410,11 @@ func NewV1ListAllSnippetsRequest(server string, params *V1ListAllSnippetsParams) if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11468,15 +11422,11 @@ func NewV1ListAllSnippetsRequest(server string, params *V1ListAllSnippetsParams) if params.SortBy != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_by", runtime.ParamLocationQuery, *params.SortBy); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort_by", *params.SortBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11484,24 +11434,23 @@ func NewV1ListAllSnippetsRequest(server string, params *V1ListAllSnippetsParams) if params.SortOrder != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort_order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort_order", *params.SortOrder, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11515,7 +11464,7 @@ func NewV1GetASnippetRequest(server string, id openapi_types.UUID) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11535,7 +11484,7 @@ func NewV1GetASnippetRequest(server string, id openapi_types.UUID) (*http.Reques return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12239,6 +12188,14 @@ func (r V1DeleteABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetABranchConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -12261,6 +12218,14 @@ func (r V1GetABranchConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetABranchConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateABranchConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -12283,6 +12248,14 @@ func (r V1UpdateABranchConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateABranchConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DiffABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -12304,6 +12277,14 @@ func (r V1DiffABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DiffABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1MergeABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -12326,6 +12307,14 @@ func (r V1MergeABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1MergeABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1PushABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -12348,6 +12337,14 @@ func (r V1PushABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1PushABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ResetABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -12370,6 +12367,14 @@ func (r V1ResetABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ResetABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RestoreABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -12392,6 +12397,14 @@ func (r V1RestoreABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RestoreABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1AuthorizeUserResponse struct { Body []byte HTTPResponse *http.Response @@ -12413,6 +12426,14 @@ func (r V1AuthorizeUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1AuthorizeUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1OauthAuthorizeProjectClaimResponse struct { Body []byte HTTPResponse *http.Response @@ -12434,6 +12455,14 @@ func (r V1OauthAuthorizeProjectClaimResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1OauthAuthorizeProjectClaimResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RevokeTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -12455,6 +12484,14 @@ func (r V1RevokeTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RevokeTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ExchangeOauthTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -12477,6 +12514,14 @@ func (r V1ExchangeOauthTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ExchangeOauthTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -12499,6 +12544,14 @@ func (r V1ListAllOrganizationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllOrganizationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateAnOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -12521,6 +12574,14 @@ func (r V1CreateAnOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateAnOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAnOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -12543,6 +12604,14 @@ func (r V1GetAnOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAnOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetOrganizationEntitlementsResponse struct { Body []byte HTTPResponse *http.Response @@ -12565,6 +12634,14 @@ func (r V1GetOrganizationEntitlementsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetOrganizationEntitlementsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListOrganizationMembersResponse struct { Body []byte HTTPResponse *http.Response @@ -12587,6 +12664,14 @@ func (r V1ListOrganizationMembersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListOrganizationMembersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetOrganizationProjectClaimResponse struct { Body []byte HTTPResponse *http.Response @@ -12609,6 +12694,14 @@ func (r V1GetOrganizationProjectClaimResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetOrganizationProjectClaimResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ClaimProjectForOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -12630,6 +12723,14 @@ func (r V1ClaimProjectForOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ClaimProjectForOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAllProjectsForOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -12652,6 +12753,14 @@ func (r V1GetAllProjectsForOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAllProjectsForOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProfileResponse struct { Body []byte HTTPResponse *http.Response @@ -12674,6 +12783,14 @@ func (r V1GetProfileResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProfileResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllProjectsResponse struct { Body []byte HTTPResponse *http.Response @@ -12696,6 +12813,14 @@ func (r V1ListAllProjectsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllProjectsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -12718,6 +12843,14 @@ func (r V1CreateAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAvailableRegionsResponse struct { Body []byte HTTPResponse *http.Response @@ -12740,6 +12873,14 @@ func (r V1GetAvailableRegionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAvailableRegionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -12762,6 +12903,14 @@ func (r V1DeleteAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -12784,6 +12933,14 @@ func (r V1GetProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -12806,6 +12963,14 @@ func (r V1UpdateAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListActionRunsResponse struct { Body []byte HTTPResponse *http.Response @@ -12828,6 +12993,14 @@ func (r V1ListActionRunsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListActionRunsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CountActionRunsResponse struct { Body []byte HTTPResponse *http.Response @@ -12849,6 +13022,14 @@ func (r V1CountActionRunsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CountActionRunsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetActionRunResponse struct { Body []byte HTTPResponse *http.Response @@ -12871,6 +13052,14 @@ func (r V1GetActionRunResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetActionRunResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetActionRunLogsResponse struct { Body []byte HTTPResponse *http.Response @@ -12892,6 +13081,14 @@ func (r V1GetActionRunLogsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetActionRunLogsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateActionRunStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -12914,6 +13111,14 @@ func (r V1UpdateActionRunStatusResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateActionRunStatusResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPerformanceAdvisorsResponse struct { Body []byte HTTPResponse *http.Response @@ -12936,8 +13141,16 @@ func (r V1GetPerformanceAdvisorsResponse) StatusCode() int { return 0 } -type V1GetSecurityAdvisorsResponse struct { - Body []byte +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPerformanceAdvisorsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +type V1GetSecurityAdvisorsResponse struct { + Body []byte HTTPResponse *http.Response JSON200 *V1ProjectAdvisorsResponse } @@ -12958,6 +13171,14 @@ func (r V1GetSecurityAdvisorsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetSecurityAdvisorsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectFunctionCombinedStatsResponse struct { Body []byte HTTPResponse *http.Response @@ -12980,6 +13201,14 @@ func (r V1GetProjectFunctionCombinedStatsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectFunctionCombinedStatsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectLogsResponse struct { Body []byte HTTPResponse *http.Response @@ -13002,6 +13231,14 @@ func (r V1GetProjectLogsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectLogsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectLogsAllResponse struct { Body []byte HTTPResponse *http.Response @@ -13024,6 +13261,14 @@ func (r V1GetProjectLogsAllResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectLogsAllResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ScrapeProjectMetricsResponse struct { Body []byte HTTPResponse *http.Response @@ -13045,6 +13290,14 @@ func (r V1ScrapeProjectMetricsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ScrapeProjectMetricsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectUsageApiCountResponse struct { Body []byte HTTPResponse *http.Response @@ -13067,6 +13320,14 @@ func (r V1GetProjectUsageApiCountResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectUsageApiCountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectUsageRequestCountResponse struct { Body []byte HTTPResponse *http.Response @@ -13089,6 +13350,14 @@ func (r V1GetProjectUsageRequestCountResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectUsageRequestCountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectApiKeysResponse struct { Body []byte HTTPResponse *http.Response @@ -13111,6 +13380,14 @@ func (r V1GetProjectApiKeysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectApiKeysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateProjectApiKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13133,6 +13410,14 @@ func (r V1CreateProjectApiKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateProjectApiKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectLegacyApiKeysResponse struct { Body []byte HTTPResponse *http.Response @@ -13155,6 +13440,14 @@ func (r V1GetProjectLegacyApiKeysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectLegacyApiKeysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateProjectLegacyApiKeysResponse struct { Body []byte HTTPResponse *http.Response @@ -13177,6 +13470,14 @@ func (r V1UpdateProjectLegacyApiKeysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateProjectLegacyApiKeysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteProjectApiKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13199,6 +13500,14 @@ func (r V1DeleteProjectApiKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteProjectApiKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectApiKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13221,6 +13530,14 @@ func (r V1GetProjectApiKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectApiKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateProjectApiKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13243,6 +13560,14 @@ func (r V1UpdateProjectApiKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateProjectApiKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListProjectAddonsResponse struct { Body []byte HTTPResponse *http.Response @@ -13265,6 +13590,14 @@ func (r V1ListProjectAddonsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListProjectAddonsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ApplyProjectAddonResponse struct { Body []byte HTTPResponse *http.Response @@ -13286,6 +13619,14 @@ func (r V1ApplyProjectAddonResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ApplyProjectAddonResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RemoveProjectAddonResponse struct { Body []byte HTTPResponse *http.Response @@ -13307,6 +13648,14 @@ func (r V1RemoveProjectAddonResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RemoveProjectAddonResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DisablePreviewBranchingResponse struct { Body []byte HTTPResponse *http.Response @@ -13328,6 +13677,14 @@ func (r V1DisablePreviewBranchingResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DisablePreviewBranchingResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllBranchesResponse struct { Body []byte HTTPResponse *http.Response @@ -13350,6 +13707,14 @@ func (r V1ListAllBranchesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllBranchesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -13372,6 +13737,14 @@ func (r V1CreateABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetABranchResponse struct { Body []byte HTTPResponse *http.Response @@ -13394,6 +13767,14 @@ func (r V1GetABranchResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetABranchResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteProjectClaimTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -13415,6 +13796,14 @@ func (r V1DeleteProjectClaimTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteProjectClaimTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectClaimTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -13437,6 +13826,14 @@ func (r V1GetProjectClaimTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectClaimTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateProjectClaimTokenResponse struct { Body []byte HTTPResponse *http.Response @@ -13459,6 +13856,14 @@ func (r V1CreateProjectClaimTokenResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateProjectClaimTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteLoginRolesResponse struct { Body []byte HTTPResponse *http.Response @@ -13481,6 +13886,14 @@ func (r V1DeleteLoginRolesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteLoginRolesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateLoginRoleResponse struct { Body []byte HTTPResponse *http.Response @@ -13503,6 +13916,14 @@ func (r V1CreateLoginRoleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateLoginRoleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAuthServiceConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13525,6 +13946,14 @@ func (r V1GetAuthServiceConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAuthServiceConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateAuthServiceConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13547,6 +13976,14 @@ func (r V1UpdateAuthServiceConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateAuthServiceConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectSigningKeysResponse struct { Body []byte HTTPResponse *http.Response @@ -13569,6 +14006,14 @@ func (r V1GetProjectSigningKeysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectSigningKeysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateProjectSigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13591,6 +14036,14 @@ func (r V1CreateProjectSigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateProjectSigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetLegacySigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13613,6 +14066,14 @@ func (r V1GetLegacySigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetLegacySigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateLegacySigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13635,6 +14096,14 @@ func (r V1CreateLegacySigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateLegacySigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RemoveProjectSigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13657,6 +14126,14 @@ func (r V1RemoveProjectSigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RemoveProjectSigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectSigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13679,6 +14156,14 @@ func (r V1GetProjectSigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectSigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateProjectSigningKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -13701,6 +14186,14 @@ func (r V1UpdateProjectSigningKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateProjectSigningKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllSsoProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -13723,6 +14216,14 @@ func (r V1ListAllSsoProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllSsoProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateASsoProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -13745,6 +14246,14 @@ func (r V1CreateASsoProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateASsoProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteASsoProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -13767,6 +14276,14 @@ func (r V1DeleteASsoProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteASsoProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetASsoProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -13789,6 +14306,14 @@ func (r V1GetASsoProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetASsoProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateASsoProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -13811,6 +14336,14 @@ func (r V1UpdateASsoProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateASsoProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListProjectTpaIntegrationsResponse struct { Body []byte HTTPResponse *http.Response @@ -13833,6 +14366,14 @@ func (r V1ListProjectTpaIntegrationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListProjectTpaIntegrationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateProjectTpaIntegrationResponse struct { Body []byte HTTPResponse *http.Response @@ -13855,6 +14396,14 @@ func (r V1CreateProjectTpaIntegrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateProjectTpaIntegrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteProjectTpaIntegrationResponse struct { Body []byte HTTPResponse *http.Response @@ -13877,6 +14426,14 @@ func (r V1DeleteProjectTpaIntegrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteProjectTpaIntegrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectTpaIntegrationResponse struct { Body []byte HTTPResponse *http.Response @@ -13899,6 +14456,14 @@ func (r V1GetProjectTpaIntegrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectTpaIntegrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectPgbouncerConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13921,6 +14486,14 @@ func (r V1GetProjectPgbouncerConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectPgbouncerConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPoolerConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13943,6 +14516,14 @@ func (r V1GetPoolerConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPoolerConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdatePoolerConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13965,6 +14546,14 @@ func (r V1UpdatePoolerConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdatePoolerConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPostgresConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -13987,6 +14576,14 @@ func (r V1GetPostgresConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPostgresConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdatePostgresConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14009,6 +14606,14 @@ func (r V1UpdatePostgresConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdatePostgresConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetDatabaseDiskResponse struct { Body []byte HTTPResponse *http.Response @@ -14031,6 +14636,14 @@ func (r V1GetDatabaseDiskResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetDatabaseDiskResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ModifyDatabaseDiskResponse struct { Body []byte HTTPResponse *http.Response @@ -14052,6 +14665,14 @@ func (r V1ModifyDatabaseDiskResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ModifyDatabaseDiskResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetProjectDiskAutoscaleConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14074,6 +14695,14 @@ func (r V1GetProjectDiskAutoscaleConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetProjectDiskAutoscaleConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetDiskUtilizationResponse struct { Body []byte HTTPResponse *http.Response @@ -14096,6 +14725,14 @@ func (r V1GetDiskUtilizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetDiskUtilizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetRealtimeConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14118,6 +14755,14 @@ func (r V1GetRealtimeConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetRealtimeConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateRealtimeConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14139,6 +14784,14 @@ func (r V1UpdateRealtimeConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateRealtimeConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ShutdownRealtimeResponse struct { Body []byte HTTPResponse *http.Response @@ -14160,6 +14813,14 @@ func (r V1ShutdownRealtimeResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ShutdownRealtimeResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetStorageConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14182,6 +14843,14 @@ func (r V1GetStorageConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetStorageConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateStorageConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14203,6 +14872,14 @@ func (r V1UpdateStorageConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateStorageConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteHostnameConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14224,6 +14901,14 @@ func (r V1DeleteHostnameConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteHostnameConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetHostnameConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14246,6 +14931,14 @@ func (r V1GetHostnameConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetHostnameConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ActivateCustomHostnameResponse struct { Body []byte HTTPResponse *http.Response @@ -14268,6 +14961,14 @@ func (r V1ActivateCustomHostnameResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ActivateCustomHostnameResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateHostnameConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14290,6 +14991,14 @@ func (r V1UpdateHostnameConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateHostnameConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1VerifyDnsConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -14312,6 +15021,14 @@ func (r V1VerifyDnsConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1VerifyDnsConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllBackupsResponse struct { Body []byte HTTPResponse *http.Response @@ -14334,6 +15051,14 @@ func (r V1ListAllBackupsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllBackupsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RestorePhysicalBackupResponse struct { Body []byte HTTPResponse *http.Response @@ -14355,6 +15080,14 @@ func (r V1RestorePhysicalBackupResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RestorePhysicalBackupResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RestorePitrBackupResponse struct { Body []byte HTTPResponse *http.Response @@ -14376,6 +15109,14 @@ func (r V1RestorePitrBackupResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RestorePitrBackupResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetRestorePointResponse struct { Body []byte HTTPResponse *http.Response @@ -14398,6 +15139,14 @@ func (r V1GetRestorePointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetRestorePointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateRestorePointResponse struct { Body []byte HTTPResponse *http.Response @@ -14420,6 +15169,14 @@ func (r V1CreateRestorePointResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateRestorePointResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetBackupScheduleResponse struct { Body []byte HTTPResponse *http.Response @@ -14443,6 +15200,14 @@ func (r V1GetBackupScheduleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetBackupScheduleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateBackupScheduleResponse struct { Body []byte HTTPResponse *http.Response @@ -14466,6 +15231,14 @@ func (r V1UpdateBackupScheduleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateBackupScheduleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UndoResponse struct { Body []byte HTTPResponse *http.Response @@ -14487,6 +15260,14 @@ func (r V1UndoResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UndoResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetDatabaseMetadataResponse struct { Body []byte HTTPResponse *http.Response @@ -14509,6 +15290,14 @@ func (r V1GetDatabaseMetadataResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetDatabaseMetadataResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14531,6 +15320,14 @@ func (r V1GetJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1AuthorizeJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14553,6 +15350,14 @@ func (r V1AuthorizeJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1AuthorizeJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14575,6 +15380,14 @@ func (r V1UpdateJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1InviteExternalJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14597,6 +15410,14 @@ func (r V1InviteExternalJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1InviteExternalJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1AcceptInviteExternalJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14619,6 +15440,14 @@ func (r V1AcceptInviteExternalJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1AcceptInviteExternalJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteInviteExternalJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14640,6 +15469,14 @@ func (r V1DeleteInviteExternalJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteInviteExternalJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14662,6 +15499,14 @@ func (r V1ListJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteJitAccessResponse struct { Body []byte HTTPResponse *http.Response @@ -14683,6 +15528,14 @@ func (r V1DeleteJitAccessResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteJitAccessResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RollbackMigrationsResponse struct { Body []byte HTTPResponse *http.Response @@ -14704,6 +15557,14 @@ func (r V1RollbackMigrationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RollbackMigrationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListMigrationHistoryResponse struct { Body []byte HTTPResponse *http.Response @@ -14726,6 +15587,14 @@ func (r V1ListMigrationHistoryResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListMigrationHistoryResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ApplyAMigrationResponse struct { Body []byte HTTPResponse *http.Response @@ -14747,6 +15616,14 @@ func (r V1ApplyAMigrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ApplyAMigrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpsertAMigrationResponse struct { Body []byte HTTPResponse *http.Response @@ -14768,6 +15645,14 @@ func (r V1UpsertAMigrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpsertAMigrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAMigrationResponse struct { Body []byte HTTPResponse *http.Response @@ -14790,6 +15675,14 @@ func (r V1GetAMigrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAMigrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1PatchAMigrationResponse struct { Body []byte HTTPResponse *http.Response @@ -14811,6 +15704,14 @@ func (r V1PatchAMigrationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1PatchAMigrationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetDatabaseOpenapiResponse struct { Body []byte HTTPResponse *http.Response @@ -14833,6 +15734,14 @@ func (r V1GetDatabaseOpenapiResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetDatabaseOpenapiResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateDatabasePasswordResponse struct { Body []byte HTTPResponse *http.Response @@ -14855,6 +15764,14 @@ func (r V1UpdateDatabasePasswordResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateDatabasePasswordResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RunAQueryResponse struct { Body []byte HTTPResponse *http.Response @@ -14876,6 +15793,14 @@ func (r V1RunAQueryResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RunAQueryResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ReadOnlyQueryResponse struct { Body []byte HTTPResponse *http.Response @@ -14897,6 +15822,14 @@ func (r V1ReadOnlyQueryResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ReadOnlyQueryResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1EnableDatabaseWebhookResponse struct { Body []byte HTTPResponse *http.Response @@ -14918,6 +15851,14 @@ func (r V1EnableDatabaseWebhookResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1EnableDatabaseWebhookResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllFunctionsResponse struct { Body []byte HTTPResponse *http.Response @@ -14940,6 +15881,14 @@ func (r V1ListAllFunctionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllFunctionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CreateAFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -14962,6 +15911,14 @@ func (r V1CreateAFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CreateAFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1BulkUpdateFunctionsResponse struct { Body []byte HTTPResponse *http.Response @@ -14984,6 +15941,14 @@ func (r V1BulkUpdateFunctionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1BulkUpdateFunctionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeployAFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -15006,6 +15971,14 @@ func (r V1DeployAFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeployAFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteAFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -15027,6 +16000,14 @@ func (r V1DeleteAFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteAFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -15049,6 +16030,14 @@ func (r V1GetAFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateAFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -15071,6 +16060,14 @@ func (r V1UpdateAFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateAFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetAFunctionBodyResponse struct { Body []byte HTTPResponse *http.Response @@ -15093,6 +16090,14 @@ func (r V1GetAFunctionBodyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetAFunctionBodyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetServicesHealthResponse struct { Body []byte HTTPResponse *http.Response @@ -15115,6 +16120,14 @@ func (r V1GetServicesHealthResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetServicesHealthResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetJitAccessConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15137,6 +16150,14 @@ func (r V1GetJitAccessConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetJitAccessConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateJitAccessConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15159,6 +16180,14 @@ func (r V1UpdateJitAccessConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateJitAccessConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeleteNetworkBansResponse struct { Body []byte HTTPResponse *http.Response @@ -15180,6 +16209,14 @@ func (r V1DeleteNetworkBansResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeleteNetworkBansResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllNetworkBansResponse struct { Body []byte HTTPResponse *http.Response @@ -15202,6 +16239,14 @@ func (r V1ListAllNetworkBansResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllNetworkBansResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllNetworkBansEnrichedResponse struct { Body []byte HTTPResponse *http.Response @@ -15224,6 +16269,14 @@ func (r V1ListAllNetworkBansEnrichedResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllNetworkBansEnrichedResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetNetworkRestrictionsResponse struct { Body []byte HTTPResponse *http.Response @@ -15246,6 +16299,14 @@ func (r V1GetNetworkRestrictionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetNetworkRestrictionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1PatchNetworkRestrictionsResponse struct { Body []byte HTTPResponse *http.Response @@ -15268,6 +16329,14 @@ func (r V1PatchNetworkRestrictionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1PatchNetworkRestrictionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateNetworkRestrictionsResponse struct { Body []byte HTTPResponse *http.Response @@ -15290,6 +16359,14 @@ func (r V1UpdateNetworkRestrictionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateNetworkRestrictionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1PauseAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -15311,6 +16388,14 @@ func (r V1PauseAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1PauseAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPgsodiumConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15333,6 +16418,14 @@ func (r V1GetPgsodiumConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPgsodiumConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdatePgsodiumConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15355,6 +16448,14 @@ func (r V1UpdatePgsodiumConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdatePgsodiumConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPostgrestServiceConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15377,6 +16478,14 @@ func (r V1GetPostgrestServiceConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPostgrestServiceConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdatePostgrestServiceConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15399,6 +16508,14 @@ func (r V1UpdatePostgrestServiceConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdatePostgrestServiceConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RemoveAReadReplicaResponse struct { Body []byte HTTPResponse *http.Response @@ -15420,6 +16537,14 @@ func (r V1RemoveAReadReplicaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RemoveAReadReplicaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1SetupAReadReplicaResponse struct { Body []byte HTTPResponse *http.Response @@ -15442,6 +16567,14 @@ func (r V1SetupAReadReplicaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1SetupAReadReplicaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetReadonlyModeStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -15464,6 +16597,14 @@ func (r V1GetReadonlyModeStatusResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetReadonlyModeStatusResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DisableReadonlyModeTemporarilyResponse struct { Body []byte HTTPResponse *http.Response @@ -15485,6 +16626,14 @@ func (r V1DisableReadonlyModeTemporarilyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DisableReadonlyModeTemporarilyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RestartAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -15506,6 +16655,14 @@ func (r V1RestartAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RestartAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAvailableRestoreVersionsResponse struct { Body []byte HTTPResponse *http.Response @@ -15528,6 +16685,14 @@ func (r V1ListAvailableRestoreVersionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAvailableRestoreVersionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1RestoreAProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -15549,6 +16714,14 @@ func (r V1RestoreAProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1RestoreAProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CancelAProjectRestorationResponse struct { Body []byte HTTPResponse *http.Response @@ -15570,6 +16743,14 @@ func (r V1CancelAProjectRestorationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CancelAProjectRestorationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1BulkDeleteSecretsResponse struct { Body []byte HTTPResponse *http.Response @@ -15591,6 +16772,14 @@ func (r V1BulkDeleteSecretsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1BulkDeleteSecretsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllSecretsResponse struct { Body []byte HTTPResponse *http.Response @@ -15613,6 +16802,14 @@ func (r V1ListAllSecretsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllSecretsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1BulkCreateSecretsResponse struct { Body []byte HTTPResponse *http.Response @@ -15634,6 +16831,14 @@ func (r V1BulkCreateSecretsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1BulkCreateSecretsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetSslEnforcementConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15656,6 +16861,14 @@ func (r V1GetSslEnforcementConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetSslEnforcementConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpdateSslEnforcementConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15678,6 +16891,14 @@ func (r V1UpdateSslEnforcementConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpdateSslEnforcementConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllBucketsResponse struct { Body []byte HTTPResponse *http.Response @@ -15700,6 +16921,14 @@ func (r V1ListAllBucketsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllBucketsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GenerateTypescriptTypesResponse struct { Body []byte HTTPResponse *http.Response @@ -15722,6 +16951,14 @@ func (r V1GenerateTypescriptTypesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GenerateTypescriptTypesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1UpgradePostgresVersionResponse struct { Body []byte HTTPResponse *http.Response @@ -15744,6 +16981,14 @@ func (r V1UpgradePostgresVersionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1UpgradePostgresVersionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPostgresUpgradeEligibilityResponse struct { Body []byte HTTPResponse *http.Response @@ -15766,6 +17011,14 @@ func (r V1GetPostgresUpgradeEligibilityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPostgresUpgradeEligibilityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetPostgresUpgradeStatusResponse struct { Body []byte HTTPResponse *http.Response @@ -15788,6 +17041,14 @@ func (r V1GetPostgresUpgradeStatusResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetPostgresUpgradeStatusResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1DeactivateVanitySubdomainConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15809,6 +17070,14 @@ func (r V1DeactivateVanitySubdomainConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1DeactivateVanitySubdomainConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetVanitySubdomainConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15832,6 +17101,14 @@ func (r V1GetVanitySubdomainConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetVanitySubdomainConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ActivateVanitySubdomainConfigResponse struct { Body []byte HTTPResponse *http.Response @@ -15855,6 +17132,14 @@ func (r V1ActivateVanitySubdomainConfigResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ActivateVanitySubdomainConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1CheckVanitySubdomainAvailabilityResponse struct { Body []byte HTTPResponse *http.Response @@ -15878,6 +17163,14 @@ func (r V1CheckVanitySubdomainAvailabilityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1CheckVanitySubdomainAvailabilityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1ListAllSnippetsResponse struct { Body []byte HTTPResponse *http.Response @@ -15900,6 +17193,14 @@ func (r V1ListAllSnippetsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1ListAllSnippetsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type V1GetASnippetResponse struct { Body []byte HTTPResponse *http.Response @@ -15922,6 +17223,14 @@ func (r V1GetASnippetResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r V1GetASnippetResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // V1DeleteABranchWithResponse request returning *V1DeleteABranchResponse func (c *ClientWithResponses) V1DeleteABranchWithResponse(ctx context.Context, branchIdOrRef string, params *V1DeleteABranchParams, reqEditors ...RequestEditorFn) (*V1DeleteABranchResponse, error) { rsp, err := c.V1DeleteABranch(ctx, branchIdOrRef, params, reqEditors...) diff --git a/apps/cli-go/pkg/api/types.gen.go b/apps/cli-go/pkg/api/types.gen.go index bd0961de95..315c1560c9 100644 --- a/apps/cli-go/pkg/api/types.gen.go +++ b/apps/cli-go/pkg/api/types.gen.go @@ -1,6 +1,6 @@ // Package api provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT. package api import ( @@ -14,9 +14,7 @@ import ( ) const ( - BearerScopes = "bearer.Scopes" - Fga_permissionsScopes = "fga_permissions.Scopes" - Oauth2Scopes = "oauth2.Scopes" + BearerScopes bearerContextKey = "bearer.Scopes" ) // Defines values for ActionRunResponseRunStepsName. @@ -30,6 +28,28 @@ const ( ActionRunResponseRunStepsNameSeed ActionRunResponseRunStepsName = "seed" ) +// Valid indicates whether the value is a known member of the ActionRunResponseRunStepsName enum. +func (e ActionRunResponseRunStepsName) Valid() bool { + switch e { + case ActionRunResponseRunStepsNameClone: + return true + case ActionRunResponseRunStepsNameConfigure: + return true + case ActionRunResponseRunStepsNameDeploy: + return true + case ActionRunResponseRunStepsNameHealth: + return true + case ActionRunResponseRunStepsNameMigrate: + return true + case ActionRunResponseRunStepsNamePull: + return true + case ActionRunResponseRunStepsNameSeed: + return true + default: + return false + } +} + // Defines values for ActionRunResponseRunStepsStatus. const ( ActionRunResponseRunStepsStatusCREATED ActionRunResponseRunStepsStatus = "CREATED" @@ -41,6 +61,28 @@ const ( ActionRunResponseRunStepsStatusRUNNING ActionRunResponseRunStepsStatus = "RUNNING" ) +// Valid indicates whether the value is a known member of the ActionRunResponseRunStepsStatus enum. +func (e ActionRunResponseRunStepsStatus) Valid() bool { + switch e { + case ActionRunResponseRunStepsStatusCREATED: + return true + case ActionRunResponseRunStepsStatusDEAD: + return true + case ActionRunResponseRunStepsStatusEXITED: + return true + case ActionRunResponseRunStepsStatusPAUSED: + return true + case ActionRunResponseRunStepsStatusREMOVING: + return true + case ActionRunResponseRunStepsStatusRESTARTING: + return true + case ActionRunResponseRunStepsStatusRUNNING: + return true + default: + return false + } +} + // Defines values for ApiKeyResponseType. const ( ApiKeyResponseTypeLegacy ApiKeyResponseType = "legacy" @@ -48,6 +90,20 @@ const ( ApiKeyResponseTypeSecret ApiKeyResponseType = "secret" ) +// Valid indicates whether the value is a known member of the ApiKeyResponseType enum. +func (e ApiKeyResponseType) Valid() bool { + switch e { + case ApiKeyResponseTypeLegacy: + return true + case ApiKeyResponseTypePublishable: + return true + case ApiKeyResponseTypeSecret: + return true + default: + return false + } +} + // Defines values for ApplyProjectAddonBodyAddonType. const ( ApplyProjectAddonBodyAddonTypeAuthMfaPhone ApplyProjectAddonBodyAddonType = "auth_mfa_phone" @@ -60,6 +116,30 @@ const ( ApplyProjectAddonBodyAddonTypePitr ApplyProjectAddonBodyAddonType = "pitr" ) +// Valid indicates whether the value is a known member of the ApplyProjectAddonBodyAddonType enum. +func (e ApplyProjectAddonBodyAddonType) Valid() bool { + switch e { + case ApplyProjectAddonBodyAddonTypeAuthMfaPhone: + return true + case ApplyProjectAddonBodyAddonTypeAuthMfaWebAuthn: + return true + case ApplyProjectAddonBodyAddonTypeComputeInstance: + return true + case ApplyProjectAddonBodyAddonTypeCustomDomain: + return true + case ApplyProjectAddonBodyAddonTypeEtlPipeline: + return true + case ApplyProjectAddonBodyAddonTypeIpv4: + return true + case ApplyProjectAddonBodyAddonTypeLogDrain: + return true + case ApplyProjectAddonBodyAddonTypePitr: + return true + default: + return false + } +} + // Defines values for ApplyProjectAddonBodyAddonVariant0. const ( ApplyProjectAddonBodyAddonVariant0Ci12xlarge ApplyProjectAddonBodyAddonVariant0 = "ci_12xlarge" @@ -82,11 +162,65 @@ const ( ApplyProjectAddonBodyAddonVariant0CiXlarge ApplyProjectAddonBodyAddonVariant0 = "ci_xlarge" ) +// Valid indicates whether the value is a known member of the ApplyProjectAddonBodyAddonVariant0 enum. +func (e ApplyProjectAddonBodyAddonVariant0) Valid() bool { + switch e { + case ApplyProjectAddonBodyAddonVariant0Ci12xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci16xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci24xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci24xlargeHighMemory: + return true + case ApplyProjectAddonBodyAddonVariant0Ci24xlargeOptimizedCpu: + return true + case ApplyProjectAddonBodyAddonVariant0Ci24xlargeOptimizedMemory: + return true + case ApplyProjectAddonBodyAddonVariant0Ci2xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci48xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci48xlargeHighMemory: + return true + case ApplyProjectAddonBodyAddonVariant0Ci48xlargeOptimizedCpu: + return true + case ApplyProjectAddonBodyAddonVariant0Ci48xlargeOptimizedMemory: + return true + case ApplyProjectAddonBodyAddonVariant0Ci4xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0Ci8xlarge: + return true + case ApplyProjectAddonBodyAddonVariant0CiLarge: + return true + case ApplyProjectAddonBodyAddonVariant0CiMedium: + return true + case ApplyProjectAddonBodyAddonVariant0CiMicro: + return true + case ApplyProjectAddonBodyAddonVariant0CiSmall: + return true + case ApplyProjectAddonBodyAddonVariant0CiXlarge: + return true + default: + return false + } +} + // Defines values for ApplyProjectAddonBodyAddonVariant1. const ( ApplyProjectAddonBodyAddonVariant1CdDefault ApplyProjectAddonBodyAddonVariant1 = "cd_default" ) +// Valid indicates whether the value is a known member of the ApplyProjectAddonBodyAddonVariant1 enum. +func (e ApplyProjectAddonBodyAddonVariant1) Valid() bool { + switch e { + case ApplyProjectAddonBodyAddonVariant1CdDefault: + return true + default: + return false + } +} + // Defines values for ApplyProjectAddonBodyAddonVariant2. const ( ApplyProjectAddonBodyAddonVariant2Pitr14 ApplyProjectAddonBodyAddonVariant2 = "pitr_14" @@ -94,17 +228,53 @@ const ( ApplyProjectAddonBodyAddonVariant2Pitr7 ApplyProjectAddonBodyAddonVariant2 = "pitr_7" ) +// Valid indicates whether the value is a known member of the ApplyProjectAddonBodyAddonVariant2 enum. +func (e ApplyProjectAddonBodyAddonVariant2) Valid() bool { + switch e { + case ApplyProjectAddonBodyAddonVariant2Pitr14: + return true + case ApplyProjectAddonBodyAddonVariant2Pitr28: + return true + case ApplyProjectAddonBodyAddonVariant2Pitr7: + return true + default: + return false + } +} + // Defines values for ApplyProjectAddonBodyAddonVariant3. const ( ApplyProjectAddonBodyAddonVariant3Ipv4Default ApplyProjectAddonBodyAddonVariant3 = "ipv4_default" ) +// Valid indicates whether the value is a known member of the ApplyProjectAddonBodyAddonVariant3 enum. +func (e ApplyProjectAddonBodyAddonVariant3) Valid() bool { + switch e { + case ApplyProjectAddonBodyAddonVariant3Ipv4Default: + return true + default: + return false + } +} + // Defines values for AuthConfigResponseDbMaxPoolSizeUnit. const ( AuthConfigResponseDbMaxPoolSizeUnitConnections AuthConfigResponseDbMaxPoolSizeUnit = "connections" AuthConfigResponseDbMaxPoolSizeUnitPercent AuthConfigResponseDbMaxPoolSizeUnit = "percent" ) +// Valid indicates whether the value is a known member of the AuthConfigResponseDbMaxPoolSizeUnit enum. +func (e AuthConfigResponseDbMaxPoolSizeUnit) Valid() bool { + switch e { + case AuthConfigResponseDbMaxPoolSizeUnitConnections: + return true + case AuthConfigResponseDbMaxPoolSizeUnitPercent: + return true + default: + return false + } +} + // Defines values for AuthConfigResponsePasswordRequiredCharacters. const ( AuthConfigResponsePasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 AuthConfigResponsePasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789" @@ -113,12 +283,40 @@ const ( AuthConfigResponsePasswordRequiredCharactersEmpty AuthConfigResponsePasswordRequiredCharacters = "" ) +// Valid indicates whether the value is a known member of the AuthConfigResponsePasswordRequiredCharacters enum. +func (e AuthConfigResponsePasswordRequiredCharacters) Valid() bool { + switch e { + case AuthConfigResponsePasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789: + return true + case AuthConfigResponsePasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567891: + return true + case AuthConfigResponsePasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567892: + return true + case AuthConfigResponsePasswordRequiredCharactersEmpty: + return true + default: + return false + } +} + // Defines values for AuthConfigResponseSecurityCaptchaProvider. const ( AuthConfigResponseSecurityCaptchaProviderHcaptcha AuthConfigResponseSecurityCaptchaProvider = "hcaptcha" AuthConfigResponseSecurityCaptchaProviderTurnstile AuthConfigResponseSecurityCaptchaProvider = "turnstile" ) +// Valid indicates whether the value is a known member of the AuthConfigResponseSecurityCaptchaProvider enum. +func (e AuthConfigResponseSecurityCaptchaProvider) Valid() bool { + switch e { + case AuthConfigResponseSecurityCaptchaProviderHcaptcha: + return true + case AuthConfigResponseSecurityCaptchaProviderTurnstile: + return true + default: + return false + } +} + // Defines values for AuthConfigResponseSmsProvider. const ( AuthConfigResponseSmsProviderMessagebird AuthConfigResponseSmsProvider = "messagebird" @@ -128,11 +326,39 @@ const ( AuthConfigResponseSmsProviderVonage AuthConfigResponseSmsProvider = "vonage" ) +// Valid indicates whether the value is a known member of the AuthConfigResponseSmsProvider enum. +func (e AuthConfigResponseSmsProvider) Valid() bool { + switch e { + case AuthConfigResponseSmsProviderMessagebird: + return true + case AuthConfigResponseSmsProviderTextlocal: + return true + case AuthConfigResponseSmsProviderTwilio: + return true + case AuthConfigResponseSmsProviderTwilioVerify: + return true + case AuthConfigResponseSmsProviderVonage: + return true + default: + return false + } +} + // Defines values for BranchDeleteResponseMessage. const ( BranchDeleteResponseMessageOk BranchDeleteResponseMessage = "ok" ) +// Valid indicates whether the value is a known member of the BranchDeleteResponseMessage enum. +func (e BranchDeleteResponseMessage) Valid() bool { + switch e { + case BranchDeleteResponseMessageOk: + return true + default: + return false + } +} + // Defines values for BranchDetailResponseStatus. const ( BranchDetailResponseStatusACTIVEHEALTHY BranchDetailResponseStatus = "ACTIVE_HEALTHY" @@ -152,6 +378,44 @@ const ( BranchDetailResponseStatusUPGRADING BranchDetailResponseStatus = "UPGRADING" ) +// Valid indicates whether the value is a known member of the BranchDetailResponseStatus enum. +func (e BranchDetailResponseStatus) Valid() bool { + switch e { + case BranchDetailResponseStatusACTIVEHEALTHY: + return true + case BranchDetailResponseStatusACTIVEUNHEALTHY: + return true + case BranchDetailResponseStatusCOMINGUP: + return true + case BranchDetailResponseStatusGOINGDOWN: + return true + case BranchDetailResponseStatusINACTIVE: + return true + case BranchDetailResponseStatusINITFAILED: + return true + case BranchDetailResponseStatusPAUSEFAILED: + return true + case BranchDetailResponseStatusPAUSING: + return true + case BranchDetailResponseStatusREMOVED: + return true + case BranchDetailResponseStatusRESIZING: + return true + case BranchDetailResponseStatusRESTARTING: + return true + case BranchDetailResponseStatusRESTOREFAILED: + return true + case BranchDetailResponseStatusRESTORING: + return true + case BranchDetailResponseStatusUNKNOWN: + return true + case BranchDetailResponseStatusUPGRADING: + return true + default: + return false + } +} + // Defines values for BranchResponsePreviewProjectStatus. const ( BranchResponsePreviewProjectStatusACTIVEHEALTHY BranchResponsePreviewProjectStatus = "ACTIVE_HEALTHY" @@ -171,6 +435,44 @@ const ( BranchResponsePreviewProjectStatusUPGRADING BranchResponsePreviewProjectStatus = "UPGRADING" ) +// Valid indicates whether the value is a known member of the BranchResponsePreviewProjectStatus enum. +func (e BranchResponsePreviewProjectStatus) Valid() bool { + switch e { + case BranchResponsePreviewProjectStatusACTIVEHEALTHY: + return true + case BranchResponsePreviewProjectStatusACTIVEUNHEALTHY: + return true + case BranchResponsePreviewProjectStatusCOMINGUP: + return true + case BranchResponsePreviewProjectStatusGOINGDOWN: + return true + case BranchResponsePreviewProjectStatusINACTIVE: + return true + case BranchResponsePreviewProjectStatusINITFAILED: + return true + case BranchResponsePreviewProjectStatusPAUSEFAILED: + return true + case BranchResponsePreviewProjectStatusPAUSING: + return true + case BranchResponsePreviewProjectStatusREMOVED: + return true + case BranchResponsePreviewProjectStatusRESIZING: + return true + case BranchResponsePreviewProjectStatusRESTARTING: + return true + case BranchResponsePreviewProjectStatusRESTOREFAILED: + return true + case BranchResponsePreviewProjectStatusRESTORING: + return true + case BranchResponsePreviewProjectStatusUNKNOWN: + return true + case BranchResponsePreviewProjectStatusUPGRADING: + return true + default: + return false + } +} + // Defines values for BranchResponseStatus. const ( BranchResponseStatusCREATINGPROJECT BranchResponseStatus = "CREATING_PROJECT" @@ -181,16 +483,56 @@ const ( BranchResponseStatusRUNNINGMIGRATIONS BranchResponseStatus = "RUNNING_MIGRATIONS" ) +// Valid indicates whether the value is a known member of the BranchResponseStatus enum. +func (e BranchResponseStatus) Valid() bool { + switch e { + case BranchResponseStatusCREATINGPROJECT: + return true + case BranchResponseStatusFUNCTIONSDEPLOYED: + return true + case BranchResponseStatusFUNCTIONSFAILED: + return true + case BranchResponseStatusMIGRATIONSFAILED: + return true + case BranchResponseStatusMIGRATIONSPASSED: + return true + case BranchResponseStatusRUNNINGMIGRATIONS: + return true + default: + return false + } +} + // Defines values for BranchRestoreResponseMessage. const ( BranchRestorationInitiated BranchRestoreResponseMessage = "Branch restoration initiated" ) +// Valid indicates whether the value is a known member of the BranchRestoreResponseMessage enum. +func (e BranchRestoreResponseMessage) Valid() bool { + switch e { + case BranchRestorationInitiated: + return true + default: + return false + } +} + // Defines values for BranchUpdateResponseMessage. const ( BranchUpdateResponseMessageOk BranchUpdateResponseMessage = "ok" ) +// Valid indicates whether the value is a known member of the BranchUpdateResponseMessage enum. +func (e BranchUpdateResponseMessage) Valid() bool { + switch e { + case BranchUpdateResponseMessageOk: + return true + default: + return false + } +} + // Defines values for BulkUpdateFunctionBodyStatus. const ( BulkUpdateFunctionBodyStatusACTIVE BulkUpdateFunctionBodyStatus = "ACTIVE" @@ -198,6 +540,20 @@ const ( BulkUpdateFunctionBodyStatusTHROTTLED BulkUpdateFunctionBodyStatus = "THROTTLED" ) +// Valid indicates whether the value is a known member of the BulkUpdateFunctionBodyStatus enum. +func (e BulkUpdateFunctionBodyStatus) Valid() bool { + switch e { + case BulkUpdateFunctionBodyStatusACTIVE: + return true + case BulkUpdateFunctionBodyStatusREMOVED: + return true + case BulkUpdateFunctionBodyStatusTHROTTLED: + return true + default: + return false + } +} + // Defines values for BulkUpdateFunctionResponseFunctionsStatus. const ( BulkUpdateFunctionResponseFunctionsStatusACTIVE BulkUpdateFunctionResponseFunctionsStatus = "ACTIVE" @@ -205,12 +561,38 @@ const ( BulkUpdateFunctionResponseFunctionsStatusTHROTTLED BulkUpdateFunctionResponseFunctionsStatus = "THROTTLED" ) +// Valid indicates whether the value is a known member of the BulkUpdateFunctionResponseFunctionsStatus enum. +func (e BulkUpdateFunctionResponseFunctionsStatus) Valid() bool { + switch e { + case BulkUpdateFunctionResponseFunctionsStatusACTIVE: + return true + case BulkUpdateFunctionResponseFunctionsStatusREMOVED: + return true + case BulkUpdateFunctionResponseFunctionsStatusTHROTTLED: + return true + default: + return false + } +} + // Defines values for CreateApiKeyBodyType. const ( CreateApiKeyBodyTypePublishable CreateApiKeyBodyType = "publishable" CreateApiKeyBodyTypeSecret CreateApiKeyBodyType = "secret" ) +// Valid indicates whether the value is a known member of the CreateApiKeyBodyType enum. +func (e CreateApiKeyBodyType) Valid() bool { + switch e { + case CreateApiKeyBodyTypePublishable: + return true + case CreateApiKeyBodyTypeSecret: + return true + default: + return false + } +} + // Defines values for CreateBranchBodyDesiredInstanceSize. const ( CreateBranchBodyDesiredInstanceSizeLarge CreateBranchBodyDesiredInstanceSize = "large" @@ -235,6 +617,54 @@ const ( CreateBranchBodyDesiredInstanceSizeXlarge CreateBranchBodyDesiredInstanceSize = "xlarge" ) +// Valid indicates whether the value is a known member of the CreateBranchBodyDesiredInstanceSize enum. +func (e CreateBranchBodyDesiredInstanceSize) Valid() bool { + switch e { + case CreateBranchBodyDesiredInstanceSizeLarge: + return true + case CreateBranchBodyDesiredInstanceSizeMedium: + return true + case CreateBranchBodyDesiredInstanceSizeMicro: + return true + case CreateBranchBodyDesiredInstanceSizeN12xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN16xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN24xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN24xlargeHighMemory: + return true + case CreateBranchBodyDesiredInstanceSizeN24xlargeOptimizedCpu: + return true + case CreateBranchBodyDesiredInstanceSizeN24xlargeOptimizedMemory: + return true + case CreateBranchBodyDesiredInstanceSizeN2xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN48xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN48xlargeHighMemory: + return true + case CreateBranchBodyDesiredInstanceSizeN48xlargeOptimizedCpu: + return true + case CreateBranchBodyDesiredInstanceSizeN48xlargeOptimizedMemory: + return true + case CreateBranchBodyDesiredInstanceSizeN4xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeN8xlarge: + return true + case CreateBranchBodyDesiredInstanceSizeNano: + return true + case CreateBranchBodyDesiredInstanceSizePico: + return true + case CreateBranchBodyDesiredInstanceSizeSmall: + return true + case CreateBranchBodyDesiredInstanceSizeXlarge: + return true + default: + return false + } +} + // Defines values for CreateBranchBodyPostgresEngine. const ( CreateBranchBodyPostgresEngineN15 CreateBranchBodyPostgresEngine = "15" @@ -242,6 +672,20 @@ const ( CreateBranchBodyPostgresEngineN17Oriole CreateBranchBodyPostgresEngine = "17-oriole" ) +// Valid indicates whether the value is a known member of the CreateBranchBodyPostgresEngine enum. +func (e CreateBranchBodyPostgresEngine) Valid() bool { + switch e { + case CreateBranchBodyPostgresEngineN15: + return true + case CreateBranchBodyPostgresEngineN17: + return true + case CreateBranchBodyPostgresEngineN17Oriole: + return true + default: + return false + } +} + // Defines values for CreateBranchBodyReleaseChannel. const ( CreateBranchBodyReleaseChannelAlpha CreateBranchBodyReleaseChannel = "alpha" @@ -252,6 +696,26 @@ const ( CreateBranchBodyReleaseChannelWithdrawn CreateBranchBodyReleaseChannel = "withdrawn" ) +// Valid indicates whether the value is a known member of the CreateBranchBodyReleaseChannel enum. +func (e CreateBranchBodyReleaseChannel) Valid() bool { + switch e { + case CreateBranchBodyReleaseChannelAlpha: + return true + case CreateBranchBodyReleaseChannelBeta: + return true + case CreateBranchBodyReleaseChannelGa: + return true + case CreateBranchBodyReleaseChannelInternal: + return true + case CreateBranchBodyReleaseChannelPreview: + return true + case CreateBranchBodyReleaseChannelWithdrawn: + return true + default: + return false + } +} + // Defines values for CreateProviderBodyNameIdFormat. const ( CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatEmailAddress CreateProviderBodyNameIdFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" @@ -260,11 +724,37 @@ const ( CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatTransient CreateProviderBodyNameIdFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:transient" ) +// Valid indicates whether the value is a known member of the CreateProviderBodyNameIdFormat enum. +func (e CreateProviderBodyNameIdFormat) Valid() bool { + switch e { + case CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatEmailAddress: + return true + case CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatUnspecified: + return true + case CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatPersistent: + return true + case CreateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatTransient: + return true + default: + return false + } +} + // Defines values for CreateProviderBodyType. const ( Saml CreateProviderBodyType = "saml" ) +// Valid indicates whether the value is a known member of the CreateProviderBodyType enum. +func (e CreateProviderBodyType) Valid() bool { + switch e { + case Saml: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyAlgorithm. const ( CreateSigningKeyBodyAlgorithmES256 CreateSigningKeyBodyAlgorithm = "ES256" @@ -273,131 +763,397 @@ const ( CreateSigningKeyBodyAlgorithmRS256 CreateSigningKeyBodyAlgorithm = "RS256" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyAlgorithm enum. +func (e CreateSigningKeyBodyAlgorithm) Valid() bool { + switch e { + case CreateSigningKeyBodyAlgorithmES256: + return true + case CreateSigningKeyBodyAlgorithmEdDSA: + return true + case CreateSigningKeyBodyAlgorithmHS256: + return true + case CreateSigningKeyBodyAlgorithmRS256: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0Alg. const ( CreateSigningKeyBodyPrivateJwk0AlgRS256 CreateSigningKeyBodyPrivateJwk0Alg = "RS256" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0Alg enum. +func (e CreateSigningKeyBodyPrivateJwk0Alg) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk0AlgRS256: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0E. const ( AQAB CreateSigningKeyBodyPrivateJwk0E = "AQAB" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0E enum. +func (e CreateSigningKeyBodyPrivateJwk0E) Valid() bool { + switch e { + case AQAB: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0Ext. const ( CreateSigningKeyBodyPrivateJwk0ExtTrue CreateSigningKeyBodyPrivateJwk0Ext = true ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0Ext enum. +func (e CreateSigningKeyBodyPrivateJwk0Ext) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk0ExtTrue: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0KeyOps. const ( CreateSigningKeyBodyPrivateJwk0KeyOpsSign CreateSigningKeyBodyPrivateJwk0KeyOps = "sign" CreateSigningKeyBodyPrivateJwk0KeyOpsVerify CreateSigningKeyBodyPrivateJwk0KeyOps = "verify" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0KeyOps enum. +func (e CreateSigningKeyBodyPrivateJwk0KeyOps) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk0KeyOpsSign: + return true + case CreateSigningKeyBodyPrivateJwk0KeyOpsVerify: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0Kty. const ( RSA CreateSigningKeyBodyPrivateJwk0Kty = "RSA" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0Kty enum. +func (e CreateSigningKeyBodyPrivateJwk0Kty) Valid() bool { + switch e { + case RSA: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk0Use. const ( CreateSigningKeyBodyPrivateJwk0UseSig CreateSigningKeyBodyPrivateJwk0Use = "sig" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk0Use enum. +func (e CreateSigningKeyBodyPrivateJwk0Use) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk0UseSig: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1Alg. const ( CreateSigningKeyBodyPrivateJwk1AlgES256 CreateSigningKeyBodyPrivateJwk1Alg = "ES256" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1Alg enum. +func (e CreateSigningKeyBodyPrivateJwk1Alg) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk1AlgES256: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1Crv. const ( P256 CreateSigningKeyBodyPrivateJwk1Crv = "P-256" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1Crv enum. +func (e CreateSigningKeyBodyPrivateJwk1Crv) Valid() bool { + switch e { + case P256: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1Ext. const ( CreateSigningKeyBodyPrivateJwk1ExtTrue CreateSigningKeyBodyPrivateJwk1Ext = true ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1Ext enum. +func (e CreateSigningKeyBodyPrivateJwk1Ext) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk1ExtTrue: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1KeyOps. const ( CreateSigningKeyBodyPrivateJwk1KeyOpsSign CreateSigningKeyBodyPrivateJwk1KeyOps = "sign" CreateSigningKeyBodyPrivateJwk1KeyOpsVerify CreateSigningKeyBodyPrivateJwk1KeyOps = "verify" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1KeyOps enum. +func (e CreateSigningKeyBodyPrivateJwk1KeyOps) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk1KeyOpsSign: + return true + case CreateSigningKeyBodyPrivateJwk1KeyOpsVerify: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1Kty. const ( EC CreateSigningKeyBodyPrivateJwk1Kty = "EC" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1Kty enum. +func (e CreateSigningKeyBodyPrivateJwk1Kty) Valid() bool { + switch e { + case EC: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk1Use. const ( CreateSigningKeyBodyPrivateJwk1UseSig CreateSigningKeyBodyPrivateJwk1Use = "sig" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk1Use enum. +func (e CreateSigningKeyBodyPrivateJwk1Use) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk1UseSig: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2Alg. const ( CreateSigningKeyBodyPrivateJwk2AlgEdDSA CreateSigningKeyBodyPrivateJwk2Alg = "EdDSA" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2Alg enum. +func (e CreateSigningKeyBodyPrivateJwk2Alg) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk2AlgEdDSA: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2Crv. const ( Ed25519 CreateSigningKeyBodyPrivateJwk2Crv = "Ed25519" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2Crv enum. +func (e CreateSigningKeyBodyPrivateJwk2Crv) Valid() bool { + switch e { + case Ed25519: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2Ext. const ( CreateSigningKeyBodyPrivateJwk2ExtTrue CreateSigningKeyBodyPrivateJwk2Ext = true ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2Ext enum. +func (e CreateSigningKeyBodyPrivateJwk2Ext) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk2ExtTrue: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2KeyOps. const ( CreateSigningKeyBodyPrivateJwk2KeyOpsSign CreateSigningKeyBodyPrivateJwk2KeyOps = "sign" CreateSigningKeyBodyPrivateJwk2KeyOpsVerify CreateSigningKeyBodyPrivateJwk2KeyOps = "verify" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2KeyOps enum. +func (e CreateSigningKeyBodyPrivateJwk2KeyOps) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk2KeyOpsSign: + return true + case CreateSigningKeyBodyPrivateJwk2KeyOpsVerify: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2Kty. const ( OKP CreateSigningKeyBodyPrivateJwk2Kty = "OKP" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2Kty enum. +func (e CreateSigningKeyBodyPrivateJwk2Kty) Valid() bool { + switch e { + case OKP: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk2Use. const ( CreateSigningKeyBodyPrivateJwk2UseSig CreateSigningKeyBodyPrivateJwk2Use = "sig" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk2Use enum. +func (e CreateSigningKeyBodyPrivateJwk2Use) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk2UseSig: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk3Alg. const ( HS256 CreateSigningKeyBodyPrivateJwk3Alg = "HS256" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk3Alg enum. +func (e CreateSigningKeyBodyPrivateJwk3Alg) Valid() bool { + switch e { + case HS256: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk3Ext. const ( CreateSigningKeyBodyPrivateJwk3ExtTrue CreateSigningKeyBodyPrivateJwk3Ext = true ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk3Ext enum. +func (e CreateSigningKeyBodyPrivateJwk3Ext) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk3ExtTrue: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk3KeyOps. const ( CreateSigningKeyBodyPrivateJwk3KeyOpsSign CreateSigningKeyBodyPrivateJwk3KeyOps = "sign" CreateSigningKeyBodyPrivateJwk3KeyOpsVerify CreateSigningKeyBodyPrivateJwk3KeyOps = "verify" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk3KeyOps enum. +func (e CreateSigningKeyBodyPrivateJwk3KeyOps) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk3KeyOpsSign: + return true + case CreateSigningKeyBodyPrivateJwk3KeyOpsVerify: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk3Kty. const ( Oct CreateSigningKeyBodyPrivateJwk3Kty = "oct" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk3Kty enum. +func (e CreateSigningKeyBodyPrivateJwk3Kty) Valid() bool { + switch e { + case Oct: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyPrivateJwk3Use. const ( CreateSigningKeyBodyPrivateJwk3UseSig CreateSigningKeyBodyPrivateJwk3Use = "sig" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyPrivateJwk3Use enum. +func (e CreateSigningKeyBodyPrivateJwk3Use) Valid() bool { + switch e { + case CreateSigningKeyBodyPrivateJwk3UseSig: + return true + default: + return false + } +} + // Defines values for CreateSigningKeyBodyStatus. const ( CreateSigningKeyBodyStatusInUse CreateSigningKeyBodyStatus = "in_use" CreateSigningKeyBodyStatusStandby CreateSigningKeyBodyStatus = "standby" ) +// Valid indicates whether the value is a known member of the CreateSigningKeyBodyStatus enum. +func (e CreateSigningKeyBodyStatus) Valid() bool { + switch e { + case CreateSigningKeyBodyStatusInUse: + return true + case CreateSigningKeyBodyStatusStandby: + return true + default: + return false + } +} + // Defines values for DatabaseUpgradeStatusResponseDatabaseUpgradeStatusError. const ( N1UpgradedInstanceLaunchFailed DatabaseUpgradeStatusResponseDatabaseUpgradeStatusError = "1_upgraded_instance_launch_failed" @@ -411,6 +1167,32 @@ const ( N9PostPhysicalBackupFailed DatabaseUpgradeStatusResponseDatabaseUpgradeStatusError = "9_post_physical_backup_failed" ) +// Valid indicates whether the value is a known member of the DatabaseUpgradeStatusResponseDatabaseUpgradeStatusError enum. +func (e DatabaseUpgradeStatusResponseDatabaseUpgradeStatusError) Valid() bool { + switch e { + case N1UpgradedInstanceLaunchFailed: + return true + case N2VolumeDetachchmentFromUpgradedInstanceFailed: + return true + case N3VolumeAttachmentToOriginalInstanceFailed: + return true + case N4DataUpgradeInitiationFailed: + return true + case N5DataUpgradeCompletionFailed: + return true + case N6VolumeDetachchmentFromOriginalInstanceFailed: + return true + case N7VolumeAttachmentToUpgradedInstanceFailed: + return true + case N8UpgradeCompletionFailed: + return true + case N9PostPhysicalBackupFailed: + return true + default: + return false + } +} + // Defines values for DatabaseUpgradeStatusResponseDatabaseUpgradeStatusProgress. const ( N0Requested DatabaseUpgradeStatusResponseDatabaseUpgradeStatusProgress = "0_requested" @@ -426,11 +1208,51 @@ const ( N9CompletedUpgrade DatabaseUpgradeStatusResponseDatabaseUpgradeStatusProgress = "9_completed_upgrade" ) +// Valid indicates whether the value is a known member of the DatabaseUpgradeStatusResponseDatabaseUpgradeStatusProgress enum. +func (e DatabaseUpgradeStatusResponseDatabaseUpgradeStatusProgress) Valid() bool { + switch e { + case N0Requested: + return true + case N10CompletedPostPhysicalBackup: + return true + case N1Started: + return true + case N2LaunchedUpgradedInstance: + return true + case N3DetachedVolumeFromUpgradedInstance: + return true + case N4AttachedVolumeToOriginalInstance: + return true + case N5InitiatedDataUpgrade: + return true + case N6CompletedDataUpgrade: + return true + case N7DetachedVolumeFromOriginalInstance: + return true + case N8AttachedVolumeToUpgradedInstance: + return true + case N9CompletedUpgrade: + return true + default: + return false + } +} + // Defines values for DeleteRolesResponseMessage. const ( DeleteRolesResponseMessageOk DeleteRolesResponseMessage = "ok" ) +// Valid indicates whether the value is a known member of the DeleteRolesResponseMessage enum. +func (e DeleteRolesResponseMessage) Valid() bool { + switch e { + case DeleteRolesResponseMessageOk: + return true + default: + return false + } +} + // Defines values for DeployFunctionResponseStatus. const ( DeployFunctionResponseStatusACTIVE DeployFunctionResponseStatus = "ACTIVE" @@ -438,26 +1260,80 @@ const ( DeployFunctionResponseStatusTHROTTLED DeployFunctionResponseStatus = "THROTTLED" ) +// Valid indicates whether the value is a known member of the DeployFunctionResponseStatus enum. +func (e DeployFunctionResponseStatus) Valid() bool { + switch e { + case DeployFunctionResponseStatusACTIVE: + return true + case DeployFunctionResponseStatusREMOVED: + return true + case DeployFunctionResponseStatusTHROTTLED: + return true + default: + return false + } +} + // Defines values for DiskRequestBodyAttributes0Type. const ( DiskRequestBodyAttributes0TypeGp3 DiskRequestBodyAttributes0Type = "gp3" ) +// Valid indicates whether the value is a known member of the DiskRequestBodyAttributes0Type enum. +func (e DiskRequestBodyAttributes0Type) Valid() bool { + switch e { + case DiskRequestBodyAttributes0TypeGp3: + return true + default: + return false + } +} + // Defines values for DiskRequestBodyAttributes1Type. const ( DiskRequestBodyAttributes1TypeIo2 DiskRequestBodyAttributes1Type = "io2" ) +// Valid indicates whether the value is a known member of the DiskRequestBodyAttributes1Type enum. +func (e DiskRequestBodyAttributes1Type) Valid() bool { + switch e { + case DiskRequestBodyAttributes1TypeIo2: + return true + default: + return false + } +} + // Defines values for DiskResponseAttributes0Type. const ( DiskResponseAttributes0TypeGp3 DiskResponseAttributes0Type = "gp3" ) +// Valid indicates whether the value is a known member of the DiskResponseAttributes0Type enum. +func (e DiskResponseAttributes0Type) Valid() bool { + switch e { + case DiskResponseAttributes0TypeGp3: + return true + default: + return false + } +} + // Defines values for DiskResponseAttributes1Type. const ( DiskResponseAttributes1TypeIo2 DiskResponseAttributes1Type = "io2" ) +// Valid indicates whether the value is a known member of the DiskResponseAttributes1Type enum. +func (e DiskResponseAttributes1Type) Valid() bool { + switch e { + case DiskResponseAttributes1TypeIo2: + return true + default: + return false + } +} + // Defines values for FunctionResponseStatus. const ( FunctionResponseStatusACTIVE FunctionResponseStatus = "ACTIVE" @@ -465,6 +1341,20 @@ const ( FunctionResponseStatusTHROTTLED FunctionResponseStatus = "THROTTLED" ) +// Valid indicates whether the value is a known member of the FunctionResponseStatus enum. +func (e FunctionResponseStatus) Valid() bool { + switch e { + case FunctionResponseStatusACTIVE: + return true + case FunctionResponseStatusREMOVED: + return true + case FunctionResponseStatusTHROTTLED: + return true + default: + return false + } +} + // Defines values for FunctionSlugResponseStatus. const ( FunctionSlugResponseStatusACTIVE FunctionSlugResponseStatus = "ACTIVE" @@ -472,6 +1362,20 @@ const ( FunctionSlugResponseStatusTHROTTLED FunctionSlugResponseStatus = "THROTTLED" ) +// Valid indicates whether the value is a known member of the FunctionSlugResponseStatus enum. +func (e FunctionSlugResponseStatus) Valid() bool { + switch e { + case FunctionSlugResponseStatusACTIVE: + return true + case FunctionSlugResponseStatusREMOVED: + return true + case FunctionSlugResponseStatusTHROTTLED: + return true + default: + return false + } +} + // Defines values for GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngine. const ( GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN13 GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngine = "13" @@ -481,6 +1385,24 @@ const ( GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN17Oriole GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngine = "17-oriole" ) +// Valid indicates whether the value is a known member of the GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngine enum. +func (e GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngine) Valid() bool { + switch e { + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN13: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN14: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN15: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN17: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsPostgresEngineN17Oriole: + return true + default: + return false + } +} + // Defines values for GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannel. const ( GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelAlpha GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannel = "alpha" @@ -491,23 +1413,77 @@ const ( GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelWithdrawn GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannel = "withdrawn" ) +// Valid indicates whether the value is a known member of the GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannel enum. +func (e GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannel) Valid() bool { + switch e { + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelAlpha: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelBeta: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelGa: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelInternal: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelPreview: + return true + case GetProjectAvailableRestoreVersionsResponseAvailableVersionsReleaseChannelWithdrawn: + return true + default: + return false + } +} + // Defines values for JitAccessRequestRequestState. const ( JitAccessRequestRequestStateDisabled JitAccessRequestRequestState = "disabled" JitAccessRequestRequestStateEnabled JitAccessRequestRequestState = "enabled" ) +// Valid indicates whether the value is a known member of the JitAccessRequestRequestState enum. +func (e JitAccessRequestRequestState) Valid() bool { + switch e { + case JitAccessRequestRequestStateDisabled: + return true + case JitAccessRequestRequestStateEnabled: + return true + default: + return false + } +} + // Defines values for JitStateResponse0State. const ( JitStateResponse0StateDisabled JitStateResponse0State = "disabled" JitStateResponse0StateEnabled JitStateResponse0State = "enabled" ) +// Valid indicates whether the value is a known member of the JitStateResponse0State enum. +func (e JitStateResponse0State) Valid() bool { + switch e { + case JitStateResponse0StateDisabled: + return true + case JitStateResponse0StateEnabled: + return true + default: + return false + } +} + // Defines values for JitStateResponse1State. const ( Unavailable JitStateResponse1State = "unavailable" ) +// Valid indicates whether the value is a known member of the JitStateResponse1State enum. +func (e JitStateResponse1State) Valid() bool { + switch e { + case Unavailable: + return true + default: + return false + } +} + // Defines values for JitStateResponse1UnavailableReason. const ( PostgresUpgradeRequired JitStateResponse1UnavailableReason = "postgres_upgrade_required" @@ -515,6 +1491,20 @@ const ( TemporarilyUnavailable JitStateResponse1UnavailableReason = "temporarily_unavailable" ) +// Valid indicates whether the value is a known member of the JitStateResponse1UnavailableReason enum. +func (e JitStateResponse1UnavailableReason) Valid() bool { + switch e { + case PostgresUpgradeRequired: + return true + case SslEnforcementRequired: + return true + case TemporarilyUnavailable: + return true + default: + return false + } +} + // Defines values for ListActionRunResponseRunStepsName. const ( ListActionRunResponseRunStepsNameClone ListActionRunResponseRunStepsName = "clone" @@ -526,6 +1516,28 @@ const ( ListActionRunResponseRunStepsNameSeed ListActionRunResponseRunStepsName = "seed" ) +// Valid indicates whether the value is a known member of the ListActionRunResponseRunStepsName enum. +func (e ListActionRunResponseRunStepsName) Valid() bool { + switch e { + case ListActionRunResponseRunStepsNameClone: + return true + case ListActionRunResponseRunStepsNameConfigure: + return true + case ListActionRunResponseRunStepsNameDeploy: + return true + case ListActionRunResponseRunStepsNameHealth: + return true + case ListActionRunResponseRunStepsNameMigrate: + return true + case ListActionRunResponseRunStepsNamePull: + return true + case ListActionRunResponseRunStepsNameSeed: + return true + default: + return false + } +} + // Defines values for ListActionRunResponseRunStepsStatus. const ( ListActionRunResponseRunStepsStatusCREATED ListActionRunResponseRunStepsStatus = "CREATED" @@ -537,6 +1549,28 @@ const ( ListActionRunResponseRunStepsStatusRUNNING ListActionRunResponseRunStepsStatus = "RUNNING" ) +// Valid indicates whether the value is a known member of the ListActionRunResponseRunStepsStatus enum. +func (e ListActionRunResponseRunStepsStatus) Valid() bool { + switch e { + case ListActionRunResponseRunStepsStatusCREATED: + return true + case ListActionRunResponseRunStepsStatusDEAD: + return true + case ListActionRunResponseRunStepsStatusEXITED: + return true + case ListActionRunResponseRunStepsStatusPAUSED: + return true + case ListActionRunResponseRunStepsStatusREMOVING: + return true + case ListActionRunResponseRunStepsStatusRESTARTING: + return true + case ListActionRunResponseRunStepsStatusRUNNING: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsType. const ( ListProjectAddonsResponseAvailableAddonsTypeAuthMfaPhone ListProjectAddonsResponseAvailableAddonsType = "auth_mfa_phone" @@ -549,6 +1583,30 @@ const ( ListProjectAddonsResponseAvailableAddonsTypePitr ListProjectAddonsResponseAvailableAddonsType = "pitr" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsType enum. +func (e ListProjectAddonsResponseAvailableAddonsType) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsTypeAuthMfaPhone: + return true + case ListProjectAddonsResponseAvailableAddonsTypeAuthMfaWebAuthn: + return true + case ListProjectAddonsResponseAvailableAddonsTypeComputeInstance: + return true + case ListProjectAddonsResponseAvailableAddonsTypeCustomDomain: + return true + case ListProjectAddonsResponseAvailableAddonsTypeEtlPipeline: + return true + case ListProjectAddonsResponseAvailableAddonsTypeIpv4: + return true + case ListProjectAddonsResponseAvailableAddonsTypeLogDrain: + return true + case ListProjectAddonsResponseAvailableAddonsTypePitr: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId0. const ( ListProjectAddonsResponseAvailableAddonsVariantsId0Ci12xlarge ListProjectAddonsResponseAvailableAddonsVariantsId0 = "ci_12xlarge" @@ -571,11 +1629,65 @@ const ( ListProjectAddonsResponseAvailableAddonsVariantsId0CiXlarge ListProjectAddonsResponseAvailableAddonsVariantsId0 = "ci_xlarge" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId0 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId0) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci12xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci16xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci24xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci24xlargeHighMemory: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci24xlargeOptimizedCpu: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci24xlargeOptimizedMemory: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci2xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci48xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci48xlargeHighMemory: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci48xlargeOptimizedCpu: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci48xlargeOptimizedMemory: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci4xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0Ci8xlarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0CiLarge: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0CiMedium: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0CiMicro: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0CiSmall: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId0CiXlarge: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId1. const ( ListProjectAddonsResponseAvailableAddonsVariantsId1CdDefault ListProjectAddonsResponseAvailableAddonsVariantsId1 = "cd_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId1 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId1) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId1CdDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId2. const ( ListProjectAddonsResponseAvailableAddonsVariantsId2Pitr14 ListProjectAddonsResponseAvailableAddonsVariantsId2 = "pitr_14" @@ -583,43 +1695,131 @@ const ( ListProjectAddonsResponseAvailableAddonsVariantsId2Pitr7 ListProjectAddonsResponseAvailableAddonsVariantsId2 = "pitr_7" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId2 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId2) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId2Pitr14: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId2Pitr28: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsId2Pitr7: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId3. const ( ListProjectAddonsResponseAvailableAddonsVariantsId3Ipv4Default ListProjectAddonsResponseAvailableAddonsVariantsId3 = "ipv4_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId3 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId3) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId3Ipv4Default: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId4. const ( ListProjectAddonsResponseAvailableAddonsVariantsId4AuthMfaPhoneDefault ListProjectAddonsResponseAvailableAddonsVariantsId4 = "auth_mfa_phone_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId4 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId4) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId4AuthMfaPhoneDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId5. const ( ListProjectAddonsResponseAvailableAddonsVariantsId5AuthMfaWebAuthnDefault ListProjectAddonsResponseAvailableAddonsVariantsId5 = "auth_mfa_web_authn_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId5 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId5) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId5AuthMfaWebAuthnDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId6. const ( ListProjectAddonsResponseAvailableAddonsVariantsId6LogDrainDefault ListProjectAddonsResponseAvailableAddonsVariantsId6 = "log_drain_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId6 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId6) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId6LogDrainDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsId7. const ( ListProjectAddonsResponseAvailableAddonsVariantsId7EtlPipelineDefault ListProjectAddonsResponseAvailableAddonsVariantsId7 = "etl_pipeline_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsId7 enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsId7) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsId7EtlPipelineDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsPriceInterval. const ( ListProjectAddonsResponseAvailableAddonsVariantsPriceIntervalHourly ListProjectAddonsResponseAvailableAddonsVariantsPriceInterval = "hourly" ListProjectAddonsResponseAvailableAddonsVariantsPriceIntervalMonthly ListProjectAddonsResponseAvailableAddonsVariantsPriceInterval = "monthly" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsPriceInterval enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsPriceInterval) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsPriceIntervalHourly: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsPriceIntervalMonthly: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseAvailableAddonsVariantsPriceType. const ( ListProjectAddonsResponseAvailableAddonsVariantsPriceTypeFixed ListProjectAddonsResponseAvailableAddonsVariantsPriceType = "fixed" ListProjectAddonsResponseAvailableAddonsVariantsPriceTypeUsage ListProjectAddonsResponseAvailableAddonsVariantsPriceType = "usage" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseAvailableAddonsVariantsPriceType enum. +func (e ListProjectAddonsResponseAvailableAddonsVariantsPriceType) Valid() bool { + switch e { + case ListProjectAddonsResponseAvailableAddonsVariantsPriceTypeFixed: + return true + case ListProjectAddonsResponseAvailableAddonsVariantsPriceTypeUsage: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsType. const ( ListProjectAddonsResponseSelectedAddonsTypeAuthMfaPhone ListProjectAddonsResponseSelectedAddonsType = "auth_mfa_phone" @@ -632,6 +1832,30 @@ const ( ListProjectAddonsResponseSelectedAddonsTypePitr ListProjectAddonsResponseSelectedAddonsType = "pitr" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsType enum. +func (e ListProjectAddonsResponseSelectedAddonsType) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsTypeAuthMfaPhone: + return true + case ListProjectAddonsResponseSelectedAddonsTypeAuthMfaWebAuthn: + return true + case ListProjectAddonsResponseSelectedAddonsTypeComputeInstance: + return true + case ListProjectAddonsResponseSelectedAddonsTypeCustomDomain: + return true + case ListProjectAddonsResponseSelectedAddonsTypeEtlPipeline: + return true + case ListProjectAddonsResponseSelectedAddonsTypeIpv4: + return true + case ListProjectAddonsResponseSelectedAddonsTypeLogDrain: + return true + case ListProjectAddonsResponseSelectedAddonsTypePitr: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId0. const ( ListProjectAddonsResponseSelectedAddonsVariantId0Ci12xlarge ListProjectAddonsResponseSelectedAddonsVariantId0 = "ci_12xlarge" @@ -654,11 +1878,65 @@ const ( ListProjectAddonsResponseSelectedAddonsVariantId0CiXlarge ListProjectAddonsResponseSelectedAddonsVariantId0 = "ci_xlarge" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId0 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId0) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci12xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci16xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci24xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci24xlargeHighMemory: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci24xlargeOptimizedCpu: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci24xlargeOptimizedMemory: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci2xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci48xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci48xlargeHighMemory: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci48xlargeOptimizedCpu: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci48xlargeOptimizedMemory: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci4xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0Ci8xlarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0CiLarge: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0CiMedium: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0CiMicro: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0CiSmall: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId0CiXlarge: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId1. const ( ListProjectAddonsResponseSelectedAddonsVariantId1CdDefault ListProjectAddonsResponseSelectedAddonsVariantId1 = "cd_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId1 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId1) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId1CdDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId2. const ( ListProjectAddonsResponseSelectedAddonsVariantId2Pitr14 ListProjectAddonsResponseSelectedAddonsVariantId2 = "pitr_14" @@ -666,79 +1944,239 @@ const ( ListProjectAddonsResponseSelectedAddonsVariantId2Pitr7 ListProjectAddonsResponseSelectedAddonsVariantId2 = "pitr_7" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId2 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId2) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId2Pitr14: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId2Pitr28: + return true + case ListProjectAddonsResponseSelectedAddonsVariantId2Pitr7: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId3. const ( ListProjectAddonsResponseSelectedAddonsVariantId3Ipv4Default ListProjectAddonsResponseSelectedAddonsVariantId3 = "ipv4_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId3 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId3) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId3Ipv4Default: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId4. const ( ListProjectAddonsResponseSelectedAddonsVariantId4AuthMfaPhoneDefault ListProjectAddonsResponseSelectedAddonsVariantId4 = "auth_mfa_phone_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId4 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId4) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId4AuthMfaPhoneDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId5. const ( ListProjectAddonsResponseSelectedAddonsVariantId5AuthMfaWebAuthnDefault ListProjectAddonsResponseSelectedAddonsVariantId5 = "auth_mfa_web_authn_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId5 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId5) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId5AuthMfaWebAuthnDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId6. const ( ListProjectAddonsResponseSelectedAddonsVariantId6LogDrainDefault ListProjectAddonsResponseSelectedAddonsVariantId6 = "log_drain_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId6 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId6) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId6LogDrainDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantId7. const ( ListProjectAddonsResponseSelectedAddonsVariantId7EtlPipelineDefault ListProjectAddonsResponseSelectedAddonsVariantId7 = "etl_pipeline_default" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantId7 enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantId7) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantId7EtlPipelineDefault: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantPriceInterval. const ( ListProjectAddonsResponseSelectedAddonsVariantPriceIntervalHourly ListProjectAddonsResponseSelectedAddonsVariantPriceInterval = "hourly" ListProjectAddonsResponseSelectedAddonsVariantPriceIntervalMonthly ListProjectAddonsResponseSelectedAddonsVariantPriceInterval = "monthly" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantPriceInterval enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantPriceInterval) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantPriceIntervalHourly: + return true + case ListProjectAddonsResponseSelectedAddonsVariantPriceIntervalMonthly: + return true + default: + return false + } +} + // Defines values for ListProjectAddonsResponseSelectedAddonsVariantPriceType. const ( ListProjectAddonsResponseSelectedAddonsVariantPriceTypeFixed ListProjectAddonsResponseSelectedAddonsVariantPriceType = "fixed" ListProjectAddonsResponseSelectedAddonsVariantPriceTypeUsage ListProjectAddonsResponseSelectedAddonsVariantPriceType = "usage" ) +// Valid indicates whether the value is a known member of the ListProjectAddonsResponseSelectedAddonsVariantPriceType enum. +func (e ListProjectAddonsResponseSelectedAddonsVariantPriceType) Valid() bool { + switch e { + case ListProjectAddonsResponseSelectedAddonsVariantPriceTypeFixed: + return true + case ListProjectAddonsResponseSelectedAddonsVariantPriceTypeUsage: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsResponseEntitlement. const ( NetworkRestrictionsResponseEntitlementAllowed NetworkRestrictionsResponseEntitlement = "allowed" NetworkRestrictionsResponseEntitlementDisallowed NetworkRestrictionsResponseEntitlement = "disallowed" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsResponseEntitlement enum. +func (e NetworkRestrictionsResponseEntitlement) Valid() bool { + switch e { + case NetworkRestrictionsResponseEntitlementAllowed: + return true + case NetworkRestrictionsResponseEntitlementDisallowed: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsResponseStatus. const ( NetworkRestrictionsResponseStatusApplied NetworkRestrictionsResponseStatus = "applied" NetworkRestrictionsResponseStatusStored NetworkRestrictionsResponseStatus = "stored" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsResponseStatus enum. +func (e NetworkRestrictionsResponseStatus) Valid() bool { + switch e { + case NetworkRestrictionsResponseStatusApplied: + return true + case NetworkRestrictionsResponseStatusStored: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsV2ResponseConfigDbAllowedCidrsType. const ( NetworkRestrictionsV2ResponseConfigDbAllowedCidrsTypeV4 NetworkRestrictionsV2ResponseConfigDbAllowedCidrsType = "v4" NetworkRestrictionsV2ResponseConfigDbAllowedCidrsTypeV6 NetworkRestrictionsV2ResponseConfigDbAllowedCidrsType = "v6" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsV2ResponseConfigDbAllowedCidrsType enum. +func (e NetworkRestrictionsV2ResponseConfigDbAllowedCidrsType) Valid() bool { + switch e { + case NetworkRestrictionsV2ResponseConfigDbAllowedCidrsTypeV4: + return true + case NetworkRestrictionsV2ResponseConfigDbAllowedCidrsTypeV6: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsV2ResponseEntitlement. const ( NetworkRestrictionsV2ResponseEntitlementAllowed NetworkRestrictionsV2ResponseEntitlement = "allowed" NetworkRestrictionsV2ResponseEntitlementDisallowed NetworkRestrictionsV2ResponseEntitlement = "disallowed" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsV2ResponseEntitlement enum. +func (e NetworkRestrictionsV2ResponseEntitlement) Valid() bool { + switch e { + case NetworkRestrictionsV2ResponseEntitlementAllowed: + return true + case NetworkRestrictionsV2ResponseEntitlementDisallowed: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsType. const ( NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsTypeV4 NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsType = "v4" NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsTypeV6 NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsType = "v6" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsType enum. +func (e NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsType) Valid() bool { + switch e { + case NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsTypeV4: + return true + case NetworkRestrictionsV2ResponseOldConfigDbAllowedCidrsTypeV6: + return true + default: + return false + } +} + // Defines values for NetworkRestrictionsV2ResponseStatus. const ( NetworkRestrictionsV2ResponseStatusApplied NetworkRestrictionsV2ResponseStatus = "applied" NetworkRestrictionsV2ResponseStatusStored NetworkRestrictionsV2ResponseStatus = "stored" ) +// Valid indicates whether the value is a known member of the NetworkRestrictionsV2ResponseStatus enum. +func (e NetworkRestrictionsV2ResponseStatus) Valid() bool { + switch e { + case NetworkRestrictionsV2ResponseStatusApplied: + return true + case NetworkRestrictionsV2ResponseStatusStored: + return true + default: + return false + } +} + // Defines values for OAuthTokenBodyGrantType. const ( AuthorizationCode OAuthTokenBodyGrantType = "authorization_code" @@ -746,11 +2184,35 @@ const ( UrnIetfParamsOauthGrantTypeJwtBearer OAuthTokenBodyGrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer" ) +// Valid indicates whether the value is a known member of the OAuthTokenBodyGrantType enum. +func (e OAuthTokenBodyGrantType) Valid() bool { + switch e { + case AuthorizationCode: + return true + case RefreshToken: + return true + case UrnIetfParamsOauthGrantTypeJwtBearer: + return true + default: + return false + } +} + // Defines values for OAuthTokenResponseTokenType. const ( Bearer OAuthTokenResponseTokenType = "Bearer" ) +// Valid indicates whether the value is a known member of the OAuthTokenResponseTokenType enum. +func (e OAuthTokenResponseTokenType) Valid() bool { + switch e { + case Bearer: + return true + default: + return false + } +} + // Defines values for OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan. const ( OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanEnterprise OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan = "enterprise" @@ -760,6 +2222,24 @@ const ( OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanTeam OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan = "team" ) +// Valid indicates whether the value is a known member of the OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan enum. +func (e OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan) Valid() bool { + switch e { + case OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanEnterprise: + return true + case OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanFree: + return true + case OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanPlatform: + return true + case OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanPro: + return true + case OrganizationProjectClaimResponsePreviewSourceSubscriptionPlanTeam: + return true + default: + return false + } +} + // Defines values for OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan. const ( OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanEnterprise OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan = "enterprise" @@ -769,12 +2249,42 @@ const ( OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanTeam OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan = "team" ) +// Valid indicates whether the value is a known member of the OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan enum. +func (e OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan) Valid() bool { + switch e { + case OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanEnterprise: + return true + case OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanFree: + return true + case OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanPlatform: + return true + case OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanPro: + return true + case OrganizationProjectClaimResponsePreviewTargetSubscriptionPlanTeam: + return true + default: + return false + } +} + // Defines values for OrganizationProjectsResponseProjectsDatabasesDiskType. const ( Gp3 OrganizationProjectsResponseProjectsDatabasesDiskType = "gp3" Io2 OrganizationProjectsResponseProjectsDatabasesDiskType = "io2" ) +// Valid indicates whether the value is a known member of the OrganizationProjectsResponseProjectsDatabasesDiskType enum. +func (e OrganizationProjectsResponseProjectsDatabasesDiskType) Valid() bool { + switch e { + case Gp3: + return true + case Io2: + return true + default: + return false + } +} + // Defines values for OrganizationProjectsResponseProjectsDatabasesInfraComputeSize. const ( OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeLarge OrganizationProjectsResponseProjectsDatabasesInfraComputeSize = "large" @@ -799,6 +2309,54 @@ const ( OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeXlarge OrganizationProjectsResponseProjectsDatabasesInfraComputeSize = "xlarge" ) +// Valid indicates whether the value is a known member of the OrganizationProjectsResponseProjectsDatabasesInfraComputeSize enum. +func (e OrganizationProjectsResponseProjectsDatabasesInfraComputeSize) Valid() bool { + switch e { + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeLarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeMedium: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeMicro: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN12xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN16xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN24xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN24xlargeHighMemory: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN24xlargeOptimizedCpu: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN24xlargeOptimizedMemory: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN2xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN48xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN48xlargeHighMemory: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN48xlargeOptimizedCpu: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN48xlargeOptimizedMemory: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN4xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeN8xlarge: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeNano: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizePico: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeSmall: + return true + case OrganizationProjectsResponseProjectsDatabasesInfraComputeSizeXlarge: + return true + default: + return false + } +} + // Defines values for OrganizationProjectsResponseProjectsDatabasesStatus. const ( OrganizationProjectsResponseProjectsDatabasesStatusACTIVEHEALTHY OrganizationProjectsResponseProjectsDatabasesStatus = "ACTIVE_HEALTHY" @@ -815,12 +2373,56 @@ const ( OrganizationProjectsResponseProjectsDatabasesStatusUNKNOWN OrganizationProjectsResponseProjectsDatabasesStatus = "UNKNOWN" ) +// Valid indicates whether the value is a known member of the OrganizationProjectsResponseProjectsDatabasesStatus enum. +func (e OrganizationProjectsResponseProjectsDatabasesStatus) Valid() bool { + switch e { + case OrganizationProjectsResponseProjectsDatabasesStatusACTIVEHEALTHY: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusACTIVEUNHEALTHY: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusCOMINGUP: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusGOINGDOWN: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusINITFAILED: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusINITREADREPLICA: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusINITREADREPLICAFAILED: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusREMOVED: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusRESIZING: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusRESTARTING: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusRESTORING: + return true + case OrganizationProjectsResponseProjectsDatabasesStatusUNKNOWN: + return true + default: + return false + } +} + // Defines values for OrganizationProjectsResponseProjectsDatabasesType. const ( OrganizationProjectsResponseProjectsDatabasesTypePRIMARY OrganizationProjectsResponseProjectsDatabasesType = "PRIMARY" OrganizationProjectsResponseProjectsDatabasesTypeREADREPLICA OrganizationProjectsResponseProjectsDatabasesType = "READ_REPLICA" ) +// Valid indicates whether the value is a known member of the OrganizationProjectsResponseProjectsDatabasesType enum. +func (e OrganizationProjectsResponseProjectsDatabasesType) Valid() bool { + switch e { + case OrganizationProjectsResponseProjectsDatabasesTypePRIMARY: + return true + case OrganizationProjectsResponseProjectsDatabasesTypeREADREPLICA: + return true + default: + return false + } +} + // Defines values for OrganizationProjectsResponseProjectsStatus. const ( OrganizationProjectsResponseProjectsStatusACTIVEHEALTHY OrganizationProjectsResponseProjectsStatus = "ACTIVE_HEALTHY" @@ -840,11 +2442,59 @@ const ( OrganizationProjectsResponseProjectsStatusUPGRADING OrganizationProjectsResponseProjectsStatus = "UPGRADING" ) +// Valid indicates whether the value is a known member of the OrganizationProjectsResponseProjectsStatus enum. +func (e OrganizationProjectsResponseProjectsStatus) Valid() bool { + switch e { + case OrganizationProjectsResponseProjectsStatusACTIVEHEALTHY: + return true + case OrganizationProjectsResponseProjectsStatusACTIVEUNHEALTHY: + return true + case OrganizationProjectsResponseProjectsStatusCOMINGUP: + return true + case OrganizationProjectsResponseProjectsStatusGOINGDOWN: + return true + case OrganizationProjectsResponseProjectsStatusINACTIVE: + return true + case OrganizationProjectsResponseProjectsStatusINITFAILED: + return true + case OrganizationProjectsResponseProjectsStatusPAUSEFAILED: + return true + case OrganizationProjectsResponseProjectsStatusPAUSING: + return true + case OrganizationProjectsResponseProjectsStatusREMOVED: + return true + case OrganizationProjectsResponseProjectsStatusRESIZING: + return true + case OrganizationProjectsResponseProjectsStatusRESTARTING: + return true + case OrganizationProjectsResponseProjectsStatusRESTOREFAILED: + return true + case OrganizationProjectsResponseProjectsStatusRESTORING: + return true + case OrganizationProjectsResponseProjectsStatusUNKNOWN: + return true + case OrganizationProjectsResponseProjectsStatusUPGRADING: + return true + default: + return false + } +} + // Defines values for PlanGateErrorBodyErrorCode. const ( EntitlementRequired PlanGateErrorBodyErrorCode = "entitlement_required" ) +// Valid indicates whether the value is a known member of the PlanGateErrorBodyErrorCode enum. +func (e PlanGateErrorBodyErrorCode) Valid() bool { + switch e { + case EntitlementRequired: + return true + default: + return false + } +} + // Defines values for PostgresConfigResponseSessionReplicationRole. const ( PostgresConfigResponseSessionReplicationRoleLocal PostgresConfigResponseSessionReplicationRole = "local" @@ -852,6 +2502,20 @@ const ( PostgresConfigResponseSessionReplicationRoleReplica PostgresConfigResponseSessionReplicationRole = "replica" ) +// Valid indicates whether the value is a known member of the PostgresConfigResponseSessionReplicationRole enum. +func (e PostgresConfigResponseSessionReplicationRole) Valid() bool { + switch e { + case PostgresConfigResponseSessionReplicationRoleLocal: + return true + case PostgresConfigResponseSessionReplicationRoleOrigin: + return true + case PostgresConfigResponseSessionReplicationRoleReplica: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannel. const ( ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelAlpha ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannel = "alpha" @@ -862,6 +2526,26 @@ const ( ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelWithdrawn ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannel = "withdrawn" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannel enum. +func (e ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannel) Valid() bool { + switch e { + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelAlpha: + return true + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelBeta: + return true + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelGa: + return true + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelInternal: + return true + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelPreview: + return true + case ProjectUpgradeEligibilityResponseCurrentAppVersionReleaseChannelWithdrawn: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseTargetUpgradeVersionsPostgresVersion. const ( N13 ProjectUpgradeEligibilityResponseTargetUpgradeVersionsPostgresVersion = "13" @@ -871,6 +2555,24 @@ const ( N17Oriole ProjectUpgradeEligibilityResponseTargetUpgradeVersionsPostgresVersion = "17-oriole" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseTargetUpgradeVersionsPostgresVersion enum. +func (e ProjectUpgradeEligibilityResponseTargetUpgradeVersionsPostgresVersion) Valid() bool { + switch e { + case N13: + return true + case N14: + return true + case N15: + return true + case N17: + return true + case N17Oriole: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannel. const ( ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelAlpha ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannel = "alpha" @@ -881,77 +2583,239 @@ const ( ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelWithdrawn ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannel = "withdrawn" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannel enum. +func (e ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannel) Valid() bool { + switch e { + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelAlpha: + return true + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelBeta: + return true + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelGa: + return true + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelInternal: + return true + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelPreview: + return true + case ProjectUpgradeEligibilityResponseTargetUpgradeVersionsReleaseChannelWithdrawn: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors0Type. const ( ObjectsDependingOnPgCron ProjectUpgradeEligibilityResponseValidationErrors0Type = "objects_depending_on_pg_cron" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors0Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors0Type) Valid() bool { + switch e { + case ObjectsDependingOnPgCron: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors1Type. const ( IndexesReferencingLlToEarth ProjectUpgradeEligibilityResponseValidationErrors1Type = "indexes_referencing_ll_to_earth" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors1Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors1Type) Valid() bool { + switch e { + case IndexesReferencingLlToEarth: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors2Type. const ( FunctionUsingObsoleteLang ProjectUpgradeEligibilityResponseValidationErrors2Type = "function_using_obsolete_lang" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors2Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors2Type) Valid() bool { + switch e { + case FunctionUsingObsoleteLang: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors3Type. const ( UnsupportedExtension ProjectUpgradeEligibilityResponseValidationErrors3Type = "unsupported_extension" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors3Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors3Type) Valid() bool { + switch e { + case UnsupportedExtension: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors4Type. const ( UnsupportedFdwHandler ProjectUpgradeEligibilityResponseValidationErrors4Type = "unsupported_fdw_handler" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors4Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors4Type) Valid() bool { + switch e { + case UnsupportedFdwHandler: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors5Type. const ( UnloggedTableWithPersistentSequence ProjectUpgradeEligibilityResponseValidationErrors5Type = "unlogged_table_with_persistent_sequence" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors5Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors5Type) Valid() bool { + switch e { + case UnloggedTableWithPersistentSequence: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors6ObjType. const ( ProjectUpgradeEligibilityResponseValidationErrors6ObjTypeFunction ProjectUpgradeEligibilityResponseValidationErrors6ObjType = "function" ProjectUpgradeEligibilityResponseValidationErrors6ObjTypeTable ProjectUpgradeEligibilityResponseValidationErrors6ObjType = "table" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors6ObjType enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors6ObjType) Valid() bool { + switch e { + case ProjectUpgradeEligibilityResponseValidationErrors6ObjTypeFunction: + return true + case ProjectUpgradeEligibilityResponseValidationErrors6ObjTypeTable: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors6Type. const ( UserDefinedObjectsInInternalSchemas ProjectUpgradeEligibilityResponseValidationErrors6Type = "user_defined_objects_in_internal_schemas" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors6Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors6Type) Valid() bool { + switch e { + case UserDefinedObjectsInInternalSchemas: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors7Type. const ( ActiveReplicationSlot ProjectUpgradeEligibilityResponseValidationErrors7Type = "active_replication_slot" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors7Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors7Type) Valid() bool { + switch e { + case ActiveReplicationSlot: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors8Type. const ( X86Architecture ProjectUpgradeEligibilityResponseValidationErrors8Type = "x86_architecture" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors8Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors8Type) Valid() bool { + switch e { + case X86Architecture: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseValidationErrors9Type. const ( ProjectHibernating ProjectUpgradeEligibilityResponseValidationErrors9Type = "project_hibernating" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseValidationErrors9Type enum. +func (e ProjectUpgradeEligibilityResponseValidationErrors9Type) Valid() bool { + switch e { + case ProjectHibernating: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseWarnings0Type. const ( PgGraphqlIntrospectionChange ProjectUpgradeEligibilityResponseWarnings0Type = "pg_graphql_introspection_change" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseWarnings0Type enum. +func (e ProjectUpgradeEligibilityResponseWarnings0Type) Valid() bool { + switch e { + case PgGraphqlIntrospectionChange: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseWarnings1Type. const ( LtreeReindexRequired ProjectUpgradeEligibilityResponseWarnings1Type = "ltree_reindex_required" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseWarnings1Type enum. +func (e ProjectUpgradeEligibilityResponseWarnings1Type) Valid() bool { + switch e { + case LtreeReindexRequired: + return true + default: + return false + } +} + // Defines values for ProjectUpgradeEligibilityResponseWarnings2Type. const ( OperatorEstimatorGate ProjectUpgradeEligibilityResponseWarnings2Type = "operator_estimator_gate" ) +// Valid indicates whether the value is a known member of the ProjectUpgradeEligibilityResponseWarnings2Type enum. +func (e ProjectUpgradeEligibilityResponseWarnings2Type) Valid() bool { + switch e { + case OperatorEstimatorGate: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSmartGroupCode. const ( RegionsInfoAllSmartGroupCodeAmericas RegionsInfoAllSmartGroupCode = "americas" @@ -959,11 +2823,35 @@ const ( RegionsInfoAllSmartGroupCodeEmea RegionsInfoAllSmartGroupCode = "emea" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSmartGroupCode enum. +func (e RegionsInfoAllSmartGroupCode) Valid() bool { + switch e { + case RegionsInfoAllSmartGroupCodeAmericas: + return true + case RegionsInfoAllSmartGroupCodeApac: + return true + case RegionsInfoAllSmartGroupCodeEmea: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSmartGroupType. const ( RegionsInfoAllSmartGroupTypeSmartGroup RegionsInfoAllSmartGroupType = "smartGroup" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSmartGroupType enum. +func (e RegionsInfoAllSmartGroupType) Valid() bool { + switch e { + case RegionsInfoAllSmartGroupTypeSmartGroup: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSpecificCode. const ( RegionsInfoAllSpecificCodeApEast1 RegionsInfoAllSpecificCode = "ap-east-1" @@ -986,6 +2874,50 @@ const ( RegionsInfoAllSpecificCodeUsWest2 RegionsInfoAllSpecificCode = "us-west-2" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSpecificCode enum. +func (e RegionsInfoAllSpecificCode) Valid() bool { + switch e { + case RegionsInfoAllSpecificCodeApEast1: + return true + case RegionsInfoAllSpecificCodeApNortheast1: + return true + case RegionsInfoAllSpecificCodeApNortheast2: + return true + case RegionsInfoAllSpecificCodeApSouth1: + return true + case RegionsInfoAllSpecificCodeApSoutheast1: + return true + case RegionsInfoAllSpecificCodeApSoutheast2: + return true + case RegionsInfoAllSpecificCodeCaCentral1: + return true + case RegionsInfoAllSpecificCodeEuCentral1: + return true + case RegionsInfoAllSpecificCodeEuCentral2: + return true + case RegionsInfoAllSpecificCodeEuNorth1: + return true + case RegionsInfoAllSpecificCodeEuWest1: + return true + case RegionsInfoAllSpecificCodeEuWest2: + return true + case RegionsInfoAllSpecificCodeEuWest3: + return true + case RegionsInfoAllSpecificCodeSaEast1: + return true + case RegionsInfoAllSpecificCodeUsEast1: + return true + case RegionsInfoAllSpecificCodeUsEast2: + return true + case RegionsInfoAllSpecificCodeUsWest1: + return true + case RegionsInfoAllSpecificCodeUsWest2: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSpecificProvider. const ( RegionsInfoAllSpecificProviderAWS RegionsInfoAllSpecificProvider = "AWS" @@ -994,17 +2926,55 @@ const ( RegionsInfoAllSpecificProviderFLY RegionsInfoAllSpecificProvider = "FLY" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSpecificProvider enum. +func (e RegionsInfoAllSpecificProvider) Valid() bool { + switch e { + case RegionsInfoAllSpecificProviderAWS: + return true + case RegionsInfoAllSpecificProviderAWSK8S: + return true + case RegionsInfoAllSpecificProviderAWSNIMBUS: + return true + case RegionsInfoAllSpecificProviderFLY: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSpecificStatus. const ( RegionsInfoAllSpecificStatusCapacity RegionsInfoAllSpecificStatus = "capacity" RegionsInfoAllSpecificStatusOther RegionsInfoAllSpecificStatus = "other" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSpecificStatus enum. +func (e RegionsInfoAllSpecificStatus) Valid() bool { + switch e { + case RegionsInfoAllSpecificStatusCapacity: + return true + case RegionsInfoAllSpecificStatusOther: + return true + default: + return false + } +} + // Defines values for RegionsInfoAllSpecificType. const ( RegionsInfoAllSpecificTypeSpecific RegionsInfoAllSpecificType = "specific" ) +// Valid indicates whether the value is a known member of the RegionsInfoAllSpecificType enum. +func (e RegionsInfoAllSpecificType) Valid() bool { + switch e { + case RegionsInfoAllSpecificTypeSpecific: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSmartGroupCode. const ( RegionsInfoRecommendationsSmartGroupCodeAmericas RegionsInfoRecommendationsSmartGroupCode = "americas" @@ -1012,11 +2982,35 @@ const ( RegionsInfoRecommendationsSmartGroupCodeEmea RegionsInfoRecommendationsSmartGroupCode = "emea" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSmartGroupCode enum. +func (e RegionsInfoRecommendationsSmartGroupCode) Valid() bool { + switch e { + case RegionsInfoRecommendationsSmartGroupCodeAmericas: + return true + case RegionsInfoRecommendationsSmartGroupCodeApac: + return true + case RegionsInfoRecommendationsSmartGroupCodeEmea: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSmartGroupType. const ( RegionsInfoRecommendationsSmartGroupTypeSmartGroup RegionsInfoRecommendationsSmartGroupType = "smartGroup" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSmartGroupType enum. +func (e RegionsInfoRecommendationsSmartGroupType) Valid() bool { + switch e { + case RegionsInfoRecommendationsSmartGroupTypeSmartGroup: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSpecificCode. const ( RegionsInfoRecommendationsSpecificCodeApEast1 RegionsInfoRecommendationsSpecificCode = "ap-east-1" @@ -1039,6 +3033,50 @@ const ( RegionsInfoRecommendationsSpecificCodeUsWest2 RegionsInfoRecommendationsSpecificCode = "us-west-2" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSpecificCode enum. +func (e RegionsInfoRecommendationsSpecificCode) Valid() bool { + switch e { + case RegionsInfoRecommendationsSpecificCodeApEast1: + return true + case RegionsInfoRecommendationsSpecificCodeApNortheast1: + return true + case RegionsInfoRecommendationsSpecificCodeApNortheast2: + return true + case RegionsInfoRecommendationsSpecificCodeApSouth1: + return true + case RegionsInfoRecommendationsSpecificCodeApSoutheast1: + return true + case RegionsInfoRecommendationsSpecificCodeApSoutheast2: + return true + case RegionsInfoRecommendationsSpecificCodeCaCentral1: + return true + case RegionsInfoRecommendationsSpecificCodeEuCentral1: + return true + case RegionsInfoRecommendationsSpecificCodeEuCentral2: + return true + case RegionsInfoRecommendationsSpecificCodeEuNorth1: + return true + case RegionsInfoRecommendationsSpecificCodeEuWest1: + return true + case RegionsInfoRecommendationsSpecificCodeEuWest2: + return true + case RegionsInfoRecommendationsSpecificCodeEuWest3: + return true + case RegionsInfoRecommendationsSpecificCodeSaEast1: + return true + case RegionsInfoRecommendationsSpecificCodeUsEast1: + return true + case RegionsInfoRecommendationsSpecificCodeUsEast2: + return true + case RegionsInfoRecommendationsSpecificCodeUsWest1: + return true + case RegionsInfoRecommendationsSpecificCodeUsWest2: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSpecificProvider. const ( RegionsInfoRecommendationsSpecificProviderAWS RegionsInfoRecommendationsSpecificProvider = "AWS" @@ -1047,17 +3085,55 @@ const ( RegionsInfoRecommendationsSpecificProviderFLY RegionsInfoRecommendationsSpecificProvider = "FLY" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSpecificProvider enum. +func (e RegionsInfoRecommendationsSpecificProvider) Valid() bool { + switch e { + case RegionsInfoRecommendationsSpecificProviderAWS: + return true + case RegionsInfoRecommendationsSpecificProviderAWSK8S: + return true + case RegionsInfoRecommendationsSpecificProviderAWSNIMBUS: + return true + case RegionsInfoRecommendationsSpecificProviderFLY: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSpecificStatus. const ( RegionsInfoRecommendationsSpecificStatusCapacity RegionsInfoRecommendationsSpecificStatus = "capacity" RegionsInfoRecommendationsSpecificStatusOther RegionsInfoRecommendationsSpecificStatus = "other" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSpecificStatus enum. +func (e RegionsInfoRecommendationsSpecificStatus) Valid() bool { + switch e { + case RegionsInfoRecommendationsSpecificStatusCapacity: + return true + case RegionsInfoRecommendationsSpecificStatusOther: + return true + default: + return false + } +} + // Defines values for RegionsInfoRecommendationsSpecificType. const ( RegionsInfoRecommendationsSpecificTypeSpecific RegionsInfoRecommendationsSpecificType = "specific" ) +// Valid indicates whether the value is a known member of the RegionsInfoRecommendationsSpecificType enum. +func (e RegionsInfoRecommendationsSpecificType) Valid() bool { + switch e { + case RegionsInfoRecommendationsSpecificTypeSpecific: + return true + default: + return false + } +} + // Defines values for SetUpReadReplicaBodyReadReplicaRegion. const ( SetUpReadReplicaBodyReadReplicaRegionApEast1 SetUpReadReplicaBodyReadReplicaRegion = "ap-east-1" @@ -1080,6 +3156,50 @@ const ( SetUpReadReplicaBodyReadReplicaRegionUsWest2 SetUpReadReplicaBodyReadReplicaRegion = "us-west-2" ) +// Valid indicates whether the value is a known member of the SetUpReadReplicaBodyReadReplicaRegion enum. +func (e SetUpReadReplicaBodyReadReplicaRegion) Valid() bool { + switch e { + case SetUpReadReplicaBodyReadReplicaRegionApEast1: + return true + case SetUpReadReplicaBodyReadReplicaRegionApNortheast1: + return true + case SetUpReadReplicaBodyReadReplicaRegionApNortheast2: + return true + case SetUpReadReplicaBodyReadReplicaRegionApSouth1: + return true + case SetUpReadReplicaBodyReadReplicaRegionApSoutheast1: + return true + case SetUpReadReplicaBodyReadReplicaRegionApSoutheast2: + return true + case SetUpReadReplicaBodyReadReplicaRegionCaCentral1: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuCentral1: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuCentral2: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuNorth1: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuWest1: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuWest2: + return true + case SetUpReadReplicaBodyReadReplicaRegionEuWest3: + return true + case SetUpReadReplicaBodyReadReplicaRegionSaEast1: + return true + case SetUpReadReplicaBodyReadReplicaRegionUsEast1: + return true + case SetUpReadReplicaBodyReadReplicaRegionUsEast2: + return true + case SetUpReadReplicaBodyReadReplicaRegionUsWest1: + return true + case SetUpReadReplicaBodyReadReplicaRegionUsWest2: + return true + default: + return false + } +} + // Defines values for SigningKeyResponseAlgorithm. const ( SigningKeyResponseAlgorithmES256 SigningKeyResponseAlgorithm = "ES256" @@ -1088,6 +3208,22 @@ const ( SigningKeyResponseAlgorithmRS256 SigningKeyResponseAlgorithm = "RS256" ) +// Valid indicates whether the value is a known member of the SigningKeyResponseAlgorithm enum. +func (e SigningKeyResponseAlgorithm) Valid() bool { + switch e { + case SigningKeyResponseAlgorithmES256: + return true + case SigningKeyResponseAlgorithmEdDSA: + return true + case SigningKeyResponseAlgorithmHS256: + return true + case SigningKeyResponseAlgorithmRS256: + return true + default: + return false + } +} + // Defines values for SigningKeyResponseStatus. const ( SigningKeyResponseStatusInUse SigningKeyResponseStatus = "in_use" @@ -1096,6 +3232,22 @@ const ( SigningKeyResponseStatusStandby SigningKeyResponseStatus = "standby" ) +// Valid indicates whether the value is a known member of the SigningKeyResponseStatus enum. +func (e SigningKeyResponseStatus) Valid() bool { + switch e { + case SigningKeyResponseStatusInUse: + return true + case SigningKeyResponseStatusPreviouslyUsed: + return true + case SigningKeyResponseStatusRevoked: + return true + case SigningKeyResponseStatusStandby: + return true + default: + return false + } +} + // Defines values for SigningKeysResponseKeysAlgorithm. const ( SigningKeysResponseKeysAlgorithmES256 SigningKeysResponseKeysAlgorithm = "ES256" @@ -1104,6 +3256,22 @@ const ( SigningKeysResponseKeysAlgorithmRS256 SigningKeysResponseKeysAlgorithm = "RS256" ) +// Valid indicates whether the value is a known member of the SigningKeysResponseKeysAlgorithm enum. +func (e SigningKeysResponseKeysAlgorithm) Valid() bool { + switch e { + case SigningKeysResponseKeysAlgorithmES256: + return true + case SigningKeysResponseKeysAlgorithmEdDSA: + return true + case SigningKeysResponseKeysAlgorithmHS256: + return true + case SigningKeysResponseKeysAlgorithmRS256: + return true + default: + return false + } +} + // Defines values for SigningKeysResponseKeysStatus. const ( SigningKeysResponseKeysStatusInUse SigningKeysResponseKeysStatus = "in_use" @@ -1112,11 +3280,37 @@ const ( SigningKeysResponseKeysStatusStandby SigningKeysResponseKeysStatus = "standby" ) +// Valid indicates whether the value is a known member of the SigningKeysResponseKeysStatus enum. +func (e SigningKeysResponseKeysStatus) Valid() bool { + switch e { + case SigningKeysResponseKeysStatusInUse: + return true + case SigningKeysResponseKeysStatusPreviouslyUsed: + return true + case SigningKeysResponseKeysStatusRevoked: + return true + case SigningKeysResponseKeysStatusStandby: + return true + default: + return false + } +} + // Defines values for SnippetListDataType. const ( SnippetListDataTypeSql SnippetListDataType = "sql" ) +// Valid indicates whether the value is a known member of the SnippetListDataType enum. +func (e SnippetListDataType) Valid() bool { + switch e { + case SnippetListDataTypeSql: + return true + default: + return false + } +} + // Defines values for SnippetListDataVisibility. const ( SnippetListDataVisibilityOrg SnippetListDataVisibility = "org" @@ -1125,11 +3319,37 @@ const ( SnippetListDataVisibilityUser SnippetListDataVisibility = "user" ) +// Valid indicates whether the value is a known member of the SnippetListDataVisibility enum. +func (e SnippetListDataVisibility) Valid() bool { + switch e { + case SnippetListDataVisibilityOrg: + return true + case SnippetListDataVisibilityProject: + return true + case SnippetListDataVisibilityPublic: + return true + case SnippetListDataVisibilityUser: + return true + default: + return false + } +} + // Defines values for SnippetResponseType. const ( SnippetResponseTypeSql SnippetResponseType = "sql" ) +// Valid indicates whether the value is a known member of the SnippetResponseType enum. +func (e SnippetResponseType) Valid() bool { + switch e { + case SnippetResponseTypeSql: + return true + default: + return false + } +} + // Defines values for SnippetResponseVisibility. const ( SnippetResponseVisibilityOrg SnippetResponseVisibility = "org" @@ -1138,30 +3358,94 @@ const ( SnippetResponseVisibilityUser SnippetResponseVisibility = "user" ) +// Valid indicates whether the value is a known member of the SnippetResponseVisibility enum. +func (e SnippetResponseVisibility) Valid() bool { + switch e { + case SnippetResponseVisibilityOrg: + return true + case SnippetResponseVisibilityProject: + return true + case SnippetResponseVisibilityPublic: + return true + case SnippetResponseVisibilityUser: + return true + default: + return false + } +} + // Defines values for StorageConfigResponseExternalUpstreamTarget. const ( StorageConfigResponseExternalUpstreamTargetCanary StorageConfigResponseExternalUpstreamTarget = "canary" StorageConfigResponseExternalUpstreamTargetMain StorageConfigResponseExternalUpstreamTarget = "main" ) +// Valid indicates whether the value is a known member of the StorageConfigResponseExternalUpstreamTarget enum. +func (e StorageConfigResponseExternalUpstreamTarget) Valid() bool { + switch e { + case StorageConfigResponseExternalUpstreamTargetCanary: + return true + case StorageConfigResponseExternalUpstreamTargetMain: + return true + default: + return false + } +} + // Defines values for SupavisorConfigResponseDatabaseType. const ( SupavisorConfigResponseDatabaseTypePRIMARY SupavisorConfigResponseDatabaseType = "PRIMARY" SupavisorConfigResponseDatabaseTypeREADREPLICA SupavisorConfigResponseDatabaseType = "READ_REPLICA" ) +// Valid indicates whether the value is a known member of the SupavisorConfigResponseDatabaseType enum. +func (e SupavisorConfigResponseDatabaseType) Valid() bool { + switch e { + case SupavisorConfigResponseDatabaseTypePRIMARY: + return true + case SupavisorConfigResponseDatabaseTypeREADREPLICA: + return true + default: + return false + } +} + // Defines values for SupavisorConfigResponsePoolMode. const ( SupavisorConfigResponsePoolModeSession SupavisorConfigResponsePoolMode = "session" SupavisorConfigResponsePoolModeTransaction SupavisorConfigResponsePoolMode = "transaction" ) +// Valid indicates whether the value is a known member of the SupavisorConfigResponsePoolMode enum. +func (e SupavisorConfigResponsePoolMode) Valid() bool { + switch e { + case SupavisorConfigResponsePoolModeSession: + return true + case SupavisorConfigResponsePoolModeTransaction: + return true + default: + return false + } +} + // Defines values for UpdateAuthConfigBodyDbMaxPoolSizeUnit. const ( UpdateAuthConfigBodyDbMaxPoolSizeUnitConnections UpdateAuthConfigBodyDbMaxPoolSizeUnit = "connections" UpdateAuthConfigBodyDbMaxPoolSizeUnitPercent UpdateAuthConfigBodyDbMaxPoolSizeUnit = "percent" ) +// Valid indicates whether the value is a known member of the UpdateAuthConfigBodyDbMaxPoolSizeUnit enum. +func (e UpdateAuthConfigBodyDbMaxPoolSizeUnit) Valid() bool { + switch e { + case UpdateAuthConfigBodyDbMaxPoolSizeUnitConnections: + return true + case UpdateAuthConfigBodyDbMaxPoolSizeUnitPercent: + return true + default: + return false + } +} + // Defines values for UpdateAuthConfigBodyPasswordRequiredCharacters. const ( UpdateAuthConfigBodyPasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 UpdateAuthConfigBodyPasswordRequiredCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:0123456789" @@ -1170,12 +3454,40 @@ const ( UpdateAuthConfigBodyPasswordRequiredCharactersEmpty UpdateAuthConfigBodyPasswordRequiredCharacters = "" ) +// Valid indicates whether the value is a known member of the UpdateAuthConfigBodyPasswordRequiredCharacters enum. +func (e UpdateAuthConfigBodyPasswordRequiredCharacters) Valid() bool { + switch e { + case UpdateAuthConfigBodyPasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789: + return true + case UpdateAuthConfigBodyPasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567891: + return true + case UpdateAuthConfigBodyPasswordRequiredCharactersAbcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567892: + return true + case UpdateAuthConfigBodyPasswordRequiredCharactersEmpty: + return true + default: + return false + } +} + // Defines values for UpdateAuthConfigBodySecurityCaptchaProvider. const ( UpdateAuthConfigBodySecurityCaptchaProviderHcaptcha UpdateAuthConfigBodySecurityCaptchaProvider = "hcaptcha" UpdateAuthConfigBodySecurityCaptchaProviderTurnstile UpdateAuthConfigBodySecurityCaptchaProvider = "turnstile" ) +// Valid indicates whether the value is a known member of the UpdateAuthConfigBodySecurityCaptchaProvider enum. +func (e UpdateAuthConfigBodySecurityCaptchaProvider) Valid() bool { + switch e { + case UpdateAuthConfigBodySecurityCaptchaProviderHcaptcha: + return true + case UpdateAuthConfigBodySecurityCaptchaProviderTurnstile: + return true + default: + return false + } +} + // Defines values for UpdateAuthConfigBodySmsProvider. const ( UpdateAuthConfigBodySmsProviderMessagebird UpdateAuthConfigBodySmsProvider = "messagebird" @@ -1185,6 +3497,24 @@ const ( UpdateAuthConfigBodySmsProviderVonage UpdateAuthConfigBodySmsProvider = "vonage" ) +// Valid indicates whether the value is a known member of the UpdateAuthConfigBodySmsProvider enum. +func (e UpdateAuthConfigBodySmsProvider) Valid() bool { + switch e { + case UpdateAuthConfigBodySmsProviderMessagebird: + return true + case UpdateAuthConfigBodySmsProviderTextlocal: + return true + case UpdateAuthConfigBodySmsProviderTwilio: + return true + case UpdateAuthConfigBodySmsProviderTwilioVerify: + return true + case UpdateAuthConfigBodySmsProviderVonage: + return true + default: + return false + } +} + // Defines values for UpdateBranchBodyStatus. const ( UpdateBranchBodyStatusCREATINGPROJECT UpdateBranchBodyStatus = "CREATING_PROJECT" @@ -1195,6 +3525,26 @@ const ( UpdateBranchBodyStatusRUNNINGMIGRATIONS UpdateBranchBodyStatus = "RUNNING_MIGRATIONS" ) +// Valid indicates whether the value is a known member of the UpdateBranchBodyStatus enum. +func (e UpdateBranchBodyStatus) Valid() bool { + switch e { + case UpdateBranchBodyStatusCREATINGPROJECT: + return true + case UpdateBranchBodyStatusFUNCTIONSDEPLOYED: + return true + case UpdateBranchBodyStatusFUNCTIONSFAILED: + return true + case UpdateBranchBodyStatusMIGRATIONSFAILED: + return true + case UpdateBranchBodyStatusMIGRATIONSPASSED: + return true + case UpdateBranchBodyStatusRUNNINGMIGRATIONS: + return true + default: + return false + } +} + // Defines values for UpdateCustomHostnameResponseStatus. const ( N1NotStarted UpdateCustomHostnameResponseStatus = "1_not_started" @@ -1204,6 +3554,24 @@ const ( N5ServicesReconfigured UpdateCustomHostnameResponseStatus = "5_services_reconfigured" ) +// Valid indicates whether the value is a known member of the UpdateCustomHostnameResponseStatus enum. +func (e UpdateCustomHostnameResponseStatus) Valid() bool { + switch e { + case N1NotStarted: + return true + case N2Initiated: + return true + case N3ChallengeVerified: + return true + case N4OriginSetupCompleted: + return true + case N5ServicesReconfigured: + return true + default: + return false + } +} + // Defines values for UpdatePostgresConfigBodySessionReplicationRole. const ( UpdatePostgresConfigBodySessionReplicationRoleLocal UpdatePostgresConfigBodySessionReplicationRole = "local" @@ -1211,6 +3579,20 @@ const ( UpdatePostgresConfigBodySessionReplicationRoleReplica UpdatePostgresConfigBodySessionReplicationRole = "replica" ) +// Valid indicates whether the value is a known member of the UpdatePostgresConfigBodySessionReplicationRole enum. +func (e UpdatePostgresConfigBodySessionReplicationRole) Valid() bool { + switch e { + case UpdatePostgresConfigBodySessionReplicationRoleLocal: + return true + case UpdatePostgresConfigBodySessionReplicationRoleOrigin: + return true + case UpdatePostgresConfigBodySessionReplicationRoleReplica: + return true + default: + return false + } +} + // Defines values for UpdateProviderBodyNameIdFormat. const ( UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatEmailAddress UpdateProviderBodyNameIdFormat = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" @@ -1219,6 +3601,22 @@ const ( UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatTransient UpdateProviderBodyNameIdFormat = "urn:oasis:names:tc:SAML:2.0:nameid-format:transient" ) +// Valid indicates whether the value is a known member of the UpdateProviderBodyNameIdFormat enum. +func (e UpdateProviderBodyNameIdFormat) Valid() bool { + switch e { + case UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatEmailAddress: + return true + case UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML11NameidFormatUnspecified: + return true + case UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatPersistent: + return true + case UpdateProviderBodyNameIdFormatUrnOasisNamesTcSAML20NameidFormatTransient: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyClone. const ( UpdateRunStatusBodyCloneCREATED UpdateRunStatusBodyClone = "CREATED" @@ -1230,6 +3628,28 @@ const ( UpdateRunStatusBodyCloneRUNNING UpdateRunStatusBodyClone = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyClone enum. +func (e UpdateRunStatusBodyClone) Valid() bool { + switch e { + case UpdateRunStatusBodyCloneCREATED: + return true + case UpdateRunStatusBodyCloneDEAD: + return true + case UpdateRunStatusBodyCloneEXITED: + return true + case UpdateRunStatusBodyClonePAUSED: + return true + case UpdateRunStatusBodyCloneREMOVING: + return true + case UpdateRunStatusBodyCloneRESTARTING: + return true + case UpdateRunStatusBodyCloneRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyConfigure. const ( UpdateRunStatusBodyConfigureCREATED UpdateRunStatusBodyConfigure = "CREATED" @@ -1241,6 +3661,28 @@ const ( UpdateRunStatusBodyConfigureRUNNING UpdateRunStatusBodyConfigure = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyConfigure enum. +func (e UpdateRunStatusBodyConfigure) Valid() bool { + switch e { + case UpdateRunStatusBodyConfigureCREATED: + return true + case UpdateRunStatusBodyConfigureDEAD: + return true + case UpdateRunStatusBodyConfigureEXITED: + return true + case UpdateRunStatusBodyConfigurePAUSED: + return true + case UpdateRunStatusBodyConfigureREMOVING: + return true + case UpdateRunStatusBodyConfigureRESTARTING: + return true + case UpdateRunStatusBodyConfigureRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyDeploy. const ( UpdateRunStatusBodyDeployCREATED UpdateRunStatusBodyDeploy = "CREATED" @@ -1252,6 +3694,28 @@ const ( UpdateRunStatusBodyDeployRUNNING UpdateRunStatusBodyDeploy = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyDeploy enum. +func (e UpdateRunStatusBodyDeploy) Valid() bool { + switch e { + case UpdateRunStatusBodyDeployCREATED: + return true + case UpdateRunStatusBodyDeployDEAD: + return true + case UpdateRunStatusBodyDeployEXITED: + return true + case UpdateRunStatusBodyDeployPAUSED: + return true + case UpdateRunStatusBodyDeployREMOVING: + return true + case UpdateRunStatusBodyDeployRESTARTING: + return true + case UpdateRunStatusBodyDeployRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyHealth. const ( UpdateRunStatusBodyHealthCREATED UpdateRunStatusBodyHealth = "CREATED" @@ -1263,6 +3727,28 @@ const ( UpdateRunStatusBodyHealthRUNNING UpdateRunStatusBodyHealth = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyHealth enum. +func (e UpdateRunStatusBodyHealth) Valid() bool { + switch e { + case UpdateRunStatusBodyHealthCREATED: + return true + case UpdateRunStatusBodyHealthDEAD: + return true + case UpdateRunStatusBodyHealthEXITED: + return true + case UpdateRunStatusBodyHealthPAUSED: + return true + case UpdateRunStatusBodyHealthREMOVING: + return true + case UpdateRunStatusBodyHealthRESTARTING: + return true + case UpdateRunStatusBodyHealthRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyMigrate. const ( UpdateRunStatusBodyMigrateCREATED UpdateRunStatusBodyMigrate = "CREATED" @@ -1274,6 +3760,28 @@ const ( UpdateRunStatusBodyMigrateRUNNING UpdateRunStatusBodyMigrate = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyMigrate enum. +func (e UpdateRunStatusBodyMigrate) Valid() bool { + switch e { + case UpdateRunStatusBodyMigrateCREATED: + return true + case UpdateRunStatusBodyMigrateDEAD: + return true + case UpdateRunStatusBodyMigrateEXITED: + return true + case UpdateRunStatusBodyMigratePAUSED: + return true + case UpdateRunStatusBodyMigrateREMOVING: + return true + case UpdateRunStatusBodyMigrateRESTARTING: + return true + case UpdateRunStatusBodyMigrateRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodyPull. const ( UpdateRunStatusBodyPullCREATED UpdateRunStatusBodyPull = "CREATED" @@ -1285,6 +3793,28 @@ const ( UpdateRunStatusBodyPullRUNNING UpdateRunStatusBodyPull = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodyPull enum. +func (e UpdateRunStatusBodyPull) Valid() bool { + switch e { + case UpdateRunStatusBodyPullCREATED: + return true + case UpdateRunStatusBodyPullDEAD: + return true + case UpdateRunStatusBodyPullEXITED: + return true + case UpdateRunStatusBodyPullPAUSED: + return true + case UpdateRunStatusBodyPullREMOVING: + return true + case UpdateRunStatusBodyPullRESTARTING: + return true + case UpdateRunStatusBodyPullRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusBodySeed. const ( UpdateRunStatusBodySeedCREATED UpdateRunStatusBodySeed = "CREATED" @@ -1296,11 +3826,43 @@ const ( UpdateRunStatusBodySeedRUNNING UpdateRunStatusBodySeed = "RUNNING" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusBodySeed enum. +func (e UpdateRunStatusBodySeed) Valid() bool { + switch e { + case UpdateRunStatusBodySeedCREATED: + return true + case UpdateRunStatusBodySeedDEAD: + return true + case UpdateRunStatusBodySeedEXITED: + return true + case UpdateRunStatusBodySeedPAUSED: + return true + case UpdateRunStatusBodySeedREMOVING: + return true + case UpdateRunStatusBodySeedRESTARTING: + return true + case UpdateRunStatusBodySeedRUNNING: + return true + default: + return false + } +} + // Defines values for UpdateRunStatusResponseMessage. const ( UpdateRunStatusResponseMessageOk UpdateRunStatusResponseMessage = "ok" ) +// Valid indicates whether the value is a known member of the UpdateRunStatusResponseMessage enum. +func (e UpdateRunStatusResponseMessage) Valid() bool { + switch e { + case UpdateRunStatusResponseMessageOk: + return true + default: + return false + } +} + // Defines values for UpdateSigningKeyBodyStatus. const ( UpdateSigningKeyBodyStatusInUse UpdateSigningKeyBodyStatus = "in_use" @@ -1309,18 +3871,58 @@ const ( UpdateSigningKeyBodyStatusStandby UpdateSigningKeyBodyStatus = "standby" ) +// Valid indicates whether the value is a known member of the UpdateSigningKeyBodyStatus enum. +func (e UpdateSigningKeyBodyStatus) Valid() bool { + switch e { + case UpdateSigningKeyBodyStatusInUse: + return true + case UpdateSigningKeyBodyStatusPreviouslyUsed: + return true + case UpdateSigningKeyBodyStatusRevoked: + return true + case UpdateSigningKeyBodyStatusStandby: + return true + default: + return false + } +} + // Defines values for UpdateStorageConfigBodyExternalUpstreamTarget. const ( UpdateStorageConfigBodyExternalUpstreamTargetCanary UpdateStorageConfigBodyExternalUpstreamTarget = "canary" UpdateStorageConfigBodyExternalUpstreamTargetMain UpdateStorageConfigBodyExternalUpstreamTarget = "main" ) +// Valid indicates whether the value is a known member of the UpdateStorageConfigBodyExternalUpstreamTarget enum. +func (e UpdateStorageConfigBodyExternalUpstreamTarget) Valid() bool { + switch e { + case UpdateStorageConfigBodyExternalUpstreamTargetCanary: + return true + case UpdateStorageConfigBodyExternalUpstreamTargetMain: + return true + default: + return false + } +} + // Defines values for UpdateSupavisorConfigBodyPoolMode. const ( UpdateSupavisorConfigBodyPoolModeSession UpdateSupavisorConfigBodyPoolMode = "session" UpdateSupavisorConfigBodyPoolModeTransaction UpdateSupavisorConfigBodyPoolMode = "transaction" ) +// Valid indicates whether the value is a known member of the UpdateSupavisorConfigBodyPoolMode enum. +func (e UpdateSupavisorConfigBodyPoolMode) Valid() bool { + switch e { + case UpdateSupavisorConfigBodyPoolModeSession: + return true + case UpdateSupavisorConfigBodyPoolModeTransaction: + return true + default: + return false + } +} + // Defines values for UpgradeDatabaseBodyReleaseChannel. const ( UpgradeDatabaseBodyReleaseChannelAlpha UpgradeDatabaseBodyReleaseChannel = "alpha" @@ -1331,6 +3933,26 @@ const ( UpgradeDatabaseBodyReleaseChannelWithdrawn UpgradeDatabaseBodyReleaseChannel = "withdrawn" ) +// Valid indicates whether the value is a known member of the UpgradeDatabaseBodyReleaseChannel enum. +func (e UpgradeDatabaseBodyReleaseChannel) Valid() bool { + switch e { + case UpgradeDatabaseBodyReleaseChannelAlpha: + return true + case UpgradeDatabaseBodyReleaseChannelBeta: + return true + case UpgradeDatabaseBodyReleaseChannelGa: + return true + case UpgradeDatabaseBodyReleaseChannelInternal: + return true + case UpgradeDatabaseBodyReleaseChannelPreview: + return true + case UpgradeDatabaseBodyReleaseChannelWithdrawn: + return true + default: + return false + } +} + // Defines values for V1BackupsResponseBackupsStatus. const ( V1BackupsResponseBackupsStatusARCHIVED V1BackupsResponseBackupsStatus = "ARCHIVED" @@ -1341,6 +3963,26 @@ const ( V1BackupsResponseBackupsStatusREMOVED V1BackupsResponseBackupsStatus = "REMOVED" ) +// Valid indicates whether the value is a known member of the V1BackupsResponseBackupsStatus enum. +func (e V1BackupsResponseBackupsStatus) Valid() bool { + switch e { + case V1BackupsResponseBackupsStatusARCHIVED: + return true + case V1BackupsResponseBackupsStatusCANCELLED: + return true + case V1BackupsResponseBackupsStatusCOMPLETED: + return true + case V1BackupsResponseBackupsStatusFAILED: + return true + case V1BackupsResponseBackupsStatusPENDING: + return true + case V1BackupsResponseBackupsStatusREMOVED: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyDesiredInstanceSize. const ( V1CreateProjectBodyDesiredInstanceSizeLarge V1CreateProjectBodyDesiredInstanceSize = "large" @@ -1364,12 +4006,70 @@ const ( V1CreateProjectBodyDesiredInstanceSizeXlarge V1CreateProjectBodyDesiredInstanceSize = "xlarge" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyDesiredInstanceSize enum. +func (e V1CreateProjectBodyDesiredInstanceSize) Valid() bool { + switch e { + case V1CreateProjectBodyDesiredInstanceSizeLarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeMedium: + return true + case V1CreateProjectBodyDesiredInstanceSizeMicro: + return true + case V1CreateProjectBodyDesiredInstanceSizeN12xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN16xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN24xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN24xlargeHighMemory: + return true + case V1CreateProjectBodyDesiredInstanceSizeN24xlargeOptimizedCpu: + return true + case V1CreateProjectBodyDesiredInstanceSizeN24xlargeOptimizedMemory: + return true + case V1CreateProjectBodyDesiredInstanceSizeN2xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN48xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN48xlargeHighMemory: + return true + case V1CreateProjectBodyDesiredInstanceSizeN48xlargeOptimizedCpu: + return true + case V1CreateProjectBodyDesiredInstanceSizeN48xlargeOptimizedMemory: + return true + case V1CreateProjectBodyDesiredInstanceSizeN4xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeN8xlarge: + return true + case V1CreateProjectBodyDesiredInstanceSizeNano: + return true + case V1CreateProjectBodyDesiredInstanceSizeSmall: + return true + case V1CreateProjectBodyDesiredInstanceSizeXlarge: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyPlan. const ( V1CreateProjectBodyPlanFree V1CreateProjectBodyPlan = "free" V1CreateProjectBodyPlanPro V1CreateProjectBodyPlan = "pro" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyPlan enum. +func (e V1CreateProjectBodyPlan) Valid() bool { + switch e { + case V1CreateProjectBodyPlanFree: + return true + case V1CreateProjectBodyPlanPro: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyRegion. const ( V1CreateProjectBodyRegionApEast1 V1CreateProjectBodyRegion = "ap-east-1" @@ -1392,6 +4092,50 @@ const ( V1CreateProjectBodyRegionUsWest2 V1CreateProjectBodyRegion = "us-west-2" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyRegion enum. +func (e V1CreateProjectBodyRegion) Valid() bool { + switch e { + case V1CreateProjectBodyRegionApEast1: + return true + case V1CreateProjectBodyRegionApNortheast1: + return true + case V1CreateProjectBodyRegionApNortheast2: + return true + case V1CreateProjectBodyRegionApSouth1: + return true + case V1CreateProjectBodyRegionApSoutheast1: + return true + case V1CreateProjectBodyRegionApSoutheast2: + return true + case V1CreateProjectBodyRegionCaCentral1: + return true + case V1CreateProjectBodyRegionEuCentral1: + return true + case V1CreateProjectBodyRegionEuCentral2: + return true + case V1CreateProjectBodyRegionEuNorth1: + return true + case V1CreateProjectBodyRegionEuWest1: + return true + case V1CreateProjectBodyRegionEuWest2: + return true + case V1CreateProjectBodyRegionEuWest3: + return true + case V1CreateProjectBodyRegionSaEast1: + return true + case V1CreateProjectBodyRegionUsEast1: + return true + case V1CreateProjectBodyRegionUsEast2: + return true + case V1CreateProjectBodyRegionUsWest1: + return true + case V1CreateProjectBodyRegionUsWest2: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyRegionSelection0Code. const ( ApEast1 V1CreateProjectBodyRegionSelection0Code = "ap-east-1" @@ -1414,11 +4158,65 @@ const ( UsWest2 V1CreateProjectBodyRegionSelection0Code = "us-west-2" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyRegionSelection0Code enum. +func (e V1CreateProjectBodyRegionSelection0Code) Valid() bool { + switch e { + case ApEast1: + return true + case ApNortheast1: + return true + case ApNortheast2: + return true + case ApSouth1: + return true + case ApSoutheast1: + return true + case ApSoutheast2: + return true + case CaCentral1: + return true + case EuCentral1: + return true + case EuCentral2: + return true + case EuNorth1: + return true + case EuWest1: + return true + case EuWest2: + return true + case EuWest3: + return true + case SaEast1: + return true + case UsEast1: + return true + case UsEast2: + return true + case UsWest1: + return true + case UsWest2: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyRegionSelection0Type. const ( Specific V1CreateProjectBodyRegionSelection0Type = "specific" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyRegionSelection0Type enum. +func (e V1CreateProjectBodyRegionSelection0Type) Valid() bool { + switch e { + case Specific: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyRegionSelection1Code. const ( Americas V1CreateProjectBodyRegionSelection1Code = "americas" @@ -1426,11 +4224,35 @@ const ( Emea V1CreateProjectBodyRegionSelection1Code = "emea" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyRegionSelection1Code enum. +func (e V1CreateProjectBodyRegionSelection1Code) Valid() bool { + switch e { + case Americas: + return true + case Apac: + return true + case Emea: + return true + default: + return false + } +} + // Defines values for V1CreateProjectBodyRegionSelection1Type. const ( SmartGroup V1CreateProjectBodyRegionSelection1Type = "smartGroup" ) +// Valid indicates whether the value is a known member of the V1CreateProjectBodyRegionSelection1Type enum. +func (e V1CreateProjectBodyRegionSelection1Type) Valid() bool { + switch e { + case SmartGroup: + return true + default: + return false + } +} + // Defines values for V1ListEntitlementsResponseEntitlementsFeatureKey. const ( V1ListEntitlementsResponseEntitlementsFeatureKeyApiMembersInvitations V1ListEntitlementsResponseEntitlementsFeatureKey = "api.members.invitations" @@ -1498,6 +4320,140 @@ const ( V1ListEntitlementsResponseEntitlementsFeatureKeyVanitySubdomain V1ListEntitlementsResponseEntitlementsFeatureKey = "vanity_subdomain" ) +// Valid indicates whether the value is a known member of the V1ListEntitlementsResponseEntitlementsFeatureKey enum. +func (e V1ListEntitlementsResponseEntitlementsFeatureKey) Valid() bool { + switch e { + case V1ListEntitlementsResponseEntitlementsFeatureKeyApiMembersInvitations: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyApiMembersRoles: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAssistantAdvanceModel: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuditLogDrains: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthAdvancedAuthSettings: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthCustomJwtTemplate: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthCustomOauthMaxProviders: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthHooks: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthLeakedPasswordProtection: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthMfaEnhancedSecurity: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthMfaPhone: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthMfaWebAuthn: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthPasswordHibp: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthPerformanceSettings: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthPlatformSso: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthSaml2: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyAuthUserSessions: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyBackupRestoreToNewProject: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyBackupRetentionDays: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyBackupSchedule: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyBranchingLimit: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyBranchingPersistent: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyCustomDomain: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyDedicatedPooler: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyFunctionMaxCount: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyFunctionSizeLimitMb: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyInstancesComputeUpdateAvailableSizes: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyInstancesDiskModifications: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyInstancesHighAvailability: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyInstancesOrioledb: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyInstancesReadReplicas: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyIntegrationsGithubConnections: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyIpv4: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyLogDrains: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyLogRetentionDays: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyObservabilityDashboardAdvancedMetrics: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyPitrAvailableVariants: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyProjectCloning: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyProjectPausing: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyProjectRestoreAfterExpiry: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyProjectScopedRoles: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxBytesPerSecond: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxChannelsPerClient: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxConcurrentUsers: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxEventsPerSecond: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxJoinsPerSecond: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxPayloadSizeInKb: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyRealtimeMaxPresenceEventsPerSecond: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyReplicationEtl: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityAuditLogsDays: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityEnforceMfa: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityIso27001Certificate: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityMemberRoles: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityPrivateLink: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecurityQuestionnaire: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeySecuritySoc2Report: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStorageIcebergCatalog: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStorageImageTransformations: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStorageMaxFileSize: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStorageMaxFileSizeConfigurable: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStoragePurgeCache: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyStorageVectorBuckets: + return true + case V1ListEntitlementsResponseEntitlementsFeatureKeyVanitySubdomain: + return true + default: + return false + } +} + // Defines values for V1ListEntitlementsResponseEntitlementsFeatureType. const ( V1ListEntitlementsResponseEntitlementsFeatureTypeBoolean V1ListEntitlementsResponseEntitlementsFeatureType = "boolean" @@ -1505,6 +4461,20 @@ const ( V1ListEntitlementsResponseEntitlementsFeatureTypeSet V1ListEntitlementsResponseEntitlementsFeatureType = "set" ) +// Valid indicates whether the value is a known member of the V1ListEntitlementsResponseEntitlementsFeatureType enum. +func (e V1ListEntitlementsResponseEntitlementsFeatureType) Valid() bool { + switch e { + case V1ListEntitlementsResponseEntitlementsFeatureTypeBoolean: + return true + case V1ListEntitlementsResponseEntitlementsFeatureTypeNumeric: + return true + case V1ListEntitlementsResponseEntitlementsFeatureTypeSet: + return true + default: + return false + } +} + // Defines values for V1ListEntitlementsResponseEntitlementsType. const ( V1ListEntitlementsResponseEntitlementsTypeBoolean V1ListEntitlementsResponseEntitlementsType = "boolean" @@ -1512,6 +4482,20 @@ const ( V1ListEntitlementsResponseEntitlementsTypeSet V1ListEntitlementsResponseEntitlementsType = "set" ) +// Valid indicates whether the value is a known member of the V1ListEntitlementsResponseEntitlementsType enum. +func (e V1ListEntitlementsResponseEntitlementsType) Valid() bool { + switch e { + case V1ListEntitlementsResponseEntitlementsTypeBoolean: + return true + case V1ListEntitlementsResponseEntitlementsTypeNumeric: + return true + case V1ListEntitlementsResponseEntitlementsTypeSet: + return true + default: + return false + } +} + // Defines values for V1OrganizationSlugResponseAllowedReleaseChannels. const ( V1OrganizationSlugResponseAllowedReleaseChannelsAlpha V1OrganizationSlugResponseAllowedReleaseChannels = "alpha" @@ -1522,6 +4506,26 @@ const ( V1OrganizationSlugResponseAllowedReleaseChannelsWithdrawn V1OrganizationSlugResponseAllowedReleaseChannels = "withdrawn" ) +// Valid indicates whether the value is a known member of the V1OrganizationSlugResponseAllowedReleaseChannels enum. +func (e V1OrganizationSlugResponseAllowedReleaseChannels) Valid() bool { + switch e { + case V1OrganizationSlugResponseAllowedReleaseChannelsAlpha: + return true + case V1OrganizationSlugResponseAllowedReleaseChannelsBeta: + return true + case V1OrganizationSlugResponseAllowedReleaseChannelsGa: + return true + case V1OrganizationSlugResponseAllowedReleaseChannelsInternal: + return true + case V1OrganizationSlugResponseAllowedReleaseChannelsPreview: + return true + case V1OrganizationSlugResponseAllowedReleaseChannelsWithdrawn: + return true + default: + return false + } +} + // Defines values for V1OrganizationSlugResponseOptInTags. const ( AIDATAGENERATOROPTIN V1OrganizationSlugResponseOptInTags = "AI_DATA_GENERATOR_OPT_IN" @@ -1529,6 +4533,20 @@ const ( AISQLGENERATOROPTIN V1OrganizationSlugResponseOptInTags = "AI_SQL_GENERATOR_OPT_IN" ) +// Valid indicates whether the value is a known member of the V1OrganizationSlugResponseOptInTags enum. +func (e V1OrganizationSlugResponseOptInTags) Valid() bool { + switch e { + case AIDATAGENERATOROPTIN: + return true + case AILOGGENERATOROPTIN: + return true + case AISQLGENERATOROPTIN: + return true + default: + return false + } +} + // Defines values for V1OrganizationSlugResponsePlan. const ( V1OrganizationSlugResponsePlanEnterprise V1OrganizationSlugResponsePlan = "enterprise" @@ -1538,6 +4556,24 @@ const ( V1OrganizationSlugResponsePlanTeam V1OrganizationSlugResponsePlan = "team" ) +// Valid indicates whether the value is a known member of the V1OrganizationSlugResponsePlan enum. +func (e V1OrganizationSlugResponsePlan) Valid() bool { + switch e { + case V1OrganizationSlugResponsePlanEnterprise: + return true + case V1OrganizationSlugResponsePlanFree: + return true + case V1OrganizationSlugResponsePlanPlatform: + return true + case V1OrganizationSlugResponsePlanPro: + return true + case V1OrganizationSlugResponsePlanTeam: + return true + default: + return false + } +} + // Defines values for V1PgbouncerConfigResponsePoolMode. const ( Session V1PgbouncerConfigResponsePoolMode = "session" @@ -1545,17 +4581,53 @@ const ( Transaction V1PgbouncerConfigResponsePoolMode = "transaction" ) +// Valid indicates whether the value is a known member of the V1PgbouncerConfigResponsePoolMode enum. +func (e V1PgbouncerConfigResponsePoolMode) Valid() bool { + switch e { + case Session: + return true + case Statement: + return true + case Transaction: + return true + default: + return false + } +} + // Defines values for V1ProjectAdvisorsResponseLintsCategories. const ( PERFORMANCE V1ProjectAdvisorsResponseLintsCategories = "PERFORMANCE" SECURITY V1ProjectAdvisorsResponseLintsCategories = "SECURITY" ) +// Valid indicates whether the value is a known member of the V1ProjectAdvisorsResponseLintsCategories enum. +func (e V1ProjectAdvisorsResponseLintsCategories) Valid() bool { + switch e { + case PERFORMANCE: + return true + case SECURITY: + return true + default: + return false + } +} + // Defines values for V1ProjectAdvisorsResponseLintsFacing. const ( EXTERNAL V1ProjectAdvisorsResponseLintsFacing = "EXTERNAL" ) +// Valid indicates whether the value is a known member of the V1ProjectAdvisorsResponseLintsFacing enum. +func (e V1ProjectAdvisorsResponseLintsFacing) Valid() bool { + switch e { + case EXTERNAL: + return true + default: + return false + } +} + // Defines values for V1ProjectAdvisorsResponseLintsLevel. const ( ERROR V1ProjectAdvisorsResponseLintsLevel = "ERROR" @@ -1563,6 +4635,20 @@ const ( WARN V1ProjectAdvisorsResponseLintsLevel = "WARN" ) +// Valid indicates whether the value is a known member of the V1ProjectAdvisorsResponseLintsLevel enum. +func (e V1ProjectAdvisorsResponseLintsLevel) Valid() bool { + switch e { + case ERROR: + return true + case INFO: + return true + case WARN: + return true + default: + return false + } +} + // Defines values for V1ProjectAdvisorsResponseLintsMetadataType. const ( V1ProjectAdvisorsResponseLintsMetadataTypeAuth V1ProjectAdvisorsResponseLintsMetadataType = "auth" @@ -1573,6 +4659,26 @@ const ( V1ProjectAdvisorsResponseLintsMetadataTypeView V1ProjectAdvisorsResponseLintsMetadataType = "view" ) +// Valid indicates whether the value is a known member of the V1ProjectAdvisorsResponseLintsMetadataType enum. +func (e V1ProjectAdvisorsResponseLintsMetadataType) Valid() bool { + switch e { + case V1ProjectAdvisorsResponseLintsMetadataTypeAuth: + return true + case V1ProjectAdvisorsResponseLintsMetadataTypeCompliance: + return true + case V1ProjectAdvisorsResponseLintsMetadataTypeExtension: + return true + case V1ProjectAdvisorsResponseLintsMetadataTypeFunction: + return true + case V1ProjectAdvisorsResponseLintsMetadataTypeTable: + return true + case V1ProjectAdvisorsResponseLintsMetadataTypeView: + return true + default: + return false + } +} + // Defines values for V1ProjectAdvisorsResponseLintsName. const ( AuthInsufficientMfaOptions V1ProjectAdvisorsResponseLintsName = "auth_insufficient_mfa_options" @@ -1606,6 +4712,72 @@ const ( VulnerablePostgresVersion V1ProjectAdvisorsResponseLintsName = "vulnerable_postgres_version" ) +// Valid indicates whether the value is a known member of the V1ProjectAdvisorsResponseLintsName enum. +func (e V1ProjectAdvisorsResponseLintsName) Valid() bool { + switch e { + case AuthInsufficientMfaOptions: + return true + case AuthLeakedPasswordProtection: + return true + case AuthOtpLongExpiry: + return true + case AuthOtpShortLength: + return true + case AuthPasswordPolicyMissing: + return true + case AuthRlsInitplan: + return true + case AuthUsersExposed: + return true + case DuplicateIndex: + return true + case ExtensionInPublic: + return true + case ForeignTableInApi: + return true + case FunctionSearchPathMutable: + return true + case LeakedServiceKey: + return true + case MaterializedViewInApi: + return true + case MultiplePermissivePolicies: + return true + case NetworkRestrictionsNotSet: + return true + case NoBackupAdmin: + return true + case NoPrimaryKey: + return true + case PasswordRequirementsMinLength: + return true + case PitrNotEnabled: + return true + case PolicyExistsRlsDisabled: + return true + case RlsDisabledInPublic: + return true + case RlsEnabledNoPolicy: + return true + case RlsReferencesUserMetadata: + return true + case SecurityDefinerView: + return true + case SslNotEnforced: + return true + case UnindexedForeignKeys: + return true + case UnsupportedRegTypes: + return true + case UnusedIndex: + return true + case VulnerablePostgresVersion: + return true + default: + return false + } +} + // Defines values for V1ProjectResponseStatus. const ( V1ProjectResponseStatusACTIVEHEALTHY V1ProjectResponseStatus = "ACTIVE_HEALTHY" @@ -1625,6 +4797,44 @@ const ( V1ProjectResponseStatusUPGRADING V1ProjectResponseStatus = "UPGRADING" ) +// Valid indicates whether the value is a known member of the V1ProjectResponseStatus enum. +func (e V1ProjectResponseStatus) Valid() bool { + switch e { + case V1ProjectResponseStatusACTIVEHEALTHY: + return true + case V1ProjectResponseStatusACTIVEUNHEALTHY: + return true + case V1ProjectResponseStatusCOMINGUP: + return true + case V1ProjectResponseStatusGOINGDOWN: + return true + case V1ProjectResponseStatusINACTIVE: + return true + case V1ProjectResponseStatusINITFAILED: + return true + case V1ProjectResponseStatusPAUSEFAILED: + return true + case V1ProjectResponseStatusPAUSING: + return true + case V1ProjectResponseStatusREMOVED: + return true + case V1ProjectResponseStatusRESIZING: + return true + case V1ProjectResponseStatusRESTARTING: + return true + case V1ProjectResponseStatusRESTOREFAILED: + return true + case V1ProjectResponseStatusRESTORING: + return true + case V1ProjectResponseStatusUNKNOWN: + return true + case V1ProjectResponseStatusUPGRADING: + return true + default: + return false + } +} + // Defines values for V1ProjectWithDatabaseResponseStatus. const ( V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY V1ProjectWithDatabaseResponseStatus = "ACTIVE_HEALTHY" @@ -1644,6 +4854,44 @@ const ( V1ProjectWithDatabaseResponseStatusUPGRADING V1ProjectWithDatabaseResponseStatus = "UPGRADING" ) +// Valid indicates whether the value is a known member of the V1ProjectWithDatabaseResponseStatus enum. +func (e V1ProjectWithDatabaseResponseStatus) Valid() bool { + switch e { + case V1ProjectWithDatabaseResponseStatusACTIVEHEALTHY: + return true + case V1ProjectWithDatabaseResponseStatusACTIVEUNHEALTHY: + return true + case V1ProjectWithDatabaseResponseStatusCOMINGUP: + return true + case V1ProjectWithDatabaseResponseStatusGOINGDOWN: + return true + case V1ProjectWithDatabaseResponseStatusINACTIVE: + return true + case V1ProjectWithDatabaseResponseStatusINITFAILED: + return true + case V1ProjectWithDatabaseResponseStatusPAUSEFAILED: + return true + case V1ProjectWithDatabaseResponseStatusPAUSING: + return true + case V1ProjectWithDatabaseResponseStatusREMOVED: + return true + case V1ProjectWithDatabaseResponseStatusRESIZING: + return true + case V1ProjectWithDatabaseResponseStatusRESTARTING: + return true + case V1ProjectWithDatabaseResponseStatusRESTOREFAILED: + return true + case V1ProjectWithDatabaseResponseStatusRESTORING: + return true + case V1ProjectWithDatabaseResponseStatusUNKNOWN: + return true + case V1ProjectWithDatabaseResponseStatusUPGRADING: + return true + default: + return false + } +} + // Defines values for V1RestorePointResponseStatus. const ( V1RestorePointResponseStatusAVAILABLE V1RestorePointResponseStatus = "AVAILABLE" @@ -1652,11 +4900,37 @@ const ( V1RestorePointResponseStatusREMOVED V1RestorePointResponseStatus = "REMOVED" ) +// Valid indicates whether the value is a known member of the V1RestorePointResponseStatus enum. +func (e V1RestorePointResponseStatus) Valid() bool { + switch e { + case V1RestorePointResponseStatusAVAILABLE: + return true + case V1RestorePointResponseStatusFAILED: + return true + case V1RestorePointResponseStatusPENDING: + return true + case V1RestorePointResponseStatusREMOVED: + return true + default: + return false + } +} + // Defines values for V1ServiceHealthResponseInfo0Name. const ( GoTrue V1ServiceHealthResponseInfo0Name = "GoTrue" ) +// Valid indicates whether the value is a known member of the V1ServiceHealthResponseInfo0Name enum. +func (e V1ServiceHealthResponseInfo0Name) Valid() bool { + switch e { + case GoTrue: + return true + default: + return false + } +} + // Defines values for V1ServiceHealthResponseName. const ( V1ServiceHealthResponseNameAuth V1ServiceHealthResponseName = "auth" @@ -1669,6 +4943,30 @@ const ( V1ServiceHealthResponseNameStorage V1ServiceHealthResponseName = "storage" ) +// Valid indicates whether the value is a known member of the V1ServiceHealthResponseName enum. +func (e V1ServiceHealthResponseName) Valid() bool { + switch e { + case V1ServiceHealthResponseNameAuth: + return true + case V1ServiceHealthResponseNameDb: + return true + case V1ServiceHealthResponseNameDbPostgresUser: + return true + case V1ServiceHealthResponseNamePgBouncer: + return true + case V1ServiceHealthResponseNamePooler: + return true + case V1ServiceHealthResponseNameRealtime: + return true + case V1ServiceHealthResponseNameRest: + return true + case V1ServiceHealthResponseNameStorage: + return true + default: + return false + } +} + // Defines values for V1ServiceHealthResponseStatus. const ( ACTIVEHEALTHY V1ServiceHealthResponseStatus = "ACTIVE_HEALTHY" @@ -1676,6 +4974,20 @@ const ( UNHEALTHY V1ServiceHealthResponseStatus = "UNHEALTHY" ) +// Valid indicates whether the value is a known member of the V1ServiceHealthResponseStatus enum. +func (e V1ServiceHealthResponseStatus) Valid() bool { + switch e { + case ACTIVEHEALTHY: + return true + case COMINGUP: + return true + case UNHEALTHY: + return true + default: + return false + } +} + // Defines values for VanitySubdomainConfigResponseStatus. const ( Active VanitySubdomainConfigResponseStatus = "active" @@ -1683,6 +4995,20 @@ const ( NotUsed VanitySubdomainConfigResponseStatus = "not-used" ) +// Valid indicates whether the value is a known member of the VanitySubdomainConfigResponseStatus enum. +func (e VanitySubdomainConfigResponseStatus) Valid() bool { + switch e { + case Active: + return true + case CustomDomainUsed: + return true + case NotUsed: + return true + default: + return false + } +} + // Defines values for V1AuthorizeUserParamsResponseType. const ( V1AuthorizeUserParamsResponseTypeCode V1AuthorizeUserParamsResponseType = "code" @@ -1690,6 +5016,20 @@ const ( V1AuthorizeUserParamsResponseTypeToken V1AuthorizeUserParamsResponseType = "token" ) +// Valid indicates whether the value is a known member of the V1AuthorizeUserParamsResponseType enum. +func (e V1AuthorizeUserParamsResponseType) Valid() bool { + switch e { + case V1AuthorizeUserParamsResponseTypeCode: + return true + case V1AuthorizeUserParamsResponseTypeIdTokenToken: + return true + case V1AuthorizeUserParamsResponseTypeToken: + return true + default: + return false + } +} + // Defines values for V1AuthorizeUserParamsCodeChallengeMethod. const ( V1AuthorizeUserParamsCodeChallengeMethodPlain V1AuthorizeUserParamsCodeChallengeMethod = "plain" @@ -1697,6 +5037,20 @@ const ( V1AuthorizeUserParamsCodeChallengeMethodSha256 V1AuthorizeUserParamsCodeChallengeMethod = "sha256" ) +// Valid indicates whether the value is a known member of the V1AuthorizeUserParamsCodeChallengeMethod enum. +func (e V1AuthorizeUserParamsCodeChallengeMethod) Valid() bool { + switch e { + case V1AuthorizeUserParamsCodeChallengeMethodPlain: + return true + case V1AuthorizeUserParamsCodeChallengeMethodS256: + return true + case V1AuthorizeUserParamsCodeChallengeMethodSha256: + return true + default: + return false + } +} + // Defines values for V1OauthAuthorizeProjectClaimParamsResponseType. const ( V1OauthAuthorizeProjectClaimParamsResponseTypeCode V1OauthAuthorizeProjectClaimParamsResponseType = "code" @@ -1704,6 +5058,20 @@ const ( V1OauthAuthorizeProjectClaimParamsResponseTypeToken V1OauthAuthorizeProjectClaimParamsResponseType = "token" ) +// Valid indicates whether the value is a known member of the V1OauthAuthorizeProjectClaimParamsResponseType enum. +func (e V1OauthAuthorizeProjectClaimParamsResponseType) Valid() bool { + switch e { + case V1OauthAuthorizeProjectClaimParamsResponseTypeCode: + return true + case V1OauthAuthorizeProjectClaimParamsResponseTypeIdTokenToken: + return true + case V1OauthAuthorizeProjectClaimParamsResponseTypeToken: + return true + default: + return false + } +} + // Defines values for V1OauthAuthorizeProjectClaimParamsCodeChallengeMethod. const ( V1OauthAuthorizeProjectClaimParamsCodeChallengeMethodPlain V1OauthAuthorizeProjectClaimParamsCodeChallengeMethod = "plain" @@ -1711,6 +5079,20 @@ const ( V1OauthAuthorizeProjectClaimParamsCodeChallengeMethodSha256 V1OauthAuthorizeProjectClaimParamsCodeChallengeMethod = "sha256" ) +// Valid indicates whether the value is a known member of the V1OauthAuthorizeProjectClaimParamsCodeChallengeMethod enum. +func (e V1OauthAuthorizeProjectClaimParamsCodeChallengeMethod) Valid() bool { + switch e { + case V1OauthAuthorizeProjectClaimParamsCodeChallengeMethodPlain: + return true + case V1OauthAuthorizeProjectClaimParamsCodeChallengeMethodS256: + return true + case V1OauthAuthorizeProjectClaimParamsCodeChallengeMethodSha256: + return true + default: + return false + } +} + // Defines values for V1GetAllProjectsForOrganizationParamsSort. const ( CreatedAsc V1GetAllProjectsForOrganizationParamsSort = "created_asc" @@ -1719,6 +5101,22 @@ const ( NameDesc V1GetAllProjectsForOrganizationParamsSort = "name_desc" ) +// Valid indicates whether the value is a known member of the V1GetAllProjectsForOrganizationParamsSort enum. +func (e V1GetAllProjectsForOrganizationParamsSort) Valid() bool { + switch e { + case CreatedAsc: + return true + case CreatedDesc: + return true + case NameAsc: + return true + case NameDesc: + return true + default: + return false + } +} + // Defines values for V1GetAvailableRegionsParamsContinent. const ( AF V1GetAvailableRegionsParamsContinent = "AF" @@ -1730,6 +5128,28 @@ const ( SA V1GetAvailableRegionsParamsContinent = "SA" ) +// Valid indicates whether the value is a known member of the V1GetAvailableRegionsParamsContinent enum. +func (e V1GetAvailableRegionsParamsContinent) Valid() bool { + switch e { + case AF: + return true + case AN: + return true + case AS: + return true + case EU: + return true + case NA: + return true + case OC: + return true + case SA: + return true + default: + return false + } +} + // Defines values for V1GetAvailableRegionsParamsDesiredInstanceSize. const ( V1GetAvailableRegionsParamsDesiredInstanceSizeLarge V1GetAvailableRegionsParamsDesiredInstanceSize = "large" @@ -1753,11 +5173,67 @@ const ( V1GetAvailableRegionsParamsDesiredInstanceSizeXlarge V1GetAvailableRegionsParamsDesiredInstanceSize = "xlarge" ) +// Valid indicates whether the value is a known member of the V1GetAvailableRegionsParamsDesiredInstanceSize enum. +func (e V1GetAvailableRegionsParamsDesiredInstanceSize) Valid() bool { + switch e { + case V1GetAvailableRegionsParamsDesiredInstanceSizeLarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeMedium: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeMicro: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN12xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN16xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN24xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN24xlargeHighMemory: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN24xlargeOptimizedCpu: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN24xlargeOptimizedMemory: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN2xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN48xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN48xlargeHighMemory: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN48xlargeOptimizedCpu: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN48xlargeOptimizedMemory: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN4xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeN8xlarge: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeNano: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeSmall: + return true + case V1GetAvailableRegionsParamsDesiredInstanceSizeXlarge: + return true + default: + return false + } +} + // Defines values for V1GetSecurityAdvisorsParamsLintType. const ( Sql V1GetSecurityAdvisorsParamsLintType = "sql" ) +// Valid indicates whether the value is a known member of the V1GetSecurityAdvisorsParamsLintType enum. +func (e V1GetSecurityAdvisorsParamsLintType) Valid() bool { + switch e { + case Sql: + return true + default: + return false + } +} + // Defines values for V1GetProjectFunctionCombinedStatsParamsInterval. const ( V1GetProjectFunctionCombinedStatsParamsIntervalN15min V1GetProjectFunctionCombinedStatsParamsInterval = "15min" @@ -1766,6 +5242,22 @@ const ( V1GetProjectFunctionCombinedStatsParamsIntervalN3hr V1GetProjectFunctionCombinedStatsParamsInterval = "3hr" ) +// Valid indicates whether the value is a known member of the V1GetProjectFunctionCombinedStatsParamsInterval enum. +func (e V1GetProjectFunctionCombinedStatsParamsInterval) Valid() bool { + switch e { + case V1GetProjectFunctionCombinedStatsParamsIntervalN15min: + return true + case V1GetProjectFunctionCombinedStatsParamsIntervalN1day: + return true + case V1GetProjectFunctionCombinedStatsParamsIntervalN1hr: + return true + case V1GetProjectFunctionCombinedStatsParamsIntervalN3hr: + return true + default: + return false + } +} + // Defines values for V1GetProjectUsageApiCountParamsInterval. const ( V1GetProjectUsageApiCountParamsIntervalN15min V1GetProjectUsageApiCountParamsInterval = "15min" @@ -1777,6 +5269,28 @@ const ( V1GetProjectUsageApiCountParamsIntervalN7day V1GetProjectUsageApiCountParamsInterval = "7day" ) +// Valid indicates whether the value is a known member of the V1GetProjectUsageApiCountParamsInterval enum. +func (e V1GetProjectUsageApiCountParamsInterval) Valid() bool { + switch e { + case V1GetProjectUsageApiCountParamsIntervalN15min: + return true + case V1GetProjectUsageApiCountParamsIntervalN1day: + return true + case V1GetProjectUsageApiCountParamsIntervalN1hr: + return true + case V1GetProjectUsageApiCountParamsIntervalN30min: + return true + case V1GetProjectUsageApiCountParamsIntervalN3day: + return true + case V1GetProjectUsageApiCountParamsIntervalN3hr: + return true + case V1GetProjectUsageApiCountParamsIntervalN7day: + return true + default: + return false + } +} + // Defines values for V1RemoveProjectAddonParamsAddonVariant0. const ( V1RemoveProjectAddonParamsAddonVariant0Ci12xlarge V1RemoveProjectAddonParamsAddonVariant0 = "ci_12xlarge" @@ -1799,11 +5313,65 @@ const ( V1RemoveProjectAddonParamsAddonVariant0CiXlarge V1RemoveProjectAddonParamsAddonVariant0 = "ci_xlarge" ) +// Valid indicates whether the value is a known member of the V1RemoveProjectAddonParamsAddonVariant0 enum. +func (e V1RemoveProjectAddonParamsAddonVariant0) Valid() bool { + switch e { + case V1RemoveProjectAddonParamsAddonVariant0Ci12xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci16xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci24xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci24xlargeHighMemory: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci24xlargeOptimizedCpu: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci24xlargeOptimizedMemory: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci2xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci48xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci48xlargeHighMemory: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci48xlargeOptimizedCpu: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci48xlargeOptimizedMemory: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci4xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0Ci8xlarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0CiLarge: + return true + case V1RemoveProjectAddonParamsAddonVariant0CiMedium: + return true + case V1RemoveProjectAddonParamsAddonVariant0CiMicro: + return true + case V1RemoveProjectAddonParamsAddonVariant0CiSmall: + return true + case V1RemoveProjectAddonParamsAddonVariant0CiXlarge: + return true + default: + return false + } +} + // Defines values for V1RemoveProjectAddonParamsAddonVariant1. const ( V1RemoveProjectAddonParamsAddonVariant1CdDefault V1RemoveProjectAddonParamsAddonVariant1 = "cd_default" ) +// Valid indicates whether the value is a known member of the V1RemoveProjectAddonParamsAddonVariant1 enum. +func (e V1RemoveProjectAddonParamsAddonVariant1) Valid() bool { + switch e { + case V1RemoveProjectAddonParamsAddonVariant1CdDefault: + return true + default: + return false + } +} + // Defines values for V1RemoveProjectAddonParamsAddonVariant2. const ( V1RemoveProjectAddonParamsAddonVariant2Pitr14 V1RemoveProjectAddonParamsAddonVariant2 = "pitr_14" @@ -1811,11 +5379,35 @@ const ( V1RemoveProjectAddonParamsAddonVariant2Pitr7 V1RemoveProjectAddonParamsAddonVariant2 = "pitr_7" ) +// Valid indicates whether the value is a known member of the V1RemoveProjectAddonParamsAddonVariant2 enum. +func (e V1RemoveProjectAddonParamsAddonVariant2) Valid() bool { + switch e { + case V1RemoveProjectAddonParamsAddonVariant2Pitr14: + return true + case V1RemoveProjectAddonParamsAddonVariant2Pitr28: + return true + case V1RemoveProjectAddonParamsAddonVariant2Pitr7: + return true + default: + return false + } +} + // Defines values for V1RemoveProjectAddonParamsAddonVariant3. const ( V1RemoveProjectAddonParamsAddonVariant3Ipv4Default V1RemoveProjectAddonParamsAddonVariant3 = "ipv4_default" ) +// Valid indicates whether the value is a known member of the V1RemoveProjectAddonParamsAddonVariant3 enum. +func (e V1RemoveProjectAddonParamsAddonVariant3) Valid() bool { + switch e { + case V1RemoveProjectAddonParamsAddonVariant3Ipv4Default: + return true + default: + return false + } +} + // Defines values for V1GetServicesHealthParamsServices. const ( V1GetServicesHealthParamsServicesAuth V1GetServicesHealthParamsServices = "auth" @@ -1828,18 +5420,66 @@ const ( V1GetServicesHealthParamsServicesStorage V1GetServicesHealthParamsServices = "storage" ) +// Valid indicates whether the value is a known member of the V1GetServicesHealthParamsServices enum. +func (e V1GetServicesHealthParamsServices) Valid() bool { + switch e { + case V1GetServicesHealthParamsServicesAuth: + return true + case V1GetServicesHealthParamsServicesDb: + return true + case V1GetServicesHealthParamsServicesDbPostgresUser: + return true + case V1GetServicesHealthParamsServicesPgBouncer: + return true + case V1GetServicesHealthParamsServicesPooler: + return true + case V1GetServicesHealthParamsServicesRealtime: + return true + case V1GetServicesHealthParamsServicesRest: + return true + case V1GetServicesHealthParamsServicesStorage: + return true + default: + return false + } +} + // Defines values for V1ListAllSnippetsParamsSortBy. const ( InsertedAt V1ListAllSnippetsParamsSortBy = "inserted_at" Name V1ListAllSnippetsParamsSortBy = "name" ) +// Valid indicates whether the value is a known member of the V1ListAllSnippetsParamsSortBy enum. +func (e V1ListAllSnippetsParamsSortBy) Valid() bool { + switch e { + case InsertedAt: + return true + case Name: + return true + default: + return false + } +} + // Defines values for V1ListAllSnippetsParamsSortOrder. const ( Asc V1ListAllSnippetsParamsSortOrder = "asc" Desc V1ListAllSnippetsParamsSortOrder = "desc" ) +// Valid indicates whether the value is a known member of the V1ListAllSnippetsParamsSortOrder enum. +func (e V1ListAllSnippetsParamsSortOrder) Valid() bool { + switch e { + case Asc: + return true + case Desc: + return true + default: + return false + } +} + // AcceptInviteExternalUserJitAccessBody defines model for AcceptInviteExternalUserJitAccessBody. type AcceptInviteExternalUserJitAccessBody struct { Email openapi_types.Email `json:"email"` @@ -2243,7 +5883,7 @@ type BranchResponse struct { IsDefault bool `json:"is_default"` // LatestCheckRunId This field is deprecated and will not be populated. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set LatestCheckRunId *float32 `json:"latest_check_run_id,omitempty"` Name string `json:"name"` NotifyUrl *string `json:"notify_url,omitempty"` @@ -2255,7 +5895,7 @@ type BranchResponse struct { ReviewRequestedAt *time.Time `json:"review_requested_at,omitempty"` // Status This field is deprecated. List action runs to get branch status instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Status BranchResponseStatus `json:"status"` UpdatedAt time.Time `json:"updated_at"` WithData bool `json:"with_data"` @@ -2382,10 +6022,10 @@ type CreateProjectClaimTokenResponse struct { type CreateProviderBody struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` Domains *[]string `json:"domains,omitempty"` @@ -2409,21 +6049,19 @@ type CreateProviderResponse struct { Domains *[]struct { CreatedAt *string `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` - Id string `json:"id"` UpdatedAt *string `json:"updated_at,omitempty"` } `json:"domains,omitempty"` Id string `json:"id"` Saml *struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` EntityId string `json:"entity_id"` - Id string `json:"id"` MetadataUrl *string `json:"metadata_url,omitempty"` MetadataXml *string `json:"metadata_xml,omitempty"` NameIdFormat *string `json:"name_id_format,omitempty"` @@ -2595,9 +6233,9 @@ type CreateSigningKeyBodyStatus string // CreateThirdPartyAuthBody defines model for CreateThirdPartyAuthBody. type CreateThirdPartyAuthBody struct { - CustomJwks *interface{} `json:"custom_jwks,omitempty"` - JwksUrl *string `json:"jwks_url,omitempty"` - OidcIssuerUrl *string `json:"oidc_issuer_url,omitempty"` + CustomJwks interface{} `json:"custom_jwks,omitempty"` + JwksUrl *string `json:"jwks_url,omitempty"` + OidcIssuerUrl *string `json:"oidc_issuer_url,omitempty"` } // DatabaseUpgradeStatusResponse defines model for DatabaseUpgradeStatusResponse. @@ -2624,21 +6262,19 @@ type DeleteProviderResponse struct { Domains *[]struct { CreatedAt *string `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` - Id string `json:"id"` UpdatedAt *string `json:"updated_at,omitempty"` } `json:"domains,omitempty"` Id string `json:"id"` Saml *struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` EntityId string `json:"entity_id"` - Id string `json:"id"` MetadataUrl *string `json:"metadata_url,omitempty"` MetadataXml *string `json:"metadata_xml,omitempty"` NameIdFormat *string `json:"name_id_format,omitempty"` @@ -2850,21 +6486,19 @@ type GetProviderResponse struct { Domains *[]struct { CreatedAt *string `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` - Id string `json:"id"` UpdatedAt *string `json:"updated_at,omitempty"` } `json:"domains,omitempty"` Id string `json:"id"` Saml *struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` EntityId string `json:"entity_id"` - Id string `json:"id"` MetadataUrl *string `json:"metadata_url,omitempty"` MetadataXml *string `json:"metadata_xml,omitempty"` NameIdFormat *string `json:"name_id_format,omitempty"` @@ -3068,8 +6702,8 @@ type ListProjectAddonsResponse struct { Id ListProjectAddonsResponse_AvailableAddons_Variants_Id `json:"id"` // Meta Any JSON-serializable value - Meta *interface{} `json:"meta,omitempty"` - Name string `json:"name"` + Meta interface{} `json:"meta,omitempty"` + Name string `json:"name"` Price struct { Amount float32 `json:"amount"` Description string `json:"description"` @@ -3084,8 +6718,8 @@ type ListProjectAddonsResponse struct { Id ListProjectAddonsResponse_SelectedAddons_Variant_Id `json:"id"` // Meta Any JSON-serializable value - Meta *interface{} `json:"meta,omitempty"` - Name string `json:"name"` + Meta interface{} `json:"meta,omitempty"` + Name string `json:"name"` Price struct { Amount float32 `json:"amount"` Description string `json:"description"` @@ -3179,21 +6813,19 @@ type ListProvidersResponse struct { Domains *[]struct { CreatedAt *string `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` - Id string `json:"id"` UpdatedAt *string `json:"updated_at,omitempty"` } `json:"domains,omitempty"` Id string `json:"id"` Saml *struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` EntityId string `json:"entity_id"` - Id string `json:"id"` MetadataUrl *string `json:"metadata_url,omitempty"` MetadataXml *string `json:"metadata_xml,omitempty"` NameIdFormat *string `json:"name_id_format,omitempty"` @@ -3427,7 +7059,7 @@ type OrganizationProjectsResponseProjectsStatus string // OrganizationResponseV1 defines model for OrganizationResponseV1. type OrganizationResponseV1 struct { // Id Deprecated: Use `slug` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Id string `json:"id"` Name string `json:"name"` @@ -3548,7 +7180,7 @@ type ProjectUpgradeEligibilityResponse struct { LegacyAuthCustomRoles []string `json:"legacy_auth_custom_roles"` // ObjectsToBeDropped Use validation_errors instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set ObjectsToBeDropped []string `json:"objects_to_be_dropped"` TargetUpgradeVersions []struct { AppVersion string `json:"app_version"` @@ -3557,11 +7189,11 @@ type ProjectUpgradeEligibilityResponse struct { } `json:"target_upgrade_versions"` // UnsupportedExtensions Use validation_errors instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set UnsupportedExtensions []string `json:"unsupported_extensions"` // UserDefinedObjectsInInternalSchemas Use validation_errors instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set UserDefinedObjectsInInternalSchemas []string `json:"user_defined_objects_in_internal_schemas"` ValidationErrors []ProjectUpgradeEligibilityResponse_ValidationErrors_Item `json:"validation_errors"` Warnings []ProjectUpgradeEligibilityResponse_Warnings_Item `json:"warnings"` @@ -3929,7 +7561,7 @@ type SnippetListDataVisibility string type SnippetResponse struct { Content struct { // Favorite Deprecated: Rely on root-level favorite property instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Favorite *bool `json:"favorite,omitempty"` SchemaVersion string `json:"schema_version"` Sql string `json:"sql"` @@ -4331,7 +7963,7 @@ type UpdateBranchBody struct { RequestReview *bool `json:"request_review,omitempty"` // ResetOnPush This field is deprecated and will be ignored. Use v1-reset-a-branch endpoint directly instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set ResetOnPush *bool `json:"reset_on_push,omitempty"` Status *UpdateBranchBodyStatus `json:"status,omitempty"` } @@ -4463,10 +8095,10 @@ type UpdatePostgresConfigBodySessionReplicationRole string type UpdateProviderBody struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` Domains *[]string `json:"domains,omitempty"` @@ -4484,21 +8116,19 @@ type UpdateProviderResponse struct { Domains *[]struct { CreatedAt *string `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` - Id string `json:"id"` UpdatedAt *string `json:"updated_at,omitempty"` } `json:"domains,omitempty"` Id string `json:"id"` Saml *struct { AttributeMapping *struct { Keys map[string]struct { - Array *bool `json:"array,omitempty"` - Default *interface{} `json:"default,omitempty"` - Name *string `json:"name,omitempty"` - Names *[]string `json:"names,omitempty"` + Array *bool `json:"array,omitempty"` + Default interface{} `json:"default,omitempty"` + Name *string `json:"name,omitempty"` + Names *[]string `json:"names,omitempty"` } `json:"keys"` } `json:"attribute_mapping,omitempty"` EntityId string `json:"entity_id"` - Id string `json:"id"` MetadataUrl *string `json:"metadata_url,omitempty"` MetadataXml *string `json:"metadata_xml,omitempty"` NameIdFormat *string `json:"name_id_format,omitempty"` @@ -4705,25 +8335,25 @@ type V1CreateProjectBody struct { HighAvailability *bool `json:"high_availability,omitempty"` // KpsEnabled This field is deprecated and is ignored in this request - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set KpsEnabled *bool `json:"kps_enabled,omitempty"` // Name Name of your project Name string `json:"name"` // OrganizationId Deprecated: Use `organization_slug` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set OrganizationId *string `json:"organization_id,omitempty"` // OrganizationSlug Organization slug OrganizationSlug string `json:"organization_slug"` // Plan Subscription Plan is now set on organization level and is ignored in this request - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Plan *V1CreateProjectBodyPlan `json:"plan,omitempty"` // Region Region you want your server to reside in. Use region_selection instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Region *V1CreateProjectBodyRegion `json:"region,omitempty"` // RegionSelection Region selection. Only one of region or region_selection can be specified. @@ -5020,14 +8650,14 @@ type V1ProjectResponse struct { CreatedAt string `json:"created_at"` // Id Deprecated: Use `ref` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Id string `json:"id"` // Name Name of your project Name string `json:"name"` // OrganizationId Deprecated: Use `organization_slug` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set OrganizationId string `json:"organization_id"` // OrganizationSlug Organization slug @@ -5063,14 +8693,14 @@ type V1ProjectWithDatabaseResponse struct { } `json:"database"` // Id Deprecated: Use `ref` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Id string `json:"id"` // Name Name of your project Name string `json:"name"` // OrganizationId Deprecated: Use `organization_slug` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set OrganizationId string `json:"organization_id"` // OrganizationSlug Organization slug @@ -5130,7 +8760,7 @@ type V1ServiceHealthResponse struct { Error *string `json:"error,omitempty"` // Healthy Deprecated. Use `status` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Healthy bool `json:"healthy"` Info *V1ServiceHealthResponse_Info `json:"info,omitempty"` Name V1ServiceHealthResponseName `json:"name"` @@ -5153,7 +8783,7 @@ type V1ServiceHealthResponseInfo1 struct { DbConnected bool `json:"db_connected"` // Healthy Deprecated. Use `status` instead. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Healthy bool `json:"healthy"` ReplicationConnected bool `json:"replication_connected"` } @@ -5247,6 +8877,9 @@ type VanitySubdomainConfigResponse struct { // VanitySubdomainConfigResponseStatus defines model for VanitySubdomainConfigResponse.Status. type VanitySubdomainConfigResponseStatus string +// bearerContextKey is the context key for bearer security scheme +type bearerContextKey string + // V1DeleteABranchParams defines parameters for V1DeleteABranch. type V1DeleteABranchParams struct { // Force If set to false, schedule deletion with 1-hour grace period (only when soft deletion is enabled). @@ -5864,9 +9497,11 @@ func (a GetProjectDbMetadataResponse_Databases_Item) MarshalJSON() ([]byte, erro return nil, fmt.Errorf("error marshaling 'name': %w", err) } - object["schemas"], err = json.Marshal(a.Schemas) - if err != nil { - return nil, fmt.Errorf("error marshaling 'schemas': %w", err) + if a.Schemas != nil { + object["schemas"], err = json.Marshal(a.Schemas) + if err != nil { + return nil, fmt.Errorf("error marshaling 'schemas': %w", err) + } } for fieldName, field := range a.AdditionalProperties { From 4c88ac46b9cfa37a1e70d54200726571028cc081 Mon Sep 17 00:00:00 2001 From: avallete Date: Tue, 21 Jul 2026 15:26:25 +0200 Subject: [PATCH 2/2] fix(api): handle regenerated SSO attribute mapping --- apps/cli-go/internal/sso/create/create.go | 10 +--------- .../internal/sso/internal/saml/files_test.go | 18 +++++------------- apps/cli-go/internal/sso/update/update.go | 10 +--------- 3 files changed, 7 insertions(+), 31 deletions(-) diff --git a/apps/cli-go/internal/sso/create/create.go b/apps/cli-go/internal/sso/create/create.go index acf3eb14e5..3716e5ee73 100644 --- a/apps/cli-go/internal/sso/create/create.go +++ b/apps/cli-go/internal/sso/create/create.go @@ -52,15 +52,7 @@ func Run(ctx context.Context, params RunParams) error { } if params.AttributeMapping != "" { - body.AttributeMapping = &struct { - Keys map[string]struct { - Array *bool "json:\"array,omitempty\"" - Default *any "json:\"default,omitempty\"" - Name *string "json:\"name,omitempty\"" - Names *[]string "json:\"names,omitempty\"" - } "json:\"keys\"" - }{} - if err := saml.ReadAttributeMappingFile(Fs, params.AttributeMapping, body.AttributeMapping); err != nil { + if err := saml.ReadAttributeMappingFile(Fs, params.AttributeMapping, &body.AttributeMapping); err != nil { return err } } diff --git a/apps/cli-go/internal/sso/internal/saml/files_test.go b/apps/cli-go/internal/sso/internal/saml/files_test.go index cc5c59b854..cd512a599e 100644 --- a/apps/cli-go/internal/sso/internal/saml/files_test.go +++ b/apps/cli-go/internal/sso/internal/saml/files_test.go @@ -22,7 +22,7 @@ func TestReadAttributeMappingFile(t *testing.T) { fs := afero.NewMemMapFs() require.NoError(t, afero.WriteFile(fs, "/not-valid-json", []byte("not-valid-JSON"), 0755)) var body api.CreateProviderBody - err := ReadAttributeMappingFile(fs, "/not-valid-json", body.AttributeMapping) + err := ReadAttributeMappingFile(fs, "/not-valid-json", &body.AttributeMapping) assert.ErrorContains(t, err, "failed to parse attribute mapping") }) @@ -30,24 +30,16 @@ func TestReadAttributeMappingFile(t *testing.T) { fs := afero.NewMemMapFs() data := `{"keys":{"abc":{"names":["x","y","z"],"default":2,"name":"k"}}}` require.NoError(t, afero.WriteFile(fs, "/valid-json", []byte(data), 0755)) - body := api.CreateProviderBody{ - AttributeMapping: &struct { - Keys map[string]struct { - Array *bool "json:\"array,omitempty\"" - Default *any "json:\"default,omitempty\"" - Name *string "json:\"name,omitempty\"" - Names *[]string "json:\"names,omitempty\"" - } "json:\"keys\"" - }{}, - } - err := ReadAttributeMappingFile(fs, "/valid-json", body.AttributeMapping) + var body api.CreateProviderBody + err := ReadAttributeMappingFile(fs, "/valid-json", &body.AttributeMapping) assert.NoError(t, err) + require.NotNil(t, body.AttributeMapping) assert.Len(t, body.AttributeMapping.Keys, 1) value := body.AttributeMapping.Keys["abc"] assert.Equal(t, cast.Ptr("k"), value.Name) assert.Equal(t, &[]string{"x", "y", "z"}, value.Names) assert.NotNil(t, value.Default) - assert.Equal(t, float64(2), *value.Default) + assert.Equal(t, float64(2), value.Default) }) } diff --git a/apps/cli-go/internal/sso/update/update.go b/apps/cli-go/internal/sso/update/update.go index 4e54b8961e..6a4dc9b294 100644 --- a/apps/cli-go/internal/sso/update/update.go +++ b/apps/cli-go/internal/sso/update/update.go @@ -74,15 +74,7 @@ func Run(ctx context.Context, params RunParams) error { } if params.AttributeMapping != "" { - body.AttributeMapping = &struct { - Keys map[string]struct { - Array *bool "json:\"array,omitempty\"" - Default *any "json:\"default,omitempty\"" - Name *string "json:\"name,omitempty\"" - Names *[]string "json:\"names,omitempty\"" - } "json:\"keys\"" - }{} - if err := saml.ReadAttributeMappingFile(Fs, params.AttributeMapping, body.AttributeMapping); err != nil { + if err := saml.ReadAttributeMappingFile(Fs, params.AttributeMapping, &body.AttributeMapping); err != nil { return err } }