From f84e5675d202dfdbe6b6b05e3d3a8ecce7ed5297 Mon Sep 17 00:00:00 2001 From: Sean Roberts Date: Thu, 30 Oct 2025 09:52:51 -0400 Subject: [PATCH 1/2] feat: support for setting prevent_non_git_prod_deploys --- .../netlifyapi/.openapi-generator/VERSION | 2 +- internal/netlifyapi/api/openapi.yaml | 570 +++++++++--------- internal/netlifyapi/api_accounts.go | 6 +- internal/netlifyapi/api_builds.go | 16 +- internal/netlifyapi/api_deploy_keys.go | 4 +- internal/netlifyapi/api_deploys.go | 20 +- internal/netlifyapi/api_dns_zones.go | 6 +- .../netlifyapi/api_environment_variables.go | 26 +- internal/netlifyapi/api_form_submissions.go | 12 +- internal/netlifyapi/api_functions.go | 2 +- internal/netlifyapi/api_hooks.go | 8 +- internal/netlifyapi/api_members.go | 26 +- internal/netlifyapi/api_o_auth_tickets.go | 4 +- .../netlifyapi/api_organization_receipts.go | 4 +- internal/netlifyapi/api_organizations.go | 16 +- internal/netlifyapi/api_payment_methods.go | 2 +- internal/netlifyapi/api_services.go | 2 +- internal/netlifyapi/api_site_assets.go | 6 +- internal/netlifyapi/api_sites.go | 40 +- internal/netlifyapi/api_split_tests.go | 4 +- internal/netlifyapi/client.go | 32 +- internal/netlifyapi/model_admin_site.go | 37 ++ internal/netlifyapi/model_partial_site.go | 37 ++ internal/netlifyapi/model_site.go | 37 ++ .../model_traffic_rule_action_config.go | 27 +- .../model_traffic_rule_target_config.go | 57 +- internal/netlifyapi/utils.go | 14 + openapi.json | 6 + 28 files changed, 613 insertions(+), 410 deletions(-) diff --git a/internal/netlifyapi/.openapi-generator/VERSION b/internal/netlifyapi/.openapi-generator/VERSION index ecb2186..2fb556b 100644 --- a/internal/netlifyapi/.openapi-generator/VERSION +++ b/internal/netlifyapi/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0-SNAPSHOT +7.18.0-SNAPSHOT diff --git a/internal/netlifyapi/api/openapi.yaml b/internal/netlifyapi/api/openapi.yaml index f413702..e1ef789 100644 --- a/internal/netlifyapi/api/openapi.yaml +++ b/internal/netlifyapi/api/openapi.yaml @@ -153,7 +153,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/AccountBuild' + $ref: "#/components/schemas/AccountBuild" type: array description: "" tags: @@ -253,7 +253,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Member' + $ref: "#/components/schemas/Member" type: array description: "" tags: @@ -309,7 +309,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Member' + $ref: "#/components/schemas/Member" description: "" tags: - Members @@ -394,7 +394,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" type: array description: "" tags: @@ -425,7 +425,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" required: true responses: @@ -433,7 +433,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" tags: - Sites @@ -454,7 +454,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" type: array description: "" tags: @@ -469,7 +469,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createAccount_request' + $ref: "#/components/schemas/createAccount_request" description: "" required: true responses: @@ -477,7 +477,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" description: "" tags: - Accounts @@ -520,7 +520,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" description: "" "404": description: Not Found @@ -544,7 +544,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccountUpdateParams' + $ref: "#/components/schemas/AccountUpdateParams" description: "" required: true responses: @@ -552,7 +552,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Account' + $ref: "#/components/schemas/Account" description: "" "422": description: Unprocessable Entity @@ -570,7 +570,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccountType' + $ref: "#/components/schemas/AccountType" description: "" tags: - Accounts @@ -608,7 +608,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/AuditLog' + $ref: "#/components/schemas/AuditLog" type: array description: "" tags: @@ -633,7 +633,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceInstance' + $ref: "#/components/schemas/ServiceInstance" description: "" "422": description: "Payment Method not found, Analytics already enabled" @@ -708,7 +708,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" type: array description: "" tags: @@ -733,7 +733,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AssetCreateParams' + $ref: "#/components/schemas/AssetCreateParams" description: "" required: true responses: @@ -741,7 +741,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AssetCreateResult' + $ref: "#/components/schemas/AssetCreateResult" description: "" tags: - Site assets @@ -804,7 +804,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" description: "" tags: - Site assets @@ -848,7 +848,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" description: "" tags: - Site assets @@ -883,7 +883,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getSiteAssetPublicSignature_200_response' + $ref: "#/components/schemas/getSiteAssetPublicSignature_200_response" description: "" tags: - Site assets @@ -910,7 +910,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/PaymentMethod' + $ref: "#/components/schemas/PaymentMethod" type: array description: "" tags: @@ -936,7 +936,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/BuildHook' + $ref: "#/components/schemas/BuildHook" type: array description: "" tags: @@ -959,7 +959,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateBuildHook' + $ref: "#/components/schemas/CreateBuildHook" description: "" required: true responses: @@ -967,7 +967,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BuildHook' + $ref: "#/components/schemas/BuildHook" description: "" tags: - Build Hooks @@ -1026,7 +1026,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BuildHook' + $ref: "#/components/schemas/BuildHook" description: "" tags: - Build Hooks @@ -1056,7 +1056,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateBuildHook' + $ref: "#/components/schemas/UpdateBuildHook" description: "" required: true responses: @@ -1083,7 +1083,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Build' + $ref: "#/components/schemas/Build" description: "" tags: - Builds @@ -1107,7 +1107,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Build' + $ref: "#/components/schemas/Build" type: array description: "" tags: @@ -1166,7 +1166,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Build' + $ref: "#/components/schemas/Build" description: "" "404": description: Not Found @@ -1193,7 +1193,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateSiteBuildLog_request' + $ref: "#/components/schemas/updateSiteBuildLog_request" description: "" required: true responses: @@ -1203,7 +1203,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateSiteBuildLog_422_response' + $ref: "#/components/schemas/updateSiteBuildLog_422_response" description: Unprocessable Entity tags: - Builds @@ -1273,7 +1273,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DeployKey' + $ref: "#/components/schemas/DeployKey" type: array description: "" tags: @@ -1289,7 +1289,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployKey' + $ref: "#/components/schemas/DeployKey" description: "" tags: - Deploy keys @@ -1332,7 +1332,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeployKey' + $ref: "#/components/schemas/DeployKey" description: "" tags: - Deploy keys @@ -1449,7 +1449,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" type: array description: "" tags: @@ -1480,7 +1480,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createSiteDeploy_request' + $ref: "#/components/schemas/createSiteDeploy_request" description: "" required: true responses: @@ -1488,7 +1488,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1512,7 +1512,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1535,7 +1535,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1567,7 +1567,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1598,7 +1598,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1628,7 +1628,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateSiteDeploy_request' + $ref: "#/components/schemas/updateSiteDeploy_request" description: ", await_ready_signal: boolean]" required: true responses: @@ -1636,7 +1636,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1668,7 +1668,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1693,7 +1693,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1717,7 +1717,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1741,7 +1741,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy' + $ref: "#/components/schemas/Deploy" description: "" tags: - Deploys @@ -1765,7 +1765,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Deploy_Simple' + $ref: "#/components/schemas/Deploy_Simple" description: "" tags: - Deploys @@ -1790,7 +1790,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DevServerHook' + $ref: "#/components/schemas/DevServerHook" type: array description: "" tags: @@ -1813,7 +1813,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateDevServerHook' + $ref: "#/components/schemas/CreateDevServerHook" description: "" required: true responses: @@ -1821,7 +1821,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DevServerHook' + $ref: "#/components/schemas/DevServerHook" description: "" tags: - Dev Server Hooks @@ -1880,7 +1880,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DevServerHook' + $ref: "#/components/schemas/DevServerHook" description: "" tags: - Dev Server Hooks @@ -1910,7 +1910,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateDevServerHook' + $ref: "#/components/schemas/UpdateDevServerHook" description: "" required: true responses: @@ -1939,7 +1939,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DnsRecord' + $ref: "#/components/schemas/DnsRecord" type: array description: "" tags: @@ -1962,7 +1962,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsRecordCreateParams' + $ref: "#/components/schemas/DnsRecordCreateParams" description: "" required: true responses: @@ -1970,7 +1970,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsRecord' + $ref: "#/components/schemas/DnsRecord" description: "" tags: - DNS zones @@ -2029,7 +2029,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsRecord' + $ref: "#/components/schemas/DnsRecord" description: "" tags: - DNS zones @@ -2073,7 +2073,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" type: array description: "" tags: @@ -2088,7 +2088,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsZoneCreateParams' + $ref: "#/components/schemas/DnsZoneCreateParams" description: "" required: true responses: @@ -2096,7 +2096,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" description: "" tags: - DNS zones @@ -2139,7 +2139,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" description: "" tags: - DNS zones @@ -2163,7 +2163,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" description: "" tags: - DNS zones @@ -2186,7 +2186,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DnsZoneTransferParams' + $ref: "#/components/schemas/DnsZoneTransferParams" description: "" required: true responses: @@ -2194,7 +2194,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/transferDnsZone_200_response' + $ref: "#/components/schemas/transferDnsZone_200_response" description: "" tags: - DNS zones @@ -2219,7 +2219,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" type: array description: "" tags: @@ -2249,7 +2249,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/DnsZone' + $ref: "#/components/schemas/DnsZone" type: array description: "" tags: @@ -2312,7 +2312,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" type: array description: "" "401": @@ -2360,7 +2360,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" type: array description: The array of environment variables to create required: true @@ -2370,7 +2370,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" type: array description: "" "400": @@ -2434,7 +2434,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" type: array description: "" "401": @@ -2521,7 +2521,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" description: "" "401": description: Unauthorized (not logged in; not on team; not allowed to create @@ -2565,7 +2565,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EnvVarSet' + $ref: "#/components/schemas/EnvVarSet" description: "" required: true responses: @@ -2573,7 +2573,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" description: "" "401": description: Unauthorized (not logged in; not on team; not allowed to update @@ -2626,7 +2626,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateEnvVar_request' + $ref: "#/components/schemas/updateEnvVar_request" description: "" required: true responses: @@ -2634,7 +2634,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EnvVar' + $ref: "#/components/schemas/EnvVar" description: "" "401": description: Unauthorized (not logged in; not on team; not allowed to update @@ -2714,7 +2714,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/SiteFile' + $ref: "#/components/schemas/SiteFile" type: array description: "" tags: @@ -2773,7 +2773,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Form' + $ref: "#/components/schemas/Form" type: array description: "" "401": @@ -2858,7 +2858,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/uploadDeployFunction_200_response' + $ref: "#/components/schemas/uploadDeployFunction_200_response" description: "" "400": description: "" @@ -2907,7 +2907,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/OutgoingHook' + $ref: "#/components/schemas/OutgoingHook" type: array description: "" tags: @@ -2922,7 +2922,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateOutgoingHook' + $ref: "#/components/schemas/CreateOutgoingHook" description: "" required: true responses: @@ -2930,7 +2930,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OutgoingHook' + $ref: "#/components/schemas/OutgoingHook" description: "" "404": description: Associated form with given form_id or form_name not found @@ -2977,7 +2977,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OutgoingHook' + $ref: "#/components/schemas/OutgoingHook" description: "" tags: - Hooks @@ -2999,7 +2999,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateOutgoingHook' + $ref: "#/components/schemas/UpdateOutgoingHook" description: "" required: true responses: @@ -3007,7 +3007,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OutgoingHook' + $ref: "#/components/schemas/OutgoingHook" description: "" "404": description: Associated form with given form_id not found @@ -3040,7 +3040,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/OutgoingHookType' + $ref: "#/components/schemas/OutgoingHookType" type: array description: "" tags: @@ -3065,7 +3065,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OutgoingHook' + $ref: "#/components/schemas/OutgoingHook" description: "" tags: - Hooks @@ -3143,7 +3143,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OAuth_Ticket' + $ref: "#/components/schemas/OAuth_Ticket" description: "" "404": description: OAuth ticket not found @@ -3169,7 +3169,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OAuth_Ticket' + $ref: "#/components/schemas/OAuth_Ticket" description: Created "401": description: OAuth application not found @@ -3226,7 +3226,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doorkeeper_AccessToken' + $ref: "#/components/schemas/Doorkeeper_AccessToken" description: Created "401": description: OAuth ticket not authorized @@ -3271,14 +3271,14 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Receipt' + $ref: "#/components/schemas/Receipt" type: array description: "" "422": content: application/json: schema: - $ref: '#/components/schemas/getOrganizationReceipts_422_response' + $ref: "#/components/schemas/getOrganizationReceipts_422_response" description: "" "401": description: Only owners are allowed to view receipts @@ -3315,7 +3315,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getOrganizationReceipts_422_response' + $ref: "#/components/schemas/getOrganizationReceipts_422_response" description: "" "401": description: Only owners are allowed to view receipts @@ -3335,7 +3335,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" type: array description: "" tags: @@ -3360,7 +3360,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" description: "" tags: - Organizations @@ -3400,7 +3400,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Organization' + $ref: "#/components/schemas/Organization" type: array description: "" tags: @@ -3455,13 +3455,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getSiteAssetPublicSignature_200_response' + $ref: "#/components/schemas/getSiteAssetPublicSignature_200_response" description: "" "422": content: application/json: schema: - $ref: '#/components/schemas/getOrganizationReceipts_422_response' + $ref: "#/components/schemas/getOrganizationReceipts_422_response" description: "" "401": description: Only owners are allowed to upload logo @@ -3488,7 +3488,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/OrganizationAccount' + $ref: "#/components/schemas/OrganizationAccount" type: array description: "" tags: @@ -3514,7 +3514,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Billing_ZuoraInvoice' + $ref: "#/components/schemas/Billing_ZuoraInvoice" type: array description: "" tags: @@ -3573,7 +3573,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getOrganizationClientToken_200_response' + $ref: "#/components/schemas/getOrganizationClientToken_200_response" description: "" tags: - Organizations @@ -3590,7 +3590,7 @@ paths: name: data required: false schema: - $ref: '#/components/schemas/createOrganizationPayment_data_parameter' + $ref: "#/components/schemas/createOrganizationPayment_data_parameter" style: form - description: Boolean to allow enterprise accounts to change payment type from ACH @@ -3632,7 +3632,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaymentMethod' + $ref: "#/components/schemas/PaymentMethod" description: "" tags: - Organizations @@ -3663,7 +3663,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceInstance' + $ref: "#/components/schemas/ServiceInstance" description: "" "404": description: Not Found @@ -3744,7 +3744,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceInstance' + $ref: "#/components/schemas/ServiceInstance" description: "" "404": description: Not Found @@ -3810,7 +3810,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/ServiceInstance' + $ref: "#/components/schemas/ServiceInstance" type: array description: "" "404": @@ -3839,7 +3839,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Service' + $ref: "#/components/schemas/Service" type: array description: "" "401": @@ -3865,7 +3865,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: "#/components/schemas/Service" description: "" "401": description: Unauthorized @@ -3992,7 +3992,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" type: array description: "" tags: @@ -4015,7 +4015,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" required: true responses: @@ -4023,7 +4023,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" tags: - Sites @@ -4066,7 +4066,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" tags: - Sites @@ -4088,7 +4088,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PartialSite' + $ref: "#/components/schemas/PartialSite" description: "" required: true responses: @@ -4096,7 +4096,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" tags: - Sites @@ -4177,7 +4177,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: "#/components/schemas/Site" description: "" "404": description: Site not found @@ -4203,7 +4203,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site_Simple' + $ref: "#/components/schemas/Site_Simple" description: "" tags: - Sites @@ -4228,7 +4228,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" type: array description: "" tags: @@ -4251,7 +4251,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" description: "" required: true responses: @@ -4259,7 +4259,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" description: "" tags: - Snippets @@ -4318,7 +4318,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" description: "" tags: - Snippets @@ -4348,7 +4348,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" description: "" required: true responses: @@ -4356,7 +4356,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Snippet' + $ref: "#/components/schemas/Snippet" description: "" tags: - Snippets @@ -4380,7 +4380,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SniCertificate' + $ref: "#/components/schemas/SniCertificate" description: "" tags: - SNI certificates @@ -4406,7 +4406,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateInfo' + $ref: "#/components/schemas/CertificateInfo" description: "" required: true responses: @@ -4414,7 +4414,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SniCertificate' + $ref: "#/components/schemas/SniCertificate" description: "" tags: - SNI certificates @@ -4454,7 +4454,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/FormSubmission' + $ref: "#/components/schemas/FormSubmission" type: array description: "" "404": @@ -4499,7 +4499,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/FormSubmission' + $ref: "#/components/schemas/FormSubmission" type: array description: "" "404": @@ -4565,7 +4565,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FormSubmission' + $ref: "#/components/schemas/FormSubmission" description: "" "401": description: Unauthorized @@ -4609,7 +4609,7 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/SplitTest' + $ref: "#/components/schemas/SplitTest" type: array description: "" "404": @@ -4635,7 +4635,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createSplitTest_request' + $ref: "#/components/schemas/createSplitTest_request" description: "" required: true responses: @@ -4643,7 +4643,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SplitTest' + $ref: "#/components/schemas/SplitTest" description: "" "404": description: Not Found @@ -4678,7 +4678,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SplitTest' + $ref: "#/components/schemas/SplitTest" description: "" "401": description: Unauthorized @@ -4711,7 +4711,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createSplitTest_request' + $ref: "#/components/schemas/createSplitTest_request" description: "" required: true responses: @@ -4719,7 +4719,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SplitTest' + $ref: "#/components/schemas/SplitTest" description: "" "401": description: Unauthorized @@ -4801,7 +4801,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" description: "" tags: - Users @@ -4844,7 +4844,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/getDirectory_200_response' + $ref: "#/components/schemas/getDirectory_200_response" description: "" "404": description: Not Found @@ -4890,7 +4890,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: Return log drains "401": description: Unauthorized @@ -4918,7 +4918,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: "" required: true responses: @@ -4926,7 +4926,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: Create a log drain "401": description: Unauthorized @@ -5000,7 +5000,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: Return a log drain "401": description: Unauthorized @@ -5036,7 +5036,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: "" required: true responses: @@ -5044,7 +5044,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LogDrain' + $ref: "#/components/schemas/LogDrain" description: Update log drain "401": description: Unauthorized @@ -5084,7 +5084,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Log_Drains_verify_request' + $ref: "#/components/schemas/Log_Drains_verify_request" description: "" required: true responses: @@ -5160,7 +5160,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteFirewallConfig' + $ref: "#/components/schemas/SiteFirewallConfig" description: "" "409": description: "" @@ -5196,7 +5196,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateSiteFirewallConfig' + $ref: "#/components/schemas/CreateSiteFirewallConfig" description: "" required: true responses: @@ -5265,7 +5265,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteFirewallConfig' + $ref: "#/components/schemas/SiteFirewallConfig" description: "" "409": description: "" @@ -5293,7 +5293,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateSiteFirewallConfig' + $ref: "#/components/schemas/CreateSiteFirewallConfig" description: "" required: true responses: @@ -5325,14 +5325,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WafPolicy' + $ref: "#/components/schemas/WafPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/WafPolicyUpdate' + $ref: "#/components/schemas/WafPolicyUpdate" description: WAF Policy created tags: - WAF Policies @@ -5354,7 +5354,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WafPolicy' + $ref: "#/components/schemas/WafPolicy" description: WAF Policy retrieved "404": description: WAF Policy not found @@ -5376,7 +5376,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WafPolicyUpdate' + $ref: "#/components/schemas/WafPolicyUpdate" required: true responses: "200": @@ -5438,7 +5438,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WafPolicy' + $ref: "#/components/schemas/WafPolicy" description: WAF Policy retrieved tags: - WAF Policies @@ -5466,7 +5466,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WafPolicy' + $ref: "#/components/schemas/WafPolicy" required: true responses: "202": @@ -5493,7 +5493,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ManagedWafRules' + $ref: "#/components/schemas/ManagedWafRules" description: Managed WAF rules retrieved tags: - WAF Managed Rules @@ -5550,7 +5550,7 @@ components: done: type: boolean priority: - $ref: '#/components/schemas/AccountBuild_priority' + $ref: "#/components/schemas/AccountBuild_priority" site_id: type: string subdomain: @@ -5614,9 +5614,9 @@ components: description: AccountCompliance definition properties: private_corp_repos: - $ref: '#/components/schemas/AccountCompliance_private_corp_repos' + $ref: "#/components/schemas/AccountCompliance_private_corp_repos" max_members: - $ref: '#/components/schemas/AccountCompliance_max_members' + $ref: "#/components/schemas/AccountCompliance_max_members" required: - max_members - private_corp_repos @@ -5626,9 +5626,9 @@ components: id: type: string unpublished_rules: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" published_rules: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" site_overrides: items: type: object @@ -5690,9 +5690,9 @@ components: type: geo properties: unpublished: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" published: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" AccountMemberRole: example: {} properties: {} @@ -5794,7 +5794,7 @@ components: type: string member_roles: items: - $ref: '#/components/schemas/AccountMemberRole' + $ref: "#/components/schemas/AccountMemberRole" type: array name: type: string @@ -5886,16 +5886,16 @@ components: type: boolean AdminSite: allOf: - - $ref: '#/components/schemas/Site' + - $ref: "#/components/schemas/Site" - properties: site_build_timelimit: type: number site_build_pre_process_timeout: type: number site_functions_config: - $ref: '#/components/schemas/AdminSite_allOf_site_functions_config' + $ref: "#/components/schemas/AdminSite_allOf_site_functions_config" edge_functions_manifest: - $ref: '#/components/schemas/AdminSite_allOf_site_functions_config' + $ref: "#/components/schemas/AdminSite_allOf_site_functions_config" required: - site_build_pre_process_timeout - site_build_timelimit @@ -6048,9 +6048,9 @@ components: uploaded_url: uploaded_url properties: form: - $ref: '#/components/schemas/AssetCreateForm' + $ref: "#/components/schemas/AssetCreateForm" asset: - $ref: '#/components/schemas/Asset' + $ref: "#/components/schemas/Asset" AssetCreateForm: example: fields: @@ -6061,7 +6061,7 @@ components: url: type: string fields: - $ref: '#/components/schemas/AssetCreateForm_fields' + $ref: "#/components/schemas/AssetCreateForm_fields" AuditLog: description: AuditLog model definition example: @@ -6281,7 +6281,7 @@ components: invoice_items: description: Zuora invoice items items: - $ref: '#/components/schemas/Billing_ZuoraInvoiceItem' + $ref: "#/components/schemas/Billing_ZuoraInvoiceItem" type: array required: - amount @@ -6458,7 +6458,7 @@ components: description: Number of enqueued builds type: integer minutes: - $ref: '#/components/schemas/BuildStatus_minutes' + $ref: "#/components/schemas/BuildStatus_minutes" required: - active - enqueued @@ -6470,7 +6470,7 @@ components: description: The ID of the Event type: string user: - $ref: '#/components/schemas/CDP_User' + $ref: "#/components/schemas/CDP_User" type: description: "The type of event (ticket, comment, view etc.)" type: string @@ -6492,7 +6492,7 @@ components: description: Whether the comment has been resolved type: boolean resolved_by: - $ref: '#/components/schemas/CDP_User' + $ref: "#/components/schemas/CDP_User" service: description: The service the comment belongs to (github etc) type: string @@ -6534,7 +6534,7 @@ components: description: The number of git additions in the PullRequest type: integer author: - $ref: '#/components/schemas/CDP_TicketData_Member' + $ref: "#/components/schemas/CDP_TicketData_Member" base: description: The base ref of the branch type: object @@ -6588,10 +6588,10 @@ components: assignees: description: Information about the assignees for the PullRequest items: - $ref: '#/components/schemas/CDP_TicketData_Member' + $ref: "#/components/schemas/CDP_TicketData_Member" type: array author: - $ref: '#/components/schemas/CDP_TicketData_Member' + $ref: "#/components/schemas/CDP_TicketData_Member" base: description: The base ref of the PullRequest type: object @@ -6621,7 +6621,7 @@ components: contributors: description: Array of information about the contributors to the PullRequest items: - $ref: '#/components/schemas/CDP_TicketData_Member' + $ref: "#/components/schemas/CDP_TicketData_Member" type: array created_at: description: When the PullRequest was created @@ -6645,7 +6645,7 @@ components: labels: description: Array of information about the labels for the PullRequest items: - $ref: '#/components/schemas/CDP_TicketData_Label' + $ref: "#/components/schemas/CDP_TicketData_Label" type: array last_commit_at: description: When the last commit was authored @@ -6656,7 +6656,7 @@ components: format: date-time type: string milestone: - $ref: '#/components/schemas/CDP_TicketData_Epic' + $ref: "#/components/schemas/CDP_TicketData_Epic" number: description: The review number of the PullRequest type: integer @@ -6671,7 +6671,7 @@ components: reviewers: description: Array of information about the reviewers for the PullRequest items: - $ref: '#/components/schemas/CDP_TicketData_Member' + $ref: "#/components/schemas/CDP_TicketData_Member" type: array state: description: "The state of the PullRequest (open, merged, closed)" @@ -6721,7 +6721,7 @@ components: description: The ID of the Event type: string user: - $ref: '#/components/schemas/CDP_User' + $ref: "#/components/schemas/CDP_User" type: description: "The type of event (ticket, comment, view etc.)" type: string @@ -6749,7 +6749,7 @@ components: description: The ID of the Event type: string user: - $ref: '#/components/schemas/CDP_User' + $ref: "#/components/schemas/CDP_User" type: description: "The type of event (ticket, comment, view etc.)" type: string @@ -6792,7 +6792,7 @@ components: type: array states: items: - $ref: '#/components/schemas/CDP_TicketData_State' + $ref: "#/components/schemas/CDP_TicketData_State" type: array required: - created_at @@ -6948,7 +6948,7 @@ components: description: An array of issue types of the project. Only available for Jira items: - $ref: '#/components/schemas/CDP_TicketData_Project_IssueType' + $ref: "#/components/schemas/CDP_TicketData_Project_IssueType" type: array required: - archived @@ -7177,7 +7177,7 @@ components: format: date-time type: string connected_accounts: - $ref: '#/components/schemas/CDP_User_connected_accounts' + $ref: "#/components/schemas/CDP_User_connected_accounts" required: - avatar_url - connected_accounts @@ -7190,7 +7190,7 @@ components: description: The ID of the Event type: string user: - $ref: '#/components/schemas/CDP_User' + $ref: "#/components/schemas/CDP_User" type: description: "The type of event (ticket, comment, view etc.)" type: string @@ -7749,14 +7749,14 @@ components: description: The initial route of the Deploy Preview type: string summary: - $ref: '#/components/schemas/Deploy_summary' + $ref: "#/components/schemas/Deploy_summary" views_count: description: The number of times the deploy has been viewed type: integer function_schedules: description: An array of function schedules items: - $ref: '#/components/schemas/createSiteDeploy_request_function_schedules_inner' + $ref: "#/components/schemas/createSiteDeploy_request_function_schedules_inner" type: array edge_functions_present: description: Whether the deploy includes at least one Edge Function @@ -7817,7 +7817,7 @@ components: messages: description: The messages of the summary items: - $ref: '#/components/schemas/DeploySummaryMessage' + $ref: "#/components/schemas/DeploySummaryMessage" type: array required: - messages @@ -8008,9 +8008,9 @@ components: description: The branch of the dev server environment type: string live: - $ref: '#/components/schemas/DevServer' + $ref: "#/components/schemas/DevServer" latest: - $ref: '#/components/schemas/DevServer' + $ref: "#/components/schemas/DevServer" DevServerConfig: properties: id: @@ -8242,7 +8242,7 @@ components: records: description: An array of DNS records for this DNS zone items: - $ref: '#/components/schemas/DnsRecord' + $ref: "#/components/schemas/DnsRecord" type: array dns_servers: description: The name servers of the DNS zone @@ -8262,7 +8262,7 @@ components: description: The account name type: string domain: - $ref: '#/components/schemas/Domain' + $ref: "#/components/schemas/Domain" ipv6_enabled: description: Whether IPv6 is enabled type: boolean @@ -8571,7 +8571,7 @@ components: values: description: An array of Value objects containing values and metadata items: - $ref: '#/components/schemas/EnvVarValue' + $ref: "#/components/schemas/EnvVarValue" type: array x-faker: internet.password updated_at: @@ -8580,7 +8580,7 @@ components: type: string x-faker: date.past updated_by: - $ref: '#/components/schemas/EnvVarUser' + $ref: "#/components/schemas/EnvVarUser" is_secret: description: Should this environment variable be treated as a write-only variable and not accesible outside of Netlify runtimes @@ -8719,9 +8719,9 @@ components: id: type: string unpublished: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" published: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" created_at: description: When the deployed branch was created format: date-time @@ -8778,9 +8778,9 @@ components: type: geo properties: unpublished: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" published: - $ref: '#/components/schemas/FirewallRuleSet' + $ref: "#/components/schemas/FirewallRuleSet" FirewallRule: example: data: @@ -8842,7 +8842,7 @@ components: type: string rules: items: - $ref: '#/components/schemas/FirewallRule' + $ref: "#/components/schemas/FirewallRule" type: array required: - default @@ -9007,7 +9007,7 @@ components: functions: description: An array of the functions of this function bundle items: - $ref: '#/components/schemas/Function' + $ref: "#/components/schemas/Function" type: array log_type: description: The function log type @@ -9047,7 +9047,7 @@ components: ro: description: Routes for a function items: - $ref: '#/components/schemas/Function_ro_inner' + $ref: "#/components/schemas/Function_ro_inner" type: array endpoint: description: The endpoint of the function @@ -9132,7 +9132,7 @@ components: dunning: type: boolean enterprise_features: - $ref: '#/components/schemas/EnterpriseFeatures' + $ref: "#/components/schemas/EnterpriseFeatures" required: - admin_url - build_node_pool @@ -9150,29 +9150,29 @@ components: description: EnterpriseFeatures model definition. properties: high_performance_builds: - $ref: '#/components/schemas/HighPerformanceFeatureAttributes' + $ref: "#/components/schemas/HighPerformanceFeatureAttributes" high_performance_edge: - $ref: '#/components/schemas/HighPerformanceFeatureAttributes' + $ref: "#/components/schemas/HighPerformanceFeatureAttributes" support_level: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" concurrent_builds: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" build_minutes: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_build_minutes: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" edge_functions: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_edge_functions: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" bandwidth: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_bandwidth: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" seats: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_seats: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" EnterpriseFeatureAttributes: description: EnterpriseFeatureAttributes model definition. properties: @@ -9232,33 +9232,33 @@ components: description: Whether Netlify Connect is enabled for the account type: boolean high_performance_builds: - $ref: '#/components/schemas/EnterpriseFeatureEnablePrice' + $ref: "#/components/schemas/EnterpriseFeatureEnablePrice" high_performance_edge: - $ref: '#/components/schemas/EnterpriseFeatureEnablePrice' + $ref: "#/components/schemas/EnterpriseFeatureEnablePrice" support_level: - $ref: '#/components/schemas/EnterpriseFeatureSupport' + $ref: "#/components/schemas/EnterpriseFeatureSupport" concurrent_builds: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_concurrent_builds: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" build_minutes: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_build_minutes: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" edge_functions: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_edge_functions: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" bandwidth: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_bandwidth: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" seats: - $ref: '#/components/schemas/EnterpriseFeatureAttributes' + $ref: "#/components/schemas/EnterpriseFeatureAttributes" additional_seats: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" additional_committers: - $ref: '#/components/schemas/EnterpriseFeatureAdditional' + $ref: "#/components/schemas/EnterpriseFeatureAdditional" HeroOrganization: description: "HeroOrganization model definition, see OrganizationSerializer\ \ for other fields" @@ -9520,7 +9520,7 @@ components: fields: description: The list of fields this hook type can take items: - $ref: '#/components/schemas/OutgoingHookType_fields_inner' + $ref: "#/components/schemas/OutgoingHookType_fields_inner" type: array IdentityVerification: properties: @@ -9537,7 +9537,7 @@ components: description: The report from the identity verification service type: object user: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" state: description: The current state of the verification type: string @@ -9593,7 +9593,7 @@ components: description: Whether to exclude PII from the user traffic logs type: boolean service_config: - $ref: '#/components/schemas/LogDrainServiceConfig' + $ref: "#/components/schemas/LogDrainServiceConfig" required: - destination - format @@ -9683,7 +9683,7 @@ components: the UI type: object connected_accounts: - $ref: '#/components/schemas/CDP_User_connected_accounts' + $ref: "#/components/schemas/CDP_User_connected_accounts" site_ids: description: site ids this member has access to items: @@ -9706,7 +9706,7 @@ components: description: flag indicating if the member is managed by an idp directory type: boolean committer_match_method: - $ref: '#/components/schemas/Member_committer_match_method' + $ref: "#/components/schemas/Member_committer_match_method" last_activity_date: description: "The last activity date of the member on the site. Note: activity\ \ data cannot be accessed before Nov 17th 2023, null values indicate last\ @@ -9794,7 +9794,7 @@ components: slug: slug properties: bandwidth_usage: - $ref: '#/components/schemas/BandwidthUsage' + $ref: "#/components/schemas/BandwidthUsage" billing_email: description: The billing email for the account type: string @@ -9802,7 +9802,7 @@ components: description: The billing name for the account type: string build_status: - $ref: '#/components/schemas/BuildStatus' + $ref: "#/components/schemas/BuildStatus" high_performance_builds_enabled: description: Whether the HP builds is enabled for the account type: boolean @@ -9817,7 +9817,7 @@ components: type: integer member_roles: items: - $ref: '#/components/schemas/AccountMemberRole' + $ref: "#/components/schemas/AccountMemberRole" type: array name: description: The name for the account @@ -10108,7 +10108,7 @@ components: description: The name for the organization type: string data: - $ref: '#/components/schemas/PaymentMethod_data' + $ref: "#/components/schemas/PaymentMethod_data" state: description: The state of the payment method enum: @@ -10347,7 +10347,7 @@ components: description: "The total time, in seconds, it took to deploy" type: integer summary: - $ref: '#/components/schemas/Deploy_summary' + $ref: "#/components/schemas/Deploy_summary" plugin_state: description: The state of the deploy's plugins enum: @@ -10883,6 +10883,7 @@ components: notification_email: notification_email capabilities: "{}" rum_enabled: true + prevent_non_git_prod_deploys: true hud_enabled: true admin_url: admin_url build_settings: @@ -10993,12 +10994,14 @@ components: type: boolean rum_enabled: type: boolean + prevent_non_git_prod_deploys: + type: boolean analytics_instance_id: type: string build_settings: - $ref: '#/components/schemas/Repo' + $ref: "#/components/schemas/Repo" processing_settings: - $ref: '#/components/schemas/Site_processing_settings' + $ref: "#/components/schemas/Site_processing_settings" deploy_hook: type: string managed_dns: @@ -11021,7 +11024,7 @@ components: type: number labels: items: - $ref: '#/components/schemas/SiteLabel' + $ref: "#/components/schemas/SiteLabel" type: array functions_region: type: string @@ -11097,6 +11100,7 @@ components: notification_email: notification_email capabilities: "{}" rum_enabled: true + prevent_non_git_prod_deploys: true hud_enabled: true admin_url: admin_url build_settings: @@ -11206,10 +11210,12 @@ components: type: boolean rum_enabled: type: boolean + prevent_non_git_prod_deploys: + type: boolean build_settings: - $ref: '#/components/schemas/Repo' + $ref: "#/components/schemas/Repo" processing_settings: - $ref: '#/components/schemas/Site_processing_settings' + $ref: "#/components/schemas/Site_processing_settings" deploy_hook: type: string managed_dns: @@ -11232,7 +11238,7 @@ components: type: number labels: items: - $ref: '#/components/schemas/SiteLabel' + $ref: "#/components/schemas/SiteLabel" type: array functions_region: type: string @@ -11359,7 +11365,7 @@ components: description: When the TeamWorkspace was updated type: datetime workspace: - $ref: '#/components/schemas/Slack_Workspace' + $ref: "#/components/schemas/Slack_Workspace" required: - workspace Slack_TeamWorkspaceSubscription: @@ -11417,7 +11423,7 @@ components: description: The Slack User ID for user in the Workspace type: string workspace: - $ref: '#/components/schemas/Slack_Workspace' + $ref: "#/components/schemas/Slack_Workspace" configuration: description: The settings for the Workspace type: object @@ -11573,9 +11579,9 @@ components: TrafficRule: properties: action: - $ref: '#/components/schemas/TrafficRule_Action' + $ref: "#/components/schemas/TrafficRule_Action" target: - $ref: '#/components/schemas/TrafficRule_Target' + $ref: "#/components/schemas/TrafficRule_Target" description: type: string id: @@ -11592,7 +11598,7 @@ components: - rewrite type: string config: - $ref: '#/components/schemas/TrafficRule_Action_config' + $ref: "#/components/schemas/TrafficRule_Action_config" required: - config - type @@ -11613,16 +11619,16 @@ components: - client_ip type: string config: - $ref: '#/components/schemas/TrafficRule_Target_config' + $ref: "#/components/schemas/TrafficRule_Target_config" required: - config - type ResponseConfig: properties: aggregate: - $ref: '#/components/schemas/RateLimitConfig_AggregateConfig' + $ref: "#/components/schemas/RateLimitConfig_AggregateConfig" rate_limit_config: - $ref: '#/components/schemas/RateLimitConfig' + $ref: "#/components/schemas/RateLimitConfig" status_code: description: "Response status code. Default: 429" type: integer @@ -11633,7 +11639,7 @@ components: properties: keys: items: - $ref: '#/components/schemas/RateLimitConfig_AggregateConfig_AggregateKey' + $ref: "#/components/schemas/RateLimitConfig_AggregateConfig_AggregateKey" type: array required: - keys @@ -11670,11 +11676,11 @@ components: RewriteConfig: properties: aggregate: - $ref: '#/components/schemas/RateLimitConfig_AggregateConfig' + $ref: "#/components/schemas/RateLimitConfig_AggregateConfig" limits: - $ref: '#/components/schemas/RateLimitConfig_RateLimits' + $ref: "#/components/schemas/RateLimitConfig_RateLimits" rate_limit_config: - $ref: '#/components/schemas/RateLimitConfig' + $ref: "#/components/schemas/RateLimitConfig" to: description: The path and query to rewrite the request to type: string @@ -11687,7 +11693,7 @@ components: properties: conditions: items: - $ref: '#/components/schemas/TrafficRule_Target' + $ref: "#/components/schemas/TrafficRule_Target" type: array required: - conditions @@ -11743,7 +11749,7 @@ components: type: string rules: items: - $ref: '#/components/schemas/TrafficRule' + $ref: "#/components/schemas/TrafficRule" type: array created_at: description: When the traffic rule config was created @@ -11877,7 +11883,7 @@ components: description: The slug of the user type: string connected_accounts: - $ref: '#/components/schemas/User_connected_accounts' + $ref: "#/components/schemas/User_connected_accounts" tracking_id: description: The tracking ID of the user type: string @@ -11962,7 +11968,7 @@ components: description: The job role (used for the user identify) type: string reviewer_signup: - $ref: '#/components/schemas/ReviewerSignupInfo' + $ref: "#/components/schemas/ReviewerSignupInfo" ReviewerSignupInfo: properties: deploy_id: @@ -12045,7 +12051,7 @@ components: type: string rule_sets: items: - $ref: '#/components/schemas/WafPolicy_rule_sets_inner' + $ref: "#/components/schemas/WafPolicy_rule_sets_inner" type: array required: - description @@ -12089,7 +12095,7 @@ components: properties: rule_sets: additionalProperties: - $ref: '#/components/schemas/ManagedWafRuleSet' + $ref: "#/components/schemas/ManagedWafRuleSet" ManagedWafRuleSet: example: definition: @@ -12109,10 +12115,10 @@ components: category: category properties: definition: - $ref: '#/components/schemas/ManagedWafRuleSet_definition' + $ref: "#/components/schemas/ManagedWafRuleSet_definition" rules: items: - $ref: '#/components/schemas/ManagedWafRuleSet_rules_inner' + $ref: "#/components/schemas/ManagedWafRuleSet_rules_inner" type: array createAccount_request: properties: @@ -12183,12 +12189,12 @@ components: type: string routes: items: - $ref: '#/components/schemas/createSiteDeploy_request_functions_config_name_routes_inner' + $ref: "#/components/schemas/createSiteDeploy_request_functions_config_name_routes_inner" type: array createSiteDeploy_request_functions_config: properties: name: - $ref: '#/components/schemas/createSiteDeploy_request_functions_config_name' + $ref: "#/components/schemas/createSiteDeploy_request_functions_config_name" createSiteDeploy_request: properties: files: @@ -12201,10 +12207,10 @@ components: type: object function_schedules: items: - $ref: '#/components/schemas/createSiteDeploy_request_function_schedules_inner' + $ref: "#/components/schemas/createSiteDeploy_request_function_schedules_inner" type: array functions_config: - $ref: '#/components/schemas/createSiteDeploy_request_functions_config' + $ref: "#/components/schemas/createSiteDeploy_request_functions_config" branch: type: string framework: @@ -12216,7 +12222,7 @@ components: updateSiteDeploy_request_functions_config: properties: name: - $ref: '#/components/schemas/updateSiteDeploy_request_functions_config_name' + $ref: "#/components/schemas/updateSiteDeploy_request_functions_config_name" updateSiteDeploy_request: properties: files: @@ -12229,10 +12235,10 @@ components: type: object function_schedules: items: - $ref: '#/components/schemas/createSiteDeploy_request_function_schedules_inner' + $ref: "#/components/schemas/createSiteDeploy_request_function_schedules_inner" type: array functions_config: - $ref: '#/components/schemas/updateSiteDeploy_request_functions_config' + $ref: "#/components/schemas/updateSiteDeploy_request_functions_config" branch: type: string framework: @@ -12250,7 +12256,7 @@ components: properties: values: items: - $ref: '#/components/schemas/EnvVarValue' + $ref: "#/components/schemas/EnvVarValue" type: array scopes: items: @@ -12437,7 +12443,7 @@ components: type: string messages: items: - $ref: '#/components/schemas/Deploy_summary_messages_inner' + $ref: "#/components/schemas/Deploy_summary_messages_inner" type: array Function_ro_inner: properties: @@ -12488,20 +12494,20 @@ components: ignore_html_forms: true properties: html: - $ref: '#/components/schemas/Site_processing_settings_html' + $ref: "#/components/schemas/Site_processing_settings_html" ignore_html_forms: type: boolean TrafficRule_Action_config: oneOf: - - $ref: '#/components/schemas/ResponseConfig' - - $ref: '#/components/schemas/RewriteConfig' + - $ref: "#/components/schemas/ResponseConfig" + - $ref: "#/components/schemas/RewriteConfig" TrafficRule_Target_config: oneOf: - - $ref: '#/components/schemas/CompositeTargetConfig' - - $ref: '#/components/schemas/GeoTargetConfig' - - $ref: '#/components/schemas/KeyValueTargetConfig' - - $ref: '#/components/schemas/ValueTargetConfig' - - $ref: '#/components/schemas/IPTargetConfig' + - $ref: "#/components/schemas/CompositeTargetConfig" + - $ref: "#/components/schemas/GeoTargetConfig" + - $ref: "#/components/schemas/KeyValueTargetConfig" + - $ref: "#/components/schemas/ValueTargetConfig" + - $ref: "#/components/schemas/IPTargetConfig" User_connected_accounts: description: Information of the connected providers' slug if any example: @@ -12544,7 +12550,7 @@ components: type: integer rule_overrides: additionalProperties: - $ref: '#/components/schemas/WafPolicyRuleOverride' + $ref: "#/components/schemas/WafPolicyRuleOverride" required: - overall_threshold ManagedWafRuleSet_definition: diff --git a/internal/netlifyapi/api_accounts.go b/internal/netlifyapi/api_accounts.go index 1b83d85..a0f1c19 100644 --- a/internal/netlifyapi/api_accounts.go +++ b/internal/netlifyapi/api_accounts.go @@ -481,7 +481,7 @@ func (a *AccountsAPIService) GetAccountFirewallRuleSetExecute(r ApiGetAccountFir return localVarReturnValue, nil, reportError("id is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -597,10 +597,10 @@ func (a *AccountsAPIService) ListAccountAuditEventsExecute(r ApiListAccountAudit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "log_type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "log_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "log_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "log_type", t, "form", "multi") } } // to determine the Content-Type header diff --git a/internal/netlifyapi/api_builds.go b/internal/netlifyapi/api_builds.go index 6bf0197..04ba796 100644 --- a/internal/netlifyapi/api_builds.go +++ b/internal/netlifyapi/api_builds.go @@ -101,16 +101,16 @@ func (a *BuildsAPIService) CreateSiteBuildExecute(r ApiCreateSiteBuildRequest) ( localVarFormParams := url.Values{} if r.branch != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "form", "") } if r.clearCache != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "clear_cache", r.clearCache, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "clear_cache", r.clearCache, "form", "") } if r.image != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "image", r.image, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "image", r.image, "form", "") } if r.templateId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "template_id", r.templateId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "template_id", r.templateId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -228,10 +228,10 @@ func (a *BuildsAPIService) GetAccountBuildStatusExecute(r ApiGetAccountBuildStat localVarFormParams := url.Values{} if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } if r.state != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -551,10 +551,10 @@ func (a *BuildsAPIService) NotifyBuildStartExecute(r ApiNotifyBuildStartRequest) localVarFormParams := url.Values{} if r.buildVersion != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "build_version", r.buildVersion, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "build_version", r.buildVersion, "form", "") } if r.buildbotVersion != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "buildbot_version", r.buildbotVersion, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "buildbot_version", r.buildbotVersion, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_deploy_keys.go b/internal/netlifyapi/api_deploy_keys.go index 7ce7668..0033c3b 100644 --- a/internal/netlifyapi/api_deploy_keys.go +++ b/internal/netlifyapi/api_deploy_keys.go @@ -377,10 +377,10 @@ func (a *DeployKeysAPIService) ListDeployKeysExecute(r ApiListDeployKeysRequest) localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_deploys.go b/internal/netlifyapi/api_deploys.go index cd5979c..67a0ef7 100644 --- a/internal/netlifyapi/api_deploys.go +++ b/internal/netlifyapi/api_deploys.go @@ -193,7 +193,7 @@ func (a *DeploysAPIService) CreateSiteDeployExecute(r ApiCreateSiteDeployRequest } if r.title != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -887,31 +887,31 @@ func (a *DeploysAPIService) ListSiteDeploysExecute(r ApiListSiteDeploysRequest) localVarFormParams := url.Values{} if r.branch != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "form", "") } if r.deployPreviews != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "deploy-previews", r.deployPreviews, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "deploy-previews", r.deployPreviews, "form", "") } if r.from != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "from", r.from, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "from", r.from, "form", "") } if r.latestPublished != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "latest-published", r.latestPublished, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "latest-published", r.latestPublished, "form", "") } if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } if r.production != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "production", r.production, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "production", r.production, "form", "") } if r.state != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "") } if r.to != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "to", r.to, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "to", r.to, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_dns_zones.go b/internal/netlifyapi/api_dns_zones.go index 8c788b0..21d7f9c 100644 --- a/internal/netlifyapi/api_dns_zones.go +++ b/internal/netlifyapi/api_dns_zones.go @@ -1025,13 +1025,13 @@ func (a *DNSZonesAPIService) GetDnsZonesExecute(r ApiGetDnsZonesRequest) ([]DnsZ localVarFormParams := url.Values{} if r.accountSlug != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "account_slug", r.accountSlug, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "account_slug", r.accountSlug, "form", "") } if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_environment_variables.go b/internal/netlifyapi/api_environment_variables.go index fb015f0..bd3b2f3 100644 --- a/internal/netlifyapi/api_environment_variables.go +++ b/internal/netlifyapi/api_environment_variables.go @@ -97,10 +97,10 @@ func (a *EnvironmentVariablesAPIService) CreateEnvVarsExecute(r ApiCreateEnvVars } if r.client != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "client", r.client, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "client", r.client, "form", "") } if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -217,7 +217,7 @@ func (a *EnvironmentVariablesAPIService) DeleteEnvVarExecute(r ApiDeleteEnvVarRe localVarFormParams := url.Values{} if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -327,7 +327,7 @@ func (a *EnvironmentVariablesAPIService) DeleteEnvVarValueExecute(r ApiDeleteEnv localVarFormParams := url.Values{} if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -435,7 +435,7 @@ func (a *EnvironmentVariablesAPIService) GetEnvVarExecute(r ApiGetEnvVarRequest) localVarFormParams := url.Values{} if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -562,13 +562,13 @@ func (a *EnvironmentVariablesAPIService) GetEnvVarsExecute(r ApiGetEnvVarsReques localVarFormParams := url.Values{} if r.context != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "context", r.context, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "context", r.context, "form", "") } if r.scope != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") } if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -688,10 +688,10 @@ func (a *EnvironmentVariablesAPIService) GetSiteEnvVarsExecute(r ApiGetSiteEnvVa localVarFormParams := url.Values{} if r.context != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "context", r.context, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "context", r.context, "form", "") } if r.scope != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope", r.scope, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -818,7 +818,7 @@ func (a *EnvironmentVariablesAPIService) SetEnvVarValueExecute(r ApiSetEnvVarVal } if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -956,9 +956,9 @@ func (a *EnvironmentVariablesAPIService) UpdateEnvVarExecute(r ApiUpdateEnvVarRe return localVarReturnValue, nil, reportError("updateEnvVarRequest is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "key", r.key, "form", "") if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/internal/netlifyapi/api_form_submissions.go b/internal/netlifyapi/api_form_submissions.go index e281d31..2dfcf9f 100644 --- a/internal/netlifyapi/api_form_submissions.go +++ b/internal/netlifyapi/api_form_submissions.go @@ -175,10 +175,10 @@ func (a *FormSubmissionsAPIService) ListFormSubmissionExecute(r ApiListFormSubmi localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -296,10 +296,10 @@ func (a *FormSubmissionsAPIService) ListFormSubmissionsExecute(r ApiListFormSubm localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -417,10 +417,10 @@ func (a *FormSubmissionsAPIService) ListSiteSubmissionsExecute(r ApiListSiteSubm localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_functions.go b/internal/netlifyapi/api_functions.go index 4428412..8173aa9 100644 --- a/internal/netlifyapi/api_functions.go +++ b/internal/netlifyapi/api_functions.go @@ -95,7 +95,7 @@ func (a *FunctionsAPIService) UploadDeployFunctionExecute(r ApiUploadDeployFunct } if r.runtime != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "runtime", r.runtime, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "runtime", r.runtime, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/internal/netlifyapi/api_hooks.go b/internal/netlifyapi/api_hooks.go index bb0c94e..5434152 100644 --- a/internal/netlifyapi/api_hooks.go +++ b/internal/netlifyapi/api_hooks.go @@ -488,7 +488,7 @@ func (a *HooksAPIService) ListHookTypesExecute(r ApiListHookTypesRequest) ([]Out localVarFormParams := url.Values{} if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -615,12 +615,12 @@ func (a *HooksAPIService) ListHooksBySiteIdExecute(r ApiListHooksBySiteIdRequest } if r.event != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "event", r.event, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "event", r.event, "form", "") } if r.formId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_id", r.formId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_id", r.formId, "form", "") } - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_members.go b/internal/netlifyapi/api_members.go index a443efd..321d000 100644 --- a/internal/netlifyapi/api_members.go +++ b/internal/netlifyapi/api_members.go @@ -98,11 +98,11 @@ func (a *MembersAPIService) AddMemberToAccountExecute(r ApiAddMemberToAccountReq } if r.buildId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "build_id", r.buildId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "build_id", r.buildId, "form", "") } - parameterAddToHeaderOrQuery(localVarQueryParams, "email", r.email, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", r.email, "form", "") if r.role != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", r.role, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", r.role, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -261,44 +261,44 @@ func (a *MembersAPIService) ListMembersForAccountExecute(r ApiListMembersForAcco if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "emails", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "emails", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "emails", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "emails", t, "form", "multi") } } if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } if r.roles != nil { t := *r.roles if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "roles", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "roles", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "roles", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "roles", t, "form", "multi") } } if r.siteId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", r.siteId, "form", "") } if r.sortBy != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "form", "") } if r.states != nil { t := *r.states if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "states", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "states", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "states", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "states", t, "form", "multi") } } // to determine the Content-Type header diff --git a/internal/netlifyapi/api_o_auth_tickets.go b/internal/netlifyapi/api_o_auth_tickets.go index d36df6f..c89efe5 100644 --- a/internal/netlifyapi/api_o_auth_tickets.go +++ b/internal/netlifyapi/api_o_auth_tickets.go @@ -78,7 +78,7 @@ func (a *OAuthTicketsAPIService) AuthorizeWithTicketExecute(r ApiAuthorizeWithTi localVarFormParams := url.Values{} if r.grantSaml != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "grant_saml", r.grantSaml, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "grant_saml", r.grantSaml, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -178,7 +178,7 @@ func (a *OAuthTicketsAPIService) CreateTicketExecute(r ApiCreateTicketRequest) ( localVarFormParams := url.Values{} if r.clientId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_organization_receipts.go b/internal/netlifyapi/api_organization_receipts.go index 3f9fa81..05330d8 100644 --- a/internal/netlifyapi/api_organization_receipts.go +++ b/internal/netlifyapi/api_organization_receipts.go @@ -194,10 +194,10 @@ func (a *OrganizationReceiptsAPIService) GetOrganizationReceiptsExecute(r ApiGet localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_organizations.go b/internal/netlifyapi/api_organizations.go index adb31e0..7fc4473 100644 --- a/internal/netlifyapi/api_organizations.go +++ b/internal/netlifyapi/api_organizations.go @@ -231,14 +231,14 @@ func (a *OrganizationsAPIService) CreateOrganizationPaymentExecute(r ApiCreateOr } if r.data != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "data", r.data, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "data", r.data, "form", "") } if r.enterpriseException != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enterprise_exception", r.enterpriseException, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "enterprise_exception", r.enterpriseException, "form", "") } - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") if r.zuoraId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "zuora_id", r.zuoraId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "zuora_id", r.zuoraId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -441,7 +441,7 @@ func (a *OrganizationsAPIService) GetOrganizationExecute(r ApiGetOrganizationReq return localVarReturnValue, nil, reportError("id is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1080,12 +1080,12 @@ func (a *OrganizationsAPIService) UpdateOrganizationExecute(r ApiUpdateOrganizat return localVarReturnValue, nil, reportError("id is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") if r.name != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.slug != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", r.slug, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", r.slug, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_payment_methods.go b/internal/netlifyapi/api_payment_methods.go index 2cb63e7..fcb4aee 100644 --- a/internal/netlifyapi/api_payment_methods.go +++ b/internal/netlifyapi/api_payment_methods.go @@ -76,7 +76,7 @@ func (a *PaymentMethodsAPIService) ListPaymentMethodsForUserExecute(r ApiListPay localVarFormParams := url.Values{} if r.accountId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "account_id", r.accountId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "account_id", r.accountId, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_services.go b/internal/netlifyapi/api_services.go index df2b715..55e1eb9 100644 --- a/internal/netlifyapi/api_services.go +++ b/internal/netlifyapi/api_services.go @@ -74,7 +74,7 @@ func (a *ServicesAPIService) GetServicesExecute(r ApiGetServicesRequest) ([]Serv localVarFormParams := url.Values{} if r.search != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_site_assets.go b/internal/netlifyapi/api_site_assets.go index 94a40bb..806e5a3 100644 --- a/internal/netlifyapi/api_site_assets.go +++ b/internal/netlifyapi/api_site_assets.go @@ -518,10 +518,10 @@ func (a *SiteAssetsAPIService) ListSiteAssetsExecute(r ApiListSiteAssetsRequest) localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.search != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -641,7 +641,7 @@ func (a *SiteAssetsAPIService) UpdateSiteAssetExecute(r ApiUpdateSiteAssetReques return localVarReturnValue, nil, reportError("state is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "state", r.state, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/api_sites.go b/internal/netlifyapi/api_sites.go index a8651ec..9998126 100644 --- a/internal/netlifyapi/api_sites.go +++ b/internal/netlifyapi/api_sites.go @@ -87,7 +87,7 @@ func (a *SitesAPIService) CreateSiteExecute(r ApiCreateSiteRequest) (*Site, *htt } if r.configureDns != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "configure_dns", r.configureDns, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "configure_dns", r.configureDns, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -212,7 +212,7 @@ func (a *SitesAPIService) CreateSiteInTeamExecute(r ApiCreateSiteInTeamRequest) } if r.configureDns != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "configure_dns", r.configureDns, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "configure_dns", r.configureDns, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -419,7 +419,7 @@ func (a *SitesAPIService) DeleteSiteFirewallRuleSetExecute(r ApiDeleteSiteFirewa return nil, reportError("id is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -730,7 +730,7 @@ func (a *SitesAPIService) GetSiteFirewallRuleSetExecute(r ApiGetSiteFirewallRule return localVarReturnValue, nil, reportError("id is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -990,36 +990,36 @@ func (a *SitesAPIService) ListSitesExecute(r ApiListSitesRequest) ([]Site, *http localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.includeFavorites != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "include_favorites", r.includeFavorites, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include_favorites", r.includeFavorites, "form", "") } if r.labelIds != nil { t := *r.labelIds if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label_ids", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label_ids", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label_ids", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label_ids", t, "form", "multi") } } if r.name != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } if r.sortBy != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "form", "") } if r.visibility != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "visibility", r.visibility, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "visibility", r.visibility, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1167,22 +1167,22 @@ func (a *SitesAPIService) ListSitesForAccountExecute(r ApiListSitesForAccountReq localVarFormParams := url.Values{} if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") } if r.name != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "form", "") } if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } if r.sortBy != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "form", "") } if r.visibility != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "visibility", r.visibility, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "visibility", r.visibility, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1622,7 +1622,7 @@ func (a *SitesAPIService) UpdateSiteFirewallRuleSetExecute(r ApiUpdateSiteFirewa return nil, reportError("createSiteFirewallConfig is required and must be specified") } - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/internal/netlifyapi/api_split_tests.go b/internal/netlifyapi/api_split_tests.go index a2d882f..e83af50 100644 --- a/internal/netlifyapi/api_split_tests.go +++ b/internal/netlifyapi/api_split_tests.go @@ -491,10 +491,10 @@ func (a *SplitTestsAPIService) GetSplitTestsExecute(r ApiGetSplitTestsRequest) ( localVarFormParams := url.Values{} if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } if r.perPage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "per_page", r.perPage, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/netlifyapi/client.go b/internal/netlifyapi/client.go index 70ae570..3a4a78f 100644 --- a/internal/netlifyapi/client.go +++ b/internal/netlifyapi/client.go @@ -224,6 +224,10 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { func parameterValueToString( obj interface{}, key string ) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + return fmt.Sprintf("%v", obj) } var param,ok = obj.(MappedNullable) @@ -239,7 +243,7 @@ func parameterValueToString( obj interface{}, key string ) string { // parameterAddToHeaderOrQuery adds the provided object to the request header or url query // supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { @@ -255,11 +259,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri if err != nil { return } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) return } if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) return } value = v.Type().String() + " value" @@ -271,7 +275,11 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri var lenIndValue = indValue.Len() for i:=0;i Date: Thu, 30 Oct 2025 09:58:56 -0400 Subject: [PATCH 2/2] fix: builds were failing due to missing dep --- go.mod | 1 + go.sum | 2 ++ 2 files changed, 3 insertions(+) diff --git a/go.mod b/go.mod index bfa51e8..39be0f3 100644 --- a/go.mod +++ b/go.mod @@ -27,6 +27,7 @@ require ( github.com/mitchellh/go-wordwrap v1.0.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect google.golang.org/appengine v1.6.8 // indirect + gopkg.in/validator.v2 v2.0.1 // indirect ) require ( diff --git a/go.sum b/go.sum index 11ac3e0..fdca6f8 100644 --- a/go.sum +++ b/go.sum @@ -379,6 +379,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY= +gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=