diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 503ac36..fc5fc17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: - name: Download modules run: go mod download + - name: Check generated API client for internal details + run: ./scripts/openapi-leak-check.sh + - name: Vet run: go vet ./... diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 650dbc2..268f66a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,6 +30,23 @@ make vuln Do not edit generated files under `internal/api/generated/` by hand. +## Generated API client + +The client in `internal/api/generated/` contains only the backend operations +the CLI calls. They are listed in `scripts/openapi-allowlist.txt`. To call a +new operation, add its operationId there and regenerate from the backend +Swagger file: + +```bash +make generate-api-client SWAGGER_SPEC=/path/to/proto.swagger.json +``` + +`scripts/openapi-allowlist.py` drops every other operation, the schemas only +they use, and all descriptions. `make leak-check` (also run in CI) fails if the +client contains an operation that is not on the allow-list or not called by +the CLI, or admin, billing, or internal infrastructure details. Maintainers can +add private patterns with `OPENAPI_LEAK_EXTRA_PATTERNS_FILE=/path/to/file`. + ## Code style - Go, with packages under `internal/` diff --git a/Makefile b/Makefile index d7154bb..c6b6cce 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build install test clean fmt vet lint vuln help +.PHONY: build install test clean fmt vet lint vuln help generate-api-client leak-check # Build variables VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev") @@ -78,6 +78,9 @@ lint: ## Run golangci-lint @which golangci-lint > /dev/null || (echo "golangci-lint not installed. Install: https://golangci-lint.run/welcome/install/" && exit 1) golangci-lint run --timeout=5m +leak-check: ## Check the generated API client for internal details and unlisted operations + ./scripts/openapi-leak-check.sh + vuln: ## Run govulncheck @which govulncheck > /dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest govulncheck ./... @@ -99,6 +102,8 @@ tidy: ## Tidy go.mod # oapi-codegen variables (maintainers: set SWAGGER_SPEC to a Swagger 2.0 JSON file) SWAGGER_SPEC ?= proto.swagger.json OPENAPI3_SPEC = internal/api/generated/openapi3.yaml +OPENAPI3_FULL = $(BUILD_DIR)/openapi3.full.yaml +OPENAPI_ALLOWLIST = scripts/openapi-allowlist.txt GENERATED_DIR = internal/api/generated OAPI_CODEGEN = oapi-codegen @@ -109,9 +114,12 @@ generate-api-client: ## Generate API client from OpenAPI spec using oapi-codegen exit 1; \ fi @which $(OAPI_CODEGEN) > /dev/null || (echo "oapi-codegen not installed. Install via: go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest" && exit 1) - @mkdir -p $(GENERATED_DIR) + @mkdir -p $(GENERATED_DIR) $(BUILD_DIR) @echo "Converting Swagger 2.0 to OpenAPI 3.0..." - @npx -y swagger2openapi $(SWAGGER_SPEC) -o $(OPENAPI3_SPEC) || (echo "Error converting Swagger 2.0 to OpenAPI 3.0. Install swagger2openapi: npm install -g swagger2openapi" && exit 1) + @npx -y swagger2openapi $(SWAGGER_SPEC) -o $(OPENAPI3_FULL) || (echo "Error converting Swagger 2.0 to OpenAPI 3.0. Install swagger2openapi: npm install -g swagger2openapi" && exit 1) + @echo "Keeping only the operations in $(OPENAPI_ALLOWLIST)..." + @python3 scripts/openapi-allowlist.py $(OPENAPI_ALLOWLIST) $(OPENAPI3_FULL) $(OPENAPI3_SPEC) + @rm -f $(OPENAPI3_FULL) @echo "Generating types..." @$(OAPI_CODEGEN) \ -generate types \ @@ -124,6 +132,7 @@ generate-api-client: ## Generate API client from OpenAPI spec using oapi-codegen -package api \ -o $(GENERATED_DIR)/client.gen.go \ $(OPENAPI3_SPEC) + @./scripts/openapi-leak-check.sh @echo "✓ API client generated successfully in $(GENERATED_DIR)" @echo "Run 'make tidy' to update go.mod with new dependencies" diff --git a/internal/api/generated/client.gen.go b/internal/api/generated/client.gen.go index b5e96c3..e09484a 100644 --- a/internal/api/generated/client.gen.go +++ b/internal/api/generated/client.gen.go @@ -90,74 +90,6 @@ func WithRequestEditorFn(fn RequestEditorFn) ClientOption { // The interface specification for the client above. type ClientInterface interface { - // WebhookServiceHandleWebhookWithBody Handle webhook events from payment providers (Stripe, PayPal, etc.) - // This endpoint receives webhook payloads and processes payment/subscription - // events Note: The actual implementation will read raw HTTP body and headers - // directly to support webhook signature verification - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). - WebhookServiceHandleWebhookWithBody(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // WebhookServiceHandleWebhook Handle webhook events from payment providers (Stripe, PayPal, etc.) - // This endpoint receives webhook payloads and processes payment/subscription - // events Note: The actual implementation will read raw HTTP body and headers - // directly to support webhook signature verification - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). - WebhookServiceHandleWebhook(ctx context.Context, provider string, body WebhookServiceHandleWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceRemoveAddon Remove an addon from a subscription - // - // Corresponds with DELETE /v1/addon-subscriptions/{addonSubscriptionId} (the `AddonServiceRemoveAddon` operationId). - AddonServiceRemoveAddon(ctx context.Context, addonSubscriptionId string, params *AddonServiceRemoveAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceListAddons List available addons - // - // Corresponds with GET /v1/addons (the `AddonServiceListAddons` operationId). - AddonServiceListAddons(ctx context.Context, params *AddonServiceListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceCreateAddonWithBody Create an addon from a template addon - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). - AddonServiceCreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceCreateAddon Create an addon from a template addon - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). - AddonServiceCreateAddon(ctx context.Context, body AddonServiceCreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceDeleteAddon Delete an addon (soft delete) - // - // Corresponds with DELETE /v1/addons/{id} (the `AddonServiceDeleteAddon` operationId). - AddonServiceDeleteAddon(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceGetAddon Get a specific addon with its prices - // - // Corresponds with GET /v1/addons/{id} (the `AddonServiceGetAddon` operationId). - AddonServiceGetAddon(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceUpdateAddonWithBody Update an addon (allows changing price and currency) - // - // Takes any type of body and a specified content type. - // - // Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). - AddonServiceUpdateAddonWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceUpdateAddon Update an addon (allows changing price and currency) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). - AddonServiceUpdateAddon(ctx context.Context, id string, body AddonServiceUpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AgentServiceListAgents performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. AgentServiceListAgents(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -183,14 +115,6 @@ type ClientInterface interface { // Takes a body of the `application/json` content type. AgentServiceUpdateAgent(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AgentServiceGenerateInstallCommandWithBody performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request, - // with any type of body and a specified content type. - AgentServiceGenerateInstallCommandWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AgentServiceGenerateInstallCommand performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request. - // Takes a body of the `application/json` content type. - AgentServiceGenerateInstallCommand(ctx context.Context, id string, body AgentServiceGenerateInstallCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // AgentServiceGeneratePeeringConfigWithBody performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, // with any type of body and a specified content type. AgentServiceGeneratePeeringConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -207,58611 +131,3356 @@ type ClientInterface interface { // Takes a body of the `application/json` content type. AgentServiceUploadInboundPeeringConfig(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceChangePasswordWithBody performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request, - // with any type of body and a specified content type. - UserServiceChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceChangePassword performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceChangePassword(ctx context.Context, body UserServiceChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceForgotPasswordWithBody performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request, + // GroupServiceAddServiceAccountToGroupWithBody performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, // with any type of body and a specified content type. - UserServiceForgotPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + GroupServiceAddServiceAccountToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceForgotPassword performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request. + // GroupServiceAddServiceAccountToGroup performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. // Takes a body of the `application/json` content type. - UserServiceForgotPassword(ctx context.Context, body UserServiceForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceListLinkedIdentities performs a GET /v1/auth/identities (the `UserServiceListLinkedIdentities` operationId) request. - UserServiceListLinkedIdentities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceUnlinkIdentity performs a DELETE /v1/auth/identities/{provider} (the `UserServiceUnlinkIdentity` operationId) request. - UserServiceUnlinkIdentity(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error) + GroupServiceAddServiceAccountToGroup(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLoginWithBody performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request, - // with any type of body and a specified content type. - UserServiceLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GroupServiceRemoveServiceAccountFromGroup performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. + GroupServiceRemoveServiceAccountFromGroup(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLogin performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceLogin(ctx context.Context, body UserServiceLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // MetricsCredentialServiceListMetricsWriteCredentials performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. + MetricsCredentialServiceListMetricsWriteCredentials(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLoginMfaVerifyWithBody performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request, + // MetricsCredentialServiceCreateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, // with any type of body and a specified content type. - UserServiceLoginMfaVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLoginMfaVerify performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request. + // MetricsCredentialServiceCreateMetricsWriteCredential performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. // Takes a body of the `application/json` content type. - UserServiceLoginMfaVerify(ctx context.Context, body UserServiceLoginMfaVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + MetricsCredentialServiceCreateMetricsWriteCredential(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLogoutWithBody performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request, + // MetricsCredentialServiceRotateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, // with any type of body and a specified content type. - UserServiceLogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceLogout performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request. + // MetricsCredentialServiceRotateMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. // Takes a body of the `application/json` content type. - UserServiceLogout(ctx context.Context, body UserServiceLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceRegenerateMfaBackupCodesWithBody performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request, - // with any type of body and a specified content type. - UserServiceRegenerateMfaBackupCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + MetricsCredentialServiceRotateMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceRegenerateMfaBackupCodes performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceRegenerateMfaBackupCodes(ctx context.Context, body UserServiceRegenerateMfaBackupCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // OrganizationServiceGetOrganization performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. + OrganizationServiceGetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceDisableMfaWithBody performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request, - // with any type of body and a specified content type. - UserServiceDisableMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // OrganizationServiceListOrganizations performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. + OrganizationServiceListOrganizations(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceDisableMfa performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceDisableMfa(ctx context.Context, body UserServiceDisableMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // MetadataServiceGetPlatformVersions performs a GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId) request. + MetadataServiceGetPlatformVersions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceEnrollMfaTotpWithBody performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request, + // RoleServiceReplaceRoleForServiceAccountWithBody performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, // with any type of body and a specified content type. - UserServiceEnrollMfaTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + RoleServiceReplaceRoleForServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceEnrollMfaTotp performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request. + // RoleServiceReplaceRoleForServiceAccount performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. // Takes a body of the `application/json` content type. - UserServiceEnrollMfaTotp(ctx context.Context, body UserServiceEnrollMfaTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + RoleServiceReplaceRoleForServiceAccount(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceGetMfaStatus performs a GET /v1/auth/mfa/status (the `UserServiceGetMfaStatus` operationId) request. - UserServiceGetMfaStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ServiceAccountServiceListServiceAccounts performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. + ServiceAccountServiceListServiceAccounts(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceVerifyMfaEnrollmentWithBody performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request, + // ServiceAccountServiceCreateServiceAccountWithBody performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, // with any type of body and a specified content type. - UserServiceVerifyMfaEnrollmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceCreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceVerifyMfaEnrollment performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request. + // ServiceAccountServiceCreateServiceAccount performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. // Takes a body of the `application/json` content type. - UserServiceVerifyMfaEnrollment(ctx context.Context, body UserServiceVerifyMfaEnrollmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceRegisterUserWithBody performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request, - // with any type of body and a specified content type. - UserServiceRegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceCreateServiceAccount(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceRegisterUser performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceRegisterUser(ctx context.Context, body UserServiceRegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ServiceAccountServiceRevokeToken performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. + ServiceAccountServiceRevokeToken(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceResendVerificationEmailWithBody performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request, - // with any type of body and a specified content type. - UserServiceResendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // ServiceAccountServiceDeleteServiceAccount performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. + ServiceAccountServiceDeleteServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceResendVerificationEmail performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceResendVerificationEmail(ctx context.Context, body UserServiceResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ServiceAccountServiceGetServiceAccount performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. + ServiceAccountServiceGetServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceResetPasswordWithBody performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request, + // ServiceAccountServiceUpdateServiceAccountWithBody performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, // with any type of body and a specified content type. - UserServiceResetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceUpdateServiceAccountWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceResetPassword performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request. + // ServiceAccountServiceUpdateServiceAccount performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. // Takes a body of the `application/json` content type. - UserServiceResetPassword(ctx context.Context, body UserServiceResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceUpdateServiceAccount(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceGetActiveSessions performs a GET /v1/auth/sessions (the `UserServiceGetActiveSessions` operationId) request. - UserServiceGetActiveSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ServiceAccountServiceListTokens performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. + ServiceAccountServiceListTokens(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceSetPasswordWithBody performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request, + // ServiceAccountServiceGenerateTokenWithBody performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, // with any type of body and a specified content type. - UserServiceSetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceGenerateTokenWithBody(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - // UserServiceSetPassword performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request. + // ServiceAccountServiceGenerateToken performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. // Takes a body of the `application/json` content type. - UserServiceSetPassword(ctx context.Context, body UserServiceSetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + ServiceAccountServiceGenerateToken(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) +} - // UserServiceExchangeSSOCodeWithBody performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request, - // with any type of body and a specified content type. - UserServiceExchangeSSOCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceListAgents performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. +func (c *Client) AgentServiceListAgents(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceListAgentsRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // UserServiceExchangeSSOCode performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceExchangeSSOCode(ctx context.Context, body UserServiceExchangeSSOCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceCreateAgentWithBody performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, +// with any type of body and a specified content type. +func (c *Client) AgentServiceCreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceCreateAgentRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // UserServiceCompleteSSOLinkWithBody performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request, - // with any type of body and a specified content type. - UserServiceCompleteSSOLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceCreateAgent performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) AgentServiceCreateAgent(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceCreateAgentRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // UserServiceCompleteSSOLink performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceCompleteSSOLink(ctx context.Context, body UserServiceCompleteSSOLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceDeleteAgent performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. +func (c *Client) AgentServiceDeleteAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceDeleteAgentRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // UserServiceVerifyEmail performs a GET /v1/auth/verify-email (the `UserServiceVerifyEmail` operationId) request. - UserServiceVerifyEmail(ctx context.Context, params *UserServiceVerifyEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceGetAgent performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. +func (c *Client) AgentServiceGetAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceGetAgentRequest(c.Server, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceChatWithBody Chat provides a non-streaming chat endpoint - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). - ChatServiceChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceUpdateAgentWithBody performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, +// with any type of body and a specified content type. +func (c *Client) AgentServiceUpdateAgentWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceUpdateAgentRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceChat Chat provides a non-streaming chat endpoint - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). - ChatServiceChat(ctx context.Context, body ChatServiceChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceUpdateAgent performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) AgentServiceUpdateAgent(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceUpdateAgentRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceChatAnonymousWithBody ChatAnonymous provides a non-streaming chat endpoint for anonymous users - // Session ID is extracted from the cookie header (managed by the frontend) - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). - ChatServiceChatAnonymousWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceGeneratePeeringConfigWithBody performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, +// with any type of body and a specified content type. +func (c *Client) AgentServiceGeneratePeeringConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceGeneratePeeringConfigRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceChatAnonymous ChatAnonymous provides a non-streaming chat endpoint for anonymous users - // Session ID is extracted from the cookie header (managed by the frontend) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). - ChatServiceChatAnonymous(ctx context.Context, body ChatServiceChatAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceGeneratePeeringConfig performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) AgentServiceGeneratePeeringConfig(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceGeneratePeeringConfigRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceListConversations ListConversations returns all conversation IDs for the authenticated user - // - // Corresponds with GET /v1/chat/conversations (the `ChatServiceListConversations` operationId). - ChatServiceListConversations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceUploadInboundPeeringConfigWithBody performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, +// with any type of body and a specified content type. +func (c *Client) AgentServiceUploadInboundPeeringConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceUploadInboundPeeringConfigRequestWithBody(c.Server, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceDeleteConversation DeleteConversation marks a conversation as deleted (soft delete) - // - // Corresponds with DELETE /v1/chat/conversations/{conversationId} (the `ChatServiceDeleteConversation` operationId). - ChatServiceDeleteConversation(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) +// AgentServiceUploadInboundPeeringConfig performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) AgentServiceUploadInboundPeeringConfig(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAgentServiceUploadInboundPeeringConfigRequest(c.Server, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} - // ChatServiceGetConversationHistory GetConversationHistory returns the full message history for a conversation - // - // Corresponds with GET /v1/chat/conversations/{conversationId}/history (the `ChatServiceGetConversationHistory` operationId). - ChatServiceGetConversationHistory(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientDashboardServiceGetClientDashboardBilling performs a GET /v1/client/dashboard/billing (the `ClientDashboardServiceGetClientDashboardBilling` operationId) request. - ClientDashboardServiceGetClientDashboardBilling(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientDashboardServiceGetClientDashboardSummary performs a GET /v1/client/dashboard/summary (the `ClientDashboardServiceGetClientDashboardSummary` operationId) request. - ClientDashboardServiceGetClientDashboardSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceListClientProviderReviewAssets performs a GET /v1/client/provider-review-assets (the `ClientProviderReviewServiceListClientProviderReviewAssets` operationId) request. - ClientProviderReviewServiceListClientProviderReviewAssets(ctx context.Context, params *ClientProviderReviewServiceListClientProviderReviewAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceCreateCloudInitTemplateWithBody performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request, - // with any type of body and a specified content type. - CloudInitTemplateServiceCreateCloudInitTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceCreateCloudInitTemplate performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request. - // Takes a body of the `application/json` content type. - CloudInitTemplateServiceCreateCloudInitTemplate(ctx context.Context, body CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceDeleteCloudInitTemplate performs a DELETE /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceDeleteCloudInitTemplate` operationId) request. - CloudInitTemplateServiceDeleteCloudInitTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceGetCloudInitTemplate performs a GET /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceGetCloudInitTemplate` operationId) request. - CloudInitTemplateServiceGetCloudInitTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceUpdateCloudInitTemplateWithBody performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request, - // with any type of body and a specified content type. - CloudInitTemplateServiceUpdateCloudInitTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceUpdateCloudInitTemplate performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request. - // Takes a body of the `application/json` content type. - CloudInitTemplateServiceUpdateCloudInitTemplate(ctx context.Context, id string, body CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitTemplateServiceListCloudInitTemplates performs a GET /v1/cloudinittemplates (the `CloudInitTemplateServiceListCloudInitTemplates` operationId) request. - CloudInitTemplateServiceListCloudInitTemplates(ctx context.Context, params *CloudInitTemplateServiceListCloudInitTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceListCloudInitUserData performs a GET /v1/cloudinituserdata (the `CloudInitUserDataServiceListCloudInitUserData` operationId) request. - CloudInitUserDataServiceListCloudInitUserData(ctx context.Context, params *CloudInitUserDataServiceListCloudInitUserDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceCreateCloudInitUserDataWithBody performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request, - // with any type of body and a specified content type. - CloudInitUserDataServiceCreateCloudInitUserDataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceCreateCloudInitUserData performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request. - // Takes a body of the `application/json` content type. - CloudInitUserDataServiceCreateCloudInitUserData(ctx context.Context, body CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceDeleteCloudInitUserData performs a DELETE /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceDeleteCloudInitUserData` operationId) request. - CloudInitUserDataServiceDeleteCloudInitUserData(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceGetCloudInitUserData performs a GET /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceGetCloudInitUserData` operationId) request. - CloudInitUserDataServiceGetCloudInitUserData(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceUpdateCloudInitUserDataWithBody performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request, - // with any type of body and a specified content type. - CloudInitUserDataServiceUpdateCloudInitUserDataWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CloudInitUserDataServiceUpdateCloudInitUserData performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request. - // Takes a body of the `application/json` content type. - CloudInitUserDataServiceUpdateCloudInitUserData(ctx context.Context, id string, body CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceListCountriesCities performs a GET /v1/countries-cities (the `RegionServiceListCountriesCities` operationId) request. - RegionServiceListCountriesCities(ctx context.Context, params *RegionServiceListCountriesCitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreditServiceGetCreditBalance performs a GET /v1/credits/balance (the `CreditServiceGetCreditBalance` operationId) request. - CreditServiceGetCreditBalance(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreditServiceListCreditLedgerEntries performs a GET /v1/credits/ledger (the `CreditServiceListCreditLedgerEntries` operationId) request. - CreditServiceListCreditLedgerEntries(ctx context.Context, params *CreditServiceListCreditLedgerEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreditServicePurchaseCreditsWithBody performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request, - // with any type of body and a specified content type. - CreditServicePurchaseCreditsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // CreditServicePurchaseCredits performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request. - // Takes a body of the `application/json` content type. - CreditServicePurchaseCredits(ctx context.Context, body CreditServicePurchaseCreditsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceListDatacenters performs a GET /v1/datacenters (the `RegionServiceListDatacenters` operationId) request. - RegionServiceListDatacenters(ctx context.Context, params *RegionServiceListDatacentersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DomainServiceGetDomain performs a GET /v1/domain (the `DomainServiceGetDomain` operationId) request. - DomainServiceGetDomain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DomainServiceCreateDomainWithBody performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request, - // with any type of body and a specified content type. - DomainServiceCreateDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DomainServiceCreateDomain performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request. - // Takes a body of the `application/json` content type. - DomainServiceCreateDomain(ctx context.Context, body DomainServiceCreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DomainServiceVerifyDomain performs a GET /v1/domain/verify/{id} (the `DomainServiceVerifyDomain` operationId) request. - DomainServiceVerifyDomain(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DomainServiceDeleteDomain performs a DELETE /v1/domain/{id} (the `DomainServiceDeleteDomain` operationId) request. - DomainServiceDeleteDomain(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceListEnvironmentVariables performs a GET /v1/environment-variables (the `EnvironmentVariableServiceListEnvironmentVariables` operationId) request. - EnvironmentVariableServiceListEnvironmentVariables(ctx context.Context, params *EnvironmentVariableServiceListEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceCreateEnvironmentVariableWithBody performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request, - // with any type of body and a specified content type. - EnvironmentVariableServiceCreateEnvironmentVariableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceCreateEnvironmentVariable performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request. - // Takes a body of the `application/json` content type. - EnvironmentVariableServiceCreateEnvironmentVariable(ctx context.Context, body EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceDeleteEnvironmentVariable performs a DELETE /v1/environment-variables/{id} (the `EnvironmentVariableServiceDeleteEnvironmentVariable` operationId) request. - EnvironmentVariableServiceDeleteEnvironmentVariable(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceGetEnvironmentVariable performs a GET /v1/environment-variables/{id} (the `EnvironmentVariableServiceGetEnvironmentVariable` operationId) request. - EnvironmentVariableServiceGetEnvironmentVariable(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceUpdateEnvironmentVariableWithBody performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request, - // with any type of body and a specified content type. - EnvironmentVariableServiceUpdateEnvironmentVariableWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // EnvironmentVariableServiceUpdateEnvironmentVariable performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request. - // Takes a body of the `application/json` content type. - EnvironmentVariableServiceUpdateEnvironmentVariable(ctx context.Context, id string, body EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExchangeRateServiceConvertCurrencyWithBody Convert an amount from USD to a target currency - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). - ExchangeRateServiceConvertCurrencyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExchangeRateServiceConvertCurrency Convert an amount from USD to a target currency - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). - ExchangeRateServiceConvertCurrency(ctx context.Context, body ExchangeRateServiceConvertCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExchangeRateServiceListSupportedCurrencies List all supported currency codes - // - // Corresponds with GET /v1/exchange-rate/currencies (the `ExchangeRateServiceListSupportedCurrencies` operationId). - ExchangeRateServiceListSupportedCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExchangeRateServiceGetExchangeRate Get the current exchange rate for a specific currency (from USD) - // - // Corresponds with GET /v1/exchange-rate/rate/{currencyCode} (the `ExchangeRateServiceGetExchangeRate` operationId). - ExchangeRateServiceGetExchangeRate(ctx context.Context, currencyCode string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ExchangeRateServiceGetAllExchangeRates Get all exchange rates at once (returns map of currency codes to rates) - // - // Corresponds with GET /v1/exchange-rate/rates (the `ExchangeRateServiceGetAllExchangeRates` operationId). - ExchangeRateServiceGetAllExchangeRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceListFirewallAddressGroups performs a GET /v1/firewall/address-groups (the `FirewallServiceListFirewallAddressGroups` operationId) request. - FirewallServiceListFirewallAddressGroups(ctx context.Context, params *FirewallServiceListFirewallAddressGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallAddressGroupWithBody performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request, - // with any type of body and a specified content type. - FirewallServiceCreateFirewallAddressGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallAddressGroup performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceCreateFirewallAddressGroup(ctx context.Context, body FirewallServiceCreateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceDeleteFirewallAddressGroup performs a DELETE /v1/firewall/address-groups/{id} (the `FirewallServiceDeleteFirewallAddressGroup` operationId) request. - FirewallServiceDeleteFirewallAddressGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceGetFirewallAddressGroup performs a GET /v1/firewall/address-groups/{id} (the `FirewallServiceGetFirewallAddressGroup` operationId) request. - FirewallServiceGetFirewallAddressGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallAddressGroupWithBody performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request, - // with any type of body and a specified content type. - FirewallServiceUpdateFirewallAddressGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallAddressGroup performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceUpdateFirewallAddressGroup(ctx context.Context, id string, body FirewallServiceUpdateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceDeleteFirewallRule performs a DELETE /v1/firewall/rules/{id} (the `FirewallServiceDeleteFirewallRule` operationId) request. - FirewallServiceDeleteFirewallRule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceGetFirewallRule performs a GET /v1/firewall/rules/{id} (the `FirewallServiceGetFirewallRule` operationId) request. - FirewallServiceGetFirewallRule(ctx context.Context, id string, params *FirewallServiceGetFirewallRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallRuleWithBody performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request, - // with any type of body and a specified content type. - FirewallServiceUpdateFirewallRuleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallRule performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceUpdateFirewallRule(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceMoveFirewallRuleWithBody performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request, - // with any type of body and a specified content type. - FirewallServiceMoveFirewallRuleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceMoveFirewallRule performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceMoveFirewallRule(ctx context.Context, id string, body FirewallServiceMoveFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceListFirewallRuleSets performs a GET /v1/firewall/rulesets (the `FirewallServiceListFirewallRuleSets` operationId) request. - FirewallServiceListFirewallRuleSets(ctx context.Context, params *FirewallServiceListFirewallRuleSetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallRuleSetWithBody performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request, - // with any type of body and a specified content type. - FirewallServiceCreateFirewallRuleSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallRuleSet performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceCreateFirewallRuleSet(ctx context.Context, body FirewallServiceCreateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceDeleteFirewallRuleSet performs a DELETE /v1/firewall/rulesets/{id} (the `FirewallServiceDeleteFirewallRuleSet` operationId) request. - FirewallServiceDeleteFirewallRuleSet(ctx context.Context, id string, params *FirewallServiceDeleteFirewallRuleSetParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceGetFirewallRuleSet performs a GET /v1/firewall/rulesets/{id} (the `FirewallServiceGetFirewallRuleSet` operationId) request. - FirewallServiceGetFirewallRuleSet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallRuleSetWithBody performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request, - // with any type of body and a specified content type. - FirewallServiceUpdateFirewallRuleSetWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceUpdateFirewallRuleSet performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceUpdateFirewallRuleSet(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceListFirewallRules performs a GET /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceListFirewallRules` operationId) request. - FirewallServiceListFirewallRules(ctx context.Context, rulesetId string, params *FirewallServiceListFirewallRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallRuleWithBody performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request, - // with any type of body and a specified content type. - FirewallServiceCreateFirewallRuleWithBody(ctx context.Context, rulesetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // FirewallServiceCreateFirewallRule performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request. - // Takes a body of the `application/json` content type. - FirewallServiceCreateFirewallRule(ctx context.Context, rulesetId string, body FirewallServiceCreateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceListGroups performs a GET /v1/groups (the `GroupServiceListGroups` operationId) request. - GroupServiceListGroups(ctx context.Context, params *GroupServiceListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceCreateGroupWithBody performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request, - // with any type of body and a specified content type. - GroupServiceCreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceCreateGroup performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request. - // Takes a body of the `application/json` content type. - GroupServiceCreateGroup(ctx context.Context, body GroupServiceCreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceAddServiceAccountToGroupWithBody performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, - // with any type of body and a specified content type. - GroupServiceAddServiceAccountToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceAddServiceAccountToGroup performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. - // Takes a body of the `application/json` content type. - GroupServiceAddServiceAccountToGroup(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceAddUserToGroupWithBody performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request, - // with any type of body and a specified content type. - GroupServiceAddUserToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceAddUserToGroup performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request. - // Takes a body of the `application/json` content type. - GroupServiceAddUserToGroup(ctx context.Context, body GroupServiceAddUserToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceRemoveServiceAccountFromGroup performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. - GroupServiceRemoveServiceAccountFromGroup(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceRemoveUserFromGroup performs a DELETE /v1/groups/remove-user (the `GroupServiceRemoveUserFromGroup` operationId) request. - GroupServiceRemoveUserFromGroup(ctx context.Context, params *GroupServiceRemoveUserFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceDeleteGroup performs a DELETE /v1/groups/{id} (the `GroupServiceDeleteGroup` operationId) request. - GroupServiceDeleteGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceGetGroup performs a GET /v1/groups/{id} (the `GroupServiceGetGroup` operationId) request. - GroupServiceGetGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceUpdateGroupWithBody performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request, - // with any type of body and a specified content type. - GroupServiceUpdateGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GroupServiceUpdateGroup performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request. - // Takes a body of the `application/json` content type. - GroupServiceUpdateGroup(ctx context.Context, id string, body GroupServiceUpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetadataServiceHealthCheck performs a GET /v1/healthz (the `MetadataServiceHealthCheck` operationId) request. - MetadataServiceHealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InstantAppServiceListInstantApps performs a GET /v1/instantapps (the `InstantAppServiceListInstantApps` operationId) request. - InstantAppServiceListInstantApps(ctx context.Context, params *InstantAppServiceListInstantAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InstantAppServiceGetInstantApp2 performs a GET /v1/instantapps/slug/{slug} (the `InstantAppServiceGetInstantApp2` operationId) request. - InstantAppServiceGetInstantApp2(ctx context.Context, slug string, params *InstantAppServiceGetInstantApp2Params, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InstantAppServiceGetInstantApp performs a GET /v1/instantapps/{id} (the `InstantAppServiceGetInstantApp` operationId) request. - InstantAppServiceGetInstantApp(ctx context.Context, id string, params *InstantAppServiceGetInstantAppParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceListInvites performs a GET /v1/invites (the `InviteServiceListInvites` operationId) request. - InviteServiceListInvites(ctx context.Context, params *InviteServiceListInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceUpdateInviteWithBody performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request, - // with any type of body and a specified content type. - InviteServiceUpdateInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceUpdateInvite performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request. - // Takes a body of the `application/json` content type. - InviteServiceUpdateInvite(ctx context.Context, body InviteServiceUpdateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceCreateInviteWithBody performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request, - // with any type of body and a specified content type. - InviteServiceCreateInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceCreateInvite performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request. - // Takes a body of the `application/json` content type. - InviteServiceCreateInvite(ctx context.Context, body InviteServiceCreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceAcceptInvite performs a GET /v1/invites/accept (the `InviteServiceAcceptInvite` operationId) request. - InviteServiceAcceptInvite(ctx context.Context, params *InviteServiceAcceptInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceDeclineInvite performs a GET /v1/invites/decline (the `InviteServiceDeclineInvite` operationId) request. - InviteServiceDeclineInvite(ctx context.Context, params *InviteServiceDeclineInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceListMyInvites performs a GET /v1/invites/me (the `InviteServiceListMyInvites` operationId) request. - InviteServiceListMyInvites(ctx context.Context, params *InviteServiceListMyInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceResendInvite performs a POST /v1/invites/resend/{inviteId} (the `InviteServiceResendInvite` operationId) request. - InviteServiceResendInvite(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InviteServiceDeleteInvite performs a DELETE /v1/invites/{id} (the `InviteServiceDeleteInvite` operationId) request. - InviteServiceDeleteInvite(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InvoiceServiceListInvoices ListInvoices lists invoices for a subscription or organization - // - // Corresponds with GET /v1/invoices (the `InvoiceServiceListInvoices` operationId). - InvoiceServiceListInvoices(ctx context.Context, params *InvoiceServiceListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // InvoiceServiceGetInvoice GetInvoice retrieves a single invoice with line items - // - // Corresponds with GET /v1/invoices/{invoiceId} (the `InvoiceServiceGetInvoice` operationId). - InvoiceServiceGetInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceListAllocations IP Allocation (read-only - allocations are managed automatically) - // - // Corresponds with GET /v1/ipam/allocations (the `IPAMServiceListAllocations` operationId). - IPAMServiceListAllocations(ctx context.Context, params *IPAMServiceListAllocationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceListNetworks performs a GET /v1/ipam/networks (the `IPAMServiceListNetworks` operationId) request. - IPAMServiceListNetworks(ctx context.Context, params *IPAMServiceListNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceCreateNetworkWithBody IPAM Network management - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). - IPAMServiceCreateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceCreateNetwork IPAM Network management - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). - IPAMServiceCreateNetwork(ctx context.Context, body IPAMServiceCreateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceDeleteNetwork performs a DELETE /v1/ipam/networks/{id} (the `IPAMServiceDeleteNetwork` operationId) request. - IPAMServiceDeleteNetwork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceGetNetwork performs a GET /v1/ipam/networks/{id} (the `IPAMServiceGetNetwork` operationId) request. - IPAMServiceGetNetwork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceUpdateNetworkWithBody performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request, - // with any type of body and a specified content type. - IPAMServiceUpdateNetworkWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceUpdateNetwork performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request. - // Takes a body of the `application/json` content type. - IPAMServiceUpdateNetwork(ctx context.Context, id string, body IPAMServiceUpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAssignNetworkToNodeWithBody Node-Network assignment - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). - IPAMServiceAssignNetworkToNodeWithBody(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAssignNetworkToNode Node-Network assignment - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). - IPAMServiceAssignNetworkToNode(ctx context.Context, networkId string, body IPAMServiceAssignNetworkToNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceListNetworkNodes performs a GET /v1/ipam/networks/{networkId}/nodes (the `IPAMServiceListNetworkNodes` operationId) request. - IPAMServiceListNetworkNodes(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceGetNodeNetwork performs a GET /v1/ipam/nodes/{nodeId}/network (the `IPAMServiceGetNodeNetwork` operationId) request. - IPAMServiceGetNodeNetwork(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceUnassignNetworkFromNode performs a POST /v1/ipam/nodes/{nodeId}/unassign-network (the `IPAMServiceUnassignNetworkFromNode` operationId) request. - IPAMServiceUnassignNetworkFromNode(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceListPrefixes performs a GET /v1/ipam/prefixes (the `IPAMServiceListPrefixes` operationId) request. - IPAMServiceListPrefixes(ctx context.Context, params *IPAMServiceListPrefixesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceCreatePrefixWithBody Prefix management - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). - IPAMServiceCreatePrefixWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceCreatePrefix Prefix management - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). - IPAMServiceCreatePrefix(ctx context.Context, body IPAMServiceCreatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceDeletePrefix performs a DELETE /v1/ipam/prefixes/{id} (the `IPAMServiceDeletePrefix` operationId) request. - IPAMServiceDeletePrefix(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceGetPrefix performs a GET /v1/ipam/prefixes/{id} (the `IPAMServiceGetPrefix` operationId) request. - IPAMServiceGetPrefix(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceUpdatePrefixWithBody performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request, - // with any type of body and a specified content type. - IPAMServiceUpdatePrefixWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceUpdatePrefix performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request. - // Takes a body of the `application/json` content type. - IPAMServiceUpdatePrefix(ctx context.Context, id string, body IPAMServiceUpdatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceListAvailableIPs performs a GET /v1/ipam/prefixes/{prefixId}/available-ips (the `IPAMServiceListAvailableIPs` operationId) request. - IPAMServiceListAvailableIPs(ctx context.Context, prefixId string, params *IPAMServiceListAvailableIPsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAddReservedIPWithBody IP Reservation (manage reserved_ips array in prefix) - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). - IPAMServiceAddReservedIPWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAddReservedIP IP Reservation (manage reserved_ips array in prefix) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). - IPAMServiceAddReservedIP(ctx context.Context, prefixId string, body IPAMServiceAddReservedIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceClearAllPrefixReservedIPsWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request, - // with any type of body and a specified content type. - IPAMServiceClearAllPrefixReservedIPsWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceClearAllPrefixReservedIPs performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request. - // Takes a body of the `application/json` content type. - IPAMServiceClearAllPrefixReservedIPs(ctx context.Context, prefixId string, body IPAMServiceClearAllPrefixReservedIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceReserveAllPrefixIPsWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request, - // with any type of body and a specified content type. - IPAMServiceReserveAllPrefixIPsWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceReserveAllPrefixIPs performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request. - // Takes a body of the `application/json` content type. - IPAMServiceReserveAllPrefixIPs(ctx context.Context, prefixId string, body IPAMServiceReserveAllPrefixIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceRemoveReservedIP performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress} (the `IPAMServiceRemoveReservedIP` operationId) request. - IPAMServiceRemoveReservedIP(ctx context.Context, prefixId string, ipAddress string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceRemoveReservedPrefix performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceRemoveReservedPrefix` operationId) request. - IPAMServiceRemoveReservedPrefix(ctx context.Context, prefixId string, params *IPAMServiceRemoveReservedPrefixParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAddReservedPrefixWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request, - // with any type of body and a specified content type. - IPAMServiceAddReservedPrefixWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceAddReservedPrefix performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request. - // Takes a body of the `application/json` content type. - IPAMServiceAddReservedPrefix(ctx context.Context, prefixId string, body IPAMServiceAddReservedPrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // IPAMServiceGetPrefixUtilization Utility - // - // Corresponds with GET /v1/ipam/prefixes/{prefixId}/utilization (the `IPAMServiceGetPrefixUtilization` operationId). - IPAMServiceGetPrefixUtilization(ctx context.Context, prefixId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceListAvailableAddons performs a GET /v1/marketplace/addons (the `MarketplaceServiceListAvailableAddons` operationId) request. - MarketplaceServiceListAvailableAddons(ctx context.Context, params *MarketplaceServiceListAvailableAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceListAvailablePlans performs a GET /v1/marketplace/plans (the `MarketplaceServiceListAvailablePlans` operationId) request. - MarketplaceServiceListAvailablePlans(ctx context.Context, params *MarketplaceServiceListAvailablePlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceGetMarketplacePlan performs a GET /v1/marketplace/plans/{planId} (the `MarketplaceServiceGetMarketplacePlan` operationId) request. - MarketplaceServiceGetMarketplacePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceListMarketplaceProviderDirectory performs a GET /v1/marketplace/provider-directory (the `MarketplaceServiceListMarketplaceProviderDirectory` operationId) request. - MarketplaceServiceListMarketplaceProviderDirectory(ctx context.Context, params *MarketplaceServiceListMarketplaceProviderDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceListProviders performs a GET /v1/marketplace/providers (the `MarketplaceServiceListProviders` operationId) request. - MarketplaceServiceListProviders(ctx context.Context, params *MarketplaceServiceListProvidersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceGetProvider performs a GET /v1/marketplace/providers/{providerId} (the `MarketplaceServiceGetProvider` operationId) request. - MarketplaceServiceGetProvider(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceListAvailableRegions performs a GET /v1/marketplace/regions (the `MarketplaceServiceListAvailableRegions` operationId) request. - MarketplaceServiceListAvailableRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceSearchMarketplaceWithBody performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request, - // with any type of body and a specified content type. - MarketplaceServiceSearchMarketplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MarketplaceServiceSearchMarketplace performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request. - // Takes a body of the `application/json` content type. - MarketplaceServiceSearchMarketplace(ctx context.Context, body MarketplaceServiceSearchMarketplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricServiceListMetrics List all available metrics - // - // Corresponds with GET /v1/metrics (the `MetricServiceListMetrics` operationId). - MetricServiceListMetrics(ctx context.Context, params *MetricServiceListMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceListMetricsWriteCredentials performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. - MetricsCredentialServiceListMetricsWriteCredentials(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceCreateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceCreateMetricsWriteCredential performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type. - MetricsCredentialServiceCreateMetricsWriteCredential(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceRevokeMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - MetricsCredentialServiceRevokeMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceRevokeMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type. - MetricsCredentialServiceRevokeMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceRotateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricsCredentialServiceRotateMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type. - MetricsCredentialServiceRotateMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetricServiceGetMetric Get a specific metric by ID or code - // - // Corresponds with GET /v1/metrics/{id} (the `MetricServiceGetMetric` operationId). - MetricServiceGetMetric(ctx context.Context, id string, params *MetricServiceGetMetricParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceCreateNodeWithBody performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request, - // with any type of body and a specified content type. - NodeServiceCreateNodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceCreateNode performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request. - // Takes a body of the `application/json` content type. - NodeServiceCreateNode(ctx context.Context, body NodeServiceCreateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodePlacementServiceGetNodePlacementPolicy performs a GET /v1/node-placement-policy (the `NodePlacementServiceGetNodePlacementPolicy` operationId) request. - NodePlacementServiceGetNodePlacementPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodePlacementServiceUpdateNodePlacementPolicyWithBody performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request, - // with any type of body and a specified content type. - NodePlacementServiceUpdateNodePlacementPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodePlacementServiceUpdateNodePlacementPolicy performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request. - // Takes a body of the `application/json` content type. - NodePlacementServiceUpdateNodePlacementPolicy(ctx context.Context, body NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceValidateNodeTopologyWithBody Dedicated CPU cores: parse-preview of a topology paste without persisting. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). - NodeServiceValidateNodeTopologyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceValidateNodeTopology Dedicated CPU cores: parse-preview of a topology paste without persisting. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). - NodeServiceValidateNodeTopology(ctx context.Context, body NodeServiceValidateNodeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceDeleteNode performs a DELETE /v1/node/{id} (the `NodeServiceDeleteNode` operationId) request. - NodeServiceDeleteNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceGetNode performs a GET /v1/node/{id} (the `NodeServiceGetNode` operationId) request. - NodeServiceGetNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceUpdateNodeWithBody performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request, - // with any type of body and a specified content type. - NodeServiceUpdateNodeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceUpdateNode performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request. - // Takes a body of the `application/json` content type. - NodeServiceUpdateNode(ctx context.Context, id string, body NodeServiceUpdateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceGetNodeCPUMap Dedicated CPU cores: full topology + per-CPU occupancy for the node - // topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3). - // - // Corresponds with GET /v1/node/{id}/cpu-map (the `NodeServiceGetNodeCPUMap` operationId). - NodeServiceGetNodeCPUMap(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // NodeServiceListNodes performs a GET /v1/nodes (the `NodeServiceListNodes` operationId) request. - NodeServiceListNodes(ctx context.Context, params *NodeServiceListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceAuthorize Authorize initiates the OAuth2 authorization flow - // - // Corresponds with GET /v1/oauth2/authorize (the `OAuth2ServiceAuthorize` operationId). - OAuth2ServiceAuthorize(ctx context.Context, params *OAuth2ServiceAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceListClients ListClients lists OAuth2 clients for the organization - // - // Corresponds with GET /v1/oauth2/clients (the `OAuth2ServiceListClients` operationId). - OAuth2ServiceListClients(ctx context.Context, params *OAuth2ServiceListClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceCreateClientWithBody CreateClient creates a new OAuth2 client - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). - OAuth2ServiceCreateClientWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceCreateClient CreateClient creates a new OAuth2 client - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). - OAuth2ServiceCreateClient(ctx context.Context, body OAuth2ServiceCreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceDeleteClient DeleteClient deletes an OAuth2 client - // - // Corresponds with DELETE /v1/oauth2/clients/{clientId} (the `OAuth2ServiceDeleteClient` operationId). - OAuth2ServiceDeleteClient(ctx context.Context, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceRefreshTokenWithBody RefreshToken exchanges refresh token for new access token - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). - OAuth2ServiceRefreshTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceRefreshToken RefreshToken exchanges refresh token for new access token - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). - OAuth2ServiceRefreshToken(ctx context.Context, body OAuth2ServiceRefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceRevokeTokenWithBody RevokeToken revokes an access or refresh token - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). - OAuth2ServiceRevokeTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceRevokeToken RevokeToken revokes an access or refresh token - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). - OAuth2ServiceRevokeToken(ctx context.Context, body OAuth2ServiceRevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceTokenWithBody Token exchanges authorization code for access token - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). - OAuth2ServiceTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OAuth2ServiceToken Token exchanges authorization code for access token - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). - OAuth2ServiceToken(ctx context.Context, body OAuth2ServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceGetOrganization performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. - OrganizationServiceGetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceDeleteOrganization performs a DELETE /v1/organizations (the `OrganizationServiceDeleteOrganization` operationId) request. - OrganizationServiceDeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceListOrganizations performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. - OrganizationServiceListOrganizations(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceUpdateOrganizationWithBody performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request, - // with any type of body and a specified content type. - OrganizationServiceUpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceUpdateOrganization performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request. - // Takes a body of the `application/json` content type. - OrganizationServiceUpdateOrganization(ctx context.Context, body OrganizationServiceUpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceCreateOrganizationWithBody performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request, - // with any type of body and a specified content type. - OrganizationServiceCreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // OrganizationServiceCreateOrganization performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request. - // Takes a body of the `application/json` content type. - OrganizationServiceCreateOrganization(ctx context.Context, body OrganizationServiceCreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceListPaymentMethods List payment methods for an organization/subscription - // Returns payment method details (type, last4, brand, expiry, is_default) - // - // Corresponds with GET /v1/payment-methods (the `PaymentMethodServiceListPaymentMethods` operationId). - PaymentMethodServiceListPaymentMethods(ctx context.Context, params *PaymentMethodServiceListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceAttachPaymentMethodWithBody Attach a payment method to a subscription/organization - // Works for both providers (platform subscriptions) and clients (provider - // plan subscriptions) Authorization: Check organization type and rule engine - // (subscription.payment_method.manage.enabled) - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). - PaymentMethodServiceAttachPaymentMethodWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceAttachPaymentMethod Attach a payment method to a subscription/organization - // Works for both providers (platform subscriptions) and clients (provider - // plan subscriptions) Authorization: Check organization type and rule engine - // (subscription.payment_method.manage.enabled) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). - PaymentMethodServiceAttachPaymentMethod(ctx context.Context, body PaymentMethodServiceAttachPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceRemovePaymentMethod Remove a payment method - // Validation: - // - Providers: Cannot remove if only one method exists (except on free plan) - // - Clients: Cannot remove if only one method exists - // - Cannot remove if payment method is currently in use for active - // subscriptions - // - // Corresponds with DELETE /v1/payment-methods/{paymentMethodId} (the `PaymentMethodServiceRemovePaymentMethod` operationId). - PaymentMethodServiceRemovePaymentMethod(ctx context.Context, paymentMethodId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceSetDefaultPaymentMethodWithBody Set a payment method as the default payment method - // Validates payment method belongs to organization/subscription - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). - PaymentMethodServiceSetDefaultPaymentMethodWithBody(ctx context.Context, paymentMethodId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentMethodServiceSetDefaultPaymentMethod Set a payment method as the default payment method - // Validates payment method belongs to organization/subscription - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). - PaymentMethodServiceSetDefaultPaymentMethod(ctx context.Context, paymentMethodId string, body PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentServiceListPayments ListPayments lists payments for an invoice or organization - // - // Corresponds with GET /v1/payments (the `PaymentServiceListPayments` operationId). - PaymentServiceListPayments(ctx context.Context, params *PaymentServiceListPaymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PaymentServiceGetPayment GetPayment retrieves a single payment with refunds - // - // Corresponds with GET /v1/payments/{paymentId} (the `PaymentServiceGetPayment` operationId). - PaymentServiceGetPayment(ctx context.Context, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PermissionServiceListPermissions performs a GET /v1/permissions (the `PermissionServiceListPermissions` operationId) request. - PermissionServiceListPermissions(ctx context.Context, params *PermissionServiceListPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PermissionServiceAssignPermissionToRoleWithBody performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request, - // with any type of body and a specified content type. - PermissionServiceAssignPermissionToRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PermissionServiceAssignPermissionToRole performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request. - // Takes a body of the `application/json` content type. - PermissionServiceAssignPermissionToRole(ctx context.Context, body PermissionServiceAssignPermissionToRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PermissionServiceListEffectivePermissions performs a GET /v1/permissions/effective (the `PermissionServiceListEffectivePermissions` operationId) request. - PermissionServiceListEffectivePermissions(ctx context.Context, params *PermissionServiceListEffectivePermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PermissionServiceRemovePermissionFromRole performs a DELETE /v1/permissions/remove-from-role (the `PermissionServiceRemovePermissionFromRole` operationId) request. - PermissionServiceRemovePermissionFromRole(ctx context.Context, params *PermissionServiceRemovePermissionFromRoleParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlanServiceListPlans performs a GET /v1/plans (the `PlanServiceListPlans` operationId) request. - PlanServiceListPlans(ctx context.Context, params *PlanServiceListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceCreatePlanWithBody performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request, - // with any type of body and a specified content type. - ProviderPlanServiceCreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceCreatePlan performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request. - // Takes a body of the `application/json` content type. - ProviderPlanServiceCreatePlan(ctx context.Context, body ProviderPlanServiceCreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceDeletePlan performs a DELETE /v1/plans/{id} (the `ProviderPlanServiceDeletePlan` operationId) request. - ProviderPlanServiceDeletePlan(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceUpdatePlanWithBody performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request, - // with any type of body and a specified content type. - ProviderPlanServiceUpdatePlanWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceUpdatePlan performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request. - // Takes a body of the `application/json` content type. - ProviderPlanServiceUpdatePlan(ctx context.Context, id string, body ProviderPlanServiceUpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlanServiceSubscribe performs a POST /v1/plans/{planId}:subscribe (the `PlanServiceSubscribe` operationId) request. - PlanServiceSubscribe(ctx context.Context, planId string, params *PlanServiceSubscribeParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceCalculatePlanPricingWithBody performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request, - // with any type of body and a specified content type. - ProviderPlanServiceCalculatePlanPricingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceCalculatePlanPricing performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request. - // Takes a body of the `application/json` content type. - ProviderPlanServiceCalculatePlanPricing(ctx context.Context, body ProviderPlanServiceCalculatePlanPricingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceCreatePlatformWithBody performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request, - // with any type of body and a specified content type. - PlatformServiceCreatePlatformWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceCreatePlatform performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request. - // Takes a body of the `application/json` content type. - PlatformServiceCreatePlatform(ctx context.Context, body PlatformServiceCreatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetadataServiceGetPlatformVersions GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, liqoctl, and helm. - // - // Corresponds with GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId). - MetadataServiceGetPlatformVersions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceDeletePlatform performs a DELETE /v1/platform/{id} (the `PlatformServiceDeletePlatform` operationId) request. - PlatformServiceDeletePlatform(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceGetPlatform performs a GET /v1/platform/{id} (the `PlatformServiceGetPlatform` operationId) request. - PlatformServiceGetPlatform(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceUpdatePlatformWithBody performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request, - // with any type of body and a specified content type. - PlatformServiceUpdatePlatformWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceUpdatePlatform performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request. - // Takes a body of the `application/json` content type. - PlatformServiceUpdatePlatform(ctx context.Context, id string, body PlatformServiceUpdatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceListPlatforms performs a GET /v1/platforms (the `PlatformServiceListPlatforms` operationId) request. - PlatformServiceListPlatforms(ctx context.Context, params *PlatformServiceListPlatformsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceAssignAgentWithBody performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request, - // with any type of body and a specified content type. - PlatformServiceAssignAgentWithBody(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceAssignAgent performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request. - // Takes a body of the `application/json` content type. - PlatformServiceAssignAgent(ctx context.Context, platformId string, body PlatformServiceAssignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceUnassignAgentWithBody performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request, - // with any type of body and a specified content type. - PlatformServiceUnassignAgentWithBody(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PlatformServiceUnassignAgent performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request. - // Takes a body of the `application/json` content type. - PlatformServiceUnassignAgent(ctx context.Context, platformId string, body PlatformServiceUnassignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceListProviderReviews performs a GET /v1/provider-reviews (the `ProviderReviewServiceListProviderReviews` operationId) request. - ProviderReviewServiceListProviderReviews(ctx context.Context, params *ProviderReviewServiceListProviderReviewsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceCreateClientReviewWithBody performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request, - // with any type of body and a specified content type. - ClientProviderReviewServiceCreateClientReviewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceCreateClientReview performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request. - // Takes a body of the `application/json` content type. - ClientProviderReviewServiceCreateClientReview(ctx context.Context, body ClientProviderReviewServiceCreateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceGetClientReviewForVirtualMachine performs a GET /v1/provider-reviews/virtual-machines/{virtualMachineId} (the `ClientProviderReviewServiceGetClientReviewForVirtualMachine` operationId) request. - ClientProviderReviewServiceGetClientReviewForVirtualMachine(ctx context.Context, virtualMachineId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceDeleteClientReview performs a DELETE /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceDeleteClientReview` operationId) request. - ClientProviderReviewServiceDeleteClientReview(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceUpdateClientReviewWithBody performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request, - // with any type of body and a specified content type. - ClientProviderReviewServiceUpdateClientReviewWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ClientProviderReviewServiceUpdateClientReview performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request. - // Takes a body of the `application/json` content type. - ClientProviderReviewServiceUpdateClientReview(ctx context.Context, reviewId string, body ClientProviderReviewServiceUpdateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceDeleteProviderReviewReply performs a DELETE /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceDeleteProviderReviewReply` operationId) request. - ProviderReviewServiceDeleteProviderReviewReply(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceUpdateProviderReviewReplyWithBody performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request, - // with any type of body and a specified content type. - ProviderReviewServiceUpdateProviderReviewReplyWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceUpdateProviderReviewReply performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request. - // Takes a body of the `application/json` content type. - ProviderReviewServiceUpdateProviderReviewReply(ctx context.Context, reviewId string, body ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceCreateProviderReviewReplyWithBody performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request, - // with any type of body and a specified content type. - ProviderReviewServiceCreateProviderReviewReplyWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderReviewServiceCreateProviderReviewReply performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request. - // Takes a body of the `application/json` content type. - ProviderReviewServiceCreateProviderReviewReply(ctx context.Context, reviewId string, body ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceDisconnectConnectAccount performs a DELETE /v1/provider/connect/account (the `ProviderConnectServiceDisconnectConnectAccount` operationId) request. - ProviderConnectServiceDisconnectConnectAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceGetConnectAccount performs a GET /v1/provider/connect/account (the `ProviderConnectServiceGetConnectAccount` operationId) request. - ProviderConnectServiceGetConnectAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceCreateConnectAccountWithBody performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request, - // with any type of body and a specified content type. - ProviderConnectServiceCreateConnectAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceCreateConnectAccount performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request. - // Takes a body of the `application/json` content type. - ProviderConnectServiceCreateConnectAccount(ctx context.Context, body ProviderConnectServiceCreateConnectAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceCreateConnectTaxSessionWithBody Creates a Stripe AccountSession client secret for Connect tax_settings / - // tax_registrations embedded components. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). - ProviderConnectServiceCreateConnectTaxSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderConnectServiceCreateConnectTaxSession Creates a Stripe AccountSession client secret for Connect tax_settings / - // tax_registrations embedded components. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). - ProviderConnectServiceCreateConnectTaxSession(ctx context.Context, body ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceGetProviderCustomerStats Path must not be `/customers/stats`: some gateways match `/customers/{client_organization_id}` first and treat "stats" as a UUID field (validation error). - // - // Corresponds with GET /v1/provider/customer-stats (the `ProviderCustomerServiceGetProviderCustomerStats` operationId). - ProviderCustomerServiceGetProviderCustomerStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceListProviderCustomers performs a GET /v1/provider/customers (the `ProviderCustomerServiceListProviderCustomers` operationId) request. - ProviderCustomerServiceListProviderCustomers(ctx context.Context, params *ProviderCustomerServiceListProviderCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceGetProviderCustomer performs a GET /v1/provider/customers/{clientOrganizationId} (the `ProviderCustomerServiceGetProviderCustomer` operationId) request. - ProviderCustomerServiceGetProviderCustomer(ctx context.Context, clientOrganizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceListProviderCustomerAssets performs a GET /v1/provider/customers/{clientOrganizationId}/assets (the `ProviderCustomerServiceListProviderCustomerAssets` operationId) request. - ProviderCustomerServiceListProviderCustomerAssets(ctx context.Context, clientOrganizationId string, params *ProviderCustomerServiceListProviderCustomerAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceRestartProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - ProviderCustomerServiceRestartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceStartProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - ProviderCustomerServiceStartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderCustomerServiceStopProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - ProviderCustomerServiceStopProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardAddonCatalogStats performs a GET /v1/provider/dashboard/addon-catalog-stats (the `ProviderDashboardServiceListDashboardAddonCatalogStats` operationId) request. - ProviderDashboardServiceListDashboardAddonCatalogStats(ctx context.Context, params *ProviderDashboardServiceListDashboardAddonCatalogStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceGetDashboardAssetSalesTimeseries performs a GET /v1/provider/dashboard/asset-sales-timeseries (the `ProviderDashboardServiceGetDashboardAssetSalesTimeseries` operationId) request. - ProviderDashboardServiceGetDashboardAssetSalesTimeseries(ctx context.Context, params *ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceGetDashboardBillingSales performs a GET /v1/provider/dashboard/billing-sales (the `ProviderDashboardServiceGetDashboardBillingSales` operationId) request. - ProviderDashboardServiceGetDashboardBillingSales(ctx context.Context, params *ProviderDashboardServiceGetDashboardBillingSalesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries performs a GET /v1/provider/dashboard/customer-acquisition-timeseries (the `ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries` operationId) request. - ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries(ctx context.Context, params *ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardInfrastructure performs a GET /v1/provider/dashboard/infrastructure (the `ProviderDashboardServiceListDashboardInfrastructure` operationId) request. - ProviderDashboardServiceListDashboardInfrastructure(ctx context.Context, params *ProviderDashboardServiceListDashboardInfrastructureParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardIpam performs a GET /v1/provider/dashboard/ipam (the `ProviderDashboardServiceListDashboardIpam` operationId) request. - ProviderDashboardServiceListDashboardIpam(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardIpamAssignments performs a GET /v1/provider/dashboard/ipam/assignments (the `ProviderDashboardServiceListDashboardIpamAssignments` operationId) request. - ProviderDashboardServiceListDashboardIpamAssignments(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamAssignmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardPlanSubscriptionStats performs a GET /v1/provider/dashboard/plan-subscription-stats (the `ProviderDashboardServiceListDashboardPlanSubscriptionStats` operationId) request. - ProviderDashboardServiceListDashboardPlanSubscriptionStats(ctx context.Context, params *ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardPlansTabServiceGetDashboardPlansTabStats performs a GET /v1/provider/dashboard/plans-tab-stats (the `ProviderDashboardPlansTabServiceGetDashboardPlansTabStats` operationId) request. - ProviderDashboardPlansTabServiceGetDashboardPlansTabStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceGetDashboardSummary performs a GET /v1/provider/dashboard/summary (the `ProviderDashboardServiceGetDashboardSummary` operationId) request. - ProviderDashboardServiceGetDashboardSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardTicketStatistics performs a GET /v1/provider/dashboard/tickets/statistics (the `ProviderDashboardServiceListDashboardTicketStatistics` operationId) request. - ProviderDashboardServiceListDashboardTicketStatistics(ctx context.Context, params *ProviderDashboardServiceListDashboardTicketStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderDashboardServiceListDashboardVirtualMachines performs a GET /v1/provider/dashboard/virtual-machines (the `ProviderDashboardServiceListDashboardVirtualMachines` operationId) request. - ProviderDashboardServiceListDashboardVirtualMachines(ctx context.Context, params *ProviderDashboardServiceListDashboardVirtualMachinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceListPlanLiveValidations performs a GET /v1/provider/live-validations (the `LiveValidationServiceListPlanLiveValidations` operationId) request. - LiveValidationServiceListPlanLiveValidations(ctx context.Context, params *LiveValidationServiceListPlanLiveValidationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManualPayoutServiceDeleteManualPayout performs a DELETE /v1/provider/manual-payout (the `ManualPayoutServiceDeleteManualPayout` operationId) request. - ManualPayoutServiceDeleteManualPayout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManualPayoutServiceGetManualPayout performs a GET /v1/provider/manual-payout (the `ManualPayoutServiceGetManualPayout` operationId) request. - ManualPayoutServiceGetManualPayout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManualPayoutServiceCreateManualPayoutWithBody performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request, - // with any type of body and a specified content type. - ManualPayoutServiceCreateManualPayoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ManualPayoutServiceCreateManualPayout performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request. - // Takes a body of the `application/json` content type. - ManualPayoutServiceCreateManualPayout(ctx context.Context, body ManualPayoutServiceCreateManualPayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies performs a GET /v1/provider/network/smtp-outbound-policies (the `ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies` operationId) request. - ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies(ctx context.Context, params *ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBody performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request, - // with any type of body and a specified content type. - ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBody(ctx context.Context, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request. - // Takes a body of the `application/json` content type. - ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy(ctx context.Context, virtualMachineId string, body ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceGetSmtpOutboundProviderPolicy performs a GET /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceGetSmtpOutboundProviderPolicy` operationId) request. - ProviderNetworkServiceGetSmtpOutboundProviderPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBody performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request, - // with any type of body and a specified content type. - ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request. - // Takes a body of the `application/json` content type. - ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy(ctx context.Context, body ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderOnboardingServiceGetProviderOnboardingChecklist performs a GET /v1/provider/onboarding/checklist (the `ProviderOnboardingServiceGetProviderOnboardingChecklist` operationId) request. - ProviderOnboardingServiceGetProviderOnboardingChecklist(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutConfigurationServiceGetPayoutConfiguration performs a GET /v1/provider/payout-configuration (the `PayoutConfigurationServiceGetPayoutConfiguration` operationId) request. - PayoutConfigurationServiceGetPayoutConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutConfigurationServiceUpdatePayoutConfigurationWithBody performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request, - // with any type of body and a specified content type. - PayoutConfigurationServiceUpdatePayoutConfigurationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutConfigurationServiceUpdatePayoutConfiguration performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request. - // Takes a body of the `application/json` content type. - PayoutConfigurationServiceUpdatePayoutConfiguration(ctx context.Context, body PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutInvoiceServiceListPayoutInvoices performs a GET /v1/provider/payout-invoices (the `PayoutInvoiceServiceListPayoutInvoices` operationId) request. - PayoutInvoiceServiceListPayoutInvoices(ctx context.Context, params *PayoutInvoiceServiceListPayoutInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutInvoiceServiceGetPayoutInvoice performs a GET /v1/provider/payout-invoices/{id} (the `PayoutInvoiceServiceGetPayoutInvoice` operationId) request. - PayoutInvoiceServiceGetPayoutInvoice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ProviderPlanServiceListAssignableNodesForPlan Nodes the provider may assign to a plan (catalog-eligible for tier/category). - // - // Corresponds with GET /v1/provider/plans/assignable-nodes (the `ProviderPlanServiceListAssignableNodesForPlan` operationId). - ProviderPlanServiceListAssignableNodesForPlan(ctx context.Context, params *ProviderPlanServiceListAssignableNodesForPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceDeletePlanLiveValidation performs a DELETE /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceDeletePlanLiveValidation` operationId) request. - LiveValidationServiceDeletePlanLiveValidation(ctx context.Context, planId string, params *LiveValidationServiceDeletePlanLiveValidationParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceGetPlanLiveValidation performs a GET /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceGetPlanLiveValidation` operationId) request. - LiveValidationServiceGetPlanLiveValidation(ctx context.Context, planId string, params *LiveValidationServiceGetPlanLiveValidationParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceStartPlanLiveValidationWithBody performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request, - // with any type of body and a specified content type. - LiveValidationServiceStartPlanLiveValidationWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceStartPlanLiveValidation performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request. - // Takes a body of the `application/json` content type. - LiveValidationServiceStartPlanLiveValidation(ctx context.Context, planId string, body LiveValidationServiceStartPlanLiveValidationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceListPlanLiveValidationBenchmarks performs a GET /v1/provider/plans/{planId}/live-validation/benchmarks (the `LiveValidationServiceListPlanLiveValidationBenchmarks` operationId) request. - LiveValidationServiceListPlanLiveValidationBenchmarks(ctx context.Context, planId string, params *LiveValidationServiceListPlanLiveValidationBenchmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // LiveValidationServiceListEligibleNodesForPlan performs a GET /v1/provider/plans/{planId}/live-validation/nodes (the `LiveValidationServiceListEligibleNodesForPlan` operationId) request. - LiveValidationServiceListEligibleNodesForPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PreflightServiceListPreflightChecks performs a GET /v1/provider/preflight-checks (the `PreflightServiceListPreflightChecks` operationId) request. - PreflightServiceListPreflightChecks(ctx context.Context, params *PreflightServiceListPreflightChecksParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PayoutInvoiceServiceGetProviderRevenue performs a GET /v1/provider/revenue (the `PayoutInvoiceServiceGetProviderRevenue` operationId) request. - PayoutInvoiceServiceGetProviderRevenue(ctx context.Context, params *PayoutInvoiceServiceGetProviderRevenueParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RefundServiceListRefunds ListRefunds lists refunds for a payment, invoice, or organization - // - // Corresponds with GET /v1/refunds (the `RefundServiceListRefunds` operationId). - RefundServiceListRefunds(ctx context.Context, params *RefundServiceListRefundsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RefundServiceGetRefund GetRefund retrieves a single refund with payment and invoice details - // - // Corresponds with GET /v1/refunds/{refundId} (the `RefundServiceGetRefund` operationId). - RefundServiceGetRefund(ctx context.Context, refundId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceListRegions performs a GET /v1/regions (the `RegionServiceListRegions` operationId) request. - RegionServiceListRegions(ctx context.Context, params *RegionServiceListRegionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceCreateRegionWithBody performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request, - // with any type of body and a specified content type. - RegionServiceCreateRegionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceCreateRegion performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request. - // Takes a body of the `application/json` content type. - RegionServiceCreateRegion(ctx context.Context, body RegionServiceCreateRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceDeleteRegion performs a DELETE /v1/regions/{id} (the `RegionServiceDeleteRegion` operationId) request. - RegionServiceDeleteRegion(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RegionServiceGetRegion performs a GET /v1/regions/{id} (the `RegionServiceGetRegion` operationId) request. - RegionServiceGetRegion(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceDeleteRoadmapFeatureRequestComment performs a DELETE /v1/roadmap/comments/{commentId} (the `RoadmapServiceDeleteRoadmapFeatureRequestComment` operationId) request. - RoadmapServiceDeleteRoadmapFeatureRequestComment(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBody performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request, - // with any type of body and a specified content type. - RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBody(ctx context.Context, commentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceUpdateRoadmapFeatureRequestComment performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request. - // Takes a body of the `application/json` content type. - RoadmapServiceUpdateRoadmapFeatureRequestComment(ctx context.Context, commentId string, body RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceListRoadmapProductCategories performs a GET /v1/roadmap/products (the `RoadmapServiceListRoadmapProductCategories` operationId) request. - RoadmapServiceListRoadmapProductCategories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceListRoadmapFeatureRequests performs a GET /v1/roadmap/requests (the `RoadmapServiceListRoadmapFeatureRequests` operationId) request. - RoadmapServiceListRoadmapFeatureRequests(ctx context.Context, params *RoadmapServiceListRoadmapFeatureRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceGetRoadmapFeatureRequest performs a GET /v1/roadmap/requests/{slug} (the `RoadmapServiceGetRoadmapFeatureRequest` operationId) request. - RoadmapServiceGetRoadmapFeatureRequest(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceListRoadmapFeatureRequestComments performs a GET /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceListRoadmapFeatureRequestComments` operationId) request. - RoadmapServiceListRoadmapFeatureRequestComments(ctx context.Context, slug string, params *RoadmapServiceListRoadmapFeatureRequestCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceCreateRoadmapFeatureRequestCommentWithBody performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request, - // with any type of body and a specified content type. - RoadmapServiceCreateRoadmapFeatureRequestCommentWithBody(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceCreateRoadmapFeatureRequestComment performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request. - // Takes a body of the `application/json` content type. - RoadmapServiceCreateRoadmapFeatureRequestComment(ctx context.Context, slug string, body RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceRemoveRoadmapFeatureRequestVote performs a DELETE /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceRemoveRoadmapFeatureRequestVote` operationId) request. - RoadmapServiceRemoveRoadmapFeatureRequestVote(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceVoteRoadmapFeatureRequestWithBody performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request, - // with any type of body and a specified content type. - RoadmapServiceVoteRoadmapFeatureRequestWithBody(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceVoteRoadmapFeatureRequest performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request. - // Takes a body of the `application/json` content type. - RoadmapServiceVoteRoadmapFeatureRequest(ctx context.Context, slug string, body RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceGetRoadmapStats performs a GET /v1/roadmap/stats (the `RoadmapServiceGetRoadmapStats` operationId) request. - RoadmapServiceGetRoadmapStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceSubmitRoadmapFeatureRequestWithBody performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request, - // with any type of body and a specified content type. - RoadmapServiceSubmitRoadmapFeatureRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoadmapServiceSubmitRoadmapFeatureRequest performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request. - // Takes a body of the `application/json` content type. - RoadmapServiceSubmitRoadmapFeatureRequest(ctx context.Context, body RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceListRoles performs a GET /v1/roles (the `RoleServiceListRoles` operationId) request. - RoleServiceListRoles(ctx context.Context, params *RoleServiceListRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceCreateRoleWithBody performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request, - // with any type of body and a specified content type. - RoleServiceCreateRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceCreateRole performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request. - // Takes a body of the `application/json` content type. - RoleServiceCreateRole(ctx context.Context, body RoleServiceCreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForGroupWithBody performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request, - // with any type of body and a specified content type. - RoleServiceReplaceRoleForGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForGroup performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request. - // Takes a body of the `application/json` content type. - RoleServiceReplaceRoleForGroup(ctx context.Context, body RoleServiceReplaceRoleForGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForServiceAccountWithBody performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, - // with any type of body and a specified content type. - RoleServiceReplaceRoleForServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForServiceAccount performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. - // Takes a body of the `application/json` content type. - RoleServiceReplaceRoleForServiceAccount(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForUserWithBody performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request, - // with any type of body and a specified content type. - RoleServiceReplaceRoleForUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceReplaceRoleForUser performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request. - // Takes a body of the `application/json` content type. - RoleServiceReplaceRoleForUser(ctx context.Context, body RoleServiceReplaceRoleForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceDeleteRole performs a DELETE /v1/roles/{id} (the `RoleServiceDeleteRole` operationId) request. - RoleServiceDeleteRole(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceUpdateRoleWithBody performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request, - // with any type of body and a specified content type. - RoleServiceUpdateRoleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // RoleServiceUpdateRole performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request. - // Takes a body of the `application/json` content type. - RoleServiceUpdateRole(ctx context.Context, id string, body RoleServiceUpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceListSecrets performs a GET /v1/secrets (the `SecretServiceListSecrets` operationId) request. - SecretServiceListSecrets(ctx context.Context, params *SecretServiceListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceCreateSecretWithBody performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request, - // with any type of body and a specified content type. - SecretServiceCreateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceCreateSecret performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request. - // Takes a body of the `application/json` content type. - SecretServiceCreateSecret(ctx context.Context, body SecretServiceCreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceDeleteSecret performs a DELETE /v1/secrets/{id} (the `SecretServiceDeleteSecret` operationId) request. - SecretServiceDeleteSecret(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceGetSecret performs a GET /v1/secrets/{id} (the `SecretServiceGetSecret` operationId) request. - SecretServiceGetSecret(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceUpdateSecretWithBody performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request, - // with any type of body and a specified content type. - SecretServiceUpdateSecretWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SecretServiceUpdateSecret performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request. - // Takes a body of the `application/json` content type. - SecretServiceUpdateSecret(ctx context.Context, id string, body SecretServiceUpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceListServiceAccounts performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. - ServiceAccountServiceListServiceAccounts(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceCreateServiceAccountWithBody performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, - // with any type of body and a specified content type. - ServiceAccountServiceCreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceCreateServiceAccount performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. - // Takes a body of the `application/json` content type. - ServiceAccountServiceCreateServiceAccount(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceRevokeToken performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. - ServiceAccountServiceRevokeToken(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceDeleteServiceAccount performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. - ServiceAccountServiceDeleteServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceGetServiceAccount performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. - ServiceAccountServiceGetServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceUpdateServiceAccountWithBody performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, - // with any type of body and a specified content type. - ServiceAccountServiceUpdateServiceAccountWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceUpdateServiceAccount performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. - // Takes a body of the `application/json` content type. - ServiceAccountServiceUpdateServiceAccount(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceListTokens performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. - ServiceAccountServiceListTokens(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceGenerateTokenWithBody performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, - // with any type of body and a specified content type. - ServiceAccountServiceGenerateTokenWithBody(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // ServiceAccountServiceGenerateToken performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. - // Takes a body of the `application/json` content type. - ServiceAccountServiceGenerateToken(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SSHKeyServiceListSSHKeys performs a GET /v1/ssh-keys (the `SSHKeyServiceListSSHKeys` operationId) request. - SSHKeyServiceListSSHKeys(ctx context.Context, params *SSHKeyServiceListSSHKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SSHKeyServiceCreateSSHKeyWithBody performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request, - // with any type of body and a specified content type. - SSHKeyServiceCreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SSHKeyServiceCreateSSHKey performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request. - // Takes a body of the `application/json` content type. - SSHKeyServiceCreateSSHKey(ctx context.Context, body SSHKeyServiceCreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SSHKeyServiceDeleteSSHKey performs a DELETE /v1/ssh-keys/{id} (the `SSHKeyServiceDeleteSSHKey` operationId) request. - SSHKeyServiceDeleteSSHKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SSHKeyServiceGetSSHKey performs a GET /v1/ssh-keys/{id} (the `SSHKeyServiceGetSSHKey` operationId) request. - SSHKeyServiceGetSSHKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceListSubscriptions performs a GET /v1/subscriptions (the `SubscriptionServiceListSubscriptions` operationId) request. - SubscriptionServiceListSubscriptions(ctx context.Context, params *SubscriptionServiceListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceListAddonSubscriptions List addon subscriptions for a subscription - // - // Corresponds with GET /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceListAddonSubscriptions` operationId). - AddonServiceListAddonSubscriptions(ctx context.Context, subscriptionId string, params *AddonServiceListAddonSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceAddAddonToSubscriptionWithBody Add an addon to a subscription - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). - AddonServiceAddAddonToSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // AddonServiceAddAddonToSubscription Add an addon to a subscription - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). - AddonServiceAddAddonToSubscription(ctx context.Context, subscriptionId string, body AddonServiceAddAddonToSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceCancel performs a POST /v1/subscriptions:cancel (the `SubscriptionServiceCancel` operationId) request. - SubscriptionServiceCancel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceCancelRenewalWithBody CancelRenewal schedules an asset/VM-linked subscription to stop renewing at - // current_period_end. The VM remains usable until then; no refund of the current period. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). - SubscriptionServiceCancelRenewalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceCancelRenewal CancelRenewal schedules an asset/VM-linked subscription to stop renewing at - // current_period_end. The VM remains usable until then; no refund of the current period. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). - SubscriptionServiceCancelRenewal(ctx context.Context, body SubscriptionServiceCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceRetryPaymentWithBody performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request, - // with any type of body and a specified content type. - SubscriptionServiceRetryPaymentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceRetryPayment performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request. - // Takes a body of the `application/json` content type. - SubscriptionServiceRetryPayment(ctx context.Context, body SubscriptionServiceRetryPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceGetSubscriptionStatus performs a GET /v1/subscriptions:status (the `SubscriptionServiceGetSubscriptionStatus` operationId) request. - SubscriptionServiceGetSubscriptionStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceUndoCancelRenewalWithBody UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). - SubscriptionServiceUndoCancelRenewalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SubscriptionServiceUndoCancelRenewal UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). - SubscriptionServiceUndoCancelRenewal(ctx context.Context, body SubscriptionServiceUndoCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceListTicketTemplates performs a GET /v1/ticket-templates (the `TicketServiceListTicketTemplates` operationId) request. - TicketServiceListTicketTemplates(ctx context.Context, params *TicketServiceListTicketTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicketTemplateWithBody performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request, - // with any type of body and a specified content type. - TicketServiceCreateTicketTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicketTemplate performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceCreateTicketTemplate(ctx context.Context, body TicketServiceCreateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceDeleteTicketTemplate performs a DELETE /v1/ticket-templates/{id} (the `TicketServiceDeleteTicketTemplate` operationId) request. - TicketServiceDeleteTicketTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceGetTicketTemplate performs a GET /v1/ticket-templates/{id} (the `TicketServiceGetTicketTemplate` operationId) request. - TicketServiceGetTicketTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceUpdateTicketTemplateWithBody performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request, - // with any type of body and a specified content type. - TicketServiceUpdateTicketTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceUpdateTicketTemplate performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceUpdateTicketTemplate(ctx context.Context, id string, body TicketServiceUpdateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceListTickets performs a GET /v1/tickets (the `TicketServiceListTickets` operationId) request. - TicketServiceListTickets(ctx context.Context, params *TicketServiceListTicketsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicketWithBody performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request, - // with any type of body and a specified content type. - TicketServiceCreateTicketWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicket performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceCreateTicket(ctx context.Context, body TicketServiceCreateTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceDeleteTicketAttachment performs a DELETE /v1/tickets/attachments/{attachmentId} (the `TicketServiceDeleteTicketAttachment` operationId) request. - TicketServiceDeleteTicketAttachment(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceDownloadTicketAttachment performs a GET /v1/tickets/attachments/{attachmentId}:download (the `TicketServiceDownloadTicketAttachment` operationId) request. - TicketServiceDownloadTicketAttachment(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceConfirmTicketAttachmentUploadWithBody performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request, - // with any type of body and a specified content type. - TicketServiceConfirmTicketAttachmentUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceConfirmTicketAttachmentUpload performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceConfirmTicketAttachmentUpload(ctx context.Context, body TicketServiceConfirmTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceUploadTicketAttachmentContentWithBody performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request, - // with any type of body and a specified content type. - TicketServiceUploadTicketAttachmentContentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceUploadTicketAttachmentContent performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceUploadTicketAttachmentContent(ctx context.Context, body TicketServiceUploadTicketAttachmentContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceDeleteTicket performs a DELETE /v1/tickets/{id} (the `TicketServiceDeleteTicket` operationId) request. - TicketServiceDeleteTicket(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceGetTicket performs a GET /v1/tickets/{id} (the `TicketServiceGetTicket` operationId) request. - TicketServiceGetTicket(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceListTicketAttachments performs a GET /v1/tickets/{ticketId}/attachments (the `TicketServiceListTicketAttachments` operationId) request. - TicketServiceListTicketAttachments(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicketAttachmentUploadWithBody performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request, - // with any type of body and a specified content type. - TicketServiceCreateTicketAttachmentUploadWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceCreateTicketAttachmentUpload performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceCreateTicketAttachmentUpload(ctx context.Context, ticketId string, body TicketServiceCreateTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceListInternalComments performs a GET /v1/tickets/{ticketId}/internal-comments (the `TicketServiceListInternalComments` operationId) request. - TicketServiceListInternalComments(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceAddReplyToTicketWithBody performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request, - // with any type of body and a specified content type. - TicketServiceAddReplyToTicketWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceAddReplyToTicket performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceAddReplyToTicket(ctx context.Context, ticketId string, body TicketServiceAddReplyToTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceAddInternalCommentWithBody performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request, - // with any type of body and a specified content type. - TicketServiceAddInternalCommentWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceAddInternalComment performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceAddInternalComment(ctx context.Context, ticketId string, body TicketServiceAddInternalCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSetTicketPriorityWithBody performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request, - // with any type of body and a specified content type. - TicketServiceSetTicketPriorityWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSetTicketPriority performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceSetTicketPriority(ctx context.Context, ticketId string, body TicketServiceSetTicketPriorityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSetTicketStatusWithBody performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request, - // with any type of body and a specified content type. - TicketServiceSetTicketStatusWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSetTicketStatus performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceSetTicketStatus(ctx context.Context, ticketId string, body TicketServiceSetTicketStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSearchTicketsWithBody performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request, - // with any type of body and a specified content type. - TicketServiceSearchTicketsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // TicketServiceSearchTickets performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request. - // Takes a body of the `application/json` content type. - TicketServiceSearchTickets(ctx context.Context, body TicketServiceSearchTicketsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceRecordUsageWithBody Record a single usage event (from Prometheus or other monitoring systems) - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). - UsageReportServiceRecordUsageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceRecordUsage Record a single usage event (from Prometheus or other monitoring systems) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). - UsageReportServiceRecordUsage(ctx context.Context, body UsageReportServiceRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceBatchRecordUsageWithBody Batch record multiple usage events (for bulk ingestion) - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). - UsageReportServiceBatchRecordUsageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceBatchRecordUsage Batch record multiple usage events (for bulk ingestion) - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). - UsageReportServiceBatchRecordUsage(ctx context.Context, body UsageReportServiceBatchRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceListUsageRecords List usage records with filters - // - // Corresponds with GET /v1/usage/records (the `UsageReportServiceListUsageRecords` operationId). - UsageReportServiceListUsageRecords(ctx context.Context, params *UsageReportServiceListUsageRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceGetUsageRecord Get a specific usage record by ID - // - // Corresponds with GET /v1/usage/records/{id} (the `UsageReportServiceGetUsageRecord` operationId). - UsageReportServiceGetUsageRecord(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UsageReportServiceGetUsageReport Get aggregated usage report for a billing period - // - // Corresponds with GET /v1/usage/report (the `UsageReportServiceGetUsageReport` operationId). - UsageReportServiceGetUsageReport(ctx context.Context, params *UsageReportServiceGetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceListUsers performs a GET /v1/users (the `UserServiceListUsers` operationId) request. - UserServiceListUsers(ctx context.Context, params *UserServiceListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceDeleteUser performs a DELETE /v1/users/{id} (the `UserServiceDeleteUser` operationId) request. - UserServiceDeleteUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceGetUser performs a GET /v1/users/{id} (the `UserServiceGetUser` operationId) request. - UserServiceGetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceUpdateUserWithBody performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request, - // with any type of body and a specified content type. - UserServiceUpdateUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // UserServiceUpdateUser performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request. - // Takes a body of the `application/json` content type. - UserServiceUpdateUser(ctx context.Context, id string, body UserServiceUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // MetadataServiceGetVersion performs a GET /v1/version (the `MetadataServiceGetVersion` operationId) request. - MetadataServiceGetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceListVirtualMachines performs a GET /v1/virtual-machines (the `VirtualMachineServiceListVirtualMachines` operationId) request. - VirtualMachineServiceListVirtualMachines(ctx context.Context, params *VirtualMachineServiceListVirtualMachinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceCreateVirtualMachineWithBody performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceCreateVirtualMachineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceCreateVirtualMachine performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceCreateVirtualMachine(ctx context.Context, body VirtualMachineServiceCreateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceListVMTags ListVMTags returns all unique tags from virtual machines belonging to the organization - // - // Corresponds with GET /v1/virtual-machines/tags (the `VirtualMachineServiceListVMTags` operationId). - VirtualMachineServiceListVMTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDeleteVirtualMachine performs a DELETE /v1/virtual-machines/{id} (the `VirtualMachineServiceDeleteVirtualMachine` operationId) request. - VirtualMachineServiceDeleteVirtualMachine(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceGetVirtualMachine performs a GET /v1/virtual-machines/{id} (the `VirtualMachineServiceGetVirtualMachine` operationId) request. - VirtualMachineServiceGetVirtualMachine(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceUpdateVirtualMachineWithBody performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceUpdateVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceUpdateVirtualMachine performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceUpdateVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceUpdateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceGetVNCConsole GetVNCConsole returns WebSocket URL for VNC console access. - // - // Corresponds with GET /v1/virtual-machines/{id}/console (the `VirtualMachineServiceGetVNCConsole` operationId). - VirtualMachineServiceGetVNCConsole(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceAttachVMFirewallWithBody performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceAttachVMFirewallWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceAttachVMFirewall performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceAttachVMFirewall(ctx context.Context, id string, body VirtualMachineServiceAttachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDetachVMFirewallWithBody performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceDetachVMFirewallWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDetachVMFirewall performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceDetachVMFirewall(ctx context.Context, id string, body VirtualMachineServiceDetachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceReinstallVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceReinstallVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceReinstallVirtualMachine performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceReinstallVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceReinstallVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceRestartVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceRestartVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceRestartVirtualMachine performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceRestartVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceRestartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceStartVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceStartVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceStartVirtualMachine performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceStartVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceStartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceStopVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request, - // with any type of body and a specified content type. - VirtualMachineServiceStopVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceStopVirtualMachine performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type. - VirtualMachineServiceStopVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceStopVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // BackupServiceListBackups performs a GET /v1/virtual-machines/{vmId}/backups (the `BackupServiceListBackups` operationId) request. - BackupServiceListBackups(ctx context.Context, vmId string, params *BackupServiceListBackupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // BackupServiceDeleteBackup performs a DELETE /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceDeleteBackup` operationId) request. - BackupServiceDeleteBackup(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // BackupServiceGetBackup performs a GET /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceGetBackup` operationId) request. - BackupServiceGetBackup(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // BackupServiceRestoreBackupWithBody performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request, - // with any type of body and a specified content type. - BackupServiceRestoreBackupWithBody(ctx context.Context, vmId string, backupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // BackupServiceRestoreBackup performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request. - // Takes a body of the `application/json` content type. - BackupServiceRestoreBackup(ctx context.Context, vmId string, backupId string, body BackupServiceRestoreBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceListSnapshots performs a GET /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceListSnapshots` operationId) request. - SnapshotServiceListSnapshots(ctx context.Context, vmId string, params *SnapshotServiceListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceCreateSnapshotWithBody performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request, - // with any type of body and a specified content type. - SnapshotServiceCreateSnapshotWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceCreateSnapshot performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request. - // Takes a body of the `application/json` content type. - SnapshotServiceCreateSnapshot(ctx context.Context, vmId string, body SnapshotServiceCreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceDeleteSnapshot performs a DELETE /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceDeleteSnapshot` operationId) request. - SnapshotServiceDeleteSnapshot(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceGetSnapshot performs a GET /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceGetSnapshot` operationId) request. - SnapshotServiceGetSnapshot(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceRestoreSnapshotWithBody performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request, - // with any type of body and a specified content type. - SnapshotServiceRestoreSnapshotWithBody(ctx context.Context, vmId string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // SnapshotServiceRestoreSnapshot performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request. - // Takes a body of the `application/json` content type. - SnapshotServiceRestoreSnapshot(ctx context.Context, vmId string, snapshotId string, body SnapshotServiceRestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDisableAdditionalIPWithBody DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). - VirtualMachineServiceDisableAdditionalIPWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDisableAdditionalIP DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). - VirtualMachineServiceDisableAdditionalIP(ctx context.Context, vmId string, body VirtualMachineServiceDisableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDisableBackupWithBody DisableBackup disables backup addon for a virtual machine - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). - VirtualMachineServiceDisableBackupWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceDisableBackup DisableBackup disables backup addon for a virtual machine - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). - VirtualMachineServiceDisableBackup(ctx context.Context, vmId string, body VirtualMachineServiceDisableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceEnableAdditionalIPWithBody EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). - VirtualMachineServiceEnableAdditionalIPWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceEnableAdditionalIP EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). - VirtualMachineServiceEnableAdditionalIP(ctx context.Context, vmId string, body VirtualMachineServiceEnableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceEnableBackupWithBody EnableBackup enables backup addon for a virtual machine - // - // Takes any type of body and a specified content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). - VirtualMachineServiceEnableBackupWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VirtualMachineServiceEnableBackup EnableBackup enables backup addon for a virtual machine - // - // Takes a body of the `application/json` content type. - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). - VirtualMachineServiceEnableBackup(ctx context.Context, vmId string, body VirtualMachineServiceEnableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceCreateVMTemplateWithBody performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request, - // with any type of body and a specified content type. - VMTemplateServiceCreateVMTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceCreateVMTemplate performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request. - // Takes a body of the `application/json` content type. - VMTemplateServiceCreateVMTemplate(ctx context.Context, body VMTemplateServiceCreateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceDeleteVMTemplate performs a DELETE /v1/vmtemplate/{id} (the `VMTemplateServiceDeleteVMTemplate` operationId) request. - VMTemplateServiceDeleteVMTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceGetVMTemplate performs a GET /v1/vmtemplate/{id} (the `VMTemplateServiceGetVMTemplate` operationId) request. - VMTemplateServiceGetVMTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceUpdateVMTemplateWithBody performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request, - // with any type of body and a specified content type. - VMTemplateServiceUpdateVMTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceUpdateVMTemplate performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request. - // Takes a body of the `application/json` content type. - VMTemplateServiceUpdateVMTemplate(ctx context.Context, id string, body VMTemplateServiceUpdateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // VMTemplateServiceListVMTemplates performs a GET /v1/vmtemplates (the `VMTemplateServiceListVMTemplates` operationId) request. - VMTemplateServiceListVMTemplates(ctx context.Context, params *VMTemplateServiceListVMTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) -} - -// WebhookServiceHandleWebhookWithBody Handle webhook events from payment providers (Stripe, PayPal, etc.) -// This endpoint receives webhook payloads and processes payment/subscription -// events Note: The actual implementation will read raw HTTP body and headers -// directly to support webhook signature verification -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). -func (c *Client) WebhookServiceHandleWebhookWithBody(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewWebhookServiceHandleWebhookRequestWithBody(c.Server, provider, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// WebhookServiceHandleWebhook Handle webhook events from payment providers (Stripe, PayPal, etc.) -// This endpoint receives webhook payloads and processes payment/subscription -// events Note: The actual implementation will read raw HTTP body and headers -// directly to support webhook signature verification -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). -func (c *Client) WebhookServiceHandleWebhook(ctx context.Context, provider string, body WebhookServiceHandleWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewWebhookServiceHandleWebhookRequest(c.Server, provider, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceRemoveAddon Remove an addon from a subscription -// -// Corresponds with DELETE /v1/addon-subscriptions/{addonSubscriptionId} (the `AddonServiceRemoveAddon` operationId). -func (c *Client) AddonServiceRemoveAddon(ctx context.Context, addonSubscriptionId string, params *AddonServiceRemoveAddonParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceRemoveAddonRequest(c.Server, addonSubscriptionId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceListAddons List available addons -// -// Corresponds with GET /v1/addons (the `AddonServiceListAddons` operationId). -func (c *Client) AddonServiceListAddons(ctx context.Context, params *AddonServiceListAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceListAddonsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceCreateAddonWithBody Create an addon from a template addon -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). -func (c *Client) AddonServiceCreateAddonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceCreateAddonRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceCreateAddon Create an addon from a template addon -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). -func (c *Client) AddonServiceCreateAddon(ctx context.Context, body AddonServiceCreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceCreateAddonRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceDeleteAddon Delete an addon (soft delete) -// -// Corresponds with DELETE /v1/addons/{id} (the `AddonServiceDeleteAddon` operationId). -func (c *Client) AddonServiceDeleteAddon(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceDeleteAddonRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceGetAddon Get a specific addon with its prices -// -// Corresponds with GET /v1/addons/{id} (the `AddonServiceGetAddon` operationId). -func (c *Client) AddonServiceGetAddon(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceGetAddonRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceUpdateAddonWithBody Update an addon (allows changing price and currency) -// -// Takes any type of body and a specified content type. -// -// Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). -func (c *Client) AddonServiceUpdateAddonWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceUpdateAddonRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceUpdateAddon Update an addon (allows changing price and currency) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). -func (c *Client) AddonServiceUpdateAddon(ctx context.Context, id string, body AddonServiceUpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceUpdateAddonRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceListAgents performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. -func (c *Client) AgentServiceListAgents(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceListAgentsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceCreateAgentWithBody performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, -// with any type of body and a specified content type. -func (c *Client) AgentServiceCreateAgentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceCreateAgentRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceCreateAgent performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) AgentServiceCreateAgent(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceCreateAgentRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceDeleteAgent performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. -func (c *Client) AgentServiceDeleteAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceDeleteAgentRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceGetAgent performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. -func (c *Client) AgentServiceGetAgent(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceGetAgentRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceUpdateAgentWithBody performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, -// with any type of body and a specified content type. -func (c *Client) AgentServiceUpdateAgentWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceUpdateAgentRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceUpdateAgent performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) AgentServiceUpdateAgent(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceUpdateAgentRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceGenerateInstallCommandWithBody performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request, -// with any type of body and a specified content type. -func (c *Client) AgentServiceGenerateInstallCommandWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceGenerateInstallCommandRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceGenerateInstallCommand performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) AgentServiceGenerateInstallCommand(ctx context.Context, id string, body AgentServiceGenerateInstallCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceGenerateInstallCommandRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceGeneratePeeringConfigWithBody performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, -// with any type of body and a specified content type. -func (c *Client) AgentServiceGeneratePeeringConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceGeneratePeeringConfigRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceGeneratePeeringConfig performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) AgentServiceGeneratePeeringConfig(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceGeneratePeeringConfigRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceUploadInboundPeeringConfigWithBody performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, -// with any type of body and a specified content type. -func (c *Client) AgentServiceUploadInboundPeeringConfigWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceUploadInboundPeeringConfigRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AgentServiceUploadInboundPeeringConfig performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) AgentServiceUploadInboundPeeringConfig(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAgentServiceUploadInboundPeeringConfigRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceChangePasswordWithBody performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceChangePasswordRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceChangePassword performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceChangePassword(ctx context.Context, body UserServiceChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceChangePasswordRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceForgotPasswordWithBody performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceForgotPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceForgotPasswordRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceForgotPassword performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceForgotPassword(ctx context.Context, body UserServiceForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceForgotPasswordRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceListLinkedIdentities performs a GET /v1/auth/identities (the `UserServiceListLinkedIdentities` operationId) request. -func (c *Client) UserServiceListLinkedIdentities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceListLinkedIdentitiesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceUnlinkIdentity performs a DELETE /v1/auth/identities/{provider} (the `UserServiceUnlinkIdentity` operationId) request. -func (c *Client) UserServiceUnlinkIdentity(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceUnlinkIdentityRequest(c.Server, provider) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLoginWithBody performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLoginRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLogin performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceLogin(ctx context.Context, body UserServiceLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLoginRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLoginMfaVerifyWithBody performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceLoginMfaVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLoginMfaVerifyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLoginMfaVerify performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceLoginMfaVerify(ctx context.Context, body UserServiceLoginMfaVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLoginMfaVerifyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLogoutWithBody performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceLogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLogoutRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceLogout performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceLogout(ctx context.Context, body UserServiceLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceLogoutRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceRegenerateMfaBackupCodesWithBody performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceRegenerateMfaBackupCodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceRegenerateMfaBackupCodesRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceRegenerateMfaBackupCodes performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceRegenerateMfaBackupCodes(ctx context.Context, body UserServiceRegenerateMfaBackupCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceRegenerateMfaBackupCodesRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceDisableMfaWithBody performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceDisableMfaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceDisableMfaRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceDisableMfa performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceDisableMfa(ctx context.Context, body UserServiceDisableMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceDisableMfaRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceEnrollMfaTotpWithBody performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceEnrollMfaTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceEnrollMfaTotpRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceEnrollMfaTotp performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceEnrollMfaTotp(ctx context.Context, body UserServiceEnrollMfaTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceEnrollMfaTotpRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceGetMfaStatus performs a GET /v1/auth/mfa/status (the `UserServiceGetMfaStatus` operationId) request. -func (c *Client) UserServiceGetMfaStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceGetMfaStatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceVerifyMfaEnrollmentWithBody performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceVerifyMfaEnrollmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceVerifyMfaEnrollmentRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceVerifyMfaEnrollment performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceVerifyMfaEnrollment(ctx context.Context, body UserServiceVerifyMfaEnrollmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceVerifyMfaEnrollmentRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceRegisterUserWithBody performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceRegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceRegisterUserRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceRegisterUser performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceRegisterUser(ctx context.Context, body UserServiceRegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceRegisterUserRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceResendVerificationEmailWithBody performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceResendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceResendVerificationEmailRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceResendVerificationEmail performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceResendVerificationEmail(ctx context.Context, body UserServiceResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceResendVerificationEmailRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceResetPasswordWithBody performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceResetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceResetPasswordRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceResetPassword performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceResetPassword(ctx context.Context, body UserServiceResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceResetPasswordRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceGetActiveSessions performs a GET /v1/auth/sessions (the `UserServiceGetActiveSessions` operationId) request. -func (c *Client) UserServiceGetActiveSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceGetActiveSessionsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceSetPasswordWithBody performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceSetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceSetPasswordRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceSetPassword performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceSetPassword(ctx context.Context, body UserServiceSetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceSetPasswordRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceExchangeSSOCodeWithBody performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceExchangeSSOCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceExchangeSSOCodeRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceExchangeSSOCode performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceExchangeSSOCode(ctx context.Context, body UserServiceExchangeSSOCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceExchangeSSOCodeRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceCompleteSSOLinkWithBody performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceCompleteSSOLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceCompleteSSOLinkRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceCompleteSSOLink performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceCompleteSSOLink(ctx context.Context, body UserServiceCompleteSSOLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceCompleteSSOLinkRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceVerifyEmail performs a GET /v1/auth/verify-email (the `UserServiceVerifyEmail` operationId) request. -func (c *Client) UserServiceVerifyEmail(ctx context.Context, params *UserServiceVerifyEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceVerifyEmailRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceChatWithBody Chat provides a non-streaming chat endpoint -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). -func (c *Client) ChatServiceChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceChatRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceChat Chat provides a non-streaming chat endpoint -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). -func (c *Client) ChatServiceChat(ctx context.Context, body ChatServiceChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceChatRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceChatAnonymousWithBody ChatAnonymous provides a non-streaming chat endpoint for anonymous users -// Session ID is extracted from the cookie header (managed by the frontend) -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). -func (c *Client) ChatServiceChatAnonymousWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceChatAnonymousRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceChatAnonymous ChatAnonymous provides a non-streaming chat endpoint for anonymous users -// Session ID is extracted from the cookie header (managed by the frontend) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). -func (c *Client) ChatServiceChatAnonymous(ctx context.Context, body ChatServiceChatAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceChatAnonymousRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceListConversations ListConversations returns all conversation IDs for the authenticated user -// -// Corresponds with GET /v1/chat/conversations (the `ChatServiceListConversations` operationId). -func (c *Client) ChatServiceListConversations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceListConversationsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceDeleteConversation DeleteConversation marks a conversation as deleted (soft delete) -// -// Corresponds with DELETE /v1/chat/conversations/{conversationId} (the `ChatServiceDeleteConversation` operationId). -func (c *Client) ChatServiceDeleteConversation(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceDeleteConversationRequest(c.Server, conversationId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ChatServiceGetConversationHistory GetConversationHistory returns the full message history for a conversation -// -// Corresponds with GET /v1/chat/conversations/{conversationId}/history (the `ChatServiceGetConversationHistory` operationId). -func (c *Client) ChatServiceGetConversationHistory(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewChatServiceGetConversationHistoryRequest(c.Server, conversationId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientDashboardServiceGetClientDashboardBilling performs a GET /v1/client/dashboard/billing (the `ClientDashboardServiceGetClientDashboardBilling` operationId) request. -func (c *Client) ClientDashboardServiceGetClientDashboardBilling(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientDashboardServiceGetClientDashboardBillingRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientDashboardServiceGetClientDashboardSummary performs a GET /v1/client/dashboard/summary (the `ClientDashboardServiceGetClientDashboardSummary` operationId) request. -func (c *Client) ClientDashboardServiceGetClientDashboardSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientDashboardServiceGetClientDashboardSummaryRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceListClientProviderReviewAssets performs a GET /v1/client/provider-review-assets (the `ClientProviderReviewServiceListClientProviderReviewAssets` operationId) request. -func (c *Client) ClientProviderReviewServiceListClientProviderReviewAssets(ctx context.Context, params *ClientProviderReviewServiceListClientProviderReviewAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceListClientProviderReviewAssetsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceCreateCloudInitTemplateWithBody performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) CloudInitTemplateServiceCreateCloudInitTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceCreateCloudInitTemplateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceCreateCloudInitTemplate performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) CloudInitTemplateServiceCreateCloudInitTemplate(ctx context.Context, body CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceCreateCloudInitTemplateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceDeleteCloudInitTemplate performs a DELETE /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceDeleteCloudInitTemplate` operationId) request. -func (c *Client) CloudInitTemplateServiceDeleteCloudInitTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceDeleteCloudInitTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceGetCloudInitTemplate performs a GET /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceGetCloudInitTemplate` operationId) request. -func (c *Client) CloudInitTemplateServiceGetCloudInitTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceGetCloudInitTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceUpdateCloudInitTemplateWithBody performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) CloudInitTemplateServiceUpdateCloudInitTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceUpdateCloudInitTemplateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceUpdateCloudInitTemplate performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) CloudInitTemplateServiceUpdateCloudInitTemplate(ctx context.Context, id string, body CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceUpdateCloudInitTemplateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitTemplateServiceListCloudInitTemplates performs a GET /v1/cloudinittemplates (the `CloudInitTemplateServiceListCloudInitTemplates` operationId) request. -func (c *Client) CloudInitTemplateServiceListCloudInitTemplates(ctx context.Context, params *CloudInitTemplateServiceListCloudInitTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitTemplateServiceListCloudInitTemplatesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceListCloudInitUserData performs a GET /v1/cloudinituserdata (the `CloudInitUserDataServiceListCloudInitUserData` operationId) request. -func (c *Client) CloudInitUserDataServiceListCloudInitUserData(ctx context.Context, params *CloudInitUserDataServiceListCloudInitUserDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceListCloudInitUserDataRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceCreateCloudInitUserDataWithBody performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request, -// with any type of body and a specified content type. -func (c *Client) CloudInitUserDataServiceCreateCloudInitUserDataWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceCreateCloudInitUserDataRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceCreateCloudInitUserData performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) CloudInitUserDataServiceCreateCloudInitUserData(ctx context.Context, body CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceCreateCloudInitUserDataRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceDeleteCloudInitUserData performs a DELETE /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceDeleteCloudInitUserData` operationId) request. -func (c *Client) CloudInitUserDataServiceDeleteCloudInitUserData(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceDeleteCloudInitUserDataRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceGetCloudInitUserData performs a GET /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceGetCloudInitUserData` operationId) request. -func (c *Client) CloudInitUserDataServiceGetCloudInitUserData(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceGetCloudInitUserDataRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceUpdateCloudInitUserDataWithBody performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request, -// with any type of body and a specified content type. -func (c *Client) CloudInitUserDataServiceUpdateCloudInitUserDataWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceUpdateCloudInitUserDataRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CloudInitUserDataServiceUpdateCloudInitUserData performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) CloudInitUserDataServiceUpdateCloudInitUserData(ctx context.Context, id string, body CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCloudInitUserDataServiceUpdateCloudInitUserDataRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceListCountriesCities performs a GET /v1/countries-cities (the `RegionServiceListCountriesCities` operationId) request. -func (c *Client) RegionServiceListCountriesCities(ctx context.Context, params *RegionServiceListCountriesCitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceListCountriesCitiesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CreditServiceGetCreditBalance performs a GET /v1/credits/balance (the `CreditServiceGetCreditBalance` operationId) request. -func (c *Client) CreditServiceGetCreditBalance(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreditServiceGetCreditBalanceRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CreditServiceListCreditLedgerEntries performs a GET /v1/credits/ledger (the `CreditServiceListCreditLedgerEntries` operationId) request. -func (c *Client) CreditServiceListCreditLedgerEntries(ctx context.Context, params *CreditServiceListCreditLedgerEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreditServiceListCreditLedgerEntriesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CreditServicePurchaseCreditsWithBody performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request, -// with any type of body and a specified content type. -func (c *Client) CreditServicePurchaseCreditsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreditServicePurchaseCreditsRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// CreditServicePurchaseCredits performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) CreditServicePurchaseCredits(ctx context.Context, body CreditServicePurchaseCreditsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreditServicePurchaseCreditsRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceListDatacenters performs a GET /v1/datacenters (the `RegionServiceListDatacenters` operationId) request. -func (c *Client) RegionServiceListDatacenters(ctx context.Context, params *RegionServiceListDatacentersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceListDatacentersRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// DomainServiceGetDomain performs a GET /v1/domain (the `DomainServiceGetDomain` operationId) request. -func (c *Client) DomainServiceGetDomain(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDomainServiceGetDomainRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// DomainServiceCreateDomainWithBody performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request, -// with any type of body and a specified content type. -func (c *Client) DomainServiceCreateDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDomainServiceCreateDomainRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// DomainServiceCreateDomain performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) DomainServiceCreateDomain(ctx context.Context, body DomainServiceCreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDomainServiceCreateDomainRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// DomainServiceVerifyDomain performs a GET /v1/domain/verify/{id} (the `DomainServiceVerifyDomain` operationId) request. -func (c *Client) DomainServiceVerifyDomain(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDomainServiceVerifyDomainRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// DomainServiceDeleteDomain performs a DELETE /v1/domain/{id} (the `DomainServiceDeleteDomain` operationId) request. -func (c *Client) DomainServiceDeleteDomain(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDomainServiceDeleteDomainRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceListEnvironmentVariables performs a GET /v1/environment-variables (the `EnvironmentVariableServiceListEnvironmentVariables` operationId) request. -func (c *Client) EnvironmentVariableServiceListEnvironmentVariables(ctx context.Context, params *EnvironmentVariableServiceListEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceListEnvironmentVariablesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceCreateEnvironmentVariableWithBody performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request, -// with any type of body and a specified content type. -func (c *Client) EnvironmentVariableServiceCreateEnvironmentVariableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceCreateEnvironmentVariableRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceCreateEnvironmentVariable performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) EnvironmentVariableServiceCreateEnvironmentVariable(ctx context.Context, body EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceCreateEnvironmentVariableRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceDeleteEnvironmentVariable performs a DELETE /v1/environment-variables/{id} (the `EnvironmentVariableServiceDeleteEnvironmentVariable` operationId) request. -func (c *Client) EnvironmentVariableServiceDeleteEnvironmentVariable(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceDeleteEnvironmentVariableRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceGetEnvironmentVariable performs a GET /v1/environment-variables/{id} (the `EnvironmentVariableServiceGetEnvironmentVariable` operationId) request. -func (c *Client) EnvironmentVariableServiceGetEnvironmentVariable(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceGetEnvironmentVariableRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceUpdateEnvironmentVariableWithBody performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request, -// with any type of body and a specified content type. -func (c *Client) EnvironmentVariableServiceUpdateEnvironmentVariableWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceUpdateEnvironmentVariableRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// EnvironmentVariableServiceUpdateEnvironmentVariable performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) EnvironmentVariableServiceUpdateEnvironmentVariable(ctx context.Context, id string, body EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewEnvironmentVariableServiceUpdateEnvironmentVariableRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ExchangeRateServiceConvertCurrencyWithBody Convert an amount from USD to a target currency -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). -func (c *Client) ExchangeRateServiceConvertCurrencyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExchangeRateServiceConvertCurrencyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ExchangeRateServiceConvertCurrency Convert an amount from USD to a target currency -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). -func (c *Client) ExchangeRateServiceConvertCurrency(ctx context.Context, body ExchangeRateServiceConvertCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExchangeRateServiceConvertCurrencyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ExchangeRateServiceListSupportedCurrencies List all supported currency codes -// -// Corresponds with GET /v1/exchange-rate/currencies (the `ExchangeRateServiceListSupportedCurrencies` operationId). -func (c *Client) ExchangeRateServiceListSupportedCurrencies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExchangeRateServiceListSupportedCurrenciesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ExchangeRateServiceGetExchangeRate Get the current exchange rate for a specific currency (from USD) -// -// Corresponds with GET /v1/exchange-rate/rate/{currencyCode} (the `ExchangeRateServiceGetExchangeRate` operationId). -func (c *Client) ExchangeRateServiceGetExchangeRate(ctx context.Context, currencyCode string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExchangeRateServiceGetExchangeRateRequest(c.Server, currencyCode) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ExchangeRateServiceGetAllExchangeRates Get all exchange rates at once (returns map of currency codes to rates) -// -// Corresponds with GET /v1/exchange-rate/rates (the `ExchangeRateServiceGetAllExchangeRates` operationId). -func (c *Client) ExchangeRateServiceGetAllExchangeRates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewExchangeRateServiceGetAllExchangeRatesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceListFirewallAddressGroups performs a GET /v1/firewall/address-groups (the `FirewallServiceListFirewallAddressGroups` operationId) request. -func (c *Client) FirewallServiceListFirewallAddressGroups(ctx context.Context, params *FirewallServiceListFirewallAddressGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceListFirewallAddressGroupsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallAddressGroupWithBody performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceCreateFirewallAddressGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallAddressGroupRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallAddressGroup performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceCreateFirewallAddressGroup(ctx context.Context, body FirewallServiceCreateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallAddressGroupRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceDeleteFirewallAddressGroup performs a DELETE /v1/firewall/address-groups/{id} (the `FirewallServiceDeleteFirewallAddressGroup` operationId) request. -func (c *Client) FirewallServiceDeleteFirewallAddressGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceDeleteFirewallAddressGroupRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceGetFirewallAddressGroup performs a GET /v1/firewall/address-groups/{id} (the `FirewallServiceGetFirewallAddressGroup` operationId) request. -func (c *Client) FirewallServiceGetFirewallAddressGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceGetFirewallAddressGroupRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallAddressGroupWithBody performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceUpdateFirewallAddressGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallAddressGroupRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallAddressGroup performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceUpdateFirewallAddressGroup(ctx context.Context, id string, body FirewallServiceUpdateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallAddressGroupRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceDeleteFirewallRule performs a DELETE /v1/firewall/rules/{id} (the `FirewallServiceDeleteFirewallRule` operationId) request. -func (c *Client) FirewallServiceDeleteFirewallRule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceDeleteFirewallRuleRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceGetFirewallRule performs a GET /v1/firewall/rules/{id} (the `FirewallServiceGetFirewallRule` operationId) request. -func (c *Client) FirewallServiceGetFirewallRule(ctx context.Context, id string, params *FirewallServiceGetFirewallRuleParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceGetFirewallRuleRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallRuleWithBody performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceUpdateFirewallRuleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallRuleRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallRule performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceUpdateFirewallRule(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallRuleRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceMoveFirewallRuleWithBody performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceMoveFirewallRuleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceMoveFirewallRuleRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceMoveFirewallRule performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceMoveFirewallRule(ctx context.Context, id string, body FirewallServiceMoveFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceMoveFirewallRuleRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceListFirewallRuleSets performs a GET /v1/firewall/rulesets (the `FirewallServiceListFirewallRuleSets` operationId) request. -func (c *Client) FirewallServiceListFirewallRuleSets(ctx context.Context, params *FirewallServiceListFirewallRuleSetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceListFirewallRuleSetsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallRuleSetWithBody performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceCreateFirewallRuleSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallRuleSetRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallRuleSet performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceCreateFirewallRuleSet(ctx context.Context, body FirewallServiceCreateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallRuleSetRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceDeleteFirewallRuleSet performs a DELETE /v1/firewall/rulesets/{id} (the `FirewallServiceDeleteFirewallRuleSet` operationId) request. -func (c *Client) FirewallServiceDeleteFirewallRuleSet(ctx context.Context, id string, params *FirewallServiceDeleteFirewallRuleSetParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceDeleteFirewallRuleSetRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceGetFirewallRuleSet performs a GET /v1/firewall/rulesets/{id} (the `FirewallServiceGetFirewallRuleSet` operationId) request. -func (c *Client) FirewallServiceGetFirewallRuleSet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceGetFirewallRuleSetRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallRuleSetWithBody performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceUpdateFirewallRuleSetWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallRuleSetRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceUpdateFirewallRuleSet performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceUpdateFirewallRuleSet(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceUpdateFirewallRuleSetRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceListFirewallRules performs a GET /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceListFirewallRules` operationId) request. -func (c *Client) FirewallServiceListFirewallRules(ctx context.Context, rulesetId string, params *FirewallServiceListFirewallRulesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceListFirewallRulesRequest(c.Server, rulesetId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallRuleWithBody performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request, -// with any type of body and a specified content type. -func (c *Client) FirewallServiceCreateFirewallRuleWithBody(ctx context.Context, rulesetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallRuleRequestWithBody(c.Server, rulesetId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// FirewallServiceCreateFirewallRule performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) FirewallServiceCreateFirewallRule(ctx context.Context, rulesetId string, body FirewallServiceCreateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewFirewallServiceCreateFirewallRuleRequest(c.Server, rulesetId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceListGroups performs a GET /v1/groups (the `GroupServiceListGroups` operationId) request. -func (c *Client) GroupServiceListGroups(ctx context.Context, params *GroupServiceListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceListGroupsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceCreateGroupWithBody performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) GroupServiceCreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceCreateGroupRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceCreateGroup performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) GroupServiceCreateGroup(ctx context.Context, body GroupServiceCreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceCreateGroupRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceAddServiceAccountToGroupWithBody performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) GroupServiceAddServiceAccountToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceAddServiceAccountToGroupRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceAddServiceAccountToGroup performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) GroupServiceAddServiceAccountToGroup(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceAddServiceAccountToGroupRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceAddUserToGroupWithBody performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) GroupServiceAddUserToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceAddUserToGroupRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceAddUserToGroup performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) GroupServiceAddUserToGroup(ctx context.Context, body GroupServiceAddUserToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceAddUserToGroupRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceRemoveServiceAccountFromGroup performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. -func (c *Client) GroupServiceRemoveServiceAccountFromGroup(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceRemoveServiceAccountFromGroupRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceRemoveUserFromGroup performs a DELETE /v1/groups/remove-user (the `GroupServiceRemoveUserFromGroup` operationId) request. -func (c *Client) GroupServiceRemoveUserFromGroup(ctx context.Context, params *GroupServiceRemoveUserFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceRemoveUserFromGroupRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceDeleteGroup performs a DELETE /v1/groups/{id} (the `GroupServiceDeleteGroup` operationId) request. -func (c *Client) GroupServiceDeleteGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceDeleteGroupRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceGetGroup performs a GET /v1/groups/{id} (the `GroupServiceGetGroup` operationId) request. -func (c *Client) GroupServiceGetGroup(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceGetGroupRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceUpdateGroupWithBody performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) GroupServiceUpdateGroupWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceUpdateGroupRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// GroupServiceUpdateGroup performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) GroupServiceUpdateGroup(ctx context.Context, id string, body GroupServiceUpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGroupServiceUpdateGroupRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetadataServiceHealthCheck performs a GET /v1/healthz (the `MetadataServiceHealthCheck` operationId) request. -func (c *Client) MetadataServiceHealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetadataServiceHealthCheckRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InstantAppServiceListInstantApps performs a GET /v1/instantapps (the `InstantAppServiceListInstantApps` operationId) request. -func (c *Client) InstantAppServiceListInstantApps(ctx context.Context, params *InstantAppServiceListInstantAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInstantAppServiceListInstantAppsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InstantAppServiceGetInstantApp2 performs a GET /v1/instantapps/slug/{slug} (the `InstantAppServiceGetInstantApp2` operationId) request. -func (c *Client) InstantAppServiceGetInstantApp2(ctx context.Context, slug string, params *InstantAppServiceGetInstantApp2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInstantAppServiceGetInstantApp2Request(c.Server, slug, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InstantAppServiceGetInstantApp performs a GET /v1/instantapps/{id} (the `InstantAppServiceGetInstantApp` operationId) request. -func (c *Client) InstantAppServiceGetInstantApp(ctx context.Context, id string, params *InstantAppServiceGetInstantAppParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInstantAppServiceGetInstantAppRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceListInvites performs a GET /v1/invites (the `InviteServiceListInvites` operationId) request. -func (c *Client) InviteServiceListInvites(ctx context.Context, params *InviteServiceListInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceListInvitesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceUpdateInviteWithBody performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request, -// with any type of body and a specified content type. -func (c *Client) InviteServiceUpdateInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceUpdateInviteRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceUpdateInvite performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) InviteServiceUpdateInvite(ctx context.Context, body InviteServiceUpdateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceUpdateInviteRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceCreateInviteWithBody performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request, -// with any type of body and a specified content type. -func (c *Client) InviteServiceCreateInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceCreateInviteRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceCreateInvite performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) InviteServiceCreateInvite(ctx context.Context, body InviteServiceCreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceCreateInviteRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceAcceptInvite performs a GET /v1/invites/accept (the `InviteServiceAcceptInvite` operationId) request. -func (c *Client) InviteServiceAcceptInvite(ctx context.Context, params *InviteServiceAcceptInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceAcceptInviteRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceDeclineInvite performs a GET /v1/invites/decline (the `InviteServiceDeclineInvite` operationId) request. -func (c *Client) InviteServiceDeclineInvite(ctx context.Context, params *InviteServiceDeclineInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceDeclineInviteRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceListMyInvites performs a GET /v1/invites/me (the `InviteServiceListMyInvites` operationId) request. -func (c *Client) InviteServiceListMyInvites(ctx context.Context, params *InviteServiceListMyInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceListMyInvitesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceResendInvite performs a POST /v1/invites/resend/{inviteId} (the `InviteServiceResendInvite` operationId) request. -func (c *Client) InviteServiceResendInvite(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceResendInviteRequest(c.Server, inviteId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InviteServiceDeleteInvite performs a DELETE /v1/invites/{id} (the `InviteServiceDeleteInvite` operationId) request. -func (c *Client) InviteServiceDeleteInvite(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInviteServiceDeleteInviteRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InvoiceServiceListInvoices ListInvoices lists invoices for a subscription or organization -// -// Corresponds with GET /v1/invoices (the `InvoiceServiceListInvoices` operationId). -func (c *Client) InvoiceServiceListInvoices(ctx context.Context, params *InvoiceServiceListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInvoiceServiceListInvoicesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// InvoiceServiceGetInvoice GetInvoice retrieves a single invoice with line items -// -// Corresponds with GET /v1/invoices/{invoiceId} (the `InvoiceServiceGetInvoice` operationId). -func (c *Client) InvoiceServiceGetInvoice(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewInvoiceServiceGetInvoiceRequest(c.Server, invoiceId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceListAllocations IP Allocation (read-only - allocations are managed automatically) -// -// Corresponds with GET /v1/ipam/allocations (the `IPAMServiceListAllocations` operationId). -func (c *Client) IPAMServiceListAllocations(ctx context.Context, params *IPAMServiceListAllocationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceListAllocationsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceListNetworks performs a GET /v1/ipam/networks (the `IPAMServiceListNetworks` operationId) request. -func (c *Client) IPAMServiceListNetworks(ctx context.Context, params *IPAMServiceListNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceListNetworksRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceCreateNetworkWithBody IPAM Network management -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). -func (c *Client) IPAMServiceCreateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceCreateNetworkRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceCreateNetwork IPAM Network management -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). -func (c *Client) IPAMServiceCreateNetwork(ctx context.Context, body IPAMServiceCreateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceCreateNetworkRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceDeleteNetwork performs a DELETE /v1/ipam/networks/{id} (the `IPAMServiceDeleteNetwork` operationId) request. -func (c *Client) IPAMServiceDeleteNetwork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceDeleteNetworkRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceGetNetwork performs a GET /v1/ipam/networks/{id} (the `IPAMServiceGetNetwork` operationId) request. -func (c *Client) IPAMServiceGetNetwork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceGetNetworkRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceUpdateNetworkWithBody performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request, -// with any type of body and a specified content type. -func (c *Client) IPAMServiceUpdateNetworkWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceUpdateNetworkRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceUpdateNetwork performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) IPAMServiceUpdateNetwork(ctx context.Context, id string, body IPAMServiceUpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceUpdateNetworkRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAssignNetworkToNodeWithBody Node-Network assignment -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). -func (c *Client) IPAMServiceAssignNetworkToNodeWithBody(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAssignNetworkToNodeRequestWithBody(c.Server, networkId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAssignNetworkToNode Node-Network assignment -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). -func (c *Client) IPAMServiceAssignNetworkToNode(ctx context.Context, networkId string, body IPAMServiceAssignNetworkToNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAssignNetworkToNodeRequest(c.Server, networkId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceListNetworkNodes performs a GET /v1/ipam/networks/{networkId}/nodes (the `IPAMServiceListNetworkNodes` operationId) request. -func (c *Client) IPAMServiceListNetworkNodes(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceListNetworkNodesRequest(c.Server, networkId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceGetNodeNetwork performs a GET /v1/ipam/nodes/{nodeId}/network (the `IPAMServiceGetNodeNetwork` operationId) request. -func (c *Client) IPAMServiceGetNodeNetwork(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceGetNodeNetworkRequest(c.Server, nodeId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceUnassignNetworkFromNode performs a POST /v1/ipam/nodes/{nodeId}/unassign-network (the `IPAMServiceUnassignNetworkFromNode` operationId) request. -func (c *Client) IPAMServiceUnassignNetworkFromNode(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceUnassignNetworkFromNodeRequest(c.Server, nodeId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceListPrefixes performs a GET /v1/ipam/prefixes (the `IPAMServiceListPrefixes` operationId) request. -func (c *Client) IPAMServiceListPrefixes(ctx context.Context, params *IPAMServiceListPrefixesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceListPrefixesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceCreatePrefixWithBody Prefix management -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). -func (c *Client) IPAMServiceCreatePrefixWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceCreatePrefixRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceCreatePrefix Prefix management -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). -func (c *Client) IPAMServiceCreatePrefix(ctx context.Context, body IPAMServiceCreatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceCreatePrefixRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceDeletePrefix performs a DELETE /v1/ipam/prefixes/{id} (the `IPAMServiceDeletePrefix` operationId) request. -func (c *Client) IPAMServiceDeletePrefix(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceDeletePrefixRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceGetPrefix performs a GET /v1/ipam/prefixes/{id} (the `IPAMServiceGetPrefix` operationId) request. -func (c *Client) IPAMServiceGetPrefix(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceGetPrefixRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceUpdatePrefixWithBody performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request, -// with any type of body and a specified content type. -func (c *Client) IPAMServiceUpdatePrefixWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceUpdatePrefixRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceUpdatePrefix performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) IPAMServiceUpdatePrefix(ctx context.Context, id string, body IPAMServiceUpdatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceUpdatePrefixRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceListAvailableIPs performs a GET /v1/ipam/prefixes/{prefixId}/available-ips (the `IPAMServiceListAvailableIPs` operationId) request. -func (c *Client) IPAMServiceListAvailableIPs(ctx context.Context, prefixId string, params *IPAMServiceListAvailableIPsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceListAvailableIPsRequest(c.Server, prefixId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAddReservedIPWithBody IP Reservation (manage reserved_ips array in prefix) -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). -func (c *Client) IPAMServiceAddReservedIPWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAddReservedIPRequestWithBody(c.Server, prefixId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAddReservedIP IP Reservation (manage reserved_ips array in prefix) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). -func (c *Client) IPAMServiceAddReservedIP(ctx context.Context, prefixId string, body IPAMServiceAddReservedIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAddReservedIPRequest(c.Server, prefixId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceClearAllPrefixReservedIPsWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request, -// with any type of body and a specified content type. -func (c *Client) IPAMServiceClearAllPrefixReservedIPsWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceClearAllPrefixReservedIPsRequestWithBody(c.Server, prefixId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceClearAllPrefixReservedIPs performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) IPAMServiceClearAllPrefixReservedIPs(ctx context.Context, prefixId string, body IPAMServiceClearAllPrefixReservedIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceClearAllPrefixReservedIPsRequest(c.Server, prefixId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceReserveAllPrefixIPsWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request, -// with any type of body and a specified content type. -func (c *Client) IPAMServiceReserveAllPrefixIPsWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceReserveAllPrefixIPsRequestWithBody(c.Server, prefixId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceReserveAllPrefixIPs performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) IPAMServiceReserveAllPrefixIPs(ctx context.Context, prefixId string, body IPAMServiceReserveAllPrefixIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceReserveAllPrefixIPsRequest(c.Server, prefixId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceRemoveReservedIP performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress} (the `IPAMServiceRemoveReservedIP` operationId) request. -func (c *Client) IPAMServiceRemoveReservedIP(ctx context.Context, prefixId string, ipAddress string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceRemoveReservedIPRequest(c.Server, prefixId, ipAddress) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceRemoveReservedPrefix performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceRemoveReservedPrefix` operationId) request. -func (c *Client) IPAMServiceRemoveReservedPrefix(ctx context.Context, prefixId string, params *IPAMServiceRemoveReservedPrefixParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceRemoveReservedPrefixRequest(c.Server, prefixId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAddReservedPrefixWithBody performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request, -// with any type of body and a specified content type. -func (c *Client) IPAMServiceAddReservedPrefixWithBody(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAddReservedPrefixRequestWithBody(c.Server, prefixId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceAddReservedPrefix performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) IPAMServiceAddReservedPrefix(ctx context.Context, prefixId string, body IPAMServiceAddReservedPrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceAddReservedPrefixRequest(c.Server, prefixId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// IPAMServiceGetPrefixUtilization Utility -// -// Corresponds with GET /v1/ipam/prefixes/{prefixId}/utilization (the `IPAMServiceGetPrefixUtilization` operationId). -func (c *Client) IPAMServiceGetPrefixUtilization(ctx context.Context, prefixId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewIPAMServiceGetPrefixUtilizationRequest(c.Server, prefixId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceListAvailableAddons performs a GET /v1/marketplace/addons (the `MarketplaceServiceListAvailableAddons` operationId) request. -func (c *Client) MarketplaceServiceListAvailableAddons(ctx context.Context, params *MarketplaceServiceListAvailableAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceListAvailableAddonsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceListAvailablePlans performs a GET /v1/marketplace/plans (the `MarketplaceServiceListAvailablePlans` operationId) request. -func (c *Client) MarketplaceServiceListAvailablePlans(ctx context.Context, params *MarketplaceServiceListAvailablePlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceListAvailablePlansRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceGetMarketplacePlan performs a GET /v1/marketplace/plans/{planId} (the `MarketplaceServiceGetMarketplacePlan` operationId) request. -func (c *Client) MarketplaceServiceGetMarketplacePlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceGetMarketplacePlanRequest(c.Server, planId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceListMarketplaceProviderDirectory performs a GET /v1/marketplace/provider-directory (the `MarketplaceServiceListMarketplaceProviderDirectory` operationId) request. -func (c *Client) MarketplaceServiceListMarketplaceProviderDirectory(ctx context.Context, params *MarketplaceServiceListMarketplaceProviderDirectoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceListMarketplaceProviderDirectoryRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceListProviders performs a GET /v1/marketplace/providers (the `MarketplaceServiceListProviders` operationId) request. -func (c *Client) MarketplaceServiceListProviders(ctx context.Context, params *MarketplaceServiceListProvidersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceListProvidersRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceGetProvider performs a GET /v1/marketplace/providers/{providerId} (the `MarketplaceServiceGetProvider` operationId) request. -func (c *Client) MarketplaceServiceGetProvider(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceGetProviderRequest(c.Server, providerId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceListAvailableRegions performs a GET /v1/marketplace/regions (the `MarketplaceServiceListAvailableRegions` operationId) request. -func (c *Client) MarketplaceServiceListAvailableRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceListAvailableRegionsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceSearchMarketplaceWithBody performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request, -// with any type of body and a specified content type. -func (c *Client) MarketplaceServiceSearchMarketplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceSearchMarketplaceRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MarketplaceServiceSearchMarketplace performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) MarketplaceServiceSearchMarketplace(ctx context.Context, body MarketplaceServiceSearchMarketplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMarketplaceServiceSearchMarketplaceRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricServiceListMetrics List all available metrics -// -// Corresponds with GET /v1/metrics (the `MetricServiceListMetrics` operationId). -func (c *Client) MetricServiceListMetrics(ctx context.Context, params *MetricServiceListMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricServiceListMetricsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceListMetricsWriteCredentials performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. -func (c *Client) MetricsCredentialServiceListMetricsWriteCredentials(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceListMetricsWriteCredentialsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceCreateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -func (c *Client) MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceCreateMetricsWriteCredential performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) MetricsCredentialServiceCreateMetricsWriteCredential(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceRevokeMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -func (c *Client) MetricsCredentialServiceRevokeMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceRevokeMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) MetricsCredentialServiceRevokeMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceRotateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -func (c *Client) MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricsCredentialServiceRotateMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) MetricsCredentialServiceRotateMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetricServiceGetMetric Get a specific metric by ID or code -// -// Corresponds with GET /v1/metrics/{id} (the `MetricServiceGetMetric` operationId). -func (c *Client) MetricServiceGetMetric(ctx context.Context, id string, params *MetricServiceGetMetricParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetricServiceGetMetricRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceCreateNodeWithBody performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request, -// with any type of body and a specified content type. -func (c *Client) NodeServiceCreateNodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceCreateNodeRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceCreateNode performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) NodeServiceCreateNode(ctx context.Context, body NodeServiceCreateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceCreateNodeRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodePlacementServiceGetNodePlacementPolicy performs a GET /v1/node-placement-policy (the `NodePlacementServiceGetNodePlacementPolicy` operationId) request. -func (c *Client) NodePlacementServiceGetNodePlacementPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodePlacementServiceGetNodePlacementPolicyRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodePlacementServiceUpdateNodePlacementPolicyWithBody performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request, -// with any type of body and a specified content type. -func (c *Client) NodePlacementServiceUpdateNodePlacementPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodePlacementServiceUpdateNodePlacementPolicyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodePlacementServiceUpdateNodePlacementPolicy performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) NodePlacementServiceUpdateNodePlacementPolicy(ctx context.Context, body NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodePlacementServiceUpdateNodePlacementPolicyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceValidateNodeTopologyWithBody Dedicated CPU cores: parse-preview of a topology paste without persisting. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). -func (c *Client) NodeServiceValidateNodeTopologyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceValidateNodeTopologyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceValidateNodeTopology Dedicated CPU cores: parse-preview of a topology paste without persisting. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). -func (c *Client) NodeServiceValidateNodeTopology(ctx context.Context, body NodeServiceValidateNodeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceValidateNodeTopologyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceDeleteNode performs a DELETE /v1/node/{id} (the `NodeServiceDeleteNode` operationId) request. -func (c *Client) NodeServiceDeleteNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceDeleteNodeRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceGetNode performs a GET /v1/node/{id} (the `NodeServiceGetNode` operationId) request. -func (c *Client) NodeServiceGetNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceGetNodeRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceUpdateNodeWithBody performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request, -// with any type of body and a specified content type. -func (c *Client) NodeServiceUpdateNodeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceUpdateNodeRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceUpdateNode performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) NodeServiceUpdateNode(ctx context.Context, id string, body NodeServiceUpdateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceUpdateNodeRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceGetNodeCPUMap Dedicated CPU cores: full topology + per-CPU occupancy for the node -// topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3). -// -// Corresponds with GET /v1/node/{id}/cpu-map (the `NodeServiceGetNodeCPUMap` operationId). -func (c *Client) NodeServiceGetNodeCPUMap(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceGetNodeCPUMapRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NodeServiceListNodes performs a GET /v1/nodes (the `NodeServiceListNodes` operationId) request. -func (c *Client) NodeServiceListNodes(ctx context.Context, params *NodeServiceListNodesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewNodeServiceListNodesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceAuthorize Authorize initiates the OAuth2 authorization flow -// -// Corresponds with GET /v1/oauth2/authorize (the `OAuth2ServiceAuthorize` operationId). -func (c *Client) OAuth2ServiceAuthorize(ctx context.Context, params *OAuth2ServiceAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceAuthorizeRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceListClients ListClients lists OAuth2 clients for the organization -// -// Corresponds with GET /v1/oauth2/clients (the `OAuth2ServiceListClients` operationId). -func (c *Client) OAuth2ServiceListClients(ctx context.Context, params *OAuth2ServiceListClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceListClientsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceCreateClientWithBody CreateClient creates a new OAuth2 client -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). -func (c *Client) OAuth2ServiceCreateClientWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceCreateClientRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceCreateClient CreateClient creates a new OAuth2 client -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). -func (c *Client) OAuth2ServiceCreateClient(ctx context.Context, body OAuth2ServiceCreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceCreateClientRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceDeleteClient DeleteClient deletes an OAuth2 client -// -// Corresponds with DELETE /v1/oauth2/clients/{clientId} (the `OAuth2ServiceDeleteClient` operationId). -func (c *Client) OAuth2ServiceDeleteClient(ctx context.Context, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceDeleteClientRequest(c.Server, clientId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceRefreshTokenWithBody RefreshToken exchanges refresh token for new access token -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). -func (c *Client) OAuth2ServiceRefreshTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceRefreshTokenRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceRefreshToken RefreshToken exchanges refresh token for new access token -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). -func (c *Client) OAuth2ServiceRefreshToken(ctx context.Context, body OAuth2ServiceRefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceRefreshTokenRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceRevokeTokenWithBody RevokeToken revokes an access or refresh token -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). -func (c *Client) OAuth2ServiceRevokeTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceRevokeTokenRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceRevokeToken RevokeToken revokes an access or refresh token -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). -func (c *Client) OAuth2ServiceRevokeToken(ctx context.Context, body OAuth2ServiceRevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceRevokeTokenRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceTokenWithBody Token exchanges authorization code for access token -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). -func (c *Client) OAuth2ServiceTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceTokenRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OAuth2ServiceToken Token exchanges authorization code for access token -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). -func (c *Client) OAuth2ServiceToken(ctx context.Context, body OAuth2ServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOAuth2ServiceTokenRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceGetOrganization performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. -func (c *Client) OrganizationServiceGetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceGetOrganizationRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceDeleteOrganization performs a DELETE /v1/organizations (the `OrganizationServiceDeleteOrganization` operationId) request. -func (c *Client) OrganizationServiceDeleteOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceDeleteOrganizationRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceListOrganizations performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. -func (c *Client) OrganizationServiceListOrganizations(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceListOrganizationsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceUpdateOrganizationWithBody performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request, -// with any type of body and a specified content type. -func (c *Client) OrganizationServiceUpdateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceUpdateOrganizationRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceUpdateOrganization performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) OrganizationServiceUpdateOrganization(ctx context.Context, body OrganizationServiceUpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceUpdateOrganizationRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceCreateOrganizationWithBody performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request, -// with any type of body and a specified content type. -func (c *Client) OrganizationServiceCreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceCreateOrganizationRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// OrganizationServiceCreateOrganization performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) OrganizationServiceCreateOrganization(ctx context.Context, body OrganizationServiceCreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewOrganizationServiceCreateOrganizationRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceListPaymentMethods List payment methods for an organization/subscription -// Returns payment method details (type, last4, brand, expiry, is_default) -// -// Corresponds with GET /v1/payment-methods (the `PaymentMethodServiceListPaymentMethods` operationId). -func (c *Client) PaymentMethodServiceListPaymentMethods(ctx context.Context, params *PaymentMethodServiceListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceListPaymentMethodsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceAttachPaymentMethodWithBody Attach a payment method to a subscription/organization -// Works for both providers (platform subscriptions) and clients (provider -// plan subscriptions) Authorization: Check organization type and rule engine -// (subscription.payment_method.manage.enabled) -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). -func (c *Client) PaymentMethodServiceAttachPaymentMethodWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceAttachPaymentMethodRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceAttachPaymentMethod Attach a payment method to a subscription/organization -// Works for both providers (platform subscriptions) and clients (provider -// plan subscriptions) Authorization: Check organization type and rule engine -// (subscription.payment_method.manage.enabled) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). -func (c *Client) PaymentMethodServiceAttachPaymentMethod(ctx context.Context, body PaymentMethodServiceAttachPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceAttachPaymentMethodRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceRemovePaymentMethod Remove a payment method -// Validation: -// - Providers: Cannot remove if only one method exists (except on free plan) -// - Clients: Cannot remove if only one method exists -// - Cannot remove if payment method is currently in use for active -// subscriptions -// -// Corresponds with DELETE /v1/payment-methods/{paymentMethodId} (the `PaymentMethodServiceRemovePaymentMethod` operationId). -func (c *Client) PaymentMethodServiceRemovePaymentMethod(ctx context.Context, paymentMethodId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceRemovePaymentMethodRequest(c.Server, paymentMethodId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceSetDefaultPaymentMethodWithBody Set a payment method as the default payment method -// Validates payment method belongs to organization/subscription -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). -func (c *Client) PaymentMethodServiceSetDefaultPaymentMethodWithBody(ctx context.Context, paymentMethodId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceSetDefaultPaymentMethodRequestWithBody(c.Server, paymentMethodId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentMethodServiceSetDefaultPaymentMethod Set a payment method as the default payment method -// Validates payment method belongs to organization/subscription -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). -func (c *Client) PaymentMethodServiceSetDefaultPaymentMethod(ctx context.Context, paymentMethodId string, body PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentMethodServiceSetDefaultPaymentMethodRequest(c.Server, paymentMethodId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentServiceListPayments ListPayments lists payments for an invoice or organization -// -// Corresponds with GET /v1/payments (the `PaymentServiceListPayments` operationId). -func (c *Client) PaymentServiceListPayments(ctx context.Context, params *PaymentServiceListPaymentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentServiceListPaymentsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PaymentServiceGetPayment GetPayment retrieves a single payment with refunds -// -// Corresponds with GET /v1/payments/{paymentId} (the `PaymentServiceGetPayment` operationId). -func (c *Client) PaymentServiceGetPayment(ctx context.Context, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPaymentServiceGetPaymentRequest(c.Server, paymentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PermissionServiceListPermissions performs a GET /v1/permissions (the `PermissionServiceListPermissions` operationId) request. -func (c *Client) PermissionServiceListPermissions(ctx context.Context, params *PermissionServiceListPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPermissionServiceListPermissionsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PermissionServiceAssignPermissionToRoleWithBody performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PermissionServiceAssignPermissionToRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPermissionServiceAssignPermissionToRoleRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PermissionServiceAssignPermissionToRole performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PermissionServiceAssignPermissionToRole(ctx context.Context, body PermissionServiceAssignPermissionToRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPermissionServiceAssignPermissionToRoleRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PermissionServiceListEffectivePermissions performs a GET /v1/permissions/effective (the `PermissionServiceListEffectivePermissions` operationId) request. -func (c *Client) PermissionServiceListEffectivePermissions(ctx context.Context, params *PermissionServiceListEffectivePermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPermissionServiceListEffectivePermissionsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PermissionServiceRemovePermissionFromRole performs a DELETE /v1/permissions/remove-from-role (the `PermissionServiceRemovePermissionFromRole` operationId) request. -func (c *Client) PermissionServiceRemovePermissionFromRole(ctx context.Context, params *PermissionServiceRemovePermissionFromRoleParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPermissionServiceRemovePermissionFromRoleRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlanServiceListPlans performs a GET /v1/plans (the `PlanServiceListPlans` operationId) request. -func (c *Client) PlanServiceListPlans(ctx context.Context, params *PlanServiceListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlanServiceListPlansRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceCreatePlanWithBody performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderPlanServiceCreatePlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceCreatePlanRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceCreatePlan performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderPlanServiceCreatePlan(ctx context.Context, body ProviderPlanServiceCreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceCreatePlanRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceDeletePlan performs a DELETE /v1/plans/{id} (the `ProviderPlanServiceDeletePlan` operationId) request. -func (c *Client) ProviderPlanServiceDeletePlan(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceDeletePlanRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceUpdatePlanWithBody performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderPlanServiceUpdatePlanWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceUpdatePlanRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceUpdatePlan performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderPlanServiceUpdatePlan(ctx context.Context, id string, body ProviderPlanServiceUpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceUpdatePlanRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlanServiceSubscribe performs a POST /v1/plans/{planId}:subscribe (the `PlanServiceSubscribe` operationId) request. -func (c *Client) PlanServiceSubscribe(ctx context.Context, planId string, params *PlanServiceSubscribeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlanServiceSubscribeRequest(c.Server, planId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceCalculatePlanPricingWithBody performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderPlanServiceCalculatePlanPricingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceCalculatePlanPricingRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceCalculatePlanPricing performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderPlanServiceCalculatePlanPricing(ctx context.Context, body ProviderPlanServiceCalculatePlanPricingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceCalculatePlanPricingRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceCreatePlatformWithBody performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PlatformServiceCreatePlatformWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceCreatePlatformRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceCreatePlatform performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PlatformServiceCreatePlatform(ctx context.Context, body PlatformServiceCreatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceCreatePlatformRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetadataServiceGetPlatformVersions GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, liqoctl, and helm. -// -// Corresponds with GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId). -func (c *Client) MetadataServiceGetPlatformVersions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetadataServiceGetPlatformVersionsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceDeletePlatform performs a DELETE /v1/platform/{id} (the `PlatformServiceDeletePlatform` operationId) request. -func (c *Client) PlatformServiceDeletePlatform(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceDeletePlatformRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceGetPlatform performs a GET /v1/platform/{id} (the `PlatformServiceGetPlatform` operationId) request. -func (c *Client) PlatformServiceGetPlatform(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceGetPlatformRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceUpdatePlatformWithBody performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PlatformServiceUpdatePlatformWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceUpdatePlatformRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceUpdatePlatform performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PlatformServiceUpdatePlatform(ctx context.Context, id string, body PlatformServiceUpdatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceUpdatePlatformRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceListPlatforms performs a GET /v1/platforms (the `PlatformServiceListPlatforms` operationId) request. -func (c *Client) PlatformServiceListPlatforms(ctx context.Context, params *PlatformServiceListPlatformsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceListPlatformsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceAssignAgentWithBody performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PlatformServiceAssignAgentWithBody(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceAssignAgentRequestWithBody(c.Server, platformId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceAssignAgent performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PlatformServiceAssignAgent(ctx context.Context, platformId string, body PlatformServiceAssignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceAssignAgentRequest(c.Server, platformId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceUnassignAgentWithBody performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PlatformServiceUnassignAgentWithBody(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceUnassignAgentRequestWithBody(c.Server, platformId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PlatformServiceUnassignAgent performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PlatformServiceUnassignAgent(ctx context.Context, platformId string, body PlatformServiceUnassignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPlatformServiceUnassignAgentRequest(c.Server, platformId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceListProviderReviews performs a GET /v1/provider-reviews (the `ProviderReviewServiceListProviderReviews` operationId) request. -func (c *Client) ProviderReviewServiceListProviderReviews(ctx context.Context, params *ProviderReviewServiceListProviderReviewsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceListProviderReviewsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceCreateClientReviewWithBody performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ClientProviderReviewServiceCreateClientReviewWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceCreateClientReviewRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceCreateClientReview performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ClientProviderReviewServiceCreateClientReview(ctx context.Context, body ClientProviderReviewServiceCreateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceCreateClientReviewRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceGetClientReviewForVirtualMachine performs a GET /v1/provider-reviews/virtual-machines/{virtualMachineId} (the `ClientProviderReviewServiceGetClientReviewForVirtualMachine` operationId) request. -func (c *Client) ClientProviderReviewServiceGetClientReviewForVirtualMachine(ctx context.Context, virtualMachineId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceGetClientReviewForVirtualMachineRequest(c.Server, virtualMachineId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceDeleteClientReview performs a DELETE /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceDeleteClientReview` operationId) request. -func (c *Client) ClientProviderReviewServiceDeleteClientReview(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceDeleteClientReviewRequest(c.Server, reviewId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceUpdateClientReviewWithBody performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ClientProviderReviewServiceUpdateClientReviewWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceUpdateClientReviewRequestWithBody(c.Server, reviewId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ClientProviderReviewServiceUpdateClientReview performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ClientProviderReviewServiceUpdateClientReview(ctx context.Context, reviewId string, body ClientProviderReviewServiceUpdateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewClientProviderReviewServiceUpdateClientReviewRequest(c.Server, reviewId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceDeleteProviderReviewReply performs a DELETE /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceDeleteProviderReviewReply` operationId) request. -func (c *Client) ProviderReviewServiceDeleteProviderReviewReply(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceDeleteProviderReviewReplyRequest(c.Server, reviewId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceUpdateProviderReviewReplyWithBody performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderReviewServiceUpdateProviderReviewReplyWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceUpdateProviderReviewReplyRequestWithBody(c.Server, reviewId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceUpdateProviderReviewReply performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderReviewServiceUpdateProviderReviewReply(ctx context.Context, reviewId string, body ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceUpdateProviderReviewReplyRequest(c.Server, reviewId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceCreateProviderReviewReplyWithBody performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderReviewServiceCreateProviderReviewReplyWithBody(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceCreateProviderReviewReplyRequestWithBody(c.Server, reviewId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderReviewServiceCreateProviderReviewReply performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderReviewServiceCreateProviderReviewReply(ctx context.Context, reviewId string, body ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderReviewServiceCreateProviderReviewReplyRequest(c.Server, reviewId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceDisconnectConnectAccount performs a DELETE /v1/provider/connect/account (the `ProviderConnectServiceDisconnectConnectAccount` operationId) request. -func (c *Client) ProviderConnectServiceDisconnectConnectAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceDisconnectConnectAccountRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceGetConnectAccount performs a GET /v1/provider/connect/account (the `ProviderConnectServiceGetConnectAccount` operationId) request. -func (c *Client) ProviderConnectServiceGetConnectAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceGetConnectAccountRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceCreateConnectAccountWithBody performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderConnectServiceCreateConnectAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceCreateConnectAccountRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceCreateConnectAccount performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderConnectServiceCreateConnectAccount(ctx context.Context, body ProviderConnectServiceCreateConnectAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceCreateConnectAccountRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceCreateConnectTaxSessionWithBody Creates a Stripe AccountSession client secret for Connect tax_settings / -// tax_registrations embedded components. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). -func (c *Client) ProviderConnectServiceCreateConnectTaxSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceCreateConnectTaxSessionRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderConnectServiceCreateConnectTaxSession Creates a Stripe AccountSession client secret for Connect tax_settings / -// tax_registrations embedded components. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). -func (c *Client) ProviderConnectServiceCreateConnectTaxSession(ctx context.Context, body ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderConnectServiceCreateConnectTaxSessionRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceGetProviderCustomerStats Path must not be `/customers/stats`: some gateways match `/customers/{client_organization_id}` first and treat "stats" as a UUID field (validation error). -// -// Corresponds with GET /v1/provider/customer-stats (the `ProviderCustomerServiceGetProviderCustomerStats` operationId). -func (c *Client) ProviderCustomerServiceGetProviderCustomerStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceGetProviderCustomerStatsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceListProviderCustomers performs a GET /v1/provider/customers (the `ProviderCustomerServiceListProviderCustomers` operationId) request. -func (c *Client) ProviderCustomerServiceListProviderCustomers(ctx context.Context, params *ProviderCustomerServiceListProviderCustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceListProviderCustomersRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceGetProviderCustomer performs a GET /v1/provider/customers/{clientOrganizationId} (the `ProviderCustomerServiceGetProviderCustomer` operationId) request. -func (c *Client) ProviderCustomerServiceGetProviderCustomer(ctx context.Context, clientOrganizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceGetProviderCustomerRequest(c.Server, clientOrganizationId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceListProviderCustomerAssets performs a GET /v1/provider/customers/{clientOrganizationId}/assets (the `ProviderCustomerServiceListProviderCustomerAssets` operationId) request. -func (c *Client) ProviderCustomerServiceListProviderCustomerAssets(ctx context.Context, clientOrganizationId string, params *ProviderCustomerServiceListProviderCustomerAssetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceListProviderCustomerAssetsRequest(c.Server, clientOrganizationId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequestWithBody(c.Server, clientOrganizationId, virtualMachineId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderCustomerServiceRestartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequest(c.Server, clientOrganizationId, virtualMachineId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequestWithBody(c.Server, clientOrganizationId, virtualMachineId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceStartProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderCustomerServiceStartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequest(c.Server, clientOrganizationId, virtualMachineId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBody performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBody(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequestWithBody(c.Server, clientOrganizationId, virtualMachineId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderCustomerServiceStopProviderCustomerVirtualMachine performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderCustomerServiceStopProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequest(c.Server, clientOrganizationId, virtualMachineId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardAddonCatalogStats performs a GET /v1/provider/dashboard/addon-catalog-stats (the `ProviderDashboardServiceListDashboardAddonCatalogStats` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardAddonCatalogStats(ctx context.Context, params *ProviderDashboardServiceListDashboardAddonCatalogStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardAddonCatalogStatsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceGetDashboardAssetSalesTimeseries performs a GET /v1/provider/dashboard/asset-sales-timeseries (the `ProviderDashboardServiceGetDashboardAssetSalesTimeseries` operationId) request. -func (c *Client) ProviderDashboardServiceGetDashboardAssetSalesTimeseries(ctx context.Context, params *ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceGetDashboardAssetSalesTimeseriesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceGetDashboardBillingSales performs a GET /v1/provider/dashboard/billing-sales (the `ProviderDashboardServiceGetDashboardBillingSales` operationId) request. -func (c *Client) ProviderDashboardServiceGetDashboardBillingSales(ctx context.Context, params *ProviderDashboardServiceGetDashboardBillingSalesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceGetDashboardBillingSalesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries performs a GET /v1/provider/dashboard/customer-acquisition-timeseries (the `ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries` operationId) request. -func (c *Client) ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries(ctx context.Context, params *ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardInfrastructure performs a GET /v1/provider/dashboard/infrastructure (the `ProviderDashboardServiceListDashboardInfrastructure` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardInfrastructure(ctx context.Context, params *ProviderDashboardServiceListDashboardInfrastructureParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardInfrastructureRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardIpam performs a GET /v1/provider/dashboard/ipam (the `ProviderDashboardServiceListDashboardIpam` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardIpam(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardIpamRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardIpamAssignments performs a GET /v1/provider/dashboard/ipam/assignments (the `ProviderDashboardServiceListDashboardIpamAssignments` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardIpamAssignments(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamAssignmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardIpamAssignmentsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardPlanSubscriptionStats performs a GET /v1/provider/dashboard/plan-subscription-stats (the `ProviderDashboardServiceListDashboardPlanSubscriptionStats` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardPlanSubscriptionStats(ctx context.Context, params *ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardPlanSubscriptionStatsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardPlansTabServiceGetDashboardPlansTabStats performs a GET /v1/provider/dashboard/plans-tab-stats (the `ProviderDashboardPlansTabServiceGetDashboardPlansTabStats` operationId) request. -func (c *Client) ProviderDashboardPlansTabServiceGetDashboardPlansTabStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardPlansTabServiceGetDashboardPlansTabStatsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceGetDashboardSummary performs a GET /v1/provider/dashboard/summary (the `ProviderDashboardServiceGetDashboardSummary` operationId) request. -func (c *Client) ProviderDashboardServiceGetDashboardSummary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceGetDashboardSummaryRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardTicketStatistics performs a GET /v1/provider/dashboard/tickets/statistics (the `ProviderDashboardServiceListDashboardTicketStatistics` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardTicketStatistics(ctx context.Context, params *ProviderDashboardServiceListDashboardTicketStatisticsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardTicketStatisticsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderDashboardServiceListDashboardVirtualMachines performs a GET /v1/provider/dashboard/virtual-machines (the `ProviderDashboardServiceListDashboardVirtualMachines` operationId) request. -func (c *Client) ProviderDashboardServiceListDashboardVirtualMachines(ctx context.Context, params *ProviderDashboardServiceListDashboardVirtualMachinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderDashboardServiceListDashboardVirtualMachinesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceListPlanLiveValidations performs a GET /v1/provider/live-validations (the `LiveValidationServiceListPlanLiveValidations` operationId) request. -func (c *Client) LiveValidationServiceListPlanLiveValidations(ctx context.Context, params *LiveValidationServiceListPlanLiveValidationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceListPlanLiveValidationsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ManualPayoutServiceDeleteManualPayout performs a DELETE /v1/provider/manual-payout (the `ManualPayoutServiceDeleteManualPayout` operationId) request. -func (c *Client) ManualPayoutServiceDeleteManualPayout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManualPayoutServiceDeleteManualPayoutRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ManualPayoutServiceGetManualPayout performs a GET /v1/provider/manual-payout (the `ManualPayoutServiceGetManualPayout` operationId) request. -func (c *Client) ManualPayoutServiceGetManualPayout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManualPayoutServiceGetManualPayoutRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ManualPayoutServiceCreateManualPayoutWithBody performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ManualPayoutServiceCreateManualPayoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManualPayoutServiceCreateManualPayoutRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ManualPayoutServiceCreateManualPayout performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ManualPayoutServiceCreateManualPayout(ctx context.Context, body ManualPayoutServiceCreateManualPayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewManualPayoutServiceCreateManualPayoutRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies performs a GET /v1/provider/network/smtp-outbound-policies (the `ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies` operationId) request. -func (c *Client) ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies(ctx context.Context, params *ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBody performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBody(ctx context.Context, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequestWithBody(c.Server, virtualMachineId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy(ctx context.Context, virtualMachineId string, body ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequest(c.Server, virtualMachineId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceGetSmtpOutboundProviderPolicy performs a GET /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceGetSmtpOutboundProviderPolicy` operationId) request. -func (c *Client) ProviderNetworkServiceGetSmtpOutboundProviderPolicy(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceGetSmtpOutboundProviderPolicyRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBody performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy(ctx context.Context, body ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderOnboardingServiceGetProviderOnboardingChecklist performs a GET /v1/provider/onboarding/checklist (the `ProviderOnboardingServiceGetProviderOnboardingChecklist` operationId) request. -func (c *Client) ProviderOnboardingServiceGetProviderOnboardingChecklist(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderOnboardingServiceGetProviderOnboardingChecklistRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutConfigurationServiceGetPayoutConfiguration performs a GET /v1/provider/payout-configuration (the `PayoutConfigurationServiceGetPayoutConfiguration` operationId) request. -func (c *Client) PayoutConfigurationServiceGetPayoutConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutConfigurationServiceGetPayoutConfigurationRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutConfigurationServiceUpdatePayoutConfigurationWithBody performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request, -// with any type of body and a specified content type. -func (c *Client) PayoutConfigurationServiceUpdatePayoutConfigurationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutConfigurationServiceUpdatePayoutConfigurationRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutConfigurationServiceUpdatePayoutConfiguration performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) PayoutConfigurationServiceUpdatePayoutConfiguration(ctx context.Context, body PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutConfigurationServiceUpdatePayoutConfigurationRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutInvoiceServiceListPayoutInvoices performs a GET /v1/provider/payout-invoices (the `PayoutInvoiceServiceListPayoutInvoices` operationId) request. -func (c *Client) PayoutInvoiceServiceListPayoutInvoices(ctx context.Context, params *PayoutInvoiceServiceListPayoutInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutInvoiceServiceListPayoutInvoicesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutInvoiceServiceGetPayoutInvoice performs a GET /v1/provider/payout-invoices/{id} (the `PayoutInvoiceServiceGetPayoutInvoice` operationId) request. -func (c *Client) PayoutInvoiceServiceGetPayoutInvoice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutInvoiceServiceGetPayoutInvoiceRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ProviderPlanServiceListAssignableNodesForPlan Nodes the provider may assign to a plan (catalog-eligible for tier/category). -// -// Corresponds with GET /v1/provider/plans/assignable-nodes (the `ProviderPlanServiceListAssignableNodesForPlan` operationId). -func (c *Client) ProviderPlanServiceListAssignableNodesForPlan(ctx context.Context, params *ProviderPlanServiceListAssignableNodesForPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewProviderPlanServiceListAssignableNodesForPlanRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceDeletePlanLiveValidation performs a DELETE /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceDeletePlanLiveValidation` operationId) request. -func (c *Client) LiveValidationServiceDeletePlanLiveValidation(ctx context.Context, planId string, params *LiveValidationServiceDeletePlanLiveValidationParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceDeletePlanLiveValidationRequest(c.Server, planId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceGetPlanLiveValidation performs a GET /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceGetPlanLiveValidation` operationId) request. -func (c *Client) LiveValidationServiceGetPlanLiveValidation(ctx context.Context, planId string, params *LiveValidationServiceGetPlanLiveValidationParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceGetPlanLiveValidationRequest(c.Server, planId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceStartPlanLiveValidationWithBody performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request, -// with any type of body and a specified content type. -func (c *Client) LiveValidationServiceStartPlanLiveValidationWithBody(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceStartPlanLiveValidationRequestWithBody(c.Server, planId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceStartPlanLiveValidation performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) LiveValidationServiceStartPlanLiveValidation(ctx context.Context, planId string, body LiveValidationServiceStartPlanLiveValidationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceStartPlanLiveValidationRequest(c.Server, planId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceListPlanLiveValidationBenchmarks performs a GET /v1/provider/plans/{planId}/live-validation/benchmarks (the `LiveValidationServiceListPlanLiveValidationBenchmarks` operationId) request. -func (c *Client) LiveValidationServiceListPlanLiveValidationBenchmarks(ctx context.Context, planId string, params *LiveValidationServiceListPlanLiveValidationBenchmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceListPlanLiveValidationBenchmarksRequest(c.Server, planId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// LiveValidationServiceListEligibleNodesForPlan performs a GET /v1/provider/plans/{planId}/live-validation/nodes (the `LiveValidationServiceListEligibleNodesForPlan` operationId) request. -func (c *Client) LiveValidationServiceListEligibleNodesForPlan(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewLiveValidationServiceListEligibleNodesForPlanRequest(c.Server, planId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PreflightServiceListPreflightChecks performs a GET /v1/provider/preflight-checks (the `PreflightServiceListPreflightChecks` operationId) request. -func (c *Client) PreflightServiceListPreflightChecks(ctx context.Context, params *PreflightServiceListPreflightChecksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPreflightServiceListPreflightChecksRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// PayoutInvoiceServiceGetProviderRevenue performs a GET /v1/provider/revenue (the `PayoutInvoiceServiceGetProviderRevenue` operationId) request. -func (c *Client) PayoutInvoiceServiceGetProviderRevenue(ctx context.Context, params *PayoutInvoiceServiceGetProviderRevenueParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPayoutInvoiceServiceGetProviderRevenueRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RefundServiceListRefunds ListRefunds lists refunds for a payment, invoice, or organization -// -// Corresponds with GET /v1/refunds (the `RefundServiceListRefunds` operationId). -func (c *Client) RefundServiceListRefunds(ctx context.Context, params *RefundServiceListRefundsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRefundServiceListRefundsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RefundServiceGetRefund GetRefund retrieves a single refund with payment and invoice details -// -// Corresponds with GET /v1/refunds/{refundId} (the `RefundServiceGetRefund` operationId). -func (c *Client) RefundServiceGetRefund(ctx context.Context, refundId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRefundServiceGetRefundRequest(c.Server, refundId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceListRegions performs a GET /v1/regions (the `RegionServiceListRegions` operationId) request. -func (c *Client) RegionServiceListRegions(ctx context.Context, params *RegionServiceListRegionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceListRegionsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceCreateRegionWithBody performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RegionServiceCreateRegionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceCreateRegionRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceCreateRegion performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RegionServiceCreateRegion(ctx context.Context, body RegionServiceCreateRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceCreateRegionRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceDeleteRegion performs a DELETE /v1/regions/{id} (the `RegionServiceDeleteRegion` operationId) request. -func (c *Client) RegionServiceDeleteRegion(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceDeleteRegionRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RegionServiceGetRegion performs a GET /v1/regions/{id} (the `RegionServiceGetRegion` operationId) request. -func (c *Client) RegionServiceGetRegion(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRegionServiceGetRegionRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceDeleteRoadmapFeatureRequestComment performs a DELETE /v1/roadmap/comments/{commentId} (the `RoadmapServiceDeleteRoadmapFeatureRequestComment` operationId) request. -func (c *Client) RoadmapServiceDeleteRoadmapFeatureRequestComment(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceDeleteRoadmapFeatureRequestCommentRequest(c.Server, commentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBody performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBody(ctx context.Context, commentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequestWithBody(c.Server, commentId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceUpdateRoadmapFeatureRequestComment performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoadmapServiceUpdateRoadmapFeatureRequestComment(ctx context.Context, commentId string, body RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequest(c.Server, commentId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceListRoadmapProductCategories performs a GET /v1/roadmap/products (the `RoadmapServiceListRoadmapProductCategories` operationId) request. -func (c *Client) RoadmapServiceListRoadmapProductCategories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceListRoadmapProductCategoriesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceListRoadmapFeatureRequests performs a GET /v1/roadmap/requests (the `RoadmapServiceListRoadmapFeatureRequests` operationId) request. -func (c *Client) RoadmapServiceListRoadmapFeatureRequests(ctx context.Context, params *RoadmapServiceListRoadmapFeatureRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceListRoadmapFeatureRequestsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceGetRoadmapFeatureRequest performs a GET /v1/roadmap/requests/{slug} (the `RoadmapServiceGetRoadmapFeatureRequest` operationId) request. -func (c *Client) RoadmapServiceGetRoadmapFeatureRequest(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceGetRoadmapFeatureRequestRequest(c.Server, slug) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceListRoadmapFeatureRequestComments performs a GET /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceListRoadmapFeatureRequestComments` operationId) request. -func (c *Client) RoadmapServiceListRoadmapFeatureRequestComments(ctx context.Context, slug string, params *RoadmapServiceListRoadmapFeatureRequestCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceListRoadmapFeatureRequestCommentsRequest(c.Server, slug, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceCreateRoadmapFeatureRequestCommentWithBody performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoadmapServiceCreateRoadmapFeatureRequestCommentWithBody(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequestWithBody(c.Server, slug, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceCreateRoadmapFeatureRequestComment performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoadmapServiceCreateRoadmapFeatureRequestComment(ctx context.Context, slug string, body RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequest(c.Server, slug, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceRemoveRoadmapFeatureRequestVote performs a DELETE /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceRemoveRoadmapFeatureRequestVote` operationId) request. -func (c *Client) RoadmapServiceRemoveRoadmapFeatureRequestVote(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceRemoveRoadmapFeatureRequestVoteRequest(c.Server, slug) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceVoteRoadmapFeatureRequestWithBody performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoadmapServiceVoteRoadmapFeatureRequestWithBody(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceVoteRoadmapFeatureRequestRequestWithBody(c.Server, slug, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceVoteRoadmapFeatureRequest performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoadmapServiceVoteRoadmapFeatureRequest(ctx context.Context, slug string, body RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceVoteRoadmapFeatureRequestRequest(c.Server, slug, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceGetRoadmapStats performs a GET /v1/roadmap/stats (the `RoadmapServiceGetRoadmapStats` operationId) request. -func (c *Client) RoadmapServiceGetRoadmapStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceGetRoadmapStatsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceSubmitRoadmapFeatureRequestWithBody performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoadmapServiceSubmitRoadmapFeatureRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceSubmitRoadmapFeatureRequestRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoadmapServiceSubmitRoadmapFeatureRequest performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoadmapServiceSubmitRoadmapFeatureRequest(ctx context.Context, body RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoadmapServiceSubmitRoadmapFeatureRequestRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceListRoles performs a GET /v1/roles (the `RoleServiceListRoles` operationId) request. -func (c *Client) RoleServiceListRoles(ctx context.Context, params *RoleServiceListRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceListRolesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceCreateRoleWithBody performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoleServiceCreateRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceCreateRoleRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceCreateRole performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoleServiceCreateRole(ctx context.Context, body RoleServiceCreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceCreateRoleRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForGroupWithBody performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoleServiceReplaceRoleForGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForGroupRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForGroup performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoleServiceReplaceRoleForGroup(ctx context.Context, body RoleServiceReplaceRoleForGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForGroupRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForServiceAccountWithBody performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoleServiceReplaceRoleForServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForServiceAccount performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoleServiceReplaceRoleForServiceAccount(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForServiceAccountRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForUserWithBody performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoleServiceReplaceRoleForUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForUserRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceReplaceRoleForUser performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoleServiceReplaceRoleForUser(ctx context.Context, body RoleServiceReplaceRoleForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceReplaceRoleForUserRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceDeleteRole performs a DELETE /v1/roles/{id} (the `RoleServiceDeleteRole` operationId) request. -func (c *Client) RoleServiceDeleteRole(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceDeleteRoleRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceUpdateRoleWithBody performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request, -// with any type of body and a specified content type. -func (c *Client) RoleServiceUpdateRoleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceUpdateRoleRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// RoleServiceUpdateRole performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) RoleServiceUpdateRole(ctx context.Context, id string, body RoleServiceUpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewRoleServiceUpdateRoleRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceListSecrets performs a GET /v1/secrets (the `SecretServiceListSecrets` operationId) request. -func (c *Client) SecretServiceListSecrets(ctx context.Context, params *SecretServiceListSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceListSecretsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceCreateSecretWithBody performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SecretServiceCreateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceCreateSecretRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceCreateSecret performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SecretServiceCreateSecret(ctx context.Context, body SecretServiceCreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceCreateSecretRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceDeleteSecret performs a DELETE /v1/secrets/{id} (the `SecretServiceDeleteSecret` operationId) request. -func (c *Client) SecretServiceDeleteSecret(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceDeleteSecretRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceGetSecret performs a GET /v1/secrets/{id} (the `SecretServiceGetSecret` operationId) request. -func (c *Client) SecretServiceGetSecret(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceGetSecretRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceUpdateSecretWithBody performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SecretServiceUpdateSecretWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceUpdateSecretRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SecretServiceUpdateSecret performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SecretServiceUpdateSecret(ctx context.Context, id string, body SecretServiceUpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSecretServiceUpdateSecretRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceListServiceAccounts performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. -func (c *Client) ServiceAccountServiceListServiceAccounts(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceListServiceAccountsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceCreateServiceAccountWithBody performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ServiceAccountServiceCreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceCreateServiceAccountRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceCreateServiceAccount performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ServiceAccountServiceCreateServiceAccount(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceCreateServiceAccountRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceRevokeToken performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. -func (c *Client) ServiceAccountServiceRevokeToken(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceRevokeTokenRequest(c.Server, tokenId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceDeleteServiceAccount performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. -func (c *Client) ServiceAccountServiceDeleteServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceDeleteServiceAccountRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceGetServiceAccount performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. -func (c *Client) ServiceAccountServiceGetServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceGetServiceAccountRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceUpdateServiceAccountWithBody performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ServiceAccountServiceUpdateServiceAccountWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceUpdateServiceAccountRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceUpdateServiceAccount performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ServiceAccountServiceUpdateServiceAccount(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceUpdateServiceAccountRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceListTokens performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. -func (c *Client) ServiceAccountServiceListTokens(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceListTokensRequest(c.Server, serviceAccountId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceGenerateTokenWithBody performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, -// with any type of body and a specified content type. -func (c *Client) ServiceAccountServiceGenerateTokenWithBody(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceGenerateTokenRequestWithBody(c.Server, serviceAccountId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// ServiceAccountServiceGenerateToken performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) ServiceAccountServiceGenerateToken(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewServiceAccountServiceGenerateTokenRequest(c.Server, serviceAccountId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SSHKeyServiceListSSHKeys performs a GET /v1/ssh-keys (the `SSHKeyServiceListSSHKeys` operationId) request. -func (c *Client) SSHKeyServiceListSSHKeys(ctx context.Context, params *SSHKeyServiceListSSHKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSSHKeyServiceListSSHKeysRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SSHKeyServiceCreateSSHKeyWithBody performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SSHKeyServiceCreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSSHKeyServiceCreateSSHKeyRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SSHKeyServiceCreateSSHKey performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SSHKeyServiceCreateSSHKey(ctx context.Context, body SSHKeyServiceCreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSSHKeyServiceCreateSSHKeyRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SSHKeyServiceDeleteSSHKey performs a DELETE /v1/ssh-keys/{id} (the `SSHKeyServiceDeleteSSHKey` operationId) request. -func (c *Client) SSHKeyServiceDeleteSSHKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSSHKeyServiceDeleteSSHKeyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SSHKeyServiceGetSSHKey performs a GET /v1/ssh-keys/{id} (the `SSHKeyServiceGetSSHKey` operationId) request. -func (c *Client) SSHKeyServiceGetSSHKey(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSSHKeyServiceGetSSHKeyRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceListSubscriptions performs a GET /v1/subscriptions (the `SubscriptionServiceListSubscriptions` operationId) request. -func (c *Client) SubscriptionServiceListSubscriptions(ctx context.Context, params *SubscriptionServiceListSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceListSubscriptionsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceListAddonSubscriptions List addon subscriptions for a subscription -// -// Corresponds with GET /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceListAddonSubscriptions` operationId). -func (c *Client) AddonServiceListAddonSubscriptions(ctx context.Context, subscriptionId string, params *AddonServiceListAddonSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceListAddonSubscriptionsRequest(c.Server, subscriptionId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceAddAddonToSubscriptionWithBody Add an addon to a subscription -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). -func (c *Client) AddonServiceAddAddonToSubscriptionWithBody(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceAddAddonToSubscriptionRequestWithBody(c.Server, subscriptionId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// AddonServiceAddAddonToSubscription Add an addon to a subscription -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). -func (c *Client) AddonServiceAddAddonToSubscription(ctx context.Context, subscriptionId string, body AddonServiceAddAddonToSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewAddonServiceAddAddonToSubscriptionRequest(c.Server, subscriptionId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceCancel performs a POST /v1/subscriptions:cancel (the `SubscriptionServiceCancel` operationId) request. -func (c *Client) SubscriptionServiceCancel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceCancelRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceCancelRenewalWithBody CancelRenewal schedules an asset/VM-linked subscription to stop renewing at -// current_period_end. The VM remains usable until then; no refund of the current period. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). -func (c *Client) SubscriptionServiceCancelRenewalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceCancelRenewalRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceCancelRenewal CancelRenewal schedules an asset/VM-linked subscription to stop renewing at -// current_period_end. The VM remains usable until then; no refund of the current period. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). -func (c *Client) SubscriptionServiceCancelRenewal(ctx context.Context, body SubscriptionServiceCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceCancelRenewalRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceRetryPaymentWithBody performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SubscriptionServiceRetryPaymentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceRetryPaymentRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceRetryPayment performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SubscriptionServiceRetryPayment(ctx context.Context, body SubscriptionServiceRetryPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceRetryPaymentRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceGetSubscriptionStatus performs a GET /v1/subscriptions:status (the `SubscriptionServiceGetSubscriptionStatus` operationId) request. -func (c *Client) SubscriptionServiceGetSubscriptionStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceGetSubscriptionStatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceUndoCancelRenewalWithBody UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). -func (c *Client) SubscriptionServiceUndoCancelRenewalWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceUndoCancelRenewalRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SubscriptionServiceUndoCancelRenewal UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). -func (c *Client) SubscriptionServiceUndoCancelRenewal(ctx context.Context, body SubscriptionServiceUndoCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSubscriptionServiceUndoCancelRenewalRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceListTicketTemplates performs a GET /v1/ticket-templates (the `TicketServiceListTicketTemplates` operationId) request. -func (c *Client) TicketServiceListTicketTemplates(ctx context.Context, params *TicketServiceListTicketTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceListTicketTemplatesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicketTemplateWithBody performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceCreateTicketTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketTemplateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicketTemplate performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceCreateTicketTemplate(ctx context.Context, body TicketServiceCreateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketTemplateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceDeleteTicketTemplate performs a DELETE /v1/ticket-templates/{id} (the `TicketServiceDeleteTicketTemplate` operationId) request. -func (c *Client) TicketServiceDeleteTicketTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceDeleteTicketTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceGetTicketTemplate performs a GET /v1/ticket-templates/{id} (the `TicketServiceGetTicketTemplate` operationId) request. -func (c *Client) TicketServiceGetTicketTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceGetTicketTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceUpdateTicketTemplateWithBody performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceUpdateTicketTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceUpdateTicketTemplateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceUpdateTicketTemplate performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceUpdateTicketTemplate(ctx context.Context, id string, body TicketServiceUpdateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceUpdateTicketTemplateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceListTickets performs a GET /v1/tickets (the `TicketServiceListTickets` operationId) request. -func (c *Client) TicketServiceListTickets(ctx context.Context, params *TicketServiceListTicketsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceListTicketsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicketWithBody performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceCreateTicketWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicket performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceCreateTicket(ctx context.Context, body TicketServiceCreateTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceDeleteTicketAttachment performs a DELETE /v1/tickets/attachments/{attachmentId} (the `TicketServiceDeleteTicketAttachment` operationId) request. -func (c *Client) TicketServiceDeleteTicketAttachment(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceDeleteTicketAttachmentRequest(c.Server, attachmentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceDownloadTicketAttachment performs a GET /v1/tickets/attachments/{attachmentId}:download (the `TicketServiceDownloadTicketAttachment` operationId) request. -func (c *Client) TicketServiceDownloadTicketAttachment(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceDownloadTicketAttachmentRequest(c.Server, attachmentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceConfirmTicketAttachmentUploadWithBody performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceConfirmTicketAttachmentUploadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceConfirmTicketAttachmentUploadRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceConfirmTicketAttachmentUpload performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceConfirmTicketAttachmentUpload(ctx context.Context, body TicketServiceConfirmTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceConfirmTicketAttachmentUploadRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceUploadTicketAttachmentContentWithBody performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceUploadTicketAttachmentContentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceUploadTicketAttachmentContentRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceUploadTicketAttachmentContent performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceUploadTicketAttachmentContent(ctx context.Context, body TicketServiceUploadTicketAttachmentContentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceUploadTicketAttachmentContentRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceDeleteTicket performs a DELETE /v1/tickets/{id} (the `TicketServiceDeleteTicket` operationId) request. -func (c *Client) TicketServiceDeleteTicket(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceDeleteTicketRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceGetTicket performs a GET /v1/tickets/{id} (the `TicketServiceGetTicket` operationId) request. -func (c *Client) TicketServiceGetTicket(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceGetTicketRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceListTicketAttachments performs a GET /v1/tickets/{ticketId}/attachments (the `TicketServiceListTicketAttachments` operationId) request. -func (c *Client) TicketServiceListTicketAttachments(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceListTicketAttachmentsRequest(c.Server, ticketId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicketAttachmentUploadWithBody performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceCreateTicketAttachmentUploadWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketAttachmentUploadRequestWithBody(c.Server, ticketId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceCreateTicketAttachmentUpload performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceCreateTicketAttachmentUpload(ctx context.Context, ticketId string, body TicketServiceCreateTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceCreateTicketAttachmentUploadRequest(c.Server, ticketId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceListInternalComments performs a GET /v1/tickets/{ticketId}/internal-comments (the `TicketServiceListInternalComments` operationId) request. -func (c *Client) TicketServiceListInternalComments(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceListInternalCommentsRequest(c.Server, ticketId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceAddReplyToTicketWithBody performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceAddReplyToTicketWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceAddReplyToTicketRequestWithBody(c.Server, ticketId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceAddReplyToTicket performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceAddReplyToTicket(ctx context.Context, ticketId string, body TicketServiceAddReplyToTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceAddReplyToTicketRequest(c.Server, ticketId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceAddInternalCommentWithBody performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceAddInternalCommentWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceAddInternalCommentRequestWithBody(c.Server, ticketId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceAddInternalComment performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceAddInternalComment(ctx context.Context, ticketId string, body TicketServiceAddInternalCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceAddInternalCommentRequest(c.Server, ticketId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSetTicketPriorityWithBody performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceSetTicketPriorityWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSetTicketPriorityRequestWithBody(c.Server, ticketId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSetTicketPriority performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceSetTicketPriority(ctx context.Context, ticketId string, body TicketServiceSetTicketPriorityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSetTicketPriorityRequest(c.Server, ticketId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSetTicketStatusWithBody performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceSetTicketStatusWithBody(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSetTicketStatusRequestWithBody(c.Server, ticketId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSetTicketStatus performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceSetTicketStatus(ctx context.Context, ticketId string, body TicketServiceSetTicketStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSetTicketStatusRequest(c.Server, ticketId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSearchTicketsWithBody performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request, -// with any type of body and a specified content type. -func (c *Client) TicketServiceSearchTicketsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSearchTicketsRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// TicketServiceSearchTickets performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) TicketServiceSearchTickets(ctx context.Context, body TicketServiceSearchTicketsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewTicketServiceSearchTicketsRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceRecordUsageWithBody Record a single usage event (from Prometheus or other monitoring systems) -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). -func (c *Client) UsageReportServiceRecordUsageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceRecordUsageRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceRecordUsage Record a single usage event (from Prometheus or other monitoring systems) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). -func (c *Client) UsageReportServiceRecordUsage(ctx context.Context, body UsageReportServiceRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceRecordUsageRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceBatchRecordUsageWithBody Batch record multiple usage events (for bulk ingestion) -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). -func (c *Client) UsageReportServiceBatchRecordUsageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceBatchRecordUsageRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceBatchRecordUsage Batch record multiple usage events (for bulk ingestion) -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). -func (c *Client) UsageReportServiceBatchRecordUsage(ctx context.Context, body UsageReportServiceBatchRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceBatchRecordUsageRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceListUsageRecords List usage records with filters -// -// Corresponds with GET /v1/usage/records (the `UsageReportServiceListUsageRecords` operationId). -func (c *Client) UsageReportServiceListUsageRecords(ctx context.Context, params *UsageReportServiceListUsageRecordsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceListUsageRecordsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceGetUsageRecord Get a specific usage record by ID -// -// Corresponds with GET /v1/usage/records/{id} (the `UsageReportServiceGetUsageRecord` operationId). -func (c *Client) UsageReportServiceGetUsageRecord(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceGetUsageRecordRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UsageReportServiceGetUsageReport Get aggregated usage report for a billing period -// -// Corresponds with GET /v1/usage/report (the `UsageReportServiceGetUsageReport` operationId). -func (c *Client) UsageReportServiceGetUsageReport(ctx context.Context, params *UsageReportServiceGetUsageReportParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUsageReportServiceGetUsageReportRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceListUsers performs a GET /v1/users (the `UserServiceListUsers` operationId) request. -func (c *Client) UserServiceListUsers(ctx context.Context, params *UserServiceListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceListUsersRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceDeleteUser performs a DELETE /v1/users/{id} (the `UserServiceDeleteUser` operationId) request. -func (c *Client) UserServiceDeleteUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceDeleteUserRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceGetUser performs a GET /v1/users/{id} (the `UserServiceGetUser` operationId) request. -func (c *Client) UserServiceGetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceGetUserRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceUpdateUserWithBody performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request, -// with any type of body and a specified content type. -func (c *Client) UserServiceUpdateUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceUpdateUserRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UserServiceUpdateUser performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) UserServiceUpdateUser(ctx context.Context, id string, body UserServiceUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUserServiceUpdateUserRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// MetadataServiceGetVersion performs a GET /v1/version (the `MetadataServiceGetVersion` operationId) request. -func (c *Client) MetadataServiceGetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewMetadataServiceGetVersionRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceListVirtualMachines performs a GET /v1/virtual-machines (the `VirtualMachineServiceListVirtualMachines` operationId) request. -func (c *Client) VirtualMachineServiceListVirtualMachines(ctx context.Context, params *VirtualMachineServiceListVirtualMachinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceListVirtualMachinesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceCreateVirtualMachineWithBody performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceCreateVirtualMachineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceCreateVirtualMachineRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceCreateVirtualMachine performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceCreateVirtualMachine(ctx context.Context, body VirtualMachineServiceCreateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceCreateVirtualMachineRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceListVMTags ListVMTags returns all unique tags from virtual machines belonging to the organization -// -// Corresponds with GET /v1/virtual-machines/tags (the `VirtualMachineServiceListVMTags` operationId). -func (c *Client) VirtualMachineServiceListVMTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceListVMTagsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDeleteVirtualMachine performs a DELETE /v1/virtual-machines/{id} (the `VirtualMachineServiceDeleteVirtualMachine` operationId) request. -func (c *Client) VirtualMachineServiceDeleteVirtualMachine(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDeleteVirtualMachineRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceGetVirtualMachine performs a GET /v1/virtual-machines/{id} (the `VirtualMachineServiceGetVirtualMachine` operationId) request. -func (c *Client) VirtualMachineServiceGetVirtualMachine(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceGetVirtualMachineRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceUpdateVirtualMachineWithBody performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceUpdateVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceUpdateVirtualMachineRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceUpdateVirtualMachine performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceUpdateVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceUpdateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceUpdateVirtualMachineRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceGetVNCConsole GetVNCConsole returns WebSocket URL for VNC console access. -// -// Corresponds with GET /v1/virtual-machines/{id}/console (the `VirtualMachineServiceGetVNCConsole` operationId). -func (c *Client) VirtualMachineServiceGetVNCConsole(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceGetVNCConsoleRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceAttachVMFirewallWithBody performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceAttachVMFirewallWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceAttachVMFirewallRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceAttachVMFirewall performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceAttachVMFirewall(ctx context.Context, id string, body VirtualMachineServiceAttachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceAttachVMFirewallRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDetachVMFirewallWithBody performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceDetachVMFirewallWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDetachVMFirewallRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDetachVMFirewall performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceDetachVMFirewall(ctx context.Context, id string, body VirtualMachineServiceDetachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDetachVMFirewallRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceReinstallVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceReinstallVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceReinstallVirtualMachineRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceReinstallVirtualMachine performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceReinstallVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceReinstallVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceReinstallVirtualMachineRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceRestartVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceRestartVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceRestartVirtualMachineRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceRestartVirtualMachine performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceRestartVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceRestartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceRestartVirtualMachineRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceStartVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceStartVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceStartVirtualMachineRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceStartVirtualMachine performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceStartVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceStartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceStartVirtualMachineRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceStopVirtualMachineWithBody performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VirtualMachineServiceStopVirtualMachineWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceStopVirtualMachineRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceStopVirtualMachine performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VirtualMachineServiceStopVirtualMachine(ctx context.Context, id string, body VirtualMachineServiceStopVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceStopVirtualMachineRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// BackupServiceListBackups performs a GET /v1/virtual-machines/{vmId}/backups (the `BackupServiceListBackups` operationId) request. -func (c *Client) BackupServiceListBackups(ctx context.Context, vmId string, params *BackupServiceListBackupsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBackupServiceListBackupsRequest(c.Server, vmId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// BackupServiceDeleteBackup performs a DELETE /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceDeleteBackup` operationId) request. -func (c *Client) BackupServiceDeleteBackup(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBackupServiceDeleteBackupRequest(c.Server, vmId, backupId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// BackupServiceGetBackup performs a GET /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceGetBackup` operationId) request. -func (c *Client) BackupServiceGetBackup(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBackupServiceGetBackupRequest(c.Server, vmId, backupId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// BackupServiceRestoreBackupWithBody performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request, -// with any type of body and a specified content type. -func (c *Client) BackupServiceRestoreBackupWithBody(ctx context.Context, vmId string, backupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBackupServiceRestoreBackupRequestWithBody(c.Server, vmId, backupId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// BackupServiceRestoreBackup performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) BackupServiceRestoreBackup(ctx context.Context, vmId string, backupId string, body BackupServiceRestoreBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewBackupServiceRestoreBackupRequest(c.Server, vmId, backupId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceListSnapshots performs a GET /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceListSnapshots` operationId) request. -func (c *Client) SnapshotServiceListSnapshots(ctx context.Context, vmId string, params *SnapshotServiceListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceListSnapshotsRequest(c.Server, vmId, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceCreateSnapshotWithBody performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SnapshotServiceCreateSnapshotWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceCreateSnapshotRequestWithBody(c.Server, vmId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceCreateSnapshot performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SnapshotServiceCreateSnapshot(ctx context.Context, vmId string, body SnapshotServiceCreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceCreateSnapshotRequest(c.Server, vmId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceDeleteSnapshot performs a DELETE /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceDeleteSnapshot` operationId) request. -func (c *Client) SnapshotServiceDeleteSnapshot(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceDeleteSnapshotRequest(c.Server, vmId, snapshotId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceGetSnapshot performs a GET /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceGetSnapshot` operationId) request. -func (c *Client) SnapshotServiceGetSnapshot(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceGetSnapshotRequest(c.Server, vmId, snapshotId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceRestoreSnapshotWithBody performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request, -// with any type of body and a specified content type. -func (c *Client) SnapshotServiceRestoreSnapshotWithBody(ctx context.Context, vmId string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceRestoreSnapshotRequestWithBody(c.Server, vmId, snapshotId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// SnapshotServiceRestoreSnapshot performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) SnapshotServiceRestoreSnapshot(ctx context.Context, vmId string, snapshotId string, body SnapshotServiceRestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSnapshotServiceRestoreSnapshotRequest(c.Server, vmId, snapshotId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDisableAdditionalIPWithBody DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). -func (c *Client) VirtualMachineServiceDisableAdditionalIPWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDisableAdditionalIPRequestWithBody(c.Server, vmId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDisableAdditionalIP DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). -func (c *Client) VirtualMachineServiceDisableAdditionalIP(ctx context.Context, vmId string, body VirtualMachineServiceDisableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDisableAdditionalIPRequest(c.Server, vmId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDisableBackupWithBody DisableBackup disables backup addon for a virtual machine -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). -func (c *Client) VirtualMachineServiceDisableBackupWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDisableBackupRequestWithBody(c.Server, vmId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceDisableBackup DisableBackup disables backup addon for a virtual machine -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). -func (c *Client) VirtualMachineServiceDisableBackup(ctx context.Context, vmId string, body VirtualMachineServiceDisableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceDisableBackupRequest(c.Server, vmId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceEnableAdditionalIPWithBody EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). -func (c *Client) VirtualMachineServiceEnableAdditionalIPWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceEnableAdditionalIPRequestWithBody(c.Server, vmId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceEnableAdditionalIP EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). -func (c *Client) VirtualMachineServiceEnableAdditionalIP(ctx context.Context, vmId string, body VirtualMachineServiceEnableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceEnableAdditionalIPRequest(c.Server, vmId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceEnableBackupWithBody EnableBackup enables backup addon for a virtual machine -// -// Takes any type of body and a specified content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). -func (c *Client) VirtualMachineServiceEnableBackupWithBody(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceEnableBackupRequestWithBody(c.Server, vmId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VirtualMachineServiceEnableBackup EnableBackup enables backup addon for a virtual machine -// -// Takes a body of the `application/json` content type. -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). -func (c *Client) VirtualMachineServiceEnableBackup(ctx context.Context, vmId string, body VirtualMachineServiceEnableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVirtualMachineServiceEnableBackupRequest(c.Server, vmId, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceCreateVMTemplateWithBody performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VMTemplateServiceCreateVMTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceCreateVMTemplateRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceCreateVMTemplate performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VMTemplateServiceCreateVMTemplate(ctx context.Context, body VMTemplateServiceCreateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceCreateVMTemplateRequest(c.Server, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceDeleteVMTemplate performs a DELETE /v1/vmtemplate/{id} (the `VMTemplateServiceDeleteVMTemplate` operationId) request. -func (c *Client) VMTemplateServiceDeleteVMTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceDeleteVMTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceGetVMTemplate performs a GET /v1/vmtemplate/{id} (the `VMTemplateServiceGetVMTemplate` operationId) request. -func (c *Client) VMTemplateServiceGetVMTemplate(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceGetVMTemplateRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceUpdateVMTemplateWithBody performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request, -// with any type of body and a specified content type. -func (c *Client) VMTemplateServiceUpdateVMTemplateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceUpdateVMTemplateRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceUpdateVMTemplate performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request. -// Takes a body of the `application/json` content type. -func (c *Client) VMTemplateServiceUpdateVMTemplate(ctx context.Context, id string, body VMTemplateServiceUpdateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceUpdateVMTemplateRequest(c.Server, id, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// VMTemplateServiceListVMTemplates performs a GET /v1/vmtemplates (the `VMTemplateServiceListVMTemplates` operationId) request. -func (c *Client) VMTemplateServiceListVMTemplates(ctx context.Context, params *VMTemplateServiceListVMTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewVMTemplateServiceListVMTemplatesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NewWebhookServiceHandleWebhookRequest calls the generic WebhookServiceHandleWebhook builder with application/json body -func NewWebhookServiceHandleWebhookRequest(server string, provider string, body WebhookServiceHandleWebhookJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewWebhookServiceHandleWebhookRequestWithBody(server, provider, "application/json", bodyReader) -} - -// NewWebhookServiceHandleWebhookRequestWithBody constructs an http.Request for the WebhookServiceHandleWebhook method, with any body, and a specified content type -func NewWebhookServiceHandleWebhookRequestWithBody(server string, provider string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "provider", provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/v1/webhooks/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAddonServiceRemoveAddonRequest constructs an http.Request for the AddonServiceRemoveAddon method -func NewAddonServiceRemoveAddonRequest(server string, addonSubscriptionId string, params *AddonServiceRemoveAddonParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "addonSubscriptionId", addonSubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addon-subscriptions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.CancelImmediately != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cancelImmediately", *params.CancelImmediately, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceListAddonsRequest constructs an http.Request for the AddonServiceListAddons method -func NewAddonServiceListAddonsRequest(server string, params *AddonServiceListAddonsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addons") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.SubscriptionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subscriptionId", *params.SubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AddonType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "addonType", *params.AddonType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IsTemplate != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "isTemplate", *params.IsTemplate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.BillingType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingType", *params.BillingType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceCreateAddonRequest calls the generic AddonServiceCreateAddon builder with application/json body -func NewAddonServiceCreateAddonRequest(server string, body AddonServiceCreateAddonJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAddonServiceCreateAddonRequestWithBody(server, "application/json", bodyReader) -} - -// NewAddonServiceCreateAddonRequestWithBody constructs an http.Request for the AddonServiceCreateAddon method, with any body, and a specified content type -func NewAddonServiceCreateAddonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addons") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAddonServiceDeleteAddonRequest constructs an http.Request for the AddonServiceDeleteAddon method -func NewAddonServiceDeleteAddonRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addons/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceGetAddonRequest constructs an http.Request for the AddonServiceGetAddon method -func NewAddonServiceGetAddonRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addons/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceUpdateAddonRequest calls the generic AddonServiceUpdateAddon builder with application/json body -func NewAddonServiceUpdateAddonRequest(server string, id string, body AddonServiceUpdateAddonJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAddonServiceUpdateAddonRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAddonServiceUpdateAddonRequestWithBody constructs an http.Request for the AddonServiceUpdateAddon method, with any body, and a specified content type -func NewAddonServiceUpdateAddonRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/addons/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAgentServiceListAgentsRequest constructs an http.Request for the AgentServiceListAgents method -func NewAgentServiceListAgentsRequest(server string, params *AgentServiceListAgentsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.GatewayRegion != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "gatewayRegion", *params.GatewayRegion, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAgentServiceCreateAgentRequest calls the generic AgentServiceCreateAgent builder with application/json body -func NewAgentServiceCreateAgentRequest(server string, body AgentServiceCreateAgentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAgentServiceCreateAgentRequestWithBody(server, "application/json", bodyReader) -} - -// NewAgentServiceCreateAgentRequestWithBody constructs an http.Request for the AgentServiceCreateAgent method, with any body, and a specified content type -func NewAgentServiceCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAgentServiceDeleteAgentRequest constructs an http.Request for the AgentServiceDeleteAgent method -func NewAgentServiceDeleteAgentRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAgentServiceGetAgentRequest constructs an http.Request for the AgentServiceGetAgent method -func NewAgentServiceGetAgentRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAgentServiceUpdateAgentRequest calls the generic AgentServiceUpdateAgent builder with application/json body -func NewAgentServiceUpdateAgentRequest(server string, id string, body AgentServiceUpdateAgentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAgentServiceUpdateAgentRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAgentServiceUpdateAgentRequestWithBody constructs an http.Request for the AgentServiceUpdateAgent method, with any body, and a specified content type -func NewAgentServiceUpdateAgentRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAgentServiceGenerateInstallCommandRequest calls the generic AgentServiceGenerateInstallCommand builder with application/json body -func NewAgentServiceGenerateInstallCommandRequest(server string, id string, body AgentServiceGenerateInstallCommandJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAgentServiceGenerateInstallCommandRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAgentServiceGenerateInstallCommandRequestWithBody constructs an http.Request for the AgentServiceGenerateInstallCommand method, with any body, and a specified content type -func NewAgentServiceGenerateInstallCommandRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s:generateInstallCommand", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAgentServiceGeneratePeeringConfigRequest calls the generic AgentServiceGeneratePeeringConfig builder with application/json body -func NewAgentServiceGeneratePeeringConfigRequest(server string, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAgentServiceGeneratePeeringConfigRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAgentServiceGeneratePeeringConfigRequestWithBody constructs an http.Request for the AgentServiceGeneratePeeringConfig method, with any body, and a specified content type -func NewAgentServiceGeneratePeeringConfigRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s:generatePeeringConfig", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewAgentServiceUploadInboundPeeringConfigRequest calls the generic AgentServiceUploadInboundPeeringConfig builder with application/json body -func NewAgentServiceUploadInboundPeeringConfigRequest(server string, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAgentServiceUploadInboundPeeringConfigRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewAgentServiceUploadInboundPeeringConfigRequestWithBody constructs an http.Request for the AgentServiceUploadInboundPeeringConfig method, with any body, and a specified content type -func NewAgentServiceUploadInboundPeeringConfigRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/agents/%s:uploadInboundPeeringConfig", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceChangePasswordRequest calls the generic UserServiceChangePassword builder with application/json body -func NewUserServiceChangePasswordRequest(server string, body UserServiceChangePasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceChangePasswordRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceChangePasswordRequestWithBody constructs an http.Request for the UserServiceChangePassword method, with any body, and a specified content type -func NewUserServiceChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/change-password") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceForgotPasswordRequest calls the generic UserServiceForgotPassword builder with application/json body -func NewUserServiceForgotPasswordRequest(server string, body UserServiceForgotPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceForgotPasswordRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceForgotPasswordRequestWithBody constructs an http.Request for the UserServiceForgotPassword method, with any body, and a specified content type -func NewUserServiceForgotPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/forgot-password") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceListLinkedIdentitiesRequest constructs an http.Request for the UserServiceListLinkedIdentities method -func NewUserServiceListLinkedIdentitiesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/identities") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceUnlinkIdentityRequest constructs an http.Request for the UserServiceUnlinkIdentity method -func NewUserServiceUnlinkIdentityRequest(server string, provider string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "provider", provider, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/identities/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceLoginRequest calls the generic UserServiceLogin builder with application/json body -func NewUserServiceLoginRequest(server string, body UserServiceLoginJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceLoginRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceLoginRequestWithBody constructs an http.Request for the UserServiceLogin method, with any body, and a specified content type -func NewUserServiceLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/login") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceLoginMfaVerifyRequest calls the generic UserServiceLoginMfaVerify builder with application/json body -func NewUserServiceLoginMfaVerifyRequest(server string, body UserServiceLoginMfaVerifyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceLoginMfaVerifyRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceLoginMfaVerifyRequestWithBody constructs an http.Request for the UserServiceLoginMfaVerify method, with any body, and a specified content type -func NewUserServiceLoginMfaVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/login/mfa") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceLogoutRequest calls the generic UserServiceLogout builder with application/json body -func NewUserServiceLogoutRequest(server string, body UserServiceLogoutJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceLogoutRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceLogoutRequestWithBody constructs an http.Request for the UserServiceLogout method, with any body, and a specified content type -func NewUserServiceLogoutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/logout") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceRegenerateMfaBackupCodesRequest calls the generic UserServiceRegenerateMfaBackupCodes builder with application/json body -func NewUserServiceRegenerateMfaBackupCodesRequest(server string, body UserServiceRegenerateMfaBackupCodesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceRegenerateMfaBackupCodesRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceRegenerateMfaBackupCodesRequestWithBody constructs an http.Request for the UserServiceRegenerateMfaBackupCodes method, with any body, and a specified content type -func NewUserServiceRegenerateMfaBackupCodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/mfa/backup-codes/regenerate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceDisableMfaRequest calls the generic UserServiceDisableMfa builder with application/json body -func NewUserServiceDisableMfaRequest(server string, body UserServiceDisableMfaJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceDisableMfaRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceDisableMfaRequestWithBody constructs an http.Request for the UserServiceDisableMfa method, with any body, and a specified content type -func NewUserServiceDisableMfaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/mfa/disable") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceEnrollMfaTotpRequest calls the generic UserServiceEnrollMfaTotp builder with application/json body -func NewUserServiceEnrollMfaTotpRequest(server string, body UserServiceEnrollMfaTotpJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceEnrollMfaTotpRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceEnrollMfaTotpRequestWithBody constructs an http.Request for the UserServiceEnrollMfaTotp method, with any body, and a specified content type -func NewUserServiceEnrollMfaTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/mfa/enroll") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceGetMfaStatusRequest constructs an http.Request for the UserServiceGetMfaStatus method -func NewUserServiceGetMfaStatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/mfa/status") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceVerifyMfaEnrollmentRequest calls the generic UserServiceVerifyMfaEnrollment builder with application/json body -func NewUserServiceVerifyMfaEnrollmentRequest(server string, body UserServiceVerifyMfaEnrollmentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceVerifyMfaEnrollmentRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceVerifyMfaEnrollmentRequestWithBody constructs an http.Request for the UserServiceVerifyMfaEnrollment method, with any body, and a specified content type -func NewUserServiceVerifyMfaEnrollmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/mfa/verify-enrollment") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceRegisterUserRequest calls the generic UserServiceRegisterUser builder with application/json body -func NewUserServiceRegisterUserRequest(server string, body UserServiceRegisterUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceRegisterUserRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceRegisterUserRequestWithBody constructs an http.Request for the UserServiceRegisterUser method, with any body, and a specified content type -func NewUserServiceRegisterUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/register") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceResendVerificationEmailRequest calls the generic UserServiceResendVerificationEmail builder with application/json body -func NewUserServiceResendVerificationEmailRequest(server string, body UserServiceResendVerificationEmailJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceResendVerificationEmailRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceResendVerificationEmailRequestWithBody constructs an http.Request for the UserServiceResendVerificationEmail method, with any body, and a specified content type -func NewUserServiceResendVerificationEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/resend-verification-email") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceResetPasswordRequest calls the generic UserServiceResetPassword builder with application/json body -func NewUserServiceResetPasswordRequest(server string, body UserServiceResetPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceResetPasswordRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceResetPasswordRequestWithBody constructs an http.Request for the UserServiceResetPassword method, with any body, and a specified content type -func NewUserServiceResetPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/reset-password") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceGetActiveSessionsRequest constructs an http.Request for the UserServiceGetActiveSessions method -func NewUserServiceGetActiveSessionsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/sessions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceSetPasswordRequest calls the generic UserServiceSetPassword builder with application/json body -func NewUserServiceSetPasswordRequest(server string, body UserServiceSetPasswordJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceSetPasswordRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceSetPasswordRequestWithBody constructs an http.Request for the UserServiceSetPassword method, with any body, and a specified content type -func NewUserServiceSetPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/set-password") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceExchangeSSOCodeRequest calls the generic UserServiceExchangeSSOCode builder with application/json body -func NewUserServiceExchangeSSOCodeRequest(server string, body UserServiceExchangeSSOCodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceExchangeSSOCodeRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceExchangeSSOCodeRequestWithBody constructs an http.Request for the UserServiceExchangeSSOCode method, with any body, and a specified content type -func NewUserServiceExchangeSSOCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/sso/exchange") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceCompleteSSOLinkRequest calls the generic UserServiceCompleteSSOLink builder with application/json body -func NewUserServiceCompleteSSOLinkRequest(server string, body UserServiceCompleteSSOLinkJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceCompleteSSOLinkRequestWithBody(server, "application/json", bodyReader) -} - -// NewUserServiceCompleteSSOLinkRequestWithBody constructs an http.Request for the UserServiceCompleteSSOLink method, with any body, and a specified content type -func NewUserServiceCompleteSSOLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/sso/link") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUserServiceVerifyEmailRequest constructs an http.Request for the UserServiceVerifyEmail method -func NewUserServiceVerifyEmailRequest(server string, params *UserServiceVerifyEmailParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/auth/verify-email") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.UserId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "userId", *params.UserId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Code != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code", *params.Code, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewChatServiceChatRequest calls the generic ChatServiceChat builder with application/json body -func NewChatServiceChatRequest(server string, body ChatServiceChatJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewChatServiceChatRequestWithBody(server, "application/json", bodyReader) -} - -// NewChatServiceChatRequestWithBody constructs an http.Request for the ChatServiceChat method, with any body, and a specified content type -func NewChatServiceChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/chat") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewChatServiceChatAnonymousRequest calls the generic ChatServiceChatAnonymous builder with application/json body -func NewChatServiceChatAnonymousRequest(server string, body ChatServiceChatAnonymousJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewChatServiceChatAnonymousRequestWithBody(server, "application/json", bodyReader) -} - -// NewChatServiceChatAnonymousRequestWithBody constructs an http.Request for the ChatServiceChatAnonymous method, with any body, and a specified content type -func NewChatServiceChatAnonymousRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/chat/anonymous") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewChatServiceListConversationsRequest constructs an http.Request for the ChatServiceListConversations method -func NewChatServiceListConversationsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/chat/conversations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewChatServiceDeleteConversationRequest constructs an http.Request for the ChatServiceDeleteConversation method -func NewChatServiceDeleteConversationRequest(server string, conversationId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "conversationId", conversationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/chat/conversations/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewChatServiceGetConversationHistoryRequest constructs an http.Request for the ChatServiceGetConversationHistory method -func NewChatServiceGetConversationHistoryRequest(server string, conversationId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "conversationId", conversationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/chat/conversations/%s/history", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientDashboardServiceGetClientDashboardBillingRequest constructs an http.Request for the ClientDashboardServiceGetClientDashboardBilling method -func NewClientDashboardServiceGetClientDashboardBillingRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/client/dashboard/billing") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientDashboardServiceGetClientDashboardSummaryRequest constructs an http.Request for the ClientDashboardServiceGetClientDashboardSummary method -func NewClientDashboardServiceGetClientDashboardSummaryRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/client/dashboard/summary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientProviderReviewServiceListClientProviderReviewAssetsRequest constructs an http.Request for the ClientProviderReviewServiceListClientProviderReviewAssets method -func NewClientProviderReviewServiceListClientProviderReviewAssetsRequest(server string, params *ClientProviderReviewServiceListClientProviderReviewAssetsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/client/provider-review-assets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitTemplateServiceCreateCloudInitTemplateRequest calls the generic CloudInitTemplateServiceCreateCloudInitTemplate builder with application/json body -func NewCloudInitTemplateServiceCreateCloudInitTemplateRequest(server string, body CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCloudInitTemplateServiceCreateCloudInitTemplateRequestWithBody(server, "application/json", bodyReader) -} - -// NewCloudInitTemplateServiceCreateCloudInitTemplateRequestWithBody constructs an http.Request for the CloudInitTemplateServiceCreateCloudInitTemplate method, with any body, and a specified content type -func NewCloudInitTemplateServiceCreateCloudInitTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinittemplate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCloudInitTemplateServiceDeleteCloudInitTemplateRequest constructs an http.Request for the CloudInitTemplateServiceDeleteCloudInitTemplate method -func NewCloudInitTemplateServiceDeleteCloudInitTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinittemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitTemplateServiceGetCloudInitTemplateRequest constructs an http.Request for the CloudInitTemplateServiceGetCloudInitTemplate method -func NewCloudInitTemplateServiceGetCloudInitTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinittemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitTemplateServiceUpdateCloudInitTemplateRequest calls the generic CloudInitTemplateServiceUpdateCloudInitTemplate builder with application/json body -func NewCloudInitTemplateServiceUpdateCloudInitTemplateRequest(server string, id string, body CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCloudInitTemplateServiceUpdateCloudInitTemplateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCloudInitTemplateServiceUpdateCloudInitTemplateRequestWithBody constructs an http.Request for the CloudInitTemplateServiceUpdateCloudInitTemplate method, with any body, and a specified content type -func NewCloudInitTemplateServiceUpdateCloudInitTemplateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinittemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCloudInitTemplateServiceListCloudInitTemplatesRequest constructs an http.Request for the CloudInitTemplateServiceListCloudInitTemplates method -func NewCloudInitTemplateServiceListCloudInitTemplatesRequest(server string, params *CloudInitTemplateServiceListCloudInitTemplatesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinittemplates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterIsTemplate != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterIsTemplate", *params.FilterIsTemplate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitUserDataServiceListCloudInitUserDataRequest constructs an http.Request for the CloudInitUserDataServiceListCloudInitUserData method -func NewCloudInitUserDataServiceListCloudInitUserDataRequest(server string, params *CloudInitUserDataServiceListCloudInitUserDataParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinituserdata") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitUserDataServiceCreateCloudInitUserDataRequest calls the generic CloudInitUserDataServiceCreateCloudInitUserData builder with application/json body -func NewCloudInitUserDataServiceCreateCloudInitUserDataRequest(server string, body CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCloudInitUserDataServiceCreateCloudInitUserDataRequestWithBody(server, "application/json", bodyReader) -} - -// NewCloudInitUserDataServiceCreateCloudInitUserDataRequestWithBody constructs an http.Request for the CloudInitUserDataServiceCreateCloudInitUserData method, with any body, and a specified content type -func NewCloudInitUserDataServiceCreateCloudInitUserDataRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinituserdata") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewCloudInitUserDataServiceDeleteCloudInitUserDataRequest constructs an http.Request for the CloudInitUserDataServiceDeleteCloudInitUserData method -func NewCloudInitUserDataServiceDeleteCloudInitUserDataRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinituserdata/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitUserDataServiceGetCloudInitUserDataRequest constructs an http.Request for the CloudInitUserDataServiceGetCloudInitUserData method -func NewCloudInitUserDataServiceGetCloudInitUserDataRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinituserdata/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCloudInitUserDataServiceUpdateCloudInitUserDataRequest calls the generic CloudInitUserDataServiceUpdateCloudInitUserData builder with application/json body -func NewCloudInitUserDataServiceUpdateCloudInitUserDataRequest(server string, id string, body CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCloudInitUserDataServiceUpdateCloudInitUserDataRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewCloudInitUserDataServiceUpdateCloudInitUserDataRequestWithBody constructs an http.Request for the CloudInitUserDataServiceUpdateCloudInitUserData method, with any body, and a specified content type -func NewCloudInitUserDataServiceUpdateCloudInitUserDataRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/cloudinituserdata/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRegionServiceListCountriesCitiesRequest constructs an http.Request for the RegionServiceListCountriesCities method -func NewRegionServiceListCountriesCitiesRequest(server string, params *RegionServiceListCountriesCitiesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/countries-cities") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Query != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "query", *params.Query, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCreditServiceGetCreditBalanceRequest constructs an http.Request for the CreditServiceGetCreditBalance method -func NewCreditServiceGetCreditBalanceRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/credits/balance") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCreditServiceListCreditLedgerEntriesRequest constructs an http.Request for the CreditServiceListCreditLedgerEntries method -func NewCreditServiceListCreditLedgerEntriesRequest(server string, params *CreditServiceListCreditLedgerEntriesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/credits/ledger") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EntryType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "entryType", *params.EntryType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewCreditServicePurchaseCreditsRequest calls the generic CreditServicePurchaseCredits builder with application/json body -func NewCreditServicePurchaseCreditsRequest(server string, body CreditServicePurchaseCreditsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreditServicePurchaseCreditsRequestWithBody(server, "application/json", bodyReader) -} - -// NewCreditServicePurchaseCreditsRequestWithBody constructs an http.Request for the CreditServicePurchaseCredits method, with any body, and a specified content type -func NewCreditServicePurchaseCreditsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/credits:purchase") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRegionServiceListDatacentersRequest constructs an http.Request for the RegionServiceListDatacenters method -func NewRegionServiceListDatacentersRequest(server string, params *RegionServiceListDatacentersParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/datacenters") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Query != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "query", *params.Query, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDomainServiceGetDomainRequest constructs an http.Request for the DomainServiceGetDomain method -func NewDomainServiceGetDomainRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/domain") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDomainServiceCreateDomainRequest calls the generic DomainServiceCreateDomain builder with application/json body -func NewDomainServiceCreateDomainRequest(server string, body DomainServiceCreateDomainJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewDomainServiceCreateDomainRequestWithBody(server, "application/json", bodyReader) -} - -// NewDomainServiceCreateDomainRequestWithBody constructs an http.Request for the DomainServiceCreateDomain method, with any body, and a specified content type -func NewDomainServiceCreateDomainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/domain") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDomainServiceVerifyDomainRequest constructs an http.Request for the DomainServiceVerifyDomain method -func NewDomainServiceVerifyDomainRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/domain/verify/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDomainServiceDeleteDomainRequest constructs an http.Request for the DomainServiceDeleteDomain method -func NewDomainServiceDeleteDomainRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/domain/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewEnvironmentVariableServiceListEnvironmentVariablesRequest constructs an http.Request for the EnvironmentVariableServiceListEnvironmentVariables method -func NewEnvironmentVariableServiceListEnvironmentVariablesRequest(server string, params *EnvironmentVariableServiceListEnvironmentVariablesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/environment-variables") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterKey != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterKey", *params.FilterKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewEnvironmentVariableServiceCreateEnvironmentVariableRequest calls the generic EnvironmentVariableServiceCreateEnvironmentVariable builder with application/json body -func NewEnvironmentVariableServiceCreateEnvironmentVariableRequest(server string, body EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewEnvironmentVariableServiceCreateEnvironmentVariableRequestWithBody(server, "application/json", bodyReader) -} - -// NewEnvironmentVariableServiceCreateEnvironmentVariableRequestWithBody constructs an http.Request for the EnvironmentVariableServiceCreateEnvironmentVariable method, with any body, and a specified content type -func NewEnvironmentVariableServiceCreateEnvironmentVariableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/environment-variables") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewEnvironmentVariableServiceDeleteEnvironmentVariableRequest constructs an http.Request for the EnvironmentVariableServiceDeleteEnvironmentVariable method -func NewEnvironmentVariableServiceDeleteEnvironmentVariableRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/environment-variables/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewEnvironmentVariableServiceGetEnvironmentVariableRequest constructs an http.Request for the EnvironmentVariableServiceGetEnvironmentVariable method -func NewEnvironmentVariableServiceGetEnvironmentVariableRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/environment-variables/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewEnvironmentVariableServiceUpdateEnvironmentVariableRequest calls the generic EnvironmentVariableServiceUpdateEnvironmentVariable builder with application/json body -func NewEnvironmentVariableServiceUpdateEnvironmentVariableRequest(server string, id string, body EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewEnvironmentVariableServiceUpdateEnvironmentVariableRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewEnvironmentVariableServiceUpdateEnvironmentVariableRequestWithBody constructs an http.Request for the EnvironmentVariableServiceUpdateEnvironmentVariable method, with any body, and a specified content type -func NewEnvironmentVariableServiceUpdateEnvironmentVariableRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/environment-variables/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExchangeRateServiceConvertCurrencyRequest calls the generic ExchangeRateServiceConvertCurrency builder with application/json body -func NewExchangeRateServiceConvertCurrencyRequest(server string, body ExchangeRateServiceConvertCurrencyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewExchangeRateServiceConvertCurrencyRequestWithBody(server, "application/json", bodyReader) -} - -// NewExchangeRateServiceConvertCurrencyRequestWithBody constructs an http.Request for the ExchangeRateServiceConvertCurrency method, with any body, and a specified content type -func NewExchangeRateServiceConvertCurrencyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/exchange-rate/convert") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewExchangeRateServiceListSupportedCurrenciesRequest constructs an http.Request for the ExchangeRateServiceListSupportedCurrencies method -func NewExchangeRateServiceListSupportedCurrenciesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/exchange-rate/currencies") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExchangeRateServiceGetExchangeRateRequest constructs an http.Request for the ExchangeRateServiceGetExchangeRate method -func NewExchangeRateServiceGetExchangeRateRequest(server string, currencyCode string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "currencyCode", currencyCode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/exchange-rate/rate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewExchangeRateServiceGetAllExchangeRatesRequest constructs an http.Request for the ExchangeRateServiceGetAllExchangeRates method -func NewExchangeRateServiceGetAllExchangeRatesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/exchange-rate/rates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceListFirewallAddressGroupsRequest constructs an http.Request for the FirewallServiceListFirewallAddressGroups method -func NewFirewallServiceListFirewallAddressGroupsRequest(server string, params *FirewallServiceListFirewallAddressGroupsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/address-groups") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceCreateFirewallAddressGroupRequest calls the generic FirewallServiceCreateFirewallAddressGroup builder with application/json body -func NewFirewallServiceCreateFirewallAddressGroupRequest(server string, body FirewallServiceCreateFirewallAddressGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceCreateFirewallAddressGroupRequestWithBody(server, "application/json", bodyReader) -} - -// NewFirewallServiceCreateFirewallAddressGroupRequestWithBody constructs an http.Request for the FirewallServiceCreateFirewallAddressGroup method, with any body, and a specified content type -func NewFirewallServiceCreateFirewallAddressGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/address-groups") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceDeleteFirewallAddressGroupRequest constructs an http.Request for the FirewallServiceDeleteFirewallAddressGroup method -func NewFirewallServiceDeleteFirewallAddressGroupRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/address-groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceGetFirewallAddressGroupRequest constructs an http.Request for the FirewallServiceGetFirewallAddressGroup method -func NewFirewallServiceGetFirewallAddressGroupRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/address-groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceUpdateFirewallAddressGroupRequest calls the generic FirewallServiceUpdateFirewallAddressGroup builder with application/json body -func NewFirewallServiceUpdateFirewallAddressGroupRequest(server string, id string, body FirewallServiceUpdateFirewallAddressGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceUpdateFirewallAddressGroupRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewFirewallServiceUpdateFirewallAddressGroupRequestWithBody constructs an http.Request for the FirewallServiceUpdateFirewallAddressGroup method, with any body, and a specified content type -func NewFirewallServiceUpdateFirewallAddressGroupRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/address-groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceDeleteFirewallRuleRequest constructs an http.Request for the FirewallServiceDeleteFirewallRule method -func NewFirewallServiceDeleteFirewallRuleRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rules/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceGetFirewallRuleRequest constructs an http.Request for the FirewallServiceGetFirewallRule method -func NewFirewallServiceGetFirewallRuleRequest(server string, id string, params *FirewallServiceGetFirewallRuleParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rules/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Direction != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "direction", *params.Direction, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceUpdateFirewallRuleRequest calls the generic FirewallServiceUpdateFirewallRule builder with application/json body -func NewFirewallServiceUpdateFirewallRuleRequest(server string, id string, body FirewallServiceUpdateFirewallRuleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceUpdateFirewallRuleRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewFirewallServiceUpdateFirewallRuleRequestWithBody constructs an http.Request for the FirewallServiceUpdateFirewallRule method, with any body, and a specified content type -func NewFirewallServiceUpdateFirewallRuleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rules/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceMoveFirewallRuleRequest calls the generic FirewallServiceMoveFirewallRule builder with application/json body -func NewFirewallServiceMoveFirewallRuleRequest(server string, id string, body FirewallServiceMoveFirewallRuleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceMoveFirewallRuleRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewFirewallServiceMoveFirewallRuleRequestWithBody constructs an http.Request for the FirewallServiceMoveFirewallRule method, with any body, and a specified content type -func NewFirewallServiceMoveFirewallRuleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rules/%s/move", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceListFirewallRuleSetsRequest constructs an http.Request for the FirewallServiceListFirewallRuleSets method -func NewFirewallServiceListFirewallRuleSetsRequest(server string, params *FirewallServiceListFirewallRuleSetsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterAttachment != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterAttachment", *params.FilterAttachment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceCreateFirewallRuleSetRequest calls the generic FirewallServiceCreateFirewallRuleSet builder with application/json body -func NewFirewallServiceCreateFirewallRuleSetRequest(server string, body FirewallServiceCreateFirewallRuleSetJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceCreateFirewallRuleSetRequestWithBody(server, "application/json", bodyReader) -} - -// NewFirewallServiceCreateFirewallRuleSetRequestWithBody constructs an http.Request for the FirewallServiceCreateFirewallRuleSet method, with any body, and a specified content type -func NewFirewallServiceCreateFirewallRuleSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceDeleteFirewallRuleSetRequest constructs an http.Request for the FirewallServiceDeleteFirewallRuleSet method -func NewFirewallServiceDeleteFirewallRuleSetRequest(server string, id string, params *FirewallServiceDeleteFirewallRuleSetParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "force", *params.Force, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceGetFirewallRuleSetRequest constructs an http.Request for the FirewallServiceGetFirewallRuleSet method -func NewFirewallServiceGetFirewallRuleSetRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceUpdateFirewallRuleSetRequest calls the generic FirewallServiceUpdateFirewallRuleSet builder with application/json body -func NewFirewallServiceUpdateFirewallRuleSetRequest(server string, id string, body FirewallServiceUpdateFirewallRuleSetJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceUpdateFirewallRuleSetRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewFirewallServiceUpdateFirewallRuleSetRequestWithBody constructs an http.Request for the FirewallServiceUpdateFirewallRuleSet method, with any body, and a specified content type -func NewFirewallServiceUpdateFirewallRuleSetRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewFirewallServiceListFirewallRulesRequest constructs an http.Request for the FirewallServiceListFirewallRules method -func NewFirewallServiceListFirewallRulesRequest(server string, rulesetId string, params *FirewallServiceListFirewallRulesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "rulesetId", rulesetId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets/%s/rules", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Direction != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "direction", *params.Direction, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewFirewallServiceCreateFirewallRuleRequest calls the generic FirewallServiceCreateFirewallRule builder with application/json body -func NewFirewallServiceCreateFirewallRuleRequest(server string, rulesetId string, body FirewallServiceCreateFirewallRuleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewFirewallServiceCreateFirewallRuleRequestWithBody(server, rulesetId, "application/json", bodyReader) -} - -// NewFirewallServiceCreateFirewallRuleRequestWithBody constructs an http.Request for the FirewallServiceCreateFirewallRule method, with any body, and a specified content type -func NewFirewallServiceCreateFirewallRuleRequestWithBody(server string, rulesetId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "rulesetId", rulesetId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/firewall/rulesets/%s/rules", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGroupServiceListGroupsRequest constructs an http.Request for the GroupServiceListGroups method -func NewGroupServiceListGroupsRequest(server string, params *GroupServiceListGroupsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterName != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterName", *params.FilterName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterStatus", *params.FilterStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGroupServiceCreateGroupRequest calls the generic GroupServiceCreateGroup builder with application/json body -func NewGroupServiceCreateGroupRequest(server string, body GroupServiceCreateGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGroupServiceCreateGroupRequestWithBody(server, "application/json", bodyReader) -} - -// NewGroupServiceCreateGroupRequestWithBody constructs an http.Request for the GroupServiceCreateGroup method, with any body, and a specified content type -func NewGroupServiceCreateGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGroupServiceAddServiceAccountToGroupRequest calls the generic GroupServiceAddServiceAccountToGroup builder with application/json body -func NewGroupServiceAddServiceAccountToGroupRequest(server string, body GroupServiceAddServiceAccountToGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGroupServiceAddServiceAccountToGroupRequestWithBody(server, "application/json", bodyReader) -} - -// NewGroupServiceAddServiceAccountToGroupRequestWithBody constructs an http.Request for the GroupServiceAddServiceAccountToGroup method, with any body, and a specified content type -func NewGroupServiceAddServiceAccountToGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/add-service-account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGroupServiceAddUserToGroupRequest calls the generic GroupServiceAddUserToGroup builder with application/json body -func NewGroupServiceAddUserToGroupRequest(server string, body GroupServiceAddUserToGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGroupServiceAddUserToGroupRequestWithBody(server, "application/json", bodyReader) -} - -// NewGroupServiceAddUserToGroupRequestWithBody constructs an http.Request for the GroupServiceAddUserToGroup method, with any body, and a specified content type -func NewGroupServiceAddUserToGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/add-user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGroupServiceRemoveServiceAccountFromGroupRequest constructs an http.Request for the GroupServiceRemoveServiceAccountFromGroup method -func NewGroupServiceRemoveServiceAccountFromGroupRequest(server string, params *GroupServiceRemoveServiceAccountFromGroupParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/remove-service-account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "groupId", *params.GroupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ServiceAccountIds != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "serviceAccountIds", *params.ServiceAccountIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGroupServiceRemoveUserFromGroupRequest constructs an http.Request for the GroupServiceRemoveUserFromGroup method -func NewGroupServiceRemoveUserFromGroupRequest(server string, params *GroupServiceRemoveUserFromGroupParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/remove-user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.GroupId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "groupId", *params.GroupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.UserIds != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "userIds", *params.UserIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGroupServiceDeleteGroupRequest constructs an http.Request for the GroupServiceDeleteGroup method -func NewGroupServiceDeleteGroupRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGroupServiceGetGroupRequest constructs an http.Request for the GroupServiceGetGroup method -func NewGroupServiceGetGroupRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGroupServiceUpdateGroupRequest calls the generic GroupServiceUpdateGroup builder with application/json body -func NewGroupServiceUpdateGroupRequest(server string, id string, body GroupServiceUpdateGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewGroupServiceUpdateGroupRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewGroupServiceUpdateGroupRequestWithBody constructs an http.Request for the GroupServiceUpdateGroup method, with any body, and a specified content type -func NewGroupServiceUpdateGroupRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/groups/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetadataServiceHealthCheckRequest constructs an http.Request for the MetadataServiceHealthCheck method -func NewMetadataServiceHealthCheckRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/healthz") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInstantAppServiceListInstantAppsRequest constructs an http.Request for the InstantAppServiceListInstantApps method -func NewInstantAppServiceListInstantAppsRequest(server string, params *InstantAppServiceListInstantAppsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/instantapps") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Query != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "query", *params.Query, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Categories != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "categories", *params.Categories, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Distro != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "distro", *params.Distro, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInstantAppServiceGetInstantApp2Request constructs an http.Request for the InstantAppServiceGetInstantApp2 method -func NewInstantAppServiceGetInstantApp2Request(server string, slug string, params *InstantAppServiceGetInstantApp2Params) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/instantapps/slug/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "id", *params.Id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInstantAppServiceGetInstantAppRequest constructs an http.Request for the InstantAppServiceGetInstantApp method -func NewInstantAppServiceGetInstantAppRequest(server string, id string, params *InstantAppServiceGetInstantAppParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/instantapps/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Slug != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slug", *params.Slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceListInvitesRequest constructs an http.Request for the InviteServiceListInvites method -func NewInviteServiceListInvitesRequest(server string, params *InviteServiceListInvitesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterEmail != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterEmail", *params.FilterEmail, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceUpdateInviteRequest calls the generic InviteServiceUpdateInvite builder with application/json body -func NewInviteServiceUpdateInviteRequest(server string, body InviteServiceUpdateInviteJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewInviteServiceUpdateInviteRequestWithBody(server, "application/json", bodyReader) -} - -// NewInviteServiceUpdateInviteRequestWithBody constructs an http.Request for the InviteServiceUpdateInvite method, with any body, and a specified content type -func NewInviteServiceUpdateInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewInviteServiceCreateInviteRequest calls the generic InviteServiceCreateInvite builder with application/json body -func NewInviteServiceCreateInviteRequest(server string, body InviteServiceCreateInviteJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewInviteServiceCreateInviteRequestWithBody(server, "application/json", bodyReader) -} - -// NewInviteServiceCreateInviteRequestWithBody constructs an http.Request for the InviteServiceCreateInvite method, with any body, and a specified content type -func NewInviteServiceCreateInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewInviteServiceAcceptInviteRequest constructs an http.Request for the InviteServiceAcceptInvite method -func NewInviteServiceAcceptInviteRequest(server string, params *InviteServiceAcceptInviteParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites/accept") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.InviteId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "inviteId", *params.InviteId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceDeclineInviteRequest constructs an http.Request for the InviteServiceDeclineInvite method -func NewInviteServiceDeclineInviteRequest(server string, params *InviteServiceDeclineInviteParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites/decline") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.InviteId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "inviteId", *params.InviteId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceListMyInvitesRequest constructs an http.Request for the InviteServiceListMyInvites method -func NewInviteServiceListMyInvitesRequest(server string, params *InviteServiceListMyInvitesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites/me") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceResendInviteRequest constructs an http.Request for the InviteServiceResendInvite method -func NewInviteServiceResendInviteRequest(server string, inviteId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "inviteId", inviteId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites/resend/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInviteServiceDeleteInviteRequest constructs an http.Request for the InviteServiceDeleteInvite method -func NewInviteServiceDeleteInviteRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invites/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInvoiceServiceListInvoicesRequest constructs an http.Request for the InvoiceServiceListInvoices method -func NewInvoiceServiceListInvoicesRequest(server string, params *InvoiceServiceListInvoicesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invoices") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.SubscriptionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subscriptionId", *params.SubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.OrderBy != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderBy", *params.OrderBy, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewInvoiceServiceGetInvoiceRequest constructs an http.Request for the InvoiceServiceGetInvoice method -func NewInvoiceServiceGetInvoiceRequest(server string, invoiceId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoiceId", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/invoices/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceListAllocationsRequest constructs an http.Request for the IPAMServiceListAllocations method -func NewIPAMServiceListAllocationsRequest(server string, params *IPAMServiceListAllocationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/allocations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PrefixId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "prefixId", *params.PrefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceListNetworksRequest constructs an http.Request for the IPAMServiceListNetworks method -func NewIPAMServiceListNetworksRequest(server string, params *IPAMServiceListNetworksParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceCreateNetworkRequest calls the generic IPAMServiceCreateNetwork builder with application/json body -func NewIPAMServiceCreateNetworkRequest(server string, body IPAMServiceCreateNetworkJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceCreateNetworkRequestWithBody(server, "application/json", bodyReader) -} - -// NewIPAMServiceCreateNetworkRequestWithBody constructs an http.Request for the IPAMServiceCreateNetwork method, with any body, and a specified content type -func NewIPAMServiceCreateNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceDeleteNetworkRequest constructs an http.Request for the IPAMServiceDeleteNetwork method -func NewIPAMServiceDeleteNetworkRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceGetNetworkRequest constructs an http.Request for the IPAMServiceGetNetwork method -func NewIPAMServiceGetNetworkRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceUpdateNetworkRequest calls the generic IPAMServiceUpdateNetwork builder with application/json body -func NewIPAMServiceUpdateNetworkRequest(server string, id string, body IPAMServiceUpdateNetworkJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceUpdateNetworkRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIPAMServiceUpdateNetworkRequestWithBody constructs an http.Request for the IPAMServiceUpdateNetwork method, with any body, and a specified content type -func NewIPAMServiceUpdateNetworkRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceAssignNetworkToNodeRequest calls the generic IPAMServiceAssignNetworkToNode builder with application/json body -func NewIPAMServiceAssignNetworkToNodeRequest(server string, networkId string, body IPAMServiceAssignNetworkToNodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceAssignNetworkToNodeRequestWithBody(server, networkId, "application/json", bodyReader) -} - -// NewIPAMServiceAssignNetworkToNodeRequestWithBody constructs an http.Request for the IPAMServiceAssignNetworkToNode method, with any body, and a specified content type -func NewIPAMServiceAssignNetworkToNodeRequestWithBody(server string, networkId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "networkId", networkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks/%s/assign-node", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceListNetworkNodesRequest constructs an http.Request for the IPAMServiceListNetworkNodes method -func NewIPAMServiceListNetworkNodesRequest(server string, networkId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "networkId", networkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/networks/%s/nodes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceGetNodeNetworkRequest constructs an http.Request for the IPAMServiceGetNodeNetwork method -func NewIPAMServiceGetNodeNetworkRequest(server string, nodeId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodeId", nodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/nodes/%s/network", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceUnassignNetworkFromNodeRequest constructs an http.Request for the IPAMServiceUnassignNetworkFromNode method -func NewIPAMServiceUnassignNetworkFromNodeRequest(server string, nodeId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "nodeId", nodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/nodes/%s/unassign-network", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceListPrefixesRequest constructs an http.Request for the IPAMServiceListPrefixes method -func NewIPAMServiceListPrefixesRequest(server string, params *IPAMServiceListPrefixesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterNetworkId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterNetworkId", *params.FilterNetworkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceCreatePrefixRequest calls the generic IPAMServiceCreatePrefix builder with application/json body -func NewIPAMServiceCreatePrefixRequest(server string, body IPAMServiceCreatePrefixJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceCreatePrefixRequestWithBody(server, "application/json", bodyReader) -} - -// NewIPAMServiceCreatePrefixRequestWithBody constructs an http.Request for the IPAMServiceCreatePrefix method, with any body, and a specified content type -func NewIPAMServiceCreatePrefixRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceDeletePrefixRequest constructs an http.Request for the IPAMServiceDeletePrefix method -func NewIPAMServiceDeletePrefixRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceGetPrefixRequest constructs an http.Request for the IPAMServiceGetPrefix method -func NewIPAMServiceGetPrefixRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceUpdatePrefixRequest calls the generic IPAMServiceUpdatePrefix builder with application/json body -func NewIPAMServiceUpdatePrefixRequest(server string, id string, body IPAMServiceUpdatePrefixJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceUpdatePrefixRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewIPAMServiceUpdatePrefixRequestWithBody constructs an http.Request for the IPAMServiceUpdatePrefix method, with any body, and a specified content type -func NewIPAMServiceUpdatePrefixRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceListAvailableIPsRequest constructs an http.Request for the IPAMServiceListAvailableIPs method -func NewIPAMServiceListAvailableIPsRequest(server string, prefixId string, params *IPAMServiceListAvailableIPsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/available-ips", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceAddReservedIPRequest calls the generic IPAMServiceAddReservedIP builder with application/json body -func NewIPAMServiceAddReservedIPRequest(server string, prefixId string, body IPAMServiceAddReservedIPJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceAddReservedIPRequestWithBody(server, prefixId, "application/json", bodyReader) -} - -// NewIPAMServiceAddReservedIPRequestWithBody constructs an http.Request for the IPAMServiceAddReservedIP method, with any body, and a specified content type -func NewIPAMServiceAddReservedIPRequestWithBody(server string, prefixId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-ips", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceClearAllPrefixReservedIPsRequest calls the generic IPAMServiceClearAllPrefixReservedIPs builder with application/json body -func NewIPAMServiceClearAllPrefixReservedIPsRequest(server string, prefixId string, body IPAMServiceClearAllPrefixReservedIPsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceClearAllPrefixReservedIPsRequestWithBody(server, prefixId, "application/json", bodyReader) -} - -// NewIPAMServiceClearAllPrefixReservedIPsRequestWithBody constructs an http.Request for the IPAMServiceClearAllPrefixReservedIPs method, with any body, and a specified content type -func NewIPAMServiceClearAllPrefixReservedIPsRequestWithBody(server string, prefixId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-ips/clear-all", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceReserveAllPrefixIPsRequest calls the generic IPAMServiceReserveAllPrefixIPs builder with application/json body -func NewIPAMServiceReserveAllPrefixIPsRequest(server string, prefixId string, body IPAMServiceReserveAllPrefixIPsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceReserveAllPrefixIPsRequestWithBody(server, prefixId, "application/json", bodyReader) -} - -// NewIPAMServiceReserveAllPrefixIPsRequestWithBody constructs an http.Request for the IPAMServiceReserveAllPrefixIPs method, with any body, and a specified content type -func NewIPAMServiceReserveAllPrefixIPsRequestWithBody(server string, prefixId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-ips/reserve-all", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceRemoveReservedIPRequest constructs an http.Request for the IPAMServiceRemoveReservedIP method -func NewIPAMServiceRemoveReservedIPRequest(server string, prefixId string, ipAddress string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "ipAddress", ipAddress, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-ips/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceRemoveReservedPrefixRequest constructs an http.Request for the IPAMServiceRemoveReservedPrefix method -func NewIPAMServiceRemoveReservedPrefixRequest(server string, prefixId string, params *IPAMServiceRemoveReservedPrefixParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-prefixes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Cidr != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cidr", *params.Cidr, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewIPAMServiceAddReservedPrefixRequest calls the generic IPAMServiceAddReservedPrefix builder with application/json body -func NewIPAMServiceAddReservedPrefixRequest(server string, prefixId string, body IPAMServiceAddReservedPrefixJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewIPAMServiceAddReservedPrefixRequestWithBody(server, prefixId, "application/json", bodyReader) -} - -// NewIPAMServiceAddReservedPrefixRequestWithBody constructs an http.Request for the IPAMServiceAddReservedPrefix method, with any body, and a specified content type -func NewIPAMServiceAddReservedPrefixRequestWithBody(server string, prefixId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/reserved-prefixes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewIPAMServiceGetPrefixUtilizationRequest constructs an http.Request for the IPAMServiceGetPrefixUtilization method -func NewIPAMServiceGetPrefixUtilizationRequest(server string, prefixId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "prefixId", prefixId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ipam/prefixes/%s/utilization", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceListAvailableAddonsRequest constructs an http.Request for the MarketplaceServiceListAvailableAddons method -func NewMarketplaceServiceListAvailableAddonsRequest(server string, params *MarketplaceServiceListAvailableAddonsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/addons") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.FilterProviderId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterProviderId", *params.FilterProviderId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.VmId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "vmId", *params.VmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterAddonType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterAddonType", *params.FilterAddonType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterBillingType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterBillingType", *params.FilterBillingType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceListAvailablePlansRequest constructs an http.Request for the MarketplaceServiceListAvailablePlans method -func NewMarketplaceServiceListAvailablePlansRequest(server string, params *MarketplaceServiceListAvailablePlansParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/plans") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.FilterCountry != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCountry", *params.FilterCountry, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterCity != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCity", *params.FilterCity, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterBillingType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterBillingType", *params.FilterBillingType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterComputeType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterComputeType", *params.FilterComputeType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterComputeCategory != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterComputeCategory", *params.FilterComputeCategory, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceGetMarketplacePlanRequest constructs an http.Request for the MarketplaceServiceGetMarketplacePlan method -func NewMarketplaceServiceGetMarketplacePlanRequest(server string, planId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/plans/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceListMarketplaceProviderDirectoryRequest constructs an http.Request for the MarketplaceServiceListMarketplaceProviderDirectory method -func NewMarketplaceServiceListMarketplaceProviderDirectoryRequest(server string, params *MarketplaceServiceListMarketplaceProviderDirectoryParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/provider-directory") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceListProvidersRequest constructs an http.Request for the MarketplaceServiceListProviders method -func NewMarketplaceServiceListProvidersRequest(server string, params *MarketplaceServiceListProvidersParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/providers") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterPlanCode != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterPlanCode", *params.FilterPlanCode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterCountry != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCountry", *params.FilterCountry, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterCity != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCity", *params.FilterCity, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterBillingType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterBillingType", *params.FilterBillingType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterIpv6AvailableOnly != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterIpv6AvailableOnly", *params.FilterIpv6AvailableOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanPriceSort != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planPriceSort", *params.PlanPriceSort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterUnlimitedBandwidthOnly != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterUnlimitedBandwidthOnly", *params.FilterUnlimitedBandwidthOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterDdosProviders != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterDdosProviders", *params.FilterDdosProviders, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceGetProviderRequest constructs an http.Request for the MarketplaceServiceGetProvider method -func NewMarketplaceServiceGetProviderRequest(server string, providerId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "providerId", providerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/providers/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceListAvailableRegionsRequest constructs an http.Request for the MarketplaceServiceListAvailableRegions method -func NewMarketplaceServiceListAvailableRegionsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/regions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMarketplaceServiceSearchMarketplaceRequest calls the generic MarketplaceServiceSearchMarketplace builder with application/json body -func NewMarketplaceServiceSearchMarketplaceRequest(server string, body MarketplaceServiceSearchMarketplaceJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewMarketplaceServiceSearchMarketplaceRequestWithBody(server, "application/json", bodyReader) -} - -// NewMarketplaceServiceSearchMarketplaceRequestWithBody constructs an http.Request for the MarketplaceServiceSearchMarketplace method, with any body, and a specified content type -func NewMarketplaceServiceSearchMarketplaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/marketplace/search") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetricServiceListMetricsRequest constructs an http.Request for the MetricServiceListMetrics method -func NewMetricServiceListMetricsRequest(server string, params *MetricServiceListMetricsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.BillableOnly != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billableOnly", *params.BillableOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMetricsCredentialServiceListMetricsWriteCredentialsRequest constructs an http.Request for the MetricsCredentialServiceListMetricsWriteCredentials method -func NewMetricsCredentialServiceListMetricsWriteCredentialsRequest(server string, params *MetricsCredentialServiceListMetricsWriteCredentialsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics-write-credentials") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.AgentId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "agentId", *params.AgentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IncludeRevoked != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeRevoked", *params.IncludeRevoked, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest calls the generic MetricsCredentialServiceCreateMetricsWriteCredential builder with application/json body -func NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest(server string, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(server, "application/json", bodyReader) -} - -// NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody constructs an http.Request for the MetricsCredentialServiceCreateMetricsWriteCredential method, with any body, and a specified content type -func NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics-write-credentials") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequest calls the generic MetricsCredentialServiceRevokeMetricsWriteCredential builder with application/json body -func NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequest(server string, id string, body MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequestWithBody constructs an http.Request for the MetricsCredentialServiceRevokeMetricsWriteCredential method, with any body, and a specified content type -func NewMetricsCredentialServiceRevokeMetricsWriteCredentialRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics-write-credentials/%s:revoke", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest calls the generic MetricsCredentialServiceRotateMetricsWriteCredential builder with application/json body -func NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest(server string, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody constructs an http.Request for the MetricsCredentialServiceRotateMetricsWriteCredential method, with any body, and a specified content type -func NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics-write-credentials/%s:rotate", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetricServiceGetMetricRequest constructs an http.Request for the MetricServiceGetMetric method -func NewMetricServiceGetMetricRequest(server string, id string, params *MetricServiceGetMetricParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/metrics/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Code != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "code", *params.Code, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewNodeServiceCreateNodeRequest calls the generic NodeServiceCreateNode builder with application/json body -func NewNodeServiceCreateNodeRequest(server string, body NodeServiceCreateNodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewNodeServiceCreateNodeRequestWithBody(server, "application/json", bodyReader) -} - -// NewNodeServiceCreateNodeRequestWithBody constructs an http.Request for the NodeServiceCreateNode method, with any body, and a specified content type -func NewNodeServiceCreateNodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewNodePlacementServiceGetNodePlacementPolicyRequest constructs an http.Request for the NodePlacementServiceGetNodePlacementPolicy method -func NewNodePlacementServiceGetNodePlacementPolicyRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node-placement-policy") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewNodePlacementServiceUpdateNodePlacementPolicyRequest calls the generic NodePlacementServiceUpdateNodePlacementPolicy builder with application/json body -func NewNodePlacementServiceUpdateNodePlacementPolicyRequest(server string, body NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewNodePlacementServiceUpdateNodePlacementPolicyRequestWithBody(server, "application/json", bodyReader) -} - -// NewNodePlacementServiceUpdateNodePlacementPolicyRequestWithBody constructs an http.Request for the NodePlacementServiceUpdateNodePlacementPolicy method, with any body, and a specified content type -func NewNodePlacementServiceUpdateNodePlacementPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node-placement-policy") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewNodeServiceValidateNodeTopologyRequest calls the generic NodeServiceValidateNodeTopology builder with application/json body -func NewNodeServiceValidateNodeTopologyRequest(server string, body NodeServiceValidateNodeTopologyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewNodeServiceValidateNodeTopologyRequestWithBody(server, "application/json", bodyReader) -} - -// NewNodeServiceValidateNodeTopologyRequestWithBody constructs an http.Request for the NodeServiceValidateNodeTopology method, with any body, and a specified content type -func NewNodeServiceValidateNodeTopologyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node/topology/validate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewNodeServiceDeleteNodeRequest constructs an http.Request for the NodeServiceDeleteNode method -func NewNodeServiceDeleteNodeRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewNodeServiceGetNodeRequest constructs an http.Request for the NodeServiceGetNode method -func NewNodeServiceGetNodeRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewNodeServiceUpdateNodeRequest calls the generic NodeServiceUpdateNode builder with application/json body -func NewNodeServiceUpdateNodeRequest(server string, id string, body NodeServiceUpdateNodeJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewNodeServiceUpdateNodeRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewNodeServiceUpdateNodeRequestWithBody constructs an http.Request for the NodeServiceUpdateNode method, with any body, and a specified content type -func NewNodeServiceUpdateNodeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewNodeServiceGetNodeCPUMapRequest constructs an http.Request for the NodeServiceGetNodeCPUMap method -func NewNodeServiceGetNodeCPUMapRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/node/%s/cpu-map", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewNodeServiceListNodesRequest constructs an http.Request for the NodeServiceListNodes method -func NewNodeServiceListNodesRequest(server string, params *NodeServiceListNodesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/nodes") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ServiceStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "serviceStatus", *params.ServiceStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Expand != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expand", *params.Expand, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "regionId", *params.RegionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOAuth2ServiceAuthorizeRequest constructs an http.Request for the OAuth2ServiceAuthorize method -func NewOAuth2ServiceAuthorizeRequest(server string, params *OAuth2ServiceAuthorizeParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/authorize") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.ClientId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "clientId", *params.ClientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ResponseType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "responseType", *params.ResponseType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RedirectUri != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "redirectUri", *params.RedirectUri, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Scope != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.State != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.CodeChallenge != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "codeChallenge", *params.CodeChallenge, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.CodeChallengeMethod != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "codeChallengeMethod", *params.CodeChallengeMethod, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOAuth2ServiceListClientsRequest constructs an http.Request for the OAuth2ServiceListClients method -func NewOAuth2ServiceListClientsRequest(server string, params *OAuth2ServiceListClientsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/clients") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOAuth2ServiceCreateClientRequest calls the generic OAuth2ServiceCreateClient builder with application/json body -func NewOAuth2ServiceCreateClientRequest(server string, body OAuth2ServiceCreateClientJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOAuth2ServiceCreateClientRequestWithBody(server, "application/json", bodyReader) -} - -// NewOAuth2ServiceCreateClientRequestWithBody constructs an http.Request for the OAuth2ServiceCreateClient method, with any body, and a specified content type -func NewOAuth2ServiceCreateClientRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/clients") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewOAuth2ServiceDeleteClientRequest constructs an http.Request for the OAuth2ServiceDeleteClient method -func NewOAuth2ServiceDeleteClientRequest(server string, clientId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientId", clientId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/clients/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOAuth2ServiceRefreshTokenRequest calls the generic OAuth2ServiceRefreshToken builder with application/json body -func NewOAuth2ServiceRefreshTokenRequest(server string, body OAuth2ServiceRefreshTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOAuth2ServiceRefreshTokenRequestWithBody(server, "application/json", bodyReader) -} - -// NewOAuth2ServiceRefreshTokenRequestWithBody constructs an http.Request for the OAuth2ServiceRefreshToken method, with any body, and a specified content type -func NewOAuth2ServiceRefreshTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/refresh") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewOAuth2ServiceRevokeTokenRequest calls the generic OAuth2ServiceRevokeToken builder with application/json body -func NewOAuth2ServiceRevokeTokenRequest(server string, body OAuth2ServiceRevokeTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOAuth2ServiceRevokeTokenRequestWithBody(server, "application/json", bodyReader) -} - -// NewOAuth2ServiceRevokeTokenRequestWithBody constructs an http.Request for the OAuth2ServiceRevokeToken method, with any body, and a specified content type -func NewOAuth2ServiceRevokeTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/revoke") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewOAuth2ServiceTokenRequest calls the generic OAuth2ServiceToken builder with application/json body -func NewOAuth2ServiceTokenRequest(server string, body OAuth2ServiceTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOAuth2ServiceTokenRequestWithBody(server, "application/json", bodyReader) -} - -// NewOAuth2ServiceTokenRequestWithBody constructs an http.Request for the OAuth2ServiceToken method, with any body, and a specified content type -func NewOAuth2ServiceTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/oauth2/token") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewOrganizationServiceGetOrganizationRequest constructs an http.Request for the OrganizationServiceGetOrganization method -func NewOrganizationServiceGetOrganizationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/organization") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOrganizationServiceDeleteOrganizationRequest constructs an http.Request for the OrganizationServiceDeleteOrganization method -func NewOrganizationServiceDeleteOrganizationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOrganizationServiceListOrganizationsRequest constructs an http.Request for the OrganizationServiceListOrganizations method -func NewOrganizationServiceListOrganizationsRequest(server string, params *OrganizationServiceListOrganizationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewOrganizationServiceUpdateOrganizationRequest calls the generic OrganizationServiceUpdateOrganization builder with application/json body -func NewOrganizationServiceUpdateOrganizationRequest(server string, body OrganizationServiceUpdateOrganizationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOrganizationServiceUpdateOrganizationRequestWithBody(server, "application/json", bodyReader) -} - -// NewOrganizationServiceUpdateOrganizationRequestWithBody constructs an http.Request for the OrganizationServiceUpdateOrganization method, with any body, and a specified content type -func NewOrganizationServiceUpdateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewOrganizationServiceCreateOrganizationRequest calls the generic OrganizationServiceCreateOrganization builder with application/json body -func NewOrganizationServiceCreateOrganizationRequest(server string, body OrganizationServiceCreateOrganizationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewOrganizationServiceCreateOrganizationRequestWithBody(server, "application/json", bodyReader) -} - -// NewOrganizationServiceCreateOrganizationRequestWithBody constructs an http.Request for the OrganizationServiceCreateOrganization method, with any body, and a specified content type -func NewOrganizationServiceCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/organizations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPaymentMethodServiceListPaymentMethodsRequest constructs an http.Request for the PaymentMethodServiceListPaymentMethods method -func NewPaymentMethodServiceListPaymentMethodsRequest(server string, params *PaymentMethodServiceListPaymentMethodsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payment-methods") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.SubscriptionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subscriptionId", *params.SubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.OnlyDefault != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "onlyDefault", *params.OnlyDefault, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPaymentMethodServiceAttachPaymentMethodRequest calls the generic PaymentMethodServiceAttachPaymentMethod builder with application/json body -func NewPaymentMethodServiceAttachPaymentMethodRequest(server string, body PaymentMethodServiceAttachPaymentMethodJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPaymentMethodServiceAttachPaymentMethodRequestWithBody(server, "application/json", bodyReader) -} - -// NewPaymentMethodServiceAttachPaymentMethodRequestWithBody constructs an http.Request for the PaymentMethodServiceAttachPaymentMethod method, with any body, and a specified content type -func NewPaymentMethodServiceAttachPaymentMethodRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payment-methods") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPaymentMethodServiceRemovePaymentMethodRequest constructs an http.Request for the PaymentMethodServiceRemovePaymentMethod method -func NewPaymentMethodServiceRemovePaymentMethodRequest(server string, paymentMethodId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "paymentMethodId", paymentMethodId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payment-methods/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPaymentMethodServiceSetDefaultPaymentMethodRequest calls the generic PaymentMethodServiceSetDefaultPaymentMethod builder with application/json body -func NewPaymentMethodServiceSetDefaultPaymentMethodRequest(server string, paymentMethodId string, body PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPaymentMethodServiceSetDefaultPaymentMethodRequestWithBody(server, paymentMethodId, "application/json", bodyReader) -} - -// NewPaymentMethodServiceSetDefaultPaymentMethodRequestWithBody constructs an http.Request for the PaymentMethodServiceSetDefaultPaymentMethod method, with any body, and a specified content type -func NewPaymentMethodServiceSetDefaultPaymentMethodRequestWithBody(server string, paymentMethodId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "paymentMethodId", paymentMethodId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payment-methods/%s:set-default", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPaymentServiceListPaymentsRequest constructs an http.Request for the PaymentServiceListPayments method -func NewPaymentServiceListPaymentsRequest(server string, params *PaymentServiceListPaymentsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payments") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.InvoiceId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "invoiceId", *params.InvoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPaymentServiceGetPaymentRequest constructs an http.Request for the PaymentServiceGetPayment method -func NewPaymentServiceGetPaymentRequest(server string, paymentId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "paymentId", paymentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/payments/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPermissionServiceListPermissionsRequest constructs an http.Request for the PermissionServiceListPermissions method -func NewPermissionServiceListPermissionsRequest(server string, params *PermissionServiceListPermissionsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/permissions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterName != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterName", *params.FilterName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPermissionServiceAssignPermissionToRoleRequest calls the generic PermissionServiceAssignPermissionToRole builder with application/json body -func NewPermissionServiceAssignPermissionToRoleRequest(server string, body PermissionServiceAssignPermissionToRoleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPermissionServiceAssignPermissionToRoleRequestWithBody(server, "application/json", bodyReader) -} - -// NewPermissionServiceAssignPermissionToRoleRequestWithBody constructs an http.Request for the PermissionServiceAssignPermissionToRole method, with any body, and a specified content type -func NewPermissionServiceAssignPermissionToRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/permissions/assign-to-role") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPermissionServiceListEffectivePermissionsRequest constructs an http.Request for the PermissionServiceListEffectivePermissions method -func NewPermissionServiceListEffectivePermissionsRequest(server string, params *PermissionServiceListEffectivePermissionsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/permissions/effective") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.UserIds != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "userIds", *params.UserIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPermissionServiceRemovePermissionFromRoleRequest constructs an http.Request for the PermissionServiceRemovePermissionFromRole method -func NewPermissionServiceRemovePermissionFromRoleRequest(server string, params *PermissionServiceRemovePermissionFromRoleParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/permissions/remove-from-role") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PermissionIds != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "permissionIds", *params.PermissionIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RoleId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "roleId", *params.RoleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPlanServiceListPlansRequest constructs an http.Request for the PlanServiceListPlans method -func NewPlanServiceListPlansRequest(server string, params *PlanServiceListPlansParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IsTemplate != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "isTemplate", *params.IsTemplate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EndUser != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "endUser", *params.EndUser, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AssetType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "assetType", *params.AssetType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.BillingType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingType", *params.BillingType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterComputeType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterComputeType", *params.FilterComputeType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterCode != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCode", *params.FilterCode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderPlanServiceCreatePlanRequest calls the generic ProviderPlanServiceCreatePlan builder with application/json body -func NewProviderPlanServiceCreatePlanRequest(server string, body ProviderPlanServiceCreatePlanJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderPlanServiceCreatePlanRequestWithBody(server, "application/json", bodyReader) -} - -// NewProviderPlanServiceCreatePlanRequestWithBody constructs an http.Request for the ProviderPlanServiceCreatePlan method, with any body, and a specified content type -func NewProviderPlanServiceCreatePlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderPlanServiceDeletePlanRequest constructs an http.Request for the ProviderPlanServiceDeletePlan method -func NewProviderPlanServiceDeletePlanRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderPlanServiceUpdatePlanRequest calls the generic ProviderPlanServiceUpdatePlan builder with application/json body -func NewProviderPlanServiceUpdatePlanRequest(server string, id string, body ProviderPlanServiceUpdatePlanJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderPlanServiceUpdatePlanRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewProviderPlanServiceUpdatePlanRequestWithBody constructs an http.Request for the ProviderPlanServiceUpdatePlan method, with any body, and a specified content type -func NewProviderPlanServiceUpdatePlanRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPlanServiceSubscribeRequest constructs an http.Request for the PlanServiceSubscribe method -func NewPlanServiceSubscribeRequest(server string, planId string, params *PlanServiceSubscribeParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans/%s:subscribe", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.BillingPeriod != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingPeriod", *params.BillingPeriod, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderPlanServiceCalculatePlanPricingRequest calls the generic ProviderPlanServiceCalculatePlanPricing builder with application/json body -func NewProviderPlanServiceCalculatePlanPricingRequest(server string, body ProviderPlanServiceCalculatePlanPricingJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderPlanServiceCalculatePlanPricingRequestWithBody(server, "application/json", bodyReader) -} - -// NewProviderPlanServiceCalculatePlanPricingRequestWithBody constructs an http.Request for the ProviderPlanServiceCalculatePlanPricing method, with any body, and a specified content type -func NewProviderPlanServiceCalculatePlanPricingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/plans:calculate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPlatformServiceCreatePlatformRequest calls the generic PlatformServiceCreatePlatform builder with application/json body -func NewPlatformServiceCreatePlatformRequest(server string, body PlatformServiceCreatePlatformJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPlatformServiceCreatePlatformRequestWithBody(server, "application/json", bodyReader) -} - -// NewPlatformServiceCreatePlatformRequestWithBody constructs an http.Request for the PlatformServiceCreatePlatform method, with any body, and a specified content type -func NewPlatformServiceCreatePlatformRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platform") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetadataServiceGetPlatformVersionsRequest constructs an http.Request for the MetadataServiceGetPlatformVersions method -func NewMetadataServiceGetPlatformVersionsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platform-versions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPlatformServiceDeletePlatformRequest constructs an http.Request for the PlatformServiceDeletePlatform method -func NewPlatformServiceDeletePlatformRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platform/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPlatformServiceGetPlatformRequest constructs an http.Request for the PlatformServiceGetPlatform method -func NewPlatformServiceGetPlatformRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platform/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPlatformServiceUpdatePlatformRequest calls the generic PlatformServiceUpdatePlatform builder with application/json body -func NewPlatformServiceUpdatePlatformRequest(server string, id string, body PlatformServiceUpdatePlatformJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPlatformServiceUpdatePlatformRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewPlatformServiceUpdatePlatformRequestWithBody constructs an http.Request for the PlatformServiceUpdatePlatform method, with any body, and a specified content type -func NewPlatformServiceUpdatePlatformRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platform/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPlatformServiceListPlatformsRequest constructs an http.Request for the PlatformServiceListPlatforms method -func NewPlatformServiceListPlatformsRequest(server string, params *PlatformServiceListPlatformsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platforms") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ServiceStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "serviceStatus", *params.ServiceStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPlatformServiceAssignAgentRequest calls the generic PlatformServiceAssignAgent builder with application/json body -func NewPlatformServiceAssignAgentRequest(server string, platformId string, body PlatformServiceAssignAgentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPlatformServiceAssignAgentRequestWithBody(server, platformId, "application/json", bodyReader) -} - -// NewPlatformServiceAssignAgentRequestWithBody constructs an http.Request for the PlatformServiceAssignAgent method, with any body, and a specified content type -func NewPlatformServiceAssignAgentRequestWithBody(server string, platformId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "platformId", platformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platforms/%s:AssignAgent", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPlatformServiceUnassignAgentRequest calls the generic PlatformServiceUnassignAgent builder with application/json body -func NewPlatformServiceUnassignAgentRequest(server string, platformId string, body PlatformServiceUnassignAgentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPlatformServiceUnassignAgentRequestWithBody(server, platformId, "application/json", bodyReader) -} - -// NewPlatformServiceUnassignAgentRequestWithBody constructs an http.Request for the PlatformServiceUnassignAgent method, with any body, and a specified content type -func NewPlatformServiceUnassignAgentRequestWithBody(server string, platformId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "platformId", platformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/platforms/%s:UnassignAgent", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderReviewServiceListProviderReviewsRequest constructs an http.Request for the ProviderReviewServiceListProviderReviews method -func NewProviderReviewServiceListProviderReviewsRequest(server string, params *ProviderReviewServiceListProviderReviewsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.StarRatings != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "starRatings", *params.StarRatings, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ReplyFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "replyFilter", *params.ReplyFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientProviderReviewServiceCreateClientReviewRequest calls the generic ClientProviderReviewServiceCreateClientReview builder with application/json body -func NewClientProviderReviewServiceCreateClientReviewRequest(server string, body ClientProviderReviewServiceCreateClientReviewJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewClientProviderReviewServiceCreateClientReviewRequestWithBody(server, "application/json", bodyReader) -} - -// NewClientProviderReviewServiceCreateClientReviewRequestWithBody constructs an http.Request for the ClientProviderReviewServiceCreateClientReview method, with any body, and a specified content type -func NewClientProviderReviewServiceCreateClientReviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewClientProviderReviewServiceGetClientReviewForVirtualMachineRequest constructs an http.Request for the ClientProviderReviewServiceGetClientReviewForVirtualMachine method -func NewClientProviderReviewServiceGetClientReviewForVirtualMachineRequest(server string, virtualMachineId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "virtualMachineId", virtualMachineId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/virtual-machines/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientProviderReviewServiceDeleteClientReviewRequest constructs an http.Request for the ClientProviderReviewServiceDeleteClientReview method -func NewClientProviderReviewServiceDeleteClientReviewRequest(server string, reviewId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reviewId", reviewId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewClientProviderReviewServiceUpdateClientReviewRequest calls the generic ClientProviderReviewServiceUpdateClientReview builder with application/json body -func NewClientProviderReviewServiceUpdateClientReviewRequest(server string, reviewId string, body ClientProviderReviewServiceUpdateClientReviewJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewClientProviderReviewServiceUpdateClientReviewRequestWithBody(server, reviewId, "application/json", bodyReader) -} - -// NewClientProviderReviewServiceUpdateClientReviewRequestWithBody constructs an http.Request for the ClientProviderReviewServiceUpdateClientReview method, with any body, and a specified content type -func NewClientProviderReviewServiceUpdateClientReviewRequestWithBody(server string, reviewId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reviewId", reviewId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderReviewServiceDeleteProviderReviewReplyRequest constructs an http.Request for the ProviderReviewServiceDeleteProviderReviewReply method -func NewProviderReviewServiceDeleteProviderReviewReplyRequest(server string, reviewId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reviewId", reviewId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/%s/reply", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderReviewServiceUpdateProviderReviewReplyRequest calls the generic ProviderReviewServiceUpdateProviderReviewReply builder with application/json body -func NewProviderReviewServiceUpdateProviderReviewReplyRequest(server string, reviewId string, body ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderReviewServiceUpdateProviderReviewReplyRequestWithBody(server, reviewId, "application/json", bodyReader) -} - -// NewProviderReviewServiceUpdateProviderReviewReplyRequestWithBody constructs an http.Request for the ProviderReviewServiceUpdateProviderReviewReply method, with any body, and a specified content type -func NewProviderReviewServiceUpdateProviderReviewReplyRequestWithBody(server string, reviewId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reviewId", reviewId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/%s/reply", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderReviewServiceCreateProviderReviewReplyRequest calls the generic ProviderReviewServiceCreateProviderReviewReply builder with application/json body -func NewProviderReviewServiceCreateProviderReviewReplyRequest(server string, reviewId string, body ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderReviewServiceCreateProviderReviewReplyRequestWithBody(server, reviewId, "application/json", bodyReader) -} - -// NewProviderReviewServiceCreateProviderReviewReplyRequestWithBody constructs an http.Request for the ProviderReviewServiceCreateProviderReviewReply method, with any body, and a specified content type -func NewProviderReviewServiceCreateProviderReviewReplyRequestWithBody(server string, reviewId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reviewId", reviewId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider-reviews/%s/reply", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderConnectServiceDisconnectConnectAccountRequest constructs an http.Request for the ProviderConnectServiceDisconnectConnectAccount method -func NewProviderConnectServiceDisconnectConnectAccountRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/connect/account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderConnectServiceGetConnectAccountRequest constructs an http.Request for the ProviderConnectServiceGetConnectAccount method -func NewProviderConnectServiceGetConnectAccountRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/connect/account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderConnectServiceCreateConnectAccountRequest calls the generic ProviderConnectServiceCreateConnectAccount builder with application/json body -func NewProviderConnectServiceCreateConnectAccountRequest(server string, body ProviderConnectServiceCreateConnectAccountJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderConnectServiceCreateConnectAccountRequestWithBody(server, "application/json", bodyReader) -} - -// NewProviderConnectServiceCreateConnectAccountRequestWithBody constructs an http.Request for the ProviderConnectServiceCreateConnectAccount method, with any body, and a specified content type -func NewProviderConnectServiceCreateConnectAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/connect/account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderConnectServiceCreateConnectTaxSessionRequest calls the generic ProviderConnectServiceCreateConnectTaxSession builder with application/json body -func NewProviderConnectServiceCreateConnectTaxSessionRequest(server string, body ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderConnectServiceCreateConnectTaxSessionRequestWithBody(server, "application/json", bodyReader) -} - -// NewProviderConnectServiceCreateConnectTaxSessionRequestWithBody constructs an http.Request for the ProviderConnectServiceCreateConnectTaxSession method, with any body, and a specified content type -func NewProviderConnectServiceCreateConnectTaxSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/connect/tax-session") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderCustomerServiceGetProviderCustomerStatsRequest constructs an http.Request for the ProviderCustomerServiceGetProviderCustomerStats method -func NewProviderCustomerServiceGetProviderCustomerStatsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customer-stats") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderCustomerServiceListProviderCustomersRequest constructs an http.Request for the ProviderCustomerServiceListProviderCustomers method -func NewProviderCustomerServiceListProviderCustomersRequest(server string, params *ProviderCustomerServiceListProviderCustomersParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ActivityFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "activityFilter", *params.ActivityFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderCustomerServiceGetProviderCustomerRequest constructs an http.Request for the ProviderCustomerServiceGetProviderCustomer method -func NewProviderCustomerServiceGetProviderCustomerRequest(server string, clientOrganizationId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientOrganizationId", clientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderCustomerServiceListProviderCustomerAssetsRequest constructs an http.Request for the ProviderCustomerServiceListProviderCustomerAssets method -func NewProviderCustomerServiceListProviderCustomerAssetsRequest(server string, clientOrganizationId string, params *ProviderCustomerServiceListProviderCustomerAssetsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientOrganizationId", clientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers/%s/assets", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AssetType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "assetType", *params.AssetType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ActivityStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "activityStatus", *params.ActivityStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "regionId", *params.RegionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequest calls the generic ProviderCustomerServiceRestartProviderCustomerVirtualMachine builder with application/json body -func NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequest(server string, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequestWithBody(server, clientOrganizationId, virtualMachineId, "application/json", bodyReader) -} - -// NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequestWithBody constructs an http.Request for the ProviderCustomerServiceRestartProviderCustomerVirtualMachine method, with any body, and a specified content type -func NewProviderCustomerServiceRestartProviderCustomerVirtualMachineRequestWithBody(server string, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientOrganizationId", clientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "virtualMachineId", virtualMachineId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers/%s/virtual-machines/%s:restart", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequest calls the generic ProviderCustomerServiceStartProviderCustomerVirtualMachine builder with application/json body -func NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequest(server string, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequestWithBody(server, clientOrganizationId, virtualMachineId, "application/json", bodyReader) -} - -// NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequestWithBody constructs an http.Request for the ProviderCustomerServiceStartProviderCustomerVirtualMachine method, with any body, and a specified content type -func NewProviderCustomerServiceStartProviderCustomerVirtualMachineRequestWithBody(server string, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientOrganizationId", clientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "virtualMachineId", virtualMachineId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers/%s/virtual-machines/%s:start", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequest calls the generic ProviderCustomerServiceStopProviderCustomerVirtualMachine builder with application/json body -func NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequest(server string, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequestWithBody(server, clientOrganizationId, virtualMachineId, "application/json", bodyReader) -} - -// NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequestWithBody constructs an http.Request for the ProviderCustomerServiceStopProviderCustomerVirtualMachine method, with any body, and a specified content type -func NewProviderCustomerServiceStopProviderCustomerVirtualMachineRequestWithBody(server string, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "clientOrganizationId", clientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "virtualMachineId", virtualMachineId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/customers/%s/virtual-machines/%s:stop", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderDashboardServiceListDashboardAddonCatalogStatsRequest constructs an http.Request for the ProviderDashboardServiceListDashboardAddonCatalogStats method -func NewProviderDashboardServiceListDashboardAddonCatalogStatsRequest(server string, params *ProviderDashboardServiceListDashboardAddonCatalogStatsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/addon-catalog-stats") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.AddonSearch != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "addonSearch", *params.AddonSearch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AddonTypeFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "addonTypeFilter", *params.AddonTypeFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AddonBillingTypeFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "addonBillingTypeFilter", *params.AddonBillingTypeFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceGetDashboardAssetSalesTimeseriesRequest constructs an http.Request for the ProviderDashboardServiceGetDashboardAssetSalesTimeseries method -func NewProviderDashboardServiceGetDashboardAssetSalesTimeseriesRequest(server string, params *ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/asset-sales-timeseries") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.RangeDays != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rangeDays", *params.RangeDays, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceGetDashboardBillingSalesRequest constructs an http.Request for the ProviderDashboardServiceGetDashboardBillingSales method -func NewProviderDashboardServiceGetDashboardBillingSalesRequest(server string, params *ProviderDashboardServiceGetDashboardBillingSalesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/billing-sales") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.RangeDays != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rangeDays", *params.RangeDays, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IncludePriorPeriod != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includePriorPeriod", *params.IncludePriorPeriod, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RevenueByCustomerPage != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "revenueByCustomerPage", *params.RevenueByCustomerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RevenueByCustomerPageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "revenueByCustomerPageSize", *params.RevenueByCustomerPageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RevenueByCustomerEmailFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "revenueByCustomerEmailFilter", *params.RevenueByCustomerEmailFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesRequest constructs an http.Request for the ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries method -func NewProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesRequest(server string, params *ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/customer-acquisition-timeseries") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.RangeDays != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rangeDays", *params.RangeDays, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardInfrastructureRequest constructs an http.Request for the ProviderDashboardServiceListDashboardInfrastructure method -func NewProviderDashboardServiceListDashboardInfrastructureRequest(server string, params *ProviderDashboardServiceListDashboardInfrastructureParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/infrastructure") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "regionId", *params.RegionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardIpamRequest constructs an http.Request for the ProviderDashboardServiceListDashboardIpam method -func NewProviderDashboardServiceListDashboardIpamRequest(server string, params *ProviderDashboardServiceListDashboardIpamParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/ipam") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.NetworkId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "networkId", *params.NetworkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AllocatedSampleIpsPage != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "allocatedSampleIpsPage", *params.AllocatedSampleIpsPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.AllocatedSampleIpsPageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "allocatedSampleIpsPageSize", *params.AllocatedSampleIpsPageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardIpamAssignmentsRequest constructs an http.Request for the ProviderDashboardServiceListDashboardIpamAssignments method -func NewProviderDashboardServiceListDashboardIpamAssignmentsRequest(server string, params *ProviderDashboardServiceListDashboardIpamAssignmentsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/ipam/assignments") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.NetworkId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "networkId", *params.NetworkId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IpFamily != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ipFamily", *params.IpFamily, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardPlanSubscriptionStatsRequest constructs an http.Request for the ProviderDashboardServiceListDashboardPlanSubscriptionStats method -func NewProviderDashboardServiceListDashboardPlanSubscriptionStatsRequest(server string, params *ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/plan-subscription-stats") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PlanSearch != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planSearch", *params.PlanSearch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanBillingTypeFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planBillingTypeFilter", *params.PlanBillingTypeFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanAssetFilter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planAssetFilter", *params.PlanAssetFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlansPage != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "plansPage", *params.PlansPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlansPageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "plansPageSize", *params.PlansPageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardPlansTabServiceGetDashboardPlansTabStatsRequest constructs an http.Request for the ProviderDashboardPlansTabServiceGetDashboardPlansTabStats method -func NewProviderDashboardPlansTabServiceGetDashboardPlansTabStatsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/plans-tab-stats") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceGetDashboardSummaryRequest constructs an http.Request for the ProviderDashboardServiceGetDashboardSummary method -func NewProviderDashboardServiceGetDashboardSummaryRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/summary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardTicketStatisticsRequest constructs an http.Request for the ProviderDashboardServiceListDashboardTicketStatistics method -func NewProviderDashboardServiceListDashboardTicketStatisticsRequest(server string, params *ProviderDashboardServiceListDashboardTicketStatisticsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/tickets/statistics") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.FromTime != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "fromTime", *params.FromTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ToTime != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "toTime", *params.ToTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderDashboardServiceListDashboardVirtualMachinesRequest constructs an http.Request for the ProviderDashboardServiceListDashboardVirtualMachines method -func NewProviderDashboardServiceListDashboardVirtualMachinesRequest(server string, params *ProviderDashboardServiceListDashboardVirtualMachinesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/dashboard/virtual-machines") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "regionId", *params.RegionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.NodeId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodeId", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.CustomerEmailContains != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "customerEmailContains", *params.CustomerEmailContains, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.VmPage != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "vmPage", *params.VmPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.VmPageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "vmPageSize", *params.VmPageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.VmtemplateId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "vmtemplateId", *params.VmtemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewLiveValidationServiceListPlanLiveValidationsRequest constructs an http.Request for the LiveValidationServiceListPlanLiveValidations method -func NewLiveValidationServiceListPlanLiveValidationsRequest(server string, params *LiveValidationServiceListPlanLiveValidationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/live-validations") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PlanId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planId", *params.PlanId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewManualPayoutServiceDeleteManualPayoutRequest constructs an http.Request for the ManualPayoutServiceDeleteManualPayout method -func NewManualPayoutServiceDeleteManualPayoutRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/manual-payout") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewManualPayoutServiceGetManualPayoutRequest constructs an http.Request for the ManualPayoutServiceGetManualPayout method -func NewManualPayoutServiceGetManualPayoutRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/manual-payout") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewManualPayoutServiceCreateManualPayoutRequest calls the generic ManualPayoutServiceCreateManualPayout builder with application/json body -func NewManualPayoutServiceCreateManualPayoutRequest(server string, body ManualPayoutServiceCreateManualPayoutJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewManualPayoutServiceCreateManualPayoutRequestWithBody(server, "application/json", bodyReader) -} - -// NewManualPayoutServiceCreateManualPayoutRequestWithBody constructs an http.Request for the ManualPayoutServiceCreateManualPayout method, with any body, and a specified content type -func NewManualPayoutServiceCreateManualPayoutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/manual-payout") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesRequest constructs an http.Request for the ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies method -func NewProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesRequest(server string, params *ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/network/smtp-outbound-policies") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequest calls the generic ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy builder with application/json body -func NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequest(server string, virtualMachineId string, body ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequestWithBody(server, virtualMachineId, "application/json", bodyReader) -} - -// NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequestWithBody constructs an http.Request for the ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy method, with any body, and a specified content type -func NewProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyRequestWithBody(server string, virtualMachineId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "virtualMachineId", virtualMachineId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/network/smtp-outbound-policies/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderNetworkServiceGetSmtpOutboundProviderPolicyRequest constructs an http.Request for the ProviderNetworkServiceGetSmtpOutboundProviderPolicy method -func NewProviderNetworkServiceGetSmtpOutboundProviderPolicyRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/network/smtp-outbound-policy") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequest calls the generic ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy builder with application/json body -func NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequest(server string, body ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequestWithBody(server, "application/json", bodyReader) -} - -// NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequestWithBody constructs an http.Request for the ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy method, with any body, and a specified content type -func NewProviderNetworkServiceUpdateSmtpOutboundProviderPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/network/smtp-outbound-policy") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewProviderOnboardingServiceGetProviderOnboardingChecklistRequest constructs an http.Request for the ProviderOnboardingServiceGetProviderOnboardingChecklist method -func NewProviderOnboardingServiceGetProviderOnboardingChecklistRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/onboarding/checklist") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPayoutConfigurationServiceGetPayoutConfigurationRequest constructs an http.Request for the PayoutConfigurationServiceGetPayoutConfiguration method -func NewPayoutConfigurationServiceGetPayoutConfigurationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/payout-configuration") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPayoutConfigurationServiceUpdatePayoutConfigurationRequest calls the generic PayoutConfigurationServiceUpdatePayoutConfiguration builder with application/json body -func NewPayoutConfigurationServiceUpdatePayoutConfigurationRequest(server string, body PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPayoutConfigurationServiceUpdatePayoutConfigurationRequestWithBody(server, "application/json", bodyReader) -} - -// NewPayoutConfigurationServiceUpdatePayoutConfigurationRequestWithBody constructs an http.Request for the PayoutConfigurationServiceUpdatePayoutConfiguration method, with any body, and a specified content type -func NewPayoutConfigurationServiceUpdatePayoutConfigurationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/payout-configuration") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPayoutInvoiceServiceListPayoutInvoicesRequest constructs an http.Request for the PayoutInvoiceServiceListPayoutInvoices method -func NewPayoutInvoiceServiceListPayoutInvoicesRequest(server string, params *PayoutInvoiceServiceListPayoutInvoicesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/payout-invoices") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPayoutInvoiceServiceGetPayoutInvoiceRequest constructs an http.Request for the PayoutInvoiceServiceGetPayoutInvoice method -func NewPayoutInvoiceServiceGetPayoutInvoiceRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/payout-invoices/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewProviderPlanServiceListAssignableNodesForPlanRequest constructs an http.Request for the ProviderPlanServiceListAssignableNodesForPlan method -func NewProviderPlanServiceListAssignableNodesForPlanRequest(server string, params *ProviderPlanServiceListAssignableNodesForPlanParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/assignable-nodes") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.TemplatePlanId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "templatePlanId", *params.TemplatePlanId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planId", *params.PlanId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.RegionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "regionId", *params.RegionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewLiveValidationServiceDeletePlanLiveValidationRequest constructs an http.Request for the LiveValidationServiceDeletePlanLiveValidation method -func NewLiveValidationServiceDeletePlanLiveValidationRequest(server string, planId string, params *LiveValidationServiceDeletePlanLiveValidationParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/%s/live-validation", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.NodeId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodeId", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewLiveValidationServiceGetPlanLiveValidationRequest constructs an http.Request for the LiveValidationServiceGetPlanLiveValidation method -func NewLiveValidationServiceGetPlanLiveValidationRequest(server string, planId string, params *LiveValidationServiceGetPlanLiveValidationParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/%s/live-validation", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.NodeId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodeId", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewLiveValidationServiceStartPlanLiveValidationRequest calls the generic LiveValidationServiceStartPlanLiveValidation builder with application/json body -func NewLiveValidationServiceStartPlanLiveValidationRequest(server string, planId string, body LiveValidationServiceStartPlanLiveValidationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewLiveValidationServiceStartPlanLiveValidationRequestWithBody(server, planId, "application/json", bodyReader) -} - -// NewLiveValidationServiceStartPlanLiveValidationRequestWithBody constructs an http.Request for the LiveValidationServiceStartPlanLiveValidation method, with any body, and a specified content type -func NewLiveValidationServiceStartPlanLiveValidationRequestWithBody(server string, planId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/%s/live-validation", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewLiveValidationServiceListPlanLiveValidationBenchmarksRequest constructs an http.Request for the LiveValidationServiceListPlanLiveValidationBenchmarks method -func NewLiveValidationServiceListPlanLiveValidationBenchmarksRequest(server string, planId string, params *LiveValidationServiceListPlanLiveValidationBenchmarksParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/%s/live-validation/benchmarks", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.NodeId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodeId", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewLiveValidationServiceListEligibleNodesForPlanRequest constructs an http.Request for the LiveValidationServiceListEligibleNodesForPlan method -func NewLiveValidationServiceListEligibleNodesForPlanRequest(server string, planId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "planId", planId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/plans/%s/live-validation/nodes", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPreflightServiceListPreflightChecksRequest constructs an http.Request for the PreflightServiceListPreflightChecks method -func NewPreflightServiceListPreflightChecksRequest(server string, params *PreflightServiceListPreflightChecksParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/preflight-checks") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PlanCode != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planCode", *params.PlanCode, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planId", *params.PlanId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IssuesOnly != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "issuesOnly", *params.IssuesOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPayoutInvoiceServiceGetProviderRevenueRequest constructs an http.Request for the PayoutInvoiceServiceGetProviderRevenue method -func NewPayoutInvoiceServiceGetProviderRevenueRequest(server string, params *PayoutInvoiceServiceGetProviderRevenueParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/provider/revenue") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.StartDate != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "startDate", *params.StartDate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EndDate != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "endDate", *params.EndDate, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlanId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "planId", *params.PlanId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ClientOrganizationId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "clientOrganizationId", *params.ClientOrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IncludePending != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includePending", *params.IncludePending, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRefundServiceListRefundsRequest constructs an http.Request for the RefundServiceListRefunds method -func NewRefundServiceListRefundsRequest(server string, params *RefundServiceListRefundsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/refunds") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.PaymentId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "paymentId", *params.PaymentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.InvoiceId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "invoiceId", *params.InvoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRefundServiceGetRefundRequest constructs an http.Request for the RefundServiceGetRefund method -func NewRefundServiceGetRefundRequest(server string, refundId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "refundId", refundId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/refunds/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRegionServiceListRegionsRequest constructs an http.Request for the RegionServiceListRegions method -func NewRegionServiceListRegionsRequest(server string, params *RegionServiceListRegionsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/regions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRegionServiceCreateRegionRequest calls the generic RegionServiceCreateRegion builder with application/json body -func NewRegionServiceCreateRegionRequest(server string, body RegionServiceCreateRegionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRegionServiceCreateRegionRequestWithBody(server, "application/json", bodyReader) -} - -// NewRegionServiceCreateRegionRequestWithBody constructs an http.Request for the RegionServiceCreateRegion method, with any body, and a specified content type -func NewRegionServiceCreateRegionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/regions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRegionServiceDeleteRegionRequest constructs an http.Request for the RegionServiceDeleteRegion method -func NewRegionServiceDeleteRegionRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/regions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRegionServiceGetRegionRequest constructs an http.Request for the RegionServiceGetRegion method -func NewRegionServiceGetRegionRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/regions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceDeleteRoadmapFeatureRequestCommentRequest constructs an http.Request for the RoadmapServiceDeleteRoadmapFeatureRequestComment method -func NewRoadmapServiceDeleteRoadmapFeatureRequestCommentRequest(server string, commentId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "commentId", commentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/comments/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequest calls the generic RoadmapServiceUpdateRoadmapFeatureRequestComment builder with application/json body -func NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequest(server string, commentId string, body RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequestWithBody(server, commentId, "application/json", bodyReader) -} - -// NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequestWithBody constructs an http.Request for the RoadmapServiceUpdateRoadmapFeatureRequestComment method, with any body, and a specified content type -func NewRoadmapServiceUpdateRoadmapFeatureRequestCommentRequestWithBody(server string, commentId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "commentId", commentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/comments/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoadmapServiceListRoadmapProductCategoriesRequest constructs an http.Request for the RoadmapServiceListRoadmapProductCategories method -func NewRoadmapServiceListRoadmapProductCategoriesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/products") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceListRoadmapFeatureRequestsRequest constructs an http.Request for the RoadmapServiceListRoadmapFeatureRequests method -func NewRoadmapServiceListRoadmapFeatureRequestsRequest(server string, params *RoadmapServiceListRoadmapFeatureRequestsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.ProductSlug != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "productSlug", *params.ProductSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Sort != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceGetRoadmapFeatureRequestRequest constructs an http.Request for the RoadmapServiceGetRoadmapFeatureRequest method -func NewRoadmapServiceGetRoadmapFeatureRequestRequest(server string, slug string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceListRoadmapFeatureRequestCommentsRequest constructs an http.Request for the RoadmapServiceListRoadmapFeatureRequestComments method -func NewRoadmapServiceListRoadmapFeatureRequestCommentsRequest(server string, slug string, params *RoadmapServiceListRoadmapFeatureRequestCommentsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests/%s/comments", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequest calls the generic RoadmapServiceCreateRoadmapFeatureRequestComment builder with application/json body -func NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequest(server string, slug string, body RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequestWithBody(server, slug, "application/json", bodyReader) -} - -// NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequestWithBody constructs an http.Request for the RoadmapServiceCreateRoadmapFeatureRequestComment method, with any body, and a specified content type -func NewRoadmapServiceCreateRoadmapFeatureRequestCommentRequestWithBody(server string, slug string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests/%s/comments", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoadmapServiceRemoveRoadmapFeatureRequestVoteRequest constructs an http.Request for the RoadmapServiceRemoveRoadmapFeatureRequestVote method -func NewRoadmapServiceRemoveRoadmapFeatureRequestVoteRequest(server string, slug string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests/%s/vote", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceVoteRoadmapFeatureRequestRequest calls the generic RoadmapServiceVoteRoadmapFeatureRequest builder with application/json body -func NewRoadmapServiceVoteRoadmapFeatureRequestRequest(server string, slug string, body RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoadmapServiceVoteRoadmapFeatureRequestRequestWithBody(server, slug, "application/json", bodyReader) -} - -// NewRoadmapServiceVoteRoadmapFeatureRequestRequestWithBody constructs an http.Request for the RoadmapServiceVoteRoadmapFeatureRequest method, with any body, and a specified content type -func NewRoadmapServiceVoteRoadmapFeatureRequestRequestWithBody(server string, slug string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "slug", slug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/requests/%s/vote", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoadmapServiceGetRoadmapStatsRequest constructs an http.Request for the RoadmapServiceGetRoadmapStats method -func NewRoadmapServiceGetRoadmapStatsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/stats") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoadmapServiceSubmitRoadmapFeatureRequestRequest calls the generic RoadmapServiceSubmitRoadmapFeatureRequest builder with application/json body -func NewRoadmapServiceSubmitRoadmapFeatureRequestRequest(server string, body RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoadmapServiceSubmitRoadmapFeatureRequestRequestWithBody(server, "application/json", bodyReader) -} - -// NewRoadmapServiceSubmitRoadmapFeatureRequestRequestWithBody constructs an http.Request for the RoadmapServiceSubmitRoadmapFeatureRequest method, with any body, and a specified content type -func NewRoadmapServiceSubmitRoadmapFeatureRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roadmap/submit") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoleServiceListRolesRequest constructs an http.Request for the RoleServiceListRoles method -func NewRoleServiceListRolesRequest(server string, params *RoleServiceListRolesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterName != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterName", *params.FilterName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoleServiceCreateRoleRequest calls the generic RoleServiceCreateRole builder with application/json body -func NewRoleServiceCreateRoleRequest(server string, body RoleServiceCreateRoleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoleServiceCreateRoleRequestWithBody(server, "application/json", bodyReader) -} - -// NewRoleServiceCreateRoleRequestWithBody constructs an http.Request for the RoleServiceCreateRole method, with any body, and a specified content type -func NewRoleServiceCreateRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoleServiceReplaceRoleForGroupRequest calls the generic RoleServiceReplaceRoleForGroup builder with application/json body -func NewRoleServiceReplaceRoleForGroupRequest(server string, body RoleServiceReplaceRoleForGroupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoleServiceReplaceRoleForGroupRequestWithBody(server, "application/json", bodyReader) -} - -// NewRoleServiceReplaceRoleForGroupRequestWithBody constructs an http.Request for the RoleServiceReplaceRoleForGroup method, with any body, and a specified content type -func NewRoleServiceReplaceRoleForGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles/replace-for-group") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoleServiceReplaceRoleForServiceAccountRequest calls the generic RoleServiceReplaceRoleForServiceAccount builder with application/json body -func NewRoleServiceReplaceRoleForServiceAccountRequest(server string, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(server, "application/json", bodyReader) -} - -// NewRoleServiceReplaceRoleForServiceAccountRequestWithBody constructs an http.Request for the RoleServiceReplaceRoleForServiceAccount method, with any body, and a specified content type -func NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles/replace-for-service-account") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoleServiceReplaceRoleForUserRequest calls the generic RoleServiceReplaceRoleForUser builder with application/json body -func NewRoleServiceReplaceRoleForUserRequest(server string, body RoleServiceReplaceRoleForUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoleServiceReplaceRoleForUserRequestWithBody(server, "application/json", bodyReader) -} - -// NewRoleServiceReplaceRoleForUserRequestWithBody constructs an http.Request for the RoleServiceReplaceRoleForUser method, with any body, and a specified content type -func NewRoleServiceReplaceRoleForUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles/replace-for-user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewRoleServiceDeleteRoleRequest constructs an http.Request for the RoleServiceDeleteRole method -func NewRoleServiceDeleteRoleRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewRoleServiceUpdateRoleRequest calls the generic RoleServiceUpdateRole builder with application/json body -func NewRoleServiceUpdateRoleRequest(server string, id string, body RoleServiceUpdateRoleJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewRoleServiceUpdateRoleRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewRoleServiceUpdateRoleRequestWithBody constructs an http.Request for the RoleServiceUpdateRole method, with any body, and a specified content type -func NewRoleServiceUpdateRoleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/roles/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSecretServiceListSecretsRequest constructs an http.Request for the SecretServiceListSecrets method -func NewSecretServiceListSecretsRequest(server string, params *SecretServiceListSecretsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/secrets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSecretServiceCreateSecretRequest calls the generic SecretServiceCreateSecret builder with application/json body -func NewSecretServiceCreateSecretRequest(server string, body SecretServiceCreateSecretJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSecretServiceCreateSecretRequestWithBody(server, "application/json", bodyReader) -} - -// NewSecretServiceCreateSecretRequestWithBody constructs an http.Request for the SecretServiceCreateSecret method, with any body, and a specified content type -func NewSecretServiceCreateSecretRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/secrets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSecretServiceDeleteSecretRequest constructs an http.Request for the SecretServiceDeleteSecret method -func NewSecretServiceDeleteSecretRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/secrets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSecretServiceGetSecretRequest constructs an http.Request for the SecretServiceGetSecret method -func NewSecretServiceGetSecretRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/secrets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSecretServiceUpdateSecretRequest calls the generic SecretServiceUpdateSecret builder with application/json body -func NewSecretServiceUpdateSecretRequest(server string, id string, body SecretServiceUpdateSecretJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSecretServiceUpdateSecretRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewSecretServiceUpdateSecretRequestWithBody constructs an http.Request for the SecretServiceUpdateSecret method, with any body, and a specified content type -func NewSecretServiceUpdateSecretRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/secrets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewServiceAccountServiceListServiceAccountsRequest constructs an http.Request for the ServiceAccountServiceListServiceAccounts method -func NewServiceAccountServiceListServiceAccountsRequest(server string, params *ServiceAccountServiceListServiceAccountsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.IncludeInactive != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeInactive", *params.IncludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewServiceAccountServiceCreateServiceAccountRequest calls the generic ServiceAccountServiceCreateServiceAccount builder with application/json body -func NewServiceAccountServiceCreateServiceAccountRequest(server string, body ServiceAccountServiceCreateServiceAccountJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewServiceAccountServiceCreateServiceAccountRequestWithBody(server, "application/json", bodyReader) -} - -// NewServiceAccountServiceCreateServiceAccountRequestWithBody constructs an http.Request for the ServiceAccountServiceCreateServiceAccount method, with any body, and a specified content type -func NewServiceAccountServiceCreateServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewServiceAccountServiceRevokeTokenRequest constructs an http.Request for the ServiceAccountServiceRevokeToken method -func NewServiceAccountServiceRevokeTokenRequest(server string, tokenId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tokenId", tokenId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/tokens/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewServiceAccountServiceDeleteServiceAccountRequest constructs an http.Request for the ServiceAccountServiceDeleteServiceAccount method -func NewServiceAccountServiceDeleteServiceAccountRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewServiceAccountServiceGetServiceAccountRequest constructs an http.Request for the ServiceAccountServiceGetServiceAccount method -func NewServiceAccountServiceGetServiceAccountRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewServiceAccountServiceUpdateServiceAccountRequest calls the generic ServiceAccountServiceUpdateServiceAccount builder with application/json body -func NewServiceAccountServiceUpdateServiceAccountRequest(server string, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewServiceAccountServiceUpdateServiceAccountRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewServiceAccountServiceUpdateServiceAccountRequestWithBody constructs an http.Request for the ServiceAccountServiceUpdateServiceAccount method, with any body, and a specified content type -func NewServiceAccountServiceUpdateServiceAccountRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewServiceAccountServiceListTokensRequest constructs an http.Request for the ServiceAccountServiceListTokens method -func NewServiceAccountServiceListTokensRequest(server string, serviceAccountId string, params *ServiceAccountServiceListTokensParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/%s/tokens", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.IncludeInactive != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeInactive", *params.IncludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewServiceAccountServiceGenerateTokenRequest calls the generic ServiceAccountServiceGenerateToken builder with application/json body -func NewServiceAccountServiceGenerateTokenRequest(server string, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewServiceAccountServiceGenerateTokenRequestWithBody(server, serviceAccountId, "application/json", bodyReader) -} - -// NewServiceAccountServiceGenerateTokenRequestWithBody constructs an http.Request for the ServiceAccountServiceGenerateToken method, with any body, and a specified content type -func NewServiceAccountServiceGenerateTokenRequestWithBody(server string, serviceAccountId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/service-accounts/%s/tokens", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSSHKeyServiceListSSHKeysRequest constructs an http.Request for the SSHKeyServiceListSSHKeys method -func NewSSHKeyServiceListSSHKeysRequest(server string, params *SSHKeyServiceListSSHKeysParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ssh-keys") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSSHKeyServiceCreateSSHKeyRequest calls the generic SSHKeyServiceCreateSSHKey builder with application/json body -func NewSSHKeyServiceCreateSSHKeyRequest(server string, body SSHKeyServiceCreateSSHKeyJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSSHKeyServiceCreateSSHKeyRequestWithBody(server, "application/json", bodyReader) -} - -// NewSSHKeyServiceCreateSSHKeyRequestWithBody constructs an http.Request for the SSHKeyServiceCreateSSHKey method, with any body, and a specified content type -func NewSSHKeyServiceCreateSSHKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ssh-keys") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSSHKeyServiceDeleteSSHKeyRequest constructs an http.Request for the SSHKeyServiceDeleteSSHKey method -func NewSSHKeyServiceDeleteSSHKeyRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ssh-keys/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSSHKeyServiceGetSSHKeyRequest constructs an http.Request for the SSHKeyServiceGetSSHKey method -func NewSSHKeyServiceGetSSHKeyRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ssh-keys/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSubscriptionServiceListSubscriptionsRequest constructs an http.Request for the SubscriptionServiceListSubscriptions method -func NewSubscriptionServiceListSubscriptionsRequest(server string, params *SubscriptionServiceListSubscriptionsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.OnlyActive != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "onlyActive", *params.OnlyActive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceListAddonSubscriptionsRequest constructs an http.Request for the AddonServiceListAddonSubscriptions method -func NewAddonServiceListAddonSubscriptionsRequest(server string, subscriptionId string, params *AddonServiceListAddonSubscriptionsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions/%s/addons", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.AddonStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "addonStatus", *params.AddonStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewAddonServiceAddAddonToSubscriptionRequest calls the generic AddonServiceAddAddonToSubscription builder with application/json body -func NewAddonServiceAddAddonToSubscriptionRequest(server string, subscriptionId string, body AddonServiceAddAddonToSubscriptionJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewAddonServiceAddAddonToSubscriptionRequestWithBody(server, subscriptionId, "application/json", bodyReader) -} - -// NewAddonServiceAddAddonToSubscriptionRequestWithBody constructs an http.Request for the AddonServiceAddAddonToSubscription method, with any body, and a specified content type -func NewAddonServiceAddAddonToSubscriptionRequestWithBody(server string, subscriptionId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions/%s/addons", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSubscriptionServiceCancelRequest constructs an http.Request for the SubscriptionServiceCancel method -func NewSubscriptionServiceCancelRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions:cancel") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSubscriptionServiceCancelRenewalRequest calls the generic SubscriptionServiceCancelRenewal builder with application/json body -func NewSubscriptionServiceCancelRenewalRequest(server string, body SubscriptionServiceCancelRenewalJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSubscriptionServiceCancelRenewalRequestWithBody(server, "application/json", bodyReader) -} - -// NewSubscriptionServiceCancelRenewalRequestWithBody constructs an http.Request for the SubscriptionServiceCancelRenewal method, with any body, and a specified content type -func NewSubscriptionServiceCancelRenewalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions:cancel-renewal") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSubscriptionServiceRetryPaymentRequest calls the generic SubscriptionServiceRetryPayment builder with application/json body -func NewSubscriptionServiceRetryPaymentRequest(server string, body SubscriptionServiceRetryPaymentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSubscriptionServiceRetryPaymentRequestWithBody(server, "application/json", bodyReader) -} - -// NewSubscriptionServiceRetryPaymentRequestWithBody constructs an http.Request for the SubscriptionServiceRetryPayment method, with any body, and a specified content type -func NewSubscriptionServiceRetryPaymentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions:retry-payment") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSubscriptionServiceGetSubscriptionStatusRequest constructs an http.Request for the SubscriptionServiceGetSubscriptionStatus method -func NewSubscriptionServiceGetSubscriptionStatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions:status") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSubscriptionServiceUndoCancelRenewalRequest calls the generic SubscriptionServiceUndoCancelRenewal builder with application/json body -func NewSubscriptionServiceUndoCancelRenewalRequest(server string, body SubscriptionServiceUndoCancelRenewalJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSubscriptionServiceUndoCancelRenewalRequestWithBody(server, "application/json", bodyReader) -} - -// NewSubscriptionServiceUndoCancelRenewalRequestWithBody constructs an http.Request for the SubscriptionServiceUndoCancelRenewal method, with any body, and a specified content type -func NewSubscriptionServiceUndoCancelRenewalRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/subscriptions:undo-cancel-renewal") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceListTicketTemplatesRequest constructs an http.Request for the TicketServiceListTicketTemplates method -func NewTicketServiceListTicketTemplatesRequest(server string, params *TicketServiceListTicketTemplatesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ticket-templates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceCreateTicketTemplateRequest calls the generic TicketServiceCreateTicketTemplate builder with application/json body -func NewTicketServiceCreateTicketTemplateRequest(server string, body TicketServiceCreateTicketTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceCreateTicketTemplateRequestWithBody(server, "application/json", bodyReader) -} - -// NewTicketServiceCreateTicketTemplateRequestWithBody constructs an http.Request for the TicketServiceCreateTicketTemplate method, with any body, and a specified content type -func NewTicketServiceCreateTicketTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ticket-templates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceDeleteTicketTemplateRequest constructs an http.Request for the TicketServiceDeleteTicketTemplate method -func NewTicketServiceDeleteTicketTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ticket-templates/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceGetTicketTemplateRequest constructs an http.Request for the TicketServiceGetTicketTemplate method -func NewTicketServiceGetTicketTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ticket-templates/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceUpdateTicketTemplateRequest calls the generic TicketServiceUpdateTicketTemplate builder with application/json body -func NewTicketServiceUpdateTicketTemplateRequest(server string, id string, body TicketServiceUpdateTicketTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceUpdateTicketTemplateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewTicketServiceUpdateTicketTemplateRequestWithBody constructs an http.Request for the TicketServiceUpdateTicketTemplate method, with any body, and a specified content type -func NewTicketServiceUpdateTicketTemplateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/ticket-templates/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceListTicketsRequest constructs an http.Request for the TicketServiceListTickets method -func NewTicketServiceListTicketsRequest(server string, params *TicketServiceListTicketsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterTicketStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterTicketStatus", *params.FilterTicketStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterCaseType != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterCaseType", *params.FilterCaseType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterPriority != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterPriority", *params.FilterPriority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceCreateTicketRequest calls the generic TicketServiceCreateTicket builder with application/json body -func NewTicketServiceCreateTicketRequest(server string, body TicketServiceCreateTicketJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceCreateTicketRequestWithBody(server, "application/json", bodyReader) -} - -// NewTicketServiceCreateTicketRequestWithBody constructs an http.Request for the TicketServiceCreateTicket method, with any body, and a specified content type -func NewTicketServiceCreateTicketRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceDeleteTicketAttachmentRequest constructs an http.Request for the TicketServiceDeleteTicketAttachment method -func NewTicketServiceDeleteTicketAttachmentRequest(server string, attachmentId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "attachmentId", attachmentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/attachments/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceDownloadTicketAttachmentRequest constructs an http.Request for the TicketServiceDownloadTicketAttachment method -func NewTicketServiceDownloadTicketAttachmentRequest(server string, attachmentId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "attachmentId", attachmentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/attachments/%s:download", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceConfirmTicketAttachmentUploadRequest calls the generic TicketServiceConfirmTicketAttachmentUpload builder with application/json body -func NewTicketServiceConfirmTicketAttachmentUploadRequest(server string, body TicketServiceConfirmTicketAttachmentUploadJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceConfirmTicketAttachmentUploadRequestWithBody(server, "application/json", bodyReader) -} - -// NewTicketServiceConfirmTicketAttachmentUploadRequestWithBody constructs an http.Request for the TicketServiceConfirmTicketAttachmentUpload method, with any body, and a specified content type -func NewTicketServiceConfirmTicketAttachmentUploadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/attachments:confirm-upload") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceUploadTicketAttachmentContentRequest calls the generic TicketServiceUploadTicketAttachmentContent builder with application/json body -func NewTicketServiceUploadTicketAttachmentContentRequest(server string, body TicketServiceUploadTicketAttachmentContentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceUploadTicketAttachmentContentRequestWithBody(server, "application/json", bodyReader) -} - -// NewTicketServiceUploadTicketAttachmentContentRequestWithBody constructs an http.Request for the TicketServiceUploadTicketAttachmentContent method, with any body, and a specified content type -func NewTicketServiceUploadTicketAttachmentContentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/attachments:upload-content") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceDeleteTicketRequest constructs an http.Request for the TicketServiceDeleteTicket method -func NewTicketServiceDeleteTicketRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceGetTicketRequest constructs an http.Request for the TicketServiceGetTicket method -func NewTicketServiceGetTicketRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceListTicketAttachmentsRequest constructs an http.Request for the TicketServiceListTicketAttachments method -func NewTicketServiceListTicketAttachmentsRequest(server string, ticketId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s/attachments", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceCreateTicketAttachmentUploadRequest calls the generic TicketServiceCreateTicketAttachmentUpload builder with application/json body -func NewTicketServiceCreateTicketAttachmentUploadRequest(server string, ticketId string, body TicketServiceCreateTicketAttachmentUploadJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceCreateTicketAttachmentUploadRequestWithBody(server, ticketId, "application/json", bodyReader) -} - -// NewTicketServiceCreateTicketAttachmentUploadRequestWithBody constructs an http.Request for the TicketServiceCreateTicketAttachmentUpload method, with any body, and a specified content type -func NewTicketServiceCreateTicketAttachmentUploadRequestWithBody(server string, ticketId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s/attachments:upload", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceListInternalCommentsRequest constructs an http.Request for the TicketServiceListInternalComments method -func NewTicketServiceListInternalCommentsRequest(server string, ticketId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s/internal-comments", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewTicketServiceAddReplyToTicketRequest calls the generic TicketServiceAddReplyToTicket builder with application/json body -func NewTicketServiceAddReplyToTicketRequest(server string, ticketId string, body TicketServiceAddReplyToTicketJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceAddReplyToTicketRequestWithBody(server, ticketId, "application/json", bodyReader) -} - -// NewTicketServiceAddReplyToTicketRequestWithBody constructs an http.Request for the TicketServiceAddReplyToTicket method, with any body, and a specified content type -func NewTicketServiceAddReplyToTicketRequestWithBody(server string, ticketId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s:add-reply", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceAddInternalCommentRequest calls the generic TicketServiceAddInternalComment builder with application/json body -func NewTicketServiceAddInternalCommentRequest(server string, ticketId string, body TicketServiceAddInternalCommentJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceAddInternalCommentRequestWithBody(server, ticketId, "application/json", bodyReader) -} - -// NewTicketServiceAddInternalCommentRequestWithBody constructs an http.Request for the TicketServiceAddInternalComment method, with any body, and a specified content type -func NewTicketServiceAddInternalCommentRequestWithBody(server string, ticketId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s:internal-comment", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceSetTicketPriorityRequest calls the generic TicketServiceSetTicketPriority builder with application/json body -func NewTicketServiceSetTicketPriorityRequest(server string, ticketId string, body TicketServiceSetTicketPriorityJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceSetTicketPriorityRequestWithBody(server, ticketId, "application/json", bodyReader) -} - -// NewTicketServiceSetTicketPriorityRequestWithBody constructs an http.Request for the TicketServiceSetTicketPriority method, with any body, and a specified content type -func NewTicketServiceSetTicketPriorityRequestWithBody(server string, ticketId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s:set-priority", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceSetTicketStatusRequest calls the generic TicketServiceSetTicketStatus builder with application/json body -func NewTicketServiceSetTicketStatusRequest(server string, ticketId string, body TicketServiceSetTicketStatusJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceSetTicketStatusRequestWithBody(server, ticketId, "application/json", bodyReader) -} - -// NewTicketServiceSetTicketStatusRequestWithBody constructs an http.Request for the TicketServiceSetTicketStatus method, with any body, and a specified content type -func NewTicketServiceSetTicketStatusRequestWithBody(server string, ticketId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ticketId", ticketId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets/%s:set-status", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewTicketServiceSearchTicketsRequest calls the generic TicketServiceSearchTickets builder with application/json body -func NewTicketServiceSearchTicketsRequest(server string, body TicketServiceSearchTicketsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewTicketServiceSearchTicketsRequestWithBody(server, "application/json", bodyReader) -} - -// NewTicketServiceSearchTicketsRequestWithBody constructs an http.Request for the TicketServiceSearchTickets method, with any body, and a specified content type -func NewTicketServiceSearchTicketsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/tickets:search") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsageReportServiceRecordUsageRequest calls the generic UsageReportServiceRecordUsage builder with application/json body -func NewUsageReportServiceRecordUsageRequest(server string, body UsageReportServiceRecordUsageJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsageReportServiceRecordUsageRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsageReportServiceRecordUsageRequestWithBody constructs an http.Request for the UsageReportServiceRecordUsage method, with any body, and a specified content type -func NewUsageReportServiceRecordUsageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/usage/record") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsageReportServiceBatchRecordUsageRequest calls the generic UsageReportServiceBatchRecordUsage builder with application/json body -func NewUsageReportServiceBatchRecordUsageRequest(server string, body UsageReportServiceBatchRecordUsageJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUsageReportServiceBatchRecordUsageRequestWithBody(server, "application/json", bodyReader) -} - -// NewUsageReportServiceBatchRecordUsageRequestWithBody constructs an http.Request for the UsageReportServiceBatchRecordUsage method, with any body, and a specified content type -func NewUsageReportServiceBatchRecordUsageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/usage/record:batch") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUsageReportServiceListUsageRecordsRequest constructs an http.Request for the UsageReportServiceListUsageRecords method -func NewUsageReportServiceListUsageRecordsRequest(server string, params *UsageReportServiceListUsageRecordsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/usage/records") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.SubscriptionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subscriptionId", *params.SubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.MetricId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metricId", *params.MetricId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.UsageRecordStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "usageRecordStatus", *params.UsageRecordStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.StartTime != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "startTime", *params.StartTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.EndTime != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "endTime", *params.EndTime, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsageReportServiceGetUsageRecordRequest constructs an http.Request for the UsageReportServiceGetUsageRecord method -func NewUsageReportServiceGetUsageRecordRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/usage/records/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUsageReportServiceGetUsageReportRequest constructs an http.Request for the UsageReportServiceGetUsageReport method -func NewUsageReportServiceGetUsageReportRequest(server string, params *UsageReportServiceGetUsageReportParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/usage/report") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.SubscriptionId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "subscriptionId", *params.SubscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.MetricId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metricId", *params.MetricId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.BillingPeriodStart != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingPeriodStart", *params.BillingPeriodStart, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.BillingPeriodEnd != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "billingPeriodEnd", *params.BillingPeriodEnd, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.IncludeBilled != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeBilled", *params.IncludeBilled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceListUsersRequest constructs an http.Request for the UserServiceListUsers method -func NewUserServiceListUsersRequest(server string, params *UserServiceListUsersParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/users") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterEmail != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterEmail", *params.FilterEmail, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterStatus", *params.FilterStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceDeleteUserRequest constructs an http.Request for the UserServiceDeleteUser method -func NewUserServiceDeleteUserRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/users/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceGetUserRequest constructs an http.Request for the UserServiceGetUser method -func NewUserServiceGetUserRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/users/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewUserServiceUpdateUserRequest calls the generic UserServiceUpdateUser builder with application/json body -func NewUserServiceUpdateUserRequest(server string, id string, body UserServiceUpdateUserJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUserServiceUpdateUserRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewUserServiceUpdateUserRequestWithBody constructs an http.Request for the UserServiceUpdateUser method, with any body, and a specified content type -func NewUserServiceUpdateUserRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/users/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewMetadataServiceGetVersionRequest constructs an http.Request for the MetadataServiceGetVersion method -func NewMetadataServiceGetVersionRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/version") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceListVirtualMachinesRequest constructs an http.Request for the VirtualMachineServiceListVirtualMachines method -func NewVirtualMachineServiceListVirtualMachinesRequest(server string, params *VirtualMachineServiceListVirtualMachinesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.FilterOperationStatus != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filterOperationStatus", *params.FilterOperationStatus, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceCreateVirtualMachineRequest calls the generic VirtualMachineServiceCreateVirtualMachine builder with application/json body -func NewVirtualMachineServiceCreateVirtualMachineRequest(server string, body VirtualMachineServiceCreateVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceCreateVirtualMachineRequestWithBody(server, "application/json", bodyReader) -} - -// NewVirtualMachineServiceCreateVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceCreateVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceCreateVirtualMachineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceListVMTagsRequest constructs an http.Request for the VirtualMachineServiceListVMTags method -func NewVirtualMachineServiceListVMTagsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/tags") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceDeleteVirtualMachineRequest constructs an http.Request for the VirtualMachineServiceDeleteVirtualMachine method -func NewVirtualMachineServiceDeleteVirtualMachineRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceGetVirtualMachineRequest constructs an http.Request for the VirtualMachineServiceGetVirtualMachine method -func NewVirtualMachineServiceGetVirtualMachineRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceUpdateVirtualMachineRequest calls the generic VirtualMachineServiceUpdateVirtualMachine builder with application/json body -func NewVirtualMachineServiceUpdateVirtualMachineRequest(server string, id string, body VirtualMachineServiceUpdateVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceUpdateVirtualMachineRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceUpdateVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceUpdateVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceUpdateVirtualMachineRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceGetVNCConsoleRequest constructs an http.Request for the VirtualMachineServiceGetVNCConsole method -func NewVirtualMachineServiceGetVNCConsoleRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/console", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVirtualMachineServiceAttachVMFirewallRequest calls the generic VirtualMachineServiceAttachVMFirewall builder with application/json body -func NewVirtualMachineServiceAttachVMFirewallRequest(server string, id string, body VirtualMachineServiceAttachVMFirewallJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceAttachVMFirewallRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceAttachVMFirewallRequestWithBody constructs an http.Request for the VirtualMachineServiceAttachVMFirewall method, with any body, and a specified content type -func NewVirtualMachineServiceAttachVMFirewallRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:attach-firewall", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceDetachVMFirewallRequest calls the generic VirtualMachineServiceDetachVMFirewall builder with application/json body -func NewVirtualMachineServiceDetachVMFirewallRequest(server string, id string, body VirtualMachineServiceDetachVMFirewallJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceDetachVMFirewallRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceDetachVMFirewallRequestWithBody constructs an http.Request for the VirtualMachineServiceDetachVMFirewall method, with any body, and a specified content type -func NewVirtualMachineServiceDetachVMFirewallRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:detach-firewall", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceReinstallVirtualMachineRequest calls the generic VirtualMachineServiceReinstallVirtualMachine builder with application/json body -func NewVirtualMachineServiceReinstallVirtualMachineRequest(server string, id string, body VirtualMachineServiceReinstallVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceReinstallVirtualMachineRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceReinstallVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceReinstallVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceReinstallVirtualMachineRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:reinstall", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceRestartVirtualMachineRequest calls the generic VirtualMachineServiceRestartVirtualMachine builder with application/json body -func NewVirtualMachineServiceRestartVirtualMachineRequest(server string, id string, body VirtualMachineServiceRestartVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceRestartVirtualMachineRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceRestartVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceRestartVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceRestartVirtualMachineRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:restart", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceStartVirtualMachineRequest calls the generic VirtualMachineServiceStartVirtualMachine builder with application/json body -func NewVirtualMachineServiceStartVirtualMachineRequest(server string, id string, body VirtualMachineServiceStartVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceStartVirtualMachineRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceStartVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceStartVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceStartVirtualMachineRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:start", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceStopVirtualMachineRequest calls the generic VirtualMachineServiceStopVirtualMachine builder with application/json body -func NewVirtualMachineServiceStopVirtualMachineRequest(server string, id string, body VirtualMachineServiceStopVirtualMachineJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceStopVirtualMachineRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVirtualMachineServiceStopVirtualMachineRequestWithBody constructs an http.Request for the VirtualMachineServiceStopVirtualMachine method, with any body, and a specified content type -func NewVirtualMachineServiceStopVirtualMachineRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:stop", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewBackupServiceListBackupsRequest constructs an http.Request for the BackupServiceListBackups method -func NewBackupServiceListBackupsRequest(server string, vmId string, params *BackupServiceListBackupsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/backups", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewBackupServiceDeleteBackupRequest constructs an http.Request for the BackupServiceDeleteBackup method -func NewBackupServiceDeleteBackupRequest(server string, vmId string, backupId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupId", backupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/backups/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewBackupServiceGetBackupRequest constructs an http.Request for the BackupServiceGetBackup method -func NewBackupServiceGetBackupRequest(server string, vmId string, backupId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupId", backupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/backups/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewBackupServiceRestoreBackupRequest calls the generic BackupServiceRestoreBackup builder with application/json body -func NewBackupServiceRestoreBackupRequest(server string, vmId string, backupId string, body BackupServiceRestoreBackupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewBackupServiceRestoreBackupRequestWithBody(server, vmId, backupId, "application/json", bodyReader) -} - -// NewBackupServiceRestoreBackupRequestWithBody constructs an http.Request for the BackupServiceRestoreBackup method, with any body, and a specified content type -func NewBackupServiceRestoreBackupRequestWithBody(server string, vmId string, backupId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupId", backupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/backups/%s/restore", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSnapshotServiceListSnapshotsRequest constructs an http.Request for the SnapshotServiceListSnapshots method -func NewSnapshotServiceListSnapshotsRequest(server string, vmId string, params *SnapshotServiceListSnapshotsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/snapshots", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSnapshotServiceCreateSnapshotRequest calls the generic SnapshotServiceCreateSnapshot builder with application/json body -func NewSnapshotServiceCreateSnapshotRequest(server string, vmId string, body SnapshotServiceCreateSnapshotJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSnapshotServiceCreateSnapshotRequestWithBody(server, vmId, "application/json", bodyReader) -} - -// NewSnapshotServiceCreateSnapshotRequestWithBody constructs an http.Request for the SnapshotServiceCreateSnapshot method, with any body, and a specified content type -func NewSnapshotServiceCreateSnapshotRequestWithBody(server string, vmId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/snapshots", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewSnapshotServiceDeleteSnapshotRequest constructs an http.Request for the SnapshotServiceDeleteSnapshot method -func NewSnapshotServiceDeleteSnapshotRequest(server string, vmId string, snapshotId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshotId", snapshotId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/snapshots/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSnapshotServiceGetSnapshotRequest constructs an http.Request for the SnapshotServiceGetSnapshot method -func NewSnapshotServiceGetSnapshotRequest(server string, vmId string, snapshotId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshotId", snapshotId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/snapshots/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewSnapshotServiceRestoreSnapshotRequest calls the generic SnapshotServiceRestoreSnapshot builder with application/json body -func NewSnapshotServiceRestoreSnapshotRequest(server string, vmId string, snapshotId string, body SnapshotServiceRestoreSnapshotJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewSnapshotServiceRestoreSnapshotRequestWithBody(server, vmId, snapshotId, "application/json", bodyReader) -} - -// NewSnapshotServiceRestoreSnapshotRequestWithBody constructs an http.Request for the SnapshotServiceRestoreSnapshot method, with any body, and a specified content type -func NewSnapshotServiceRestoreSnapshotRequestWithBody(server string, vmId string, snapshotId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "snapshotId", snapshotId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s/snapshots/%s/restore", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceDisableAdditionalIPRequest calls the generic VirtualMachineServiceDisableAdditionalIP builder with application/json body -func NewVirtualMachineServiceDisableAdditionalIPRequest(server string, vmId string, body VirtualMachineServiceDisableAdditionalIPJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceDisableAdditionalIPRequestWithBody(server, vmId, "application/json", bodyReader) -} - -// NewVirtualMachineServiceDisableAdditionalIPRequestWithBody constructs an http.Request for the VirtualMachineServiceDisableAdditionalIP method, with any body, and a specified content type -func NewVirtualMachineServiceDisableAdditionalIPRequestWithBody(server string, vmId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:disable-additional-ip", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceDisableBackupRequest calls the generic VirtualMachineServiceDisableBackup builder with application/json body -func NewVirtualMachineServiceDisableBackupRequest(server string, vmId string, body VirtualMachineServiceDisableBackupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceDisableBackupRequestWithBody(server, vmId, "application/json", bodyReader) -} - -// NewVirtualMachineServiceDisableBackupRequestWithBody constructs an http.Request for the VirtualMachineServiceDisableBackup method, with any body, and a specified content type -func NewVirtualMachineServiceDisableBackupRequestWithBody(server string, vmId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:disable-backup", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceEnableAdditionalIPRequest calls the generic VirtualMachineServiceEnableAdditionalIP builder with application/json body -func NewVirtualMachineServiceEnableAdditionalIPRequest(server string, vmId string, body VirtualMachineServiceEnableAdditionalIPJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceEnableAdditionalIPRequestWithBody(server, vmId, "application/json", bodyReader) -} - -// NewVirtualMachineServiceEnableAdditionalIPRequestWithBody constructs an http.Request for the VirtualMachineServiceEnableAdditionalIP method, with any body, and a specified content type -func NewVirtualMachineServiceEnableAdditionalIPRequestWithBody(server string, vmId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:enable-additional-ip", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVirtualMachineServiceEnableBackupRequest calls the generic VirtualMachineServiceEnableBackup builder with application/json body -func NewVirtualMachineServiceEnableBackupRequest(server string, vmId string, body VirtualMachineServiceEnableBackupJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVirtualMachineServiceEnableBackupRequestWithBody(server, vmId, "application/json", bodyReader) -} - -// NewVirtualMachineServiceEnableBackupRequestWithBody constructs an http.Request for the VirtualMachineServiceEnableBackup method, with any body, and a specified content type -func NewVirtualMachineServiceEnableBackupRequestWithBody(server string, vmId string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vmId", vmId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/virtual-machines/%s:enable-backup", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVMTemplateServiceCreateVMTemplateRequest calls the generic VMTemplateServiceCreateVMTemplate builder with application/json body -func NewVMTemplateServiceCreateVMTemplateRequest(server string, body VMTemplateServiceCreateVMTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVMTemplateServiceCreateVMTemplateRequestWithBody(server, "application/json", bodyReader) -} - -// NewVMTemplateServiceCreateVMTemplateRequestWithBody constructs an http.Request for the VMTemplateServiceCreateVMTemplate method, with any body, and a specified content type -func NewVMTemplateServiceCreateVMTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/vmtemplate") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVMTemplateServiceDeleteVMTemplateRequest constructs an http.Request for the VMTemplateServiceDeleteVMTemplate method -func NewVMTemplateServiceDeleteVMTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/vmtemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVMTemplateServiceGetVMTemplateRequest constructs an http.Request for the VMTemplateServiceGetVMTemplate method -func NewVMTemplateServiceGetVMTemplateRequest(server string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/vmtemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewVMTemplateServiceUpdateVMTemplateRequest calls the generic VMTemplateServiceUpdateVMTemplate builder with application/json body -func NewVMTemplateServiceUpdateVMTemplateRequest(server string, id string, body VMTemplateServiceUpdateVMTemplateJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewVMTemplateServiceUpdateVMTemplateRequestWithBody(server, id, "application/json", bodyReader) -} - -// NewVMTemplateServiceUpdateVMTemplateRequestWithBody constructs an http.Request for the VMTemplateServiceUpdateVMTemplate method, with any body, and a specified content type -func NewVMTemplateServiceUpdateVMTemplateRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/vmtemplate/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewVMTemplateServiceListVMTemplatesRequest constructs an http.Request for the VMTemplateServiceListVMTemplates method -func NewVMTemplateServiceListVMTemplatesRequest(server string, params *VMTemplateServiceListVMTemplatesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/v1/vmtemplates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PageSize != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Search != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.NodeId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "nodeId", *params.NodeId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.PlatformId != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "platformId", *params.PlatformId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Distro != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "distro", *params.Distro, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err - } - return &ClientWithResponses{client}, nil -} - -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil - } -} - -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - - // WebhookServiceHandleWebhookWithBodyWithResponse Handle webhook events from payment providers (Stripe, PayPal, etc.) - // This endpoint receives webhook payloads and processes payment/subscription - // events Note: The actual implementation will read raw HTTP body and headers - // directly to support webhook signature verification - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). - WebhookServiceHandleWebhookWithBodyWithResponse(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebhookServiceHandleWebhookResponse, error) - - // WebhookServiceHandleWebhookWithResponse Handle webhook events from payment providers (Stripe, PayPal, etc.) - // This endpoint receives webhook payloads and processes payment/subscription - // events Note: The actual implementation will read raw HTTP body and headers - // directly to support webhook signature verification - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). - WebhookServiceHandleWebhookWithResponse(ctx context.Context, provider string, body WebhookServiceHandleWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhookServiceHandleWebhookResponse, error) - - // AddonServiceRemoveAddonWithResponse Remove an addon from a subscription - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with DELETE /v1/addon-subscriptions/{addonSubscriptionId} (the `AddonServiceRemoveAddon` operationId). - AddonServiceRemoveAddonWithResponse(ctx context.Context, addonSubscriptionId string, params *AddonServiceRemoveAddonParams, reqEditors ...RequestEditorFn) (*AddonServiceRemoveAddonResponse, error) - - // AddonServiceListAddonsWithResponse List available addons - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/addons (the `AddonServiceListAddons` operationId). - AddonServiceListAddonsWithResponse(ctx context.Context, params *AddonServiceListAddonsParams, reqEditors ...RequestEditorFn) (*AddonServiceListAddonsResponse, error) - - // AddonServiceCreateAddonWithBodyWithResponse Create an addon from a template addon - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). - AddonServiceCreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceCreateAddonResponse, error) - - // AddonServiceCreateAddonWithResponse Create an addon from a template addon - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). - AddonServiceCreateAddonWithResponse(ctx context.Context, body AddonServiceCreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceCreateAddonResponse, error) - - // AddonServiceDeleteAddonWithResponse Delete an addon (soft delete) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with DELETE /v1/addons/{id} (the `AddonServiceDeleteAddon` operationId). - AddonServiceDeleteAddonWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AddonServiceDeleteAddonResponse, error) - - // AddonServiceGetAddonWithResponse Get a specific addon with its prices - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/addons/{id} (the `AddonServiceGetAddon` operationId). - AddonServiceGetAddonWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AddonServiceGetAddonResponse, error) - - // AddonServiceUpdateAddonWithBodyWithResponse Update an addon (allows changing price and currency) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). - AddonServiceUpdateAddonWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceUpdateAddonResponse, error) - - // AddonServiceUpdateAddonWithResponse Update an addon (allows changing price and currency) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). - AddonServiceUpdateAddonWithResponse(ctx context.Context, id string, body AddonServiceUpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceUpdateAddonResponse, error) - - // AgentServiceListAgentsWithResponse performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceListAgentsWithResponse(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*AgentServiceListAgentsResponse, error) - - // AgentServiceCreateAgentWithBodyWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceCreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) - - // AgentServiceCreateAgentWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - AgentServiceCreateAgentWithResponse(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) - - // AgentServiceDeleteAgentWithResponse performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceDeleteAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceDeleteAgentResponse, error) - - // AgentServiceGetAgentWithResponse performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceGetAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceGetAgentResponse, error) - - // AgentServiceUpdateAgentWithBodyWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceUpdateAgentWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) - - // AgentServiceUpdateAgentWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - AgentServiceUpdateAgentWithResponse(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) - - // AgentServiceGenerateInstallCommandWithBodyWithResponse performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceGenerateInstallCommandWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGenerateInstallCommandResponse, error) - - // AgentServiceGenerateInstallCommandWithResponse performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - AgentServiceGenerateInstallCommandWithResponse(ctx context.Context, id string, body AgentServiceGenerateInstallCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGenerateInstallCommandResponse, error) - - // AgentServiceGeneratePeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceGeneratePeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) - - // AgentServiceGeneratePeeringConfigWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - AgentServiceGeneratePeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) - - // AgentServiceUploadInboundPeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - AgentServiceUploadInboundPeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) - - // AgentServiceUploadInboundPeeringConfigWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - AgentServiceUploadInboundPeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) - - // UserServiceChangePasswordWithBodyWithResponse performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceChangePasswordResponse, error) - - // UserServiceChangePasswordWithResponse performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceChangePasswordWithResponse(ctx context.Context, body UserServiceChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceChangePasswordResponse, error) - - // UserServiceForgotPasswordWithBodyWithResponse performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceForgotPasswordResponse, error) - - // UserServiceForgotPasswordWithResponse performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceForgotPasswordWithResponse(ctx context.Context, body UserServiceForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceForgotPasswordResponse, error) - - // UserServiceListLinkedIdentitiesWithResponse performs a GET /v1/auth/identities (the `UserServiceListLinkedIdentities` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceListLinkedIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceListLinkedIdentitiesResponse, error) - - // UserServiceUnlinkIdentityWithResponse performs a DELETE /v1/auth/identities/{provider} (the `UserServiceUnlinkIdentity` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceUnlinkIdentityWithResponse(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*UserServiceUnlinkIdentityResponse, error) - - // UserServiceLoginWithBodyWithResponse performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLoginResponse, error) - - // UserServiceLoginWithResponse performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceLoginWithResponse(ctx context.Context, body UserServiceLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLoginResponse, error) - - // UserServiceLoginMfaVerifyWithBodyWithResponse performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceLoginMfaVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLoginMfaVerifyResponse, error) - - // UserServiceLoginMfaVerifyWithResponse performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceLoginMfaVerifyWithResponse(ctx context.Context, body UserServiceLoginMfaVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLoginMfaVerifyResponse, error) - - // UserServiceLogoutWithBodyWithResponse performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLogoutResponse, error) - - // UserServiceLogoutWithResponse performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceLogoutWithResponse(ctx context.Context, body UserServiceLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLogoutResponse, error) - - // UserServiceRegenerateMfaBackupCodesWithBodyWithResponse performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceRegenerateMfaBackupCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceRegenerateMfaBackupCodesResponse, error) - - // UserServiceRegenerateMfaBackupCodesWithResponse performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceRegenerateMfaBackupCodesWithResponse(ctx context.Context, body UserServiceRegenerateMfaBackupCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceRegenerateMfaBackupCodesResponse, error) - - // UserServiceDisableMfaWithBodyWithResponse performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceDisableMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceDisableMfaResponse, error) - - // UserServiceDisableMfaWithResponse performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceDisableMfaWithResponse(ctx context.Context, body UserServiceDisableMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceDisableMfaResponse, error) - - // UserServiceEnrollMfaTotpWithBodyWithResponse performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceEnrollMfaTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceEnrollMfaTotpResponse, error) - - // UserServiceEnrollMfaTotpWithResponse performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceEnrollMfaTotpWithResponse(ctx context.Context, body UserServiceEnrollMfaTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceEnrollMfaTotpResponse, error) - - // UserServiceGetMfaStatusWithResponse performs a GET /v1/auth/mfa/status (the `UserServiceGetMfaStatus` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceGetMfaStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceGetMfaStatusResponse, error) - - // UserServiceVerifyMfaEnrollmentWithBodyWithResponse performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceVerifyMfaEnrollmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceVerifyMfaEnrollmentResponse, error) - - // UserServiceVerifyMfaEnrollmentWithResponse performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceVerifyMfaEnrollmentWithResponse(ctx context.Context, body UserServiceVerifyMfaEnrollmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceVerifyMfaEnrollmentResponse, error) - - // UserServiceRegisterUserWithBodyWithResponse performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceRegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceRegisterUserResponse, error) - - // UserServiceRegisterUserWithResponse performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceRegisterUserWithResponse(ctx context.Context, body UserServiceRegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceRegisterUserResponse, error) - - // UserServiceResendVerificationEmailWithBodyWithResponse performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceResendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceResendVerificationEmailResponse, error) - - // UserServiceResendVerificationEmailWithResponse performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceResendVerificationEmailWithResponse(ctx context.Context, body UserServiceResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceResendVerificationEmailResponse, error) - - // UserServiceResetPasswordWithBodyWithResponse performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceResetPasswordResponse, error) - - // UserServiceResetPasswordWithResponse performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceResetPasswordWithResponse(ctx context.Context, body UserServiceResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceResetPasswordResponse, error) - - // UserServiceGetActiveSessionsWithResponse performs a GET /v1/auth/sessions (the `UserServiceGetActiveSessions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceGetActiveSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceGetActiveSessionsResponse, error) - - // UserServiceSetPasswordWithBodyWithResponse performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceSetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceSetPasswordResponse, error) - - // UserServiceSetPasswordWithResponse performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceSetPasswordWithResponse(ctx context.Context, body UserServiceSetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceSetPasswordResponse, error) - - // UserServiceExchangeSSOCodeWithBodyWithResponse performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceExchangeSSOCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceExchangeSSOCodeResponse, error) - - // UserServiceExchangeSSOCodeWithResponse performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceExchangeSSOCodeWithResponse(ctx context.Context, body UserServiceExchangeSSOCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceExchangeSSOCodeResponse, error) - - // UserServiceCompleteSSOLinkWithBodyWithResponse performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceCompleteSSOLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceCompleteSSOLinkResponse, error) - - // UserServiceCompleteSSOLinkWithResponse performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceCompleteSSOLinkWithResponse(ctx context.Context, body UserServiceCompleteSSOLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceCompleteSSOLinkResponse, error) - - // UserServiceVerifyEmailWithResponse performs a GET /v1/auth/verify-email (the `UserServiceVerifyEmail` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceVerifyEmailWithResponse(ctx context.Context, params *UserServiceVerifyEmailParams, reqEditors ...RequestEditorFn) (*UserServiceVerifyEmailResponse, error) - - // ChatServiceChatWithBodyWithResponse Chat provides a non-streaming chat endpoint - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). - ChatServiceChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatServiceChatResponse, error) - - // ChatServiceChatWithResponse Chat provides a non-streaming chat endpoint - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). - ChatServiceChatWithResponse(ctx context.Context, body ChatServiceChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatServiceChatResponse, error) - - // ChatServiceChatAnonymousWithBodyWithResponse ChatAnonymous provides a non-streaming chat endpoint for anonymous users - // Session ID is extracted from the cookie header (managed by the frontend) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). - ChatServiceChatAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatServiceChatAnonymousResponse, error) - - // ChatServiceChatAnonymousWithResponse ChatAnonymous provides a non-streaming chat endpoint for anonymous users - // Session ID is extracted from the cookie header (managed by the frontend) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). - ChatServiceChatAnonymousWithResponse(ctx context.Context, body ChatServiceChatAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatServiceChatAnonymousResponse, error) - - // ChatServiceListConversationsWithResponse ListConversations returns all conversation IDs for the authenticated user - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/chat/conversations (the `ChatServiceListConversations` operationId). - ChatServiceListConversationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ChatServiceListConversationsResponse, error) - - // ChatServiceDeleteConversationWithResponse DeleteConversation marks a conversation as deleted (soft delete) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with DELETE /v1/chat/conversations/{conversationId} (the `ChatServiceDeleteConversation` operationId). - ChatServiceDeleteConversationWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ChatServiceDeleteConversationResponse, error) - - // ChatServiceGetConversationHistoryWithResponse GetConversationHistory returns the full message history for a conversation - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/chat/conversations/{conversationId}/history (the `ChatServiceGetConversationHistory` operationId). - ChatServiceGetConversationHistoryWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ChatServiceGetConversationHistoryResponse, error) - - // ClientDashboardServiceGetClientDashboardBillingWithResponse performs a GET /v1/client/dashboard/billing (the `ClientDashboardServiceGetClientDashboardBilling` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ClientDashboardServiceGetClientDashboardBillingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientDashboardServiceGetClientDashboardBillingResponse, error) - - // ClientDashboardServiceGetClientDashboardSummaryWithResponse performs a GET /v1/client/dashboard/summary (the `ClientDashboardServiceGetClientDashboardSummary` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ClientDashboardServiceGetClientDashboardSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientDashboardServiceGetClientDashboardSummaryResponse, error) - - // ClientProviderReviewServiceListClientProviderReviewAssetsWithResponse performs a GET /v1/client/provider-review-assets (the `ClientProviderReviewServiceListClientProviderReviewAssets` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceListClientProviderReviewAssetsWithResponse(ctx context.Context, params *ClientProviderReviewServiceListClientProviderReviewAssetsParams, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceListClientProviderReviewAssetsResponse, error) - - // CloudInitTemplateServiceCreateCloudInitTemplateWithBodyWithResponse performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceCreateCloudInitTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceCreateCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceCreateCloudInitTemplateWithResponse performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceCreateCloudInitTemplateWithResponse(ctx context.Context, body CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceCreateCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceDeleteCloudInitTemplateWithResponse performs a DELETE /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceDeleteCloudInitTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceDeleteCloudInitTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceDeleteCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceGetCloudInitTemplateWithResponse performs a GET /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceGetCloudInitTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceGetCloudInitTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceGetCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceUpdateCloudInitTemplateWithBodyWithResponse performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceUpdateCloudInitTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceUpdateCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceUpdateCloudInitTemplateWithResponse performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceUpdateCloudInitTemplateWithResponse(ctx context.Context, id string, body CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceUpdateCloudInitTemplateResponse, error) - - // CloudInitTemplateServiceListCloudInitTemplatesWithResponse performs a GET /v1/cloudinittemplates (the `CloudInitTemplateServiceListCloudInitTemplates` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitTemplateServiceListCloudInitTemplatesWithResponse(ctx context.Context, params *CloudInitTemplateServiceListCloudInitTemplatesParams, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceListCloudInitTemplatesResponse, error) - - // CloudInitUserDataServiceListCloudInitUserDataWithResponse performs a GET /v1/cloudinituserdata (the `CloudInitUserDataServiceListCloudInitUserData` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceListCloudInitUserDataWithResponse(ctx context.Context, params *CloudInitUserDataServiceListCloudInitUserDataParams, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceListCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceCreateCloudInitUserDataWithBodyWithResponse performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceCreateCloudInitUserDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceCreateCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceCreateCloudInitUserDataWithResponse performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceCreateCloudInitUserDataWithResponse(ctx context.Context, body CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceCreateCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceDeleteCloudInitUserDataWithResponse performs a DELETE /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceDeleteCloudInitUserData` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceDeleteCloudInitUserDataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceDeleteCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceGetCloudInitUserDataWithResponse performs a GET /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceGetCloudInitUserData` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceGetCloudInitUserDataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceGetCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceUpdateCloudInitUserDataWithBodyWithResponse performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceUpdateCloudInitUserDataWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceUpdateCloudInitUserDataResponse, error) - - // CloudInitUserDataServiceUpdateCloudInitUserDataWithResponse performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - CloudInitUserDataServiceUpdateCloudInitUserDataWithResponse(ctx context.Context, id string, body CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceUpdateCloudInitUserDataResponse, error) - - // RegionServiceListCountriesCitiesWithResponse performs a GET /v1/countries-cities (the `RegionServiceListCountriesCities` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceListCountriesCitiesWithResponse(ctx context.Context, params *RegionServiceListCountriesCitiesParams, reqEditors ...RequestEditorFn) (*RegionServiceListCountriesCitiesResponse, error) - - // CreditServiceGetCreditBalanceWithResponse performs a GET /v1/credits/balance (the `CreditServiceGetCreditBalance` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CreditServiceGetCreditBalanceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreditServiceGetCreditBalanceResponse, error) - - // CreditServiceListCreditLedgerEntriesWithResponse performs a GET /v1/credits/ledger (the `CreditServiceListCreditLedgerEntries` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - CreditServiceListCreditLedgerEntriesWithResponse(ctx context.Context, params *CreditServiceListCreditLedgerEntriesParams, reqEditors ...RequestEditorFn) (*CreditServiceListCreditLedgerEntriesResponse, error) - - // CreditServicePurchaseCreditsWithBodyWithResponse performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - CreditServicePurchaseCreditsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreditServicePurchaseCreditsResponse, error) - - // CreditServicePurchaseCreditsWithResponse performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - CreditServicePurchaseCreditsWithResponse(ctx context.Context, body CreditServicePurchaseCreditsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreditServicePurchaseCreditsResponse, error) - - // RegionServiceListDatacentersWithResponse performs a GET /v1/datacenters (the `RegionServiceListDatacenters` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceListDatacentersWithResponse(ctx context.Context, params *RegionServiceListDatacentersParams, reqEditors ...RequestEditorFn) (*RegionServiceListDatacentersResponse, error) - - // DomainServiceGetDomainWithResponse performs a GET /v1/domain (the `DomainServiceGetDomain` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - DomainServiceGetDomainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DomainServiceGetDomainResponse, error) - - // DomainServiceCreateDomainWithBodyWithResponse performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - DomainServiceCreateDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DomainServiceCreateDomainResponse, error) - - // DomainServiceCreateDomainWithResponse performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - DomainServiceCreateDomainWithResponse(ctx context.Context, body DomainServiceCreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*DomainServiceCreateDomainResponse, error) - - // DomainServiceVerifyDomainWithResponse performs a GET /v1/domain/verify/{id} (the `DomainServiceVerifyDomain` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - DomainServiceVerifyDomainWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DomainServiceVerifyDomainResponse, error) - - // DomainServiceDeleteDomainWithResponse performs a DELETE /v1/domain/{id} (the `DomainServiceDeleteDomain` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - DomainServiceDeleteDomainWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DomainServiceDeleteDomainResponse, error) - - // EnvironmentVariableServiceListEnvironmentVariablesWithResponse performs a GET /v1/environment-variables (the `EnvironmentVariableServiceListEnvironmentVariables` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceListEnvironmentVariablesWithResponse(ctx context.Context, params *EnvironmentVariableServiceListEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceListEnvironmentVariablesResponse, error) - - // EnvironmentVariableServiceCreateEnvironmentVariableWithBodyWithResponse performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceCreateEnvironmentVariableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceCreateEnvironmentVariableResponse, error) - - // EnvironmentVariableServiceCreateEnvironmentVariableWithResponse performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceCreateEnvironmentVariableWithResponse(ctx context.Context, body EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceCreateEnvironmentVariableResponse, error) - - // EnvironmentVariableServiceDeleteEnvironmentVariableWithResponse performs a DELETE /v1/environment-variables/{id} (the `EnvironmentVariableServiceDeleteEnvironmentVariable` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceDeleteEnvironmentVariableWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceDeleteEnvironmentVariableResponse, error) - - // EnvironmentVariableServiceGetEnvironmentVariableWithResponse performs a GET /v1/environment-variables/{id} (the `EnvironmentVariableServiceGetEnvironmentVariable` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceGetEnvironmentVariableWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceGetEnvironmentVariableResponse, error) - - // EnvironmentVariableServiceUpdateEnvironmentVariableWithBodyWithResponse performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceUpdateEnvironmentVariableWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceUpdateEnvironmentVariableResponse, error) - - // EnvironmentVariableServiceUpdateEnvironmentVariableWithResponse performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - EnvironmentVariableServiceUpdateEnvironmentVariableWithResponse(ctx context.Context, id string, body EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceUpdateEnvironmentVariableResponse, error) - - // ExchangeRateServiceConvertCurrencyWithBodyWithResponse Convert an amount from USD to a target currency - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). - ExchangeRateServiceConvertCurrencyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeRateServiceConvertCurrencyResponse, error) - - // ExchangeRateServiceConvertCurrencyWithResponse Convert an amount from USD to a target currency - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). - ExchangeRateServiceConvertCurrencyWithResponse(ctx context.Context, body ExchangeRateServiceConvertCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExchangeRateServiceConvertCurrencyResponse, error) - - // ExchangeRateServiceListSupportedCurrenciesWithResponse List all supported currency codes - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/exchange-rate/currencies (the `ExchangeRateServiceListSupportedCurrencies` operationId). - ExchangeRateServiceListSupportedCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExchangeRateServiceListSupportedCurrenciesResponse, error) - - // ExchangeRateServiceGetExchangeRateWithResponse Get the current exchange rate for a specific currency (from USD) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/exchange-rate/rate/{currencyCode} (the `ExchangeRateServiceGetExchangeRate` operationId). - ExchangeRateServiceGetExchangeRateWithResponse(ctx context.Context, currencyCode string, reqEditors ...RequestEditorFn) (*ExchangeRateServiceGetExchangeRateResponse, error) - - // ExchangeRateServiceGetAllExchangeRatesWithResponse Get all exchange rates at once (returns map of currency codes to rates) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/exchange-rate/rates (the `ExchangeRateServiceGetAllExchangeRates` operationId). - ExchangeRateServiceGetAllExchangeRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExchangeRateServiceGetAllExchangeRatesResponse, error) - - // FirewallServiceListFirewallAddressGroupsWithResponse performs a GET /v1/firewall/address-groups (the `FirewallServiceListFirewallAddressGroups` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceListFirewallAddressGroupsWithResponse(ctx context.Context, params *FirewallServiceListFirewallAddressGroupsParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallAddressGroupsResponse, error) - - // FirewallServiceCreateFirewallAddressGroupWithBodyWithResponse performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallAddressGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallAddressGroupResponse, error) - - // FirewallServiceCreateFirewallAddressGroupWithResponse performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallAddressGroupWithResponse(ctx context.Context, body FirewallServiceCreateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallAddressGroupResponse, error) - - // FirewallServiceDeleteFirewallAddressGroupWithResponse performs a DELETE /v1/firewall/address-groups/{id} (the `FirewallServiceDeleteFirewallAddressGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceDeleteFirewallAddressGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallAddressGroupResponse, error) - - // FirewallServiceGetFirewallAddressGroupWithResponse performs a GET /v1/firewall/address-groups/{id} (the `FirewallServiceGetFirewallAddressGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceGetFirewallAddressGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallAddressGroupResponse, error) - - // FirewallServiceUpdateFirewallAddressGroupWithBodyWithResponse performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallAddressGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallAddressGroupResponse, error) - - // FirewallServiceUpdateFirewallAddressGroupWithResponse performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallAddressGroupWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallAddressGroupResponse, error) - - // FirewallServiceDeleteFirewallRuleWithResponse performs a DELETE /v1/firewall/rules/{id} (the `FirewallServiceDeleteFirewallRule` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceDeleteFirewallRuleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallRuleResponse, error) - - // FirewallServiceGetFirewallRuleWithResponse performs a GET /v1/firewall/rules/{id} (the `FirewallServiceGetFirewallRule` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceGetFirewallRuleWithResponse(ctx context.Context, id string, params *FirewallServiceGetFirewallRuleParams, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallRuleResponse, error) - - // FirewallServiceUpdateFirewallRuleWithBodyWithResponse performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallRuleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleResponse, error) - - // FirewallServiceUpdateFirewallRuleWithResponse performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallRuleWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleResponse, error) - - // FirewallServiceMoveFirewallRuleWithBodyWithResponse performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceMoveFirewallRuleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceMoveFirewallRuleResponse, error) - - // FirewallServiceMoveFirewallRuleWithResponse performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceMoveFirewallRuleWithResponse(ctx context.Context, id string, body FirewallServiceMoveFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceMoveFirewallRuleResponse, error) - - // FirewallServiceListFirewallRuleSetsWithResponse performs a GET /v1/firewall/rulesets (the `FirewallServiceListFirewallRuleSets` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceListFirewallRuleSetsWithResponse(ctx context.Context, params *FirewallServiceListFirewallRuleSetsParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallRuleSetsResponse, error) - - // FirewallServiceCreateFirewallRuleSetWithBodyWithResponse performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallRuleSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleSetResponse, error) - - // FirewallServiceCreateFirewallRuleSetWithResponse performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallRuleSetWithResponse(ctx context.Context, body FirewallServiceCreateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleSetResponse, error) - - // FirewallServiceDeleteFirewallRuleSetWithResponse performs a DELETE /v1/firewall/rulesets/{id} (the `FirewallServiceDeleteFirewallRuleSet` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceDeleteFirewallRuleSetWithResponse(ctx context.Context, id string, params *FirewallServiceDeleteFirewallRuleSetParams, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallRuleSetResponse, error) - - // FirewallServiceGetFirewallRuleSetWithResponse performs a GET /v1/firewall/rulesets/{id} (the `FirewallServiceGetFirewallRuleSet` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceGetFirewallRuleSetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallRuleSetResponse, error) - - // FirewallServiceUpdateFirewallRuleSetWithBodyWithResponse performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallRuleSetWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleSetResponse, error) - - // FirewallServiceUpdateFirewallRuleSetWithResponse performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceUpdateFirewallRuleSetWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleSetResponse, error) - - // FirewallServiceListFirewallRulesWithResponse performs a GET /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceListFirewallRules` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceListFirewallRulesWithResponse(ctx context.Context, rulesetId string, params *FirewallServiceListFirewallRulesParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallRulesResponse, error) - - // FirewallServiceCreateFirewallRuleWithBodyWithResponse performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallRuleWithBodyWithResponse(ctx context.Context, rulesetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleResponse, error) - - // FirewallServiceCreateFirewallRuleWithResponse performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - FirewallServiceCreateFirewallRuleWithResponse(ctx context.Context, rulesetId string, body FirewallServiceCreateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleResponse, error) - - // GroupServiceListGroupsWithResponse performs a GET /v1/groups (the `GroupServiceListGroups` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceListGroupsWithResponse(ctx context.Context, params *GroupServiceListGroupsParams, reqEditors ...RequestEditorFn) (*GroupServiceListGroupsResponse, error) - - // GroupServiceCreateGroupWithBodyWithResponse performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceCreateGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceCreateGroupResponse, error) - - // GroupServiceCreateGroupWithResponse performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - GroupServiceCreateGroupWithResponse(ctx context.Context, body GroupServiceCreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceCreateGroupResponse, error) - - // GroupServiceAddServiceAccountToGroupWithBodyWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceAddServiceAccountToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) - - // GroupServiceAddServiceAccountToGroupWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - GroupServiceAddServiceAccountToGroupWithResponse(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) - - // GroupServiceAddUserToGroupWithBodyWithResponse performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceAddUserToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddUserToGroupResponse, error) - - // GroupServiceAddUserToGroupWithResponse performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - GroupServiceAddUserToGroupWithResponse(ctx context.Context, body GroupServiceAddUserToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddUserToGroupResponse, error) - - // GroupServiceRemoveServiceAccountFromGroupWithResponse performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceRemoveServiceAccountFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) - - // GroupServiceRemoveUserFromGroupWithResponse performs a DELETE /v1/groups/remove-user (the `GroupServiceRemoveUserFromGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceRemoveUserFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveUserFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveUserFromGroupResponse, error) - - // GroupServiceDeleteGroupWithResponse performs a DELETE /v1/groups/{id} (the `GroupServiceDeleteGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceDeleteGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GroupServiceDeleteGroupResponse, error) - - // GroupServiceGetGroupWithResponse performs a GET /v1/groups/{id} (the `GroupServiceGetGroup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceGetGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GroupServiceGetGroupResponse, error) - - // GroupServiceUpdateGroupWithBodyWithResponse performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - GroupServiceUpdateGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceUpdateGroupResponse, error) - - // GroupServiceUpdateGroupWithResponse performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - GroupServiceUpdateGroupWithResponse(ctx context.Context, id string, body GroupServiceUpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceUpdateGroupResponse, error) - - // MetadataServiceHealthCheckWithResponse performs a GET /v1/healthz (the `MetadataServiceHealthCheck` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MetadataServiceHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceHealthCheckResponse, error) - - // InstantAppServiceListInstantAppsWithResponse performs a GET /v1/instantapps (the `InstantAppServiceListInstantApps` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InstantAppServiceListInstantAppsWithResponse(ctx context.Context, params *InstantAppServiceListInstantAppsParams, reqEditors ...RequestEditorFn) (*InstantAppServiceListInstantAppsResponse, error) - - // InstantAppServiceGetInstantApp2WithResponse performs a GET /v1/instantapps/slug/{slug} (the `InstantAppServiceGetInstantApp2` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InstantAppServiceGetInstantApp2WithResponse(ctx context.Context, slug string, params *InstantAppServiceGetInstantApp2Params, reqEditors ...RequestEditorFn) (*InstantAppServiceGetInstantApp2Response, error) - - // InstantAppServiceGetInstantAppWithResponse performs a GET /v1/instantapps/{id} (the `InstantAppServiceGetInstantApp` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InstantAppServiceGetInstantAppWithResponse(ctx context.Context, id string, params *InstantAppServiceGetInstantAppParams, reqEditors ...RequestEditorFn) (*InstantAppServiceGetInstantAppResponse, error) - - // InviteServiceListInvitesWithResponse performs a GET /v1/invites (the `InviteServiceListInvites` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceListInvitesWithResponse(ctx context.Context, params *InviteServiceListInvitesParams, reqEditors ...RequestEditorFn) (*InviteServiceListInvitesResponse, error) - - // InviteServiceUpdateInviteWithBodyWithResponse performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceUpdateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteServiceUpdateInviteResponse, error) - - // InviteServiceUpdateInviteWithResponse performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - InviteServiceUpdateInviteWithResponse(ctx context.Context, body InviteServiceUpdateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteServiceUpdateInviteResponse, error) - - // InviteServiceCreateInviteWithBodyWithResponse performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceCreateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteServiceCreateInviteResponse, error) - - // InviteServiceCreateInviteWithResponse performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - InviteServiceCreateInviteWithResponse(ctx context.Context, body InviteServiceCreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteServiceCreateInviteResponse, error) - - // InviteServiceAcceptInviteWithResponse performs a GET /v1/invites/accept (the `InviteServiceAcceptInvite` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceAcceptInviteWithResponse(ctx context.Context, params *InviteServiceAcceptInviteParams, reqEditors ...RequestEditorFn) (*InviteServiceAcceptInviteResponse, error) - - // InviteServiceDeclineInviteWithResponse performs a GET /v1/invites/decline (the `InviteServiceDeclineInvite` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceDeclineInviteWithResponse(ctx context.Context, params *InviteServiceDeclineInviteParams, reqEditors ...RequestEditorFn) (*InviteServiceDeclineInviteResponse, error) - - // InviteServiceListMyInvitesWithResponse performs a GET /v1/invites/me (the `InviteServiceListMyInvites` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceListMyInvitesWithResponse(ctx context.Context, params *InviteServiceListMyInvitesParams, reqEditors ...RequestEditorFn) (*InviteServiceListMyInvitesResponse, error) - - // InviteServiceResendInviteWithResponse performs a POST /v1/invites/resend/{inviteId} (the `InviteServiceResendInvite` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceResendInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*InviteServiceResendInviteResponse, error) - - // InviteServiceDeleteInviteWithResponse performs a DELETE /v1/invites/{id} (the `InviteServiceDeleteInvite` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - InviteServiceDeleteInviteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InviteServiceDeleteInviteResponse, error) - - // InvoiceServiceListInvoicesWithResponse ListInvoices lists invoices for a subscription or organization - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/invoices (the `InvoiceServiceListInvoices` operationId). - InvoiceServiceListInvoicesWithResponse(ctx context.Context, params *InvoiceServiceListInvoicesParams, reqEditors ...RequestEditorFn) (*InvoiceServiceListInvoicesResponse, error) - - // InvoiceServiceGetInvoiceWithResponse GetInvoice retrieves a single invoice with line items - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/invoices/{invoiceId} (the `InvoiceServiceGetInvoice` operationId). - InvoiceServiceGetInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*InvoiceServiceGetInvoiceResponse, error) - - // IPAMServiceListAllocationsWithResponse IP Allocation (read-only - allocations are managed automatically) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/ipam/allocations (the `IPAMServiceListAllocations` operationId). - IPAMServiceListAllocationsWithResponse(ctx context.Context, params *IPAMServiceListAllocationsParams, reqEditors ...RequestEditorFn) (*IPAMServiceListAllocationsResponse, error) - - // IPAMServiceListNetworksWithResponse performs a GET /v1/ipam/networks (the `IPAMServiceListNetworks` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceListNetworksWithResponse(ctx context.Context, params *IPAMServiceListNetworksParams, reqEditors ...RequestEditorFn) (*IPAMServiceListNetworksResponse, error) - - // IPAMServiceCreateNetworkWithBodyWithResponse IPAM Network management - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). - IPAMServiceCreateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceCreateNetworkResponse, error) - - // IPAMServiceCreateNetworkWithResponse IPAM Network management - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). - IPAMServiceCreateNetworkWithResponse(ctx context.Context, body IPAMServiceCreateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceCreateNetworkResponse, error) - - // IPAMServiceDeleteNetworkWithResponse performs a DELETE /v1/ipam/networks/{id} (the `IPAMServiceDeleteNetwork` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceDeleteNetworkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceDeleteNetworkResponse, error) - - // IPAMServiceGetNetworkWithResponse performs a GET /v1/ipam/networks/{id} (the `IPAMServiceGetNetwork` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceGetNetworkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceGetNetworkResponse, error) - - // IPAMServiceUpdateNetworkWithBodyWithResponse performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceUpdateNetworkWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceUpdateNetworkResponse, error) - - // IPAMServiceUpdateNetworkWithResponse performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - IPAMServiceUpdateNetworkWithResponse(ctx context.Context, id string, body IPAMServiceUpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceUpdateNetworkResponse, error) - - // IPAMServiceAssignNetworkToNodeWithBodyWithResponse Node-Network assignment - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). - IPAMServiceAssignNetworkToNodeWithBodyWithResponse(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAssignNetworkToNodeResponse, error) - - // IPAMServiceAssignNetworkToNodeWithResponse Node-Network assignment - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). - IPAMServiceAssignNetworkToNodeWithResponse(ctx context.Context, networkId string, body IPAMServiceAssignNetworkToNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAssignNetworkToNodeResponse, error) - - // IPAMServiceListNetworkNodesWithResponse performs a GET /v1/ipam/networks/{networkId}/nodes (the `IPAMServiceListNetworkNodes` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceListNetworkNodesWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*IPAMServiceListNetworkNodesResponse, error) - - // IPAMServiceGetNodeNetworkWithResponse performs a GET /v1/ipam/nodes/{nodeId}/network (the `IPAMServiceGetNodeNetwork` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceGetNodeNetworkWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*IPAMServiceGetNodeNetworkResponse, error) - - // IPAMServiceUnassignNetworkFromNodeWithResponse performs a POST /v1/ipam/nodes/{nodeId}/unassign-network (the `IPAMServiceUnassignNetworkFromNode` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceUnassignNetworkFromNodeWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*IPAMServiceUnassignNetworkFromNodeResponse, error) - - // IPAMServiceListPrefixesWithResponse performs a GET /v1/ipam/prefixes (the `IPAMServiceListPrefixes` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceListPrefixesWithResponse(ctx context.Context, params *IPAMServiceListPrefixesParams, reqEditors ...RequestEditorFn) (*IPAMServiceListPrefixesResponse, error) - - // IPAMServiceCreatePrefixWithBodyWithResponse Prefix management - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). - IPAMServiceCreatePrefixWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceCreatePrefixResponse, error) - - // IPAMServiceCreatePrefixWithResponse Prefix management - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). - IPAMServiceCreatePrefixWithResponse(ctx context.Context, body IPAMServiceCreatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceCreatePrefixResponse, error) - - // IPAMServiceDeletePrefixWithResponse performs a DELETE /v1/ipam/prefixes/{id} (the `IPAMServiceDeletePrefix` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceDeletePrefixWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceDeletePrefixResponse, error) - - // IPAMServiceGetPrefixWithResponse performs a GET /v1/ipam/prefixes/{id} (the `IPAMServiceGetPrefix` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceGetPrefixWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceGetPrefixResponse, error) - - // IPAMServiceUpdatePrefixWithBodyWithResponse performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceUpdatePrefixWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceUpdatePrefixResponse, error) - - // IPAMServiceUpdatePrefixWithResponse performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - IPAMServiceUpdatePrefixWithResponse(ctx context.Context, id string, body IPAMServiceUpdatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceUpdatePrefixResponse, error) - - // IPAMServiceListAvailableIPsWithResponse performs a GET /v1/ipam/prefixes/{prefixId}/available-ips (the `IPAMServiceListAvailableIPs` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceListAvailableIPsWithResponse(ctx context.Context, prefixId string, params *IPAMServiceListAvailableIPsParams, reqEditors ...RequestEditorFn) (*IPAMServiceListAvailableIPsResponse, error) - - // IPAMServiceAddReservedIPWithBodyWithResponse IP Reservation (manage reserved_ips array in prefix) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). - IPAMServiceAddReservedIPWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedIPResponse, error) - - // IPAMServiceAddReservedIPWithResponse IP Reservation (manage reserved_ips array in prefix) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). - IPAMServiceAddReservedIPWithResponse(ctx context.Context, prefixId string, body IPAMServiceAddReservedIPJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedIPResponse, error) - - // IPAMServiceClearAllPrefixReservedIPsWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceClearAllPrefixReservedIPsWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceClearAllPrefixReservedIPsResponse, error) - - // IPAMServiceClearAllPrefixReservedIPsWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - IPAMServiceClearAllPrefixReservedIPsWithResponse(ctx context.Context, prefixId string, body IPAMServiceClearAllPrefixReservedIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceClearAllPrefixReservedIPsResponse, error) - - // IPAMServiceReserveAllPrefixIPsWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceReserveAllPrefixIPsWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceReserveAllPrefixIPsResponse, error) - - // IPAMServiceReserveAllPrefixIPsWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - IPAMServiceReserveAllPrefixIPsWithResponse(ctx context.Context, prefixId string, body IPAMServiceReserveAllPrefixIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceReserveAllPrefixIPsResponse, error) - - // IPAMServiceRemoveReservedIPWithResponse performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress} (the `IPAMServiceRemoveReservedIP` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceRemoveReservedIPWithResponse(ctx context.Context, prefixId string, ipAddress string, reqEditors ...RequestEditorFn) (*IPAMServiceRemoveReservedIPResponse, error) - - // IPAMServiceRemoveReservedPrefixWithResponse performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceRemoveReservedPrefix` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceRemoveReservedPrefixWithResponse(ctx context.Context, prefixId string, params *IPAMServiceRemoveReservedPrefixParams, reqEditors ...RequestEditorFn) (*IPAMServiceRemoveReservedPrefixResponse, error) - - // IPAMServiceAddReservedPrefixWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - IPAMServiceAddReservedPrefixWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedPrefixResponse, error) - - // IPAMServiceAddReservedPrefixWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - IPAMServiceAddReservedPrefixWithResponse(ctx context.Context, prefixId string, body IPAMServiceAddReservedPrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedPrefixResponse, error) - - // IPAMServiceGetPrefixUtilizationWithResponse Utility - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/ipam/prefixes/{prefixId}/utilization (the `IPAMServiceGetPrefixUtilization` operationId). - IPAMServiceGetPrefixUtilizationWithResponse(ctx context.Context, prefixId string, reqEditors ...RequestEditorFn) (*IPAMServiceGetPrefixUtilizationResponse, error) - - // MarketplaceServiceListAvailableAddonsWithResponse performs a GET /v1/marketplace/addons (the `MarketplaceServiceListAvailableAddons` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceListAvailableAddonsWithResponse(ctx context.Context, params *MarketplaceServiceListAvailableAddonsParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailableAddonsResponse, error) - - // MarketplaceServiceListAvailablePlansWithResponse performs a GET /v1/marketplace/plans (the `MarketplaceServiceListAvailablePlans` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceListAvailablePlansWithResponse(ctx context.Context, params *MarketplaceServiceListAvailablePlansParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailablePlansResponse, error) - - // MarketplaceServiceGetMarketplacePlanWithResponse performs a GET /v1/marketplace/plans/{planId} (the `MarketplaceServiceGetMarketplacePlan` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceGetMarketplacePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*MarketplaceServiceGetMarketplacePlanResponse, error) - - // MarketplaceServiceListMarketplaceProviderDirectoryWithResponse performs a GET /v1/marketplace/provider-directory (the `MarketplaceServiceListMarketplaceProviderDirectory` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceListMarketplaceProviderDirectoryWithResponse(ctx context.Context, params *MarketplaceServiceListMarketplaceProviderDirectoryParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListMarketplaceProviderDirectoryResponse, error) - - // MarketplaceServiceListProvidersWithResponse performs a GET /v1/marketplace/providers (the `MarketplaceServiceListProviders` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceListProvidersWithResponse(ctx context.Context, params *MarketplaceServiceListProvidersParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListProvidersResponse, error) - - // MarketplaceServiceGetProviderWithResponse performs a GET /v1/marketplace/providers/{providerId} (the `MarketplaceServiceGetProvider` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceGetProviderWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*MarketplaceServiceGetProviderResponse, error) - - // MarketplaceServiceListAvailableRegionsWithResponse performs a GET /v1/marketplace/regions (the `MarketplaceServiceListAvailableRegions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceListAvailableRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailableRegionsResponse, error) - - // MarketplaceServiceSearchMarketplaceWithBodyWithResponse performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - MarketplaceServiceSearchMarketplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceServiceSearchMarketplaceResponse, error) - - // MarketplaceServiceSearchMarketplaceWithResponse performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - MarketplaceServiceSearchMarketplaceWithResponse(ctx context.Context, body MarketplaceServiceSearchMarketplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceServiceSearchMarketplaceResponse, error) - - // MetricServiceListMetricsWithResponse List all available metrics - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/metrics (the `MetricServiceListMetrics` operationId). - MetricServiceListMetricsWithResponse(ctx context.Context, params *MetricServiceListMetricsParams, reqEditors ...RequestEditorFn) (*MetricServiceListMetricsResponse, error) - - // MetricsCredentialServiceListMetricsWriteCredentialsWithResponse performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MetricsCredentialServiceListMetricsWriteCredentialsWithResponse(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) - - // MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) - - // MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) - - // MetricsCredentialServiceRevokeMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - MetricsCredentialServiceRevokeMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRevokeMetricsWriteCredentialResponse, error) - - // MetricsCredentialServiceRevokeMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - MetricsCredentialServiceRevokeMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRevokeMetricsWriteCredentialResponse, error) - - // MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) - - // MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) - - // MetricServiceGetMetricWithResponse Get a specific metric by ID or code - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/metrics/{id} (the `MetricServiceGetMetric` operationId). - MetricServiceGetMetricWithResponse(ctx context.Context, id string, params *MetricServiceGetMetricParams, reqEditors ...RequestEditorFn) (*MetricServiceGetMetricResponse, error) - - // NodeServiceCreateNodeWithBodyWithResponse performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - NodeServiceCreateNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceCreateNodeResponse, error) - - // NodeServiceCreateNodeWithResponse performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - NodeServiceCreateNodeWithResponse(ctx context.Context, body NodeServiceCreateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceCreateNodeResponse, error) - - // NodePlacementServiceGetNodePlacementPolicyWithResponse performs a GET /v1/node-placement-policy (the `NodePlacementServiceGetNodePlacementPolicy` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - NodePlacementServiceGetNodePlacementPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*NodePlacementServiceGetNodePlacementPolicyResponse, error) - - // NodePlacementServiceUpdateNodePlacementPolicyWithBodyWithResponse performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - NodePlacementServiceUpdateNodePlacementPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodePlacementServiceUpdateNodePlacementPolicyResponse, error) - - // NodePlacementServiceUpdateNodePlacementPolicyWithResponse performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - NodePlacementServiceUpdateNodePlacementPolicyWithResponse(ctx context.Context, body NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*NodePlacementServiceUpdateNodePlacementPolicyResponse, error) - - // NodeServiceValidateNodeTopologyWithBodyWithResponse Dedicated CPU cores: parse-preview of a topology paste without persisting. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). - NodeServiceValidateNodeTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceValidateNodeTopologyResponse, error) - - // NodeServiceValidateNodeTopologyWithResponse Dedicated CPU cores: parse-preview of a topology paste without persisting. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). - NodeServiceValidateNodeTopologyWithResponse(ctx context.Context, body NodeServiceValidateNodeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceValidateNodeTopologyResponse, error) - - // NodeServiceDeleteNodeWithResponse performs a DELETE /v1/node/{id} (the `NodeServiceDeleteNode` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - NodeServiceDeleteNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceDeleteNodeResponse, error) - - // NodeServiceGetNodeWithResponse performs a GET /v1/node/{id} (the `NodeServiceGetNode` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - NodeServiceGetNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceGetNodeResponse, error) - - // NodeServiceUpdateNodeWithBodyWithResponse performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - NodeServiceUpdateNodeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceUpdateNodeResponse, error) - - // NodeServiceUpdateNodeWithResponse performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - NodeServiceUpdateNodeWithResponse(ctx context.Context, id string, body NodeServiceUpdateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceUpdateNodeResponse, error) - - // NodeServiceGetNodeCPUMapWithResponse Dedicated CPU cores: full topology + per-CPU occupancy for the node - // topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3). - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/node/{id}/cpu-map (the `NodeServiceGetNodeCPUMap` operationId). - NodeServiceGetNodeCPUMapWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceGetNodeCPUMapResponse, error) - - // NodeServiceListNodesWithResponse performs a GET /v1/nodes (the `NodeServiceListNodes` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - NodeServiceListNodesWithResponse(ctx context.Context, params *NodeServiceListNodesParams, reqEditors ...RequestEditorFn) (*NodeServiceListNodesResponse, error) - - // OAuth2ServiceAuthorizeWithResponse Authorize initiates the OAuth2 authorization flow - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/oauth2/authorize (the `OAuth2ServiceAuthorize` operationId). - OAuth2ServiceAuthorizeWithResponse(ctx context.Context, params *OAuth2ServiceAuthorizeParams, reqEditors ...RequestEditorFn) (*OAuth2ServiceAuthorizeResponse, error) - - // OAuth2ServiceListClientsWithResponse ListClients lists OAuth2 clients for the organization - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/oauth2/clients (the `OAuth2ServiceListClients` operationId). - OAuth2ServiceListClientsWithResponse(ctx context.Context, params *OAuth2ServiceListClientsParams, reqEditors ...RequestEditorFn) (*OAuth2ServiceListClientsResponse, error) - - // OAuth2ServiceCreateClientWithBodyWithResponse CreateClient creates a new OAuth2 client - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). - OAuth2ServiceCreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceCreateClientResponse, error) - - // OAuth2ServiceCreateClientWithResponse CreateClient creates a new OAuth2 client - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). - OAuth2ServiceCreateClientWithResponse(ctx context.Context, body OAuth2ServiceCreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceCreateClientResponse, error) - - // OAuth2ServiceDeleteClientWithResponse DeleteClient deletes an OAuth2 client - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with DELETE /v1/oauth2/clients/{clientId} (the `OAuth2ServiceDeleteClient` operationId). - OAuth2ServiceDeleteClientWithResponse(ctx context.Context, clientId string, reqEditors ...RequestEditorFn) (*OAuth2ServiceDeleteClientResponse, error) - - // OAuth2ServiceRefreshTokenWithBodyWithResponse RefreshToken exchanges refresh token for new access token - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). - OAuth2ServiceRefreshTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceRefreshTokenResponse, error) - - // OAuth2ServiceRefreshTokenWithResponse RefreshToken exchanges refresh token for new access token - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). - OAuth2ServiceRefreshTokenWithResponse(ctx context.Context, body OAuth2ServiceRefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceRefreshTokenResponse, error) - - // OAuth2ServiceRevokeTokenWithBodyWithResponse RevokeToken revokes an access or refresh token - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). - OAuth2ServiceRevokeTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceRevokeTokenResponse, error) - - // OAuth2ServiceRevokeTokenWithResponse RevokeToken revokes an access or refresh token - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). - OAuth2ServiceRevokeTokenWithResponse(ctx context.Context, body OAuth2ServiceRevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceRevokeTokenResponse, error) - - // OAuth2ServiceTokenWithBodyWithResponse Token exchanges authorization code for access token - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). - OAuth2ServiceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceTokenResponse, error) - - // OAuth2ServiceTokenWithResponse Token exchanges authorization code for access token - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). - OAuth2ServiceTokenWithResponse(ctx context.Context, body OAuth2ServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceTokenResponse, error) - - // OrganizationServiceGetOrganizationWithResponse performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - OrganizationServiceGetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceGetOrganizationResponse, error) - - // OrganizationServiceDeleteOrganizationWithResponse performs a DELETE /v1/organizations (the `OrganizationServiceDeleteOrganization` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - OrganizationServiceDeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceDeleteOrganizationResponse, error) - - // OrganizationServiceListOrganizationsWithResponse performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - OrganizationServiceListOrganizationsWithResponse(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*OrganizationServiceListOrganizationsResponse, error) - - // OrganizationServiceUpdateOrganizationWithBodyWithResponse performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - OrganizationServiceUpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationServiceUpdateOrganizationResponse, error) - - // OrganizationServiceUpdateOrganizationWithResponse performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - OrganizationServiceUpdateOrganizationWithResponse(ctx context.Context, body OrganizationServiceUpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationServiceUpdateOrganizationResponse, error) - - // OrganizationServiceCreateOrganizationWithBodyWithResponse performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - OrganizationServiceCreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationServiceCreateOrganizationResponse, error) - - // OrganizationServiceCreateOrganizationWithResponse performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - OrganizationServiceCreateOrganizationWithResponse(ctx context.Context, body OrganizationServiceCreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationServiceCreateOrganizationResponse, error) - - // PaymentMethodServiceListPaymentMethodsWithResponse List payment methods for an organization/subscription - // Returns payment method details (type, last4, brand, expiry, is_default) - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/payment-methods (the `PaymentMethodServiceListPaymentMethods` operationId). - PaymentMethodServiceListPaymentMethodsWithResponse(ctx context.Context, params *PaymentMethodServiceListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*PaymentMethodServiceListPaymentMethodsResponse, error) - - // PaymentMethodServiceAttachPaymentMethodWithBodyWithResponse Attach a payment method to a subscription/organization - // Works for both providers (platform subscriptions) and clients (provider - // plan subscriptions) Authorization: Check organization type and rule engine - // (subscription.payment_method.manage.enabled) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). - PaymentMethodServiceAttachPaymentMethodWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PaymentMethodServiceAttachPaymentMethodResponse, error) - - // PaymentMethodServiceAttachPaymentMethodWithResponse Attach a payment method to a subscription/organization - // Works for both providers (platform subscriptions) and clients (provider - // plan subscriptions) Authorization: Check organization type and rule engine - // (subscription.payment_method.manage.enabled) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). - PaymentMethodServiceAttachPaymentMethodWithResponse(ctx context.Context, body PaymentMethodServiceAttachPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*PaymentMethodServiceAttachPaymentMethodResponse, error) - - // PaymentMethodServiceRemovePaymentMethodWithResponse Remove a payment method - // Validation: - // - Providers: Cannot remove if only one method exists (except on free plan) - // - Clients: Cannot remove if only one method exists - // - Cannot remove if payment method is currently in use for active - // subscriptions - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with DELETE /v1/payment-methods/{paymentMethodId} (the `PaymentMethodServiceRemovePaymentMethod` operationId). - PaymentMethodServiceRemovePaymentMethodWithResponse(ctx context.Context, paymentMethodId string, reqEditors ...RequestEditorFn) (*PaymentMethodServiceRemovePaymentMethodResponse, error) - - // PaymentMethodServiceSetDefaultPaymentMethodWithBodyWithResponse Set a payment method as the default payment method - // Validates payment method belongs to organization/subscription - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). - PaymentMethodServiceSetDefaultPaymentMethodWithBodyWithResponse(ctx context.Context, paymentMethodId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PaymentMethodServiceSetDefaultPaymentMethodResponse, error) - - // PaymentMethodServiceSetDefaultPaymentMethodWithResponse Set a payment method as the default payment method - // Validates payment method belongs to organization/subscription - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). - PaymentMethodServiceSetDefaultPaymentMethodWithResponse(ctx context.Context, paymentMethodId string, body PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*PaymentMethodServiceSetDefaultPaymentMethodResponse, error) - - // PaymentServiceListPaymentsWithResponse ListPayments lists payments for an invoice or organization - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/payments (the `PaymentServiceListPayments` operationId). - PaymentServiceListPaymentsWithResponse(ctx context.Context, params *PaymentServiceListPaymentsParams, reqEditors ...RequestEditorFn) (*PaymentServiceListPaymentsResponse, error) - - // PaymentServiceGetPaymentWithResponse GetPayment retrieves a single payment with refunds - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/payments/{paymentId} (the `PaymentServiceGetPayment` operationId). - PaymentServiceGetPaymentWithResponse(ctx context.Context, paymentId string, reqEditors ...RequestEditorFn) (*PaymentServiceGetPaymentResponse, error) - - // PermissionServiceListPermissionsWithResponse performs a GET /v1/permissions (the `PermissionServiceListPermissions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PermissionServiceListPermissionsWithResponse(ctx context.Context, params *PermissionServiceListPermissionsParams, reqEditors ...RequestEditorFn) (*PermissionServiceListPermissionsResponse, error) - - // PermissionServiceAssignPermissionToRoleWithBodyWithResponse performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PermissionServiceAssignPermissionToRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PermissionServiceAssignPermissionToRoleResponse, error) - - // PermissionServiceAssignPermissionToRoleWithResponse performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PermissionServiceAssignPermissionToRoleWithResponse(ctx context.Context, body PermissionServiceAssignPermissionToRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*PermissionServiceAssignPermissionToRoleResponse, error) - - // PermissionServiceListEffectivePermissionsWithResponse performs a GET /v1/permissions/effective (the `PermissionServiceListEffectivePermissions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PermissionServiceListEffectivePermissionsWithResponse(ctx context.Context, params *PermissionServiceListEffectivePermissionsParams, reqEditors ...RequestEditorFn) (*PermissionServiceListEffectivePermissionsResponse, error) - - // PermissionServiceRemovePermissionFromRoleWithResponse performs a DELETE /v1/permissions/remove-from-role (the `PermissionServiceRemovePermissionFromRole` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PermissionServiceRemovePermissionFromRoleWithResponse(ctx context.Context, params *PermissionServiceRemovePermissionFromRoleParams, reqEditors ...RequestEditorFn) (*PermissionServiceRemovePermissionFromRoleResponse, error) - - // PlanServiceListPlansWithResponse performs a GET /v1/plans (the `PlanServiceListPlans` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PlanServiceListPlansWithResponse(ctx context.Context, params *PlanServiceListPlansParams, reqEditors ...RequestEditorFn) (*PlanServiceListPlansResponse, error) - - // ProviderPlanServiceCreatePlanWithBodyWithResponse performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderPlanServiceCreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCreatePlanResponse, error) - - // ProviderPlanServiceCreatePlanWithResponse performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderPlanServiceCreatePlanWithResponse(ctx context.Context, body ProviderPlanServiceCreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCreatePlanResponse, error) - - // ProviderPlanServiceDeletePlanWithResponse performs a DELETE /v1/plans/{id} (the `ProviderPlanServiceDeletePlan` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderPlanServiceDeletePlanWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ProviderPlanServiceDeletePlanResponse, error) - - // ProviderPlanServiceUpdatePlanWithBodyWithResponse performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderPlanServiceUpdatePlanWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceUpdatePlanResponse, error) - - // ProviderPlanServiceUpdatePlanWithResponse performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderPlanServiceUpdatePlanWithResponse(ctx context.Context, id string, body ProviderPlanServiceUpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceUpdatePlanResponse, error) - - // PlanServiceSubscribeWithResponse performs a POST /v1/plans/{planId}:subscribe (the `PlanServiceSubscribe` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PlanServiceSubscribeWithResponse(ctx context.Context, planId string, params *PlanServiceSubscribeParams, reqEditors ...RequestEditorFn) (*PlanServiceSubscribeResponse, error) - - // ProviderPlanServiceCalculatePlanPricingWithBodyWithResponse performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderPlanServiceCalculatePlanPricingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCalculatePlanPricingResponse, error) - - // ProviderPlanServiceCalculatePlanPricingWithResponse performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderPlanServiceCalculatePlanPricingWithResponse(ctx context.Context, body ProviderPlanServiceCalculatePlanPricingJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCalculatePlanPricingResponse, error) - - // PlatformServiceCreatePlatformWithBodyWithResponse performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceCreatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceCreatePlatformResponse, error) - - // PlatformServiceCreatePlatformWithResponse performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PlatformServiceCreatePlatformWithResponse(ctx context.Context, body PlatformServiceCreatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceCreatePlatformResponse, error) - - // MetadataServiceGetPlatformVersionsWithResponse GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, liqoctl, and helm. - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId). - MetadataServiceGetPlatformVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetPlatformVersionsResponse, error) - - // PlatformServiceDeletePlatformWithResponse performs a DELETE /v1/platform/{id} (the `PlatformServiceDeletePlatform` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceDeletePlatformWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlatformServiceDeletePlatformResponse, error) - - // PlatformServiceGetPlatformWithResponse performs a GET /v1/platform/{id} (the `PlatformServiceGetPlatform` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceGetPlatformWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlatformServiceGetPlatformResponse, error) - - // PlatformServiceUpdatePlatformWithBodyWithResponse performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceUpdatePlatformWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceUpdatePlatformResponse, error) - - // PlatformServiceUpdatePlatformWithResponse performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PlatformServiceUpdatePlatformWithResponse(ctx context.Context, id string, body PlatformServiceUpdatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceUpdatePlatformResponse, error) - - // PlatformServiceListPlatformsWithResponse performs a GET /v1/platforms (the `PlatformServiceListPlatforms` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceListPlatformsWithResponse(ctx context.Context, params *PlatformServiceListPlatformsParams, reqEditors ...RequestEditorFn) (*PlatformServiceListPlatformsResponse, error) - - // PlatformServiceAssignAgentWithBodyWithResponse performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceAssignAgentWithBodyWithResponse(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceAssignAgentResponse, error) - - // PlatformServiceAssignAgentWithResponse performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PlatformServiceAssignAgentWithResponse(ctx context.Context, platformId string, body PlatformServiceAssignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceAssignAgentResponse, error) - - // PlatformServiceUnassignAgentWithBodyWithResponse performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PlatformServiceUnassignAgentWithBodyWithResponse(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceUnassignAgentResponse, error) - - // PlatformServiceUnassignAgentWithResponse performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PlatformServiceUnassignAgentWithResponse(ctx context.Context, platformId string, body PlatformServiceUnassignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceUnassignAgentResponse, error) - - // ProviderReviewServiceListProviderReviewsWithResponse performs a GET /v1/provider-reviews (the `ProviderReviewServiceListProviderReviews` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderReviewServiceListProviderReviewsWithResponse(ctx context.Context, params *ProviderReviewServiceListProviderReviewsParams, reqEditors ...RequestEditorFn) (*ProviderReviewServiceListProviderReviewsResponse, error) - - // ClientProviderReviewServiceCreateClientReviewWithBodyWithResponse performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceCreateClientReviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceCreateClientReviewResponse, error) - - // ClientProviderReviewServiceCreateClientReviewWithResponse performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceCreateClientReviewWithResponse(ctx context.Context, body ClientProviderReviewServiceCreateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceCreateClientReviewResponse, error) - - // ClientProviderReviewServiceGetClientReviewForVirtualMachineWithResponse performs a GET /v1/provider-reviews/virtual-machines/{virtualMachineId} (the `ClientProviderReviewServiceGetClientReviewForVirtualMachine` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceGetClientReviewForVirtualMachineWithResponse(ctx context.Context, virtualMachineId string, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse, error) - - // ClientProviderReviewServiceDeleteClientReviewWithResponse performs a DELETE /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceDeleteClientReview` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceDeleteClientReviewWithResponse(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceDeleteClientReviewResponse, error) - - // ClientProviderReviewServiceUpdateClientReviewWithBodyWithResponse performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceUpdateClientReviewWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceUpdateClientReviewResponse, error) - - // ClientProviderReviewServiceUpdateClientReviewWithResponse performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ClientProviderReviewServiceUpdateClientReviewWithResponse(ctx context.Context, reviewId string, body ClientProviderReviewServiceUpdateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceUpdateClientReviewResponse, error) - - // ProviderReviewServiceDeleteProviderReviewReplyWithResponse performs a DELETE /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceDeleteProviderReviewReply` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderReviewServiceDeleteProviderReviewReplyWithResponse(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*ProviderReviewServiceDeleteProviderReviewReplyResponse, error) - - // ProviderReviewServiceUpdateProviderReviewReplyWithBodyWithResponse performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderReviewServiceUpdateProviderReviewReplyWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderReviewServiceUpdateProviderReviewReplyResponse, error) - - // ProviderReviewServiceUpdateProviderReviewReplyWithResponse performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderReviewServiceUpdateProviderReviewReplyWithResponse(ctx context.Context, reviewId string, body ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderReviewServiceUpdateProviderReviewReplyResponse, error) - - // ProviderReviewServiceCreateProviderReviewReplyWithBodyWithResponse performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderReviewServiceCreateProviderReviewReplyWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderReviewServiceCreateProviderReviewReplyResponse, error) - - // ProviderReviewServiceCreateProviderReviewReplyWithResponse performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderReviewServiceCreateProviderReviewReplyWithResponse(ctx context.Context, reviewId string, body ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderReviewServiceCreateProviderReviewReplyResponse, error) - - // ProviderConnectServiceDisconnectConnectAccountWithResponse performs a DELETE /v1/provider/connect/account (the `ProviderConnectServiceDisconnectConnectAccount` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderConnectServiceDisconnectConnectAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderConnectServiceDisconnectConnectAccountResponse, error) - - // ProviderConnectServiceGetConnectAccountWithResponse performs a GET /v1/provider/connect/account (the `ProviderConnectServiceGetConnectAccount` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderConnectServiceGetConnectAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderConnectServiceGetConnectAccountResponse, error) - - // ProviderConnectServiceCreateConnectAccountWithBodyWithResponse performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderConnectServiceCreateConnectAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectAccountResponse, error) - - // ProviderConnectServiceCreateConnectAccountWithResponse performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderConnectServiceCreateConnectAccountWithResponse(ctx context.Context, body ProviderConnectServiceCreateConnectAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectAccountResponse, error) - - // ProviderConnectServiceCreateConnectTaxSessionWithBodyWithResponse Creates a Stripe AccountSession client secret for Connect tax_settings / - // tax_registrations embedded components. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). - ProviderConnectServiceCreateConnectTaxSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectTaxSessionResponse, error) - - // ProviderConnectServiceCreateConnectTaxSessionWithResponse Creates a Stripe AccountSession client secret for Connect tax_settings / - // tax_registrations embedded components. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). - ProviderConnectServiceCreateConnectTaxSessionWithResponse(ctx context.Context, body ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectTaxSessionResponse, error) - - // ProviderCustomerServiceGetProviderCustomerStatsWithResponse Path must not be `/customers/stats`: some gateways match `/customers/{client_organization_id}` first and treat "stats" as a UUID field (validation error). - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/provider/customer-stats (the `ProviderCustomerServiceGetProviderCustomerStats` operationId). - ProviderCustomerServiceGetProviderCustomerStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceGetProviderCustomerStatsResponse, error) - - // ProviderCustomerServiceListProviderCustomersWithResponse performs a GET /v1/provider/customers (the `ProviderCustomerServiceListProviderCustomers` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceListProviderCustomersWithResponse(ctx context.Context, params *ProviderCustomerServiceListProviderCustomersParams, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceListProviderCustomersResponse, error) - - // ProviderCustomerServiceGetProviderCustomerWithResponse performs a GET /v1/provider/customers/{clientOrganizationId} (the `ProviderCustomerServiceGetProviderCustomer` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceGetProviderCustomerWithResponse(ctx context.Context, clientOrganizationId string, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceGetProviderCustomerResponse, error) - - // ProviderCustomerServiceListProviderCustomerAssetsWithResponse performs a GET /v1/provider/customers/{clientOrganizationId}/assets (the `ProviderCustomerServiceListProviderCustomerAssets` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceListProviderCustomerAssetsWithResponse(ctx context.Context, clientOrganizationId string, params *ProviderCustomerServiceListProviderCustomerAssetsParams, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceListProviderCustomerAssetsResponse, error) - - // ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse, error) - - // ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse, error) - - // ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse, error) - - // ProviderCustomerServiceStartProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderCustomerServiceStartProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse, error) - - // ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse, error) - - // ProviderCustomerServiceStopProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderCustomerServiceStopProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse, error) - - // ProviderDashboardServiceListDashboardAddonCatalogStatsWithResponse performs a GET /v1/provider/dashboard/addon-catalog-stats (the `ProviderDashboardServiceListDashboardAddonCatalogStats` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardAddonCatalogStatsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardAddonCatalogStatsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardAddonCatalogStatsResponse, error) - - // ProviderDashboardServiceGetDashboardAssetSalesTimeseriesWithResponse performs a GET /v1/provider/dashboard/asset-sales-timeseries (the `ProviderDashboardServiceGetDashboardAssetSalesTimeseries` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceGetDashboardAssetSalesTimeseriesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse, error) - - // ProviderDashboardServiceGetDashboardBillingSalesWithResponse performs a GET /v1/provider/dashboard/billing-sales (the `ProviderDashboardServiceGetDashboardBillingSales` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceGetDashboardBillingSalesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardBillingSalesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardBillingSalesResponse, error) - - // ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesWithResponse performs a GET /v1/provider/dashboard/customer-acquisition-timeseries (the `ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse, error) - - // ProviderDashboardServiceListDashboardInfrastructureWithResponse performs a GET /v1/provider/dashboard/infrastructure (the `ProviderDashboardServiceListDashboardInfrastructure` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardInfrastructureWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardInfrastructureParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardInfrastructureResponse, error) - - // ProviderDashboardServiceListDashboardIpamWithResponse performs a GET /v1/provider/dashboard/ipam (the `ProviderDashboardServiceListDashboardIpam` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardIpamWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardIpamResponse, error) - - // ProviderDashboardServiceListDashboardIpamAssignmentsWithResponse performs a GET /v1/provider/dashboard/ipam/assignments (the `ProviderDashboardServiceListDashboardIpamAssignments` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardIpamAssignmentsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamAssignmentsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardIpamAssignmentsResponse, error) - - // ProviderDashboardServiceListDashboardPlanSubscriptionStatsWithResponse performs a GET /v1/provider/dashboard/plan-subscription-stats (the `ProviderDashboardServiceListDashboardPlanSubscriptionStats` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardPlanSubscriptionStatsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse, error) - - // ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsWithResponse performs a GET /v1/provider/dashboard/plans-tab-stats (the `ProviderDashboardPlansTabServiceGetDashboardPlansTabStats` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse, error) - - // ProviderDashboardServiceGetDashboardSummaryWithResponse performs a GET /v1/provider/dashboard/summary (the `ProviderDashboardServiceGetDashboardSummary` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceGetDashboardSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardSummaryResponse, error) - - // ProviderDashboardServiceListDashboardTicketStatisticsWithResponse performs a GET /v1/provider/dashboard/tickets/statistics (the `ProviderDashboardServiceListDashboardTicketStatistics` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardTicketStatisticsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardTicketStatisticsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardTicketStatisticsResponse, error) - - // ProviderDashboardServiceListDashboardVirtualMachinesWithResponse performs a GET /v1/provider/dashboard/virtual-machines (the `ProviderDashboardServiceListDashboardVirtualMachines` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderDashboardServiceListDashboardVirtualMachinesWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardVirtualMachinesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardVirtualMachinesResponse, error) - - // LiveValidationServiceListPlanLiveValidationsWithResponse performs a GET /v1/provider/live-validations (the `LiveValidationServiceListPlanLiveValidations` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceListPlanLiveValidationsWithResponse(ctx context.Context, params *LiveValidationServiceListPlanLiveValidationsParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceListPlanLiveValidationsResponse, error) - - // ManualPayoutServiceDeleteManualPayoutWithResponse performs a DELETE /v1/provider/manual-payout (the `ManualPayoutServiceDeleteManualPayout` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ManualPayoutServiceDeleteManualPayoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManualPayoutServiceDeleteManualPayoutResponse, error) - - // ManualPayoutServiceGetManualPayoutWithResponse performs a GET /v1/provider/manual-payout (the `ManualPayoutServiceGetManualPayout` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ManualPayoutServiceGetManualPayoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManualPayoutServiceGetManualPayoutResponse, error) - - // ManualPayoutServiceCreateManualPayoutWithBodyWithResponse performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ManualPayoutServiceCreateManualPayoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManualPayoutServiceCreateManualPayoutResponse, error) - - // ManualPayoutServiceCreateManualPayoutWithResponse performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ManualPayoutServiceCreateManualPayoutWithResponse(ctx context.Context, body ManualPayoutServiceCreateManualPayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*ManualPayoutServiceCreateManualPayoutResponse, error) - - // ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesWithResponse performs a GET /v1/provider/network/smtp-outbound-policies (the `ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesWithResponse(ctx context.Context, params *ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse, error) - - // ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBodyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBodyWithResponse(ctx context.Context, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse, error) - - // ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithResponse(ctx context.Context, virtualMachineId string, body ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse, error) - - // ProviderNetworkServiceGetSmtpOutboundProviderPolicyWithResponse performs a GET /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceGetSmtpOutboundProviderPolicy` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderNetworkServiceGetSmtpOutboundProviderPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse, error) - - // ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBodyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse, error) - - // ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithResponse(ctx context.Context, body ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse, error) - - // ProviderOnboardingServiceGetProviderOnboardingChecklistWithResponse performs a GET /v1/provider/onboarding/checklist (the `ProviderOnboardingServiceGetProviderOnboardingChecklist` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ProviderOnboardingServiceGetProviderOnboardingChecklistWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderOnboardingServiceGetProviderOnboardingChecklistResponse, error) - - // PayoutConfigurationServiceGetPayoutConfigurationWithResponse performs a GET /v1/provider/payout-configuration (the `PayoutConfigurationServiceGetPayoutConfiguration` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PayoutConfigurationServiceGetPayoutConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceGetPayoutConfigurationResponse, error) - - // PayoutConfigurationServiceUpdatePayoutConfigurationWithBodyWithResponse performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - PayoutConfigurationServiceUpdatePayoutConfigurationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceUpdatePayoutConfigurationResponse, error) - - // PayoutConfigurationServiceUpdatePayoutConfigurationWithResponse performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - PayoutConfigurationServiceUpdatePayoutConfigurationWithResponse(ctx context.Context, body PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceUpdatePayoutConfigurationResponse, error) - - // PayoutInvoiceServiceListPayoutInvoicesWithResponse performs a GET /v1/provider/payout-invoices (the `PayoutInvoiceServiceListPayoutInvoices` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PayoutInvoiceServiceListPayoutInvoicesWithResponse(ctx context.Context, params *PayoutInvoiceServiceListPayoutInvoicesParams, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceListPayoutInvoicesResponse, error) - - // PayoutInvoiceServiceGetPayoutInvoiceWithResponse performs a GET /v1/provider/payout-invoices/{id} (the `PayoutInvoiceServiceGetPayoutInvoice` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PayoutInvoiceServiceGetPayoutInvoiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceGetPayoutInvoiceResponse, error) - - // ProviderPlanServiceListAssignableNodesForPlanWithResponse Nodes the provider may assign to a plan (catalog-eligible for tier/category). - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/provider/plans/assignable-nodes (the `ProviderPlanServiceListAssignableNodesForPlan` operationId). - ProviderPlanServiceListAssignableNodesForPlanWithResponse(ctx context.Context, params *ProviderPlanServiceListAssignableNodesForPlanParams, reqEditors ...RequestEditorFn) (*ProviderPlanServiceListAssignableNodesForPlanResponse, error) - - // LiveValidationServiceDeletePlanLiveValidationWithResponse performs a DELETE /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceDeletePlanLiveValidation` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceDeletePlanLiveValidationWithResponse(ctx context.Context, planId string, params *LiveValidationServiceDeletePlanLiveValidationParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceDeletePlanLiveValidationResponse, error) - - // LiveValidationServiceGetPlanLiveValidationWithResponse performs a GET /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceGetPlanLiveValidation` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceGetPlanLiveValidationWithResponse(ctx context.Context, planId string, params *LiveValidationServiceGetPlanLiveValidationParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceGetPlanLiveValidationResponse, error) - - // LiveValidationServiceStartPlanLiveValidationWithBodyWithResponse performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceStartPlanLiveValidationWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LiveValidationServiceStartPlanLiveValidationResponse, error) - - // LiveValidationServiceStartPlanLiveValidationWithResponse performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - LiveValidationServiceStartPlanLiveValidationWithResponse(ctx context.Context, planId string, body LiveValidationServiceStartPlanLiveValidationJSONRequestBody, reqEditors ...RequestEditorFn) (*LiveValidationServiceStartPlanLiveValidationResponse, error) - - // LiveValidationServiceListPlanLiveValidationBenchmarksWithResponse performs a GET /v1/provider/plans/{planId}/live-validation/benchmarks (the `LiveValidationServiceListPlanLiveValidationBenchmarks` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceListPlanLiveValidationBenchmarksWithResponse(ctx context.Context, planId string, params *LiveValidationServiceListPlanLiveValidationBenchmarksParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceListPlanLiveValidationBenchmarksResponse, error) - - // LiveValidationServiceListEligibleNodesForPlanWithResponse performs a GET /v1/provider/plans/{planId}/live-validation/nodes (the `LiveValidationServiceListEligibleNodesForPlan` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - LiveValidationServiceListEligibleNodesForPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*LiveValidationServiceListEligibleNodesForPlanResponse, error) - - // PreflightServiceListPreflightChecksWithResponse performs a GET /v1/provider/preflight-checks (the `PreflightServiceListPreflightChecks` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PreflightServiceListPreflightChecksWithResponse(ctx context.Context, params *PreflightServiceListPreflightChecksParams, reqEditors ...RequestEditorFn) (*PreflightServiceListPreflightChecksResponse, error) - - // PayoutInvoiceServiceGetProviderRevenueWithResponse performs a GET /v1/provider/revenue (the `PayoutInvoiceServiceGetProviderRevenue` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - PayoutInvoiceServiceGetProviderRevenueWithResponse(ctx context.Context, params *PayoutInvoiceServiceGetProviderRevenueParams, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceGetProviderRevenueResponse, error) - - // RefundServiceListRefundsWithResponse ListRefunds lists refunds for a payment, invoice, or organization - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/refunds (the `RefundServiceListRefunds` operationId). - RefundServiceListRefundsWithResponse(ctx context.Context, params *RefundServiceListRefundsParams, reqEditors ...RequestEditorFn) (*RefundServiceListRefundsResponse, error) - - // RefundServiceGetRefundWithResponse GetRefund retrieves a single refund with payment and invoice details - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/refunds/{refundId} (the `RefundServiceGetRefund` operationId). - RefundServiceGetRefundWithResponse(ctx context.Context, refundId string, reqEditors ...RequestEditorFn) (*RefundServiceGetRefundResponse, error) - - // RegionServiceListRegionsWithResponse performs a GET /v1/regions (the `RegionServiceListRegions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceListRegionsWithResponse(ctx context.Context, params *RegionServiceListRegionsParams, reqEditors ...RequestEditorFn) (*RegionServiceListRegionsResponse, error) - - // RegionServiceCreateRegionWithBodyWithResponse performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceCreateRegionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegionServiceCreateRegionResponse, error) - - // RegionServiceCreateRegionWithResponse performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RegionServiceCreateRegionWithResponse(ctx context.Context, body RegionServiceCreateRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*RegionServiceCreateRegionResponse, error) - - // RegionServiceDeleteRegionWithResponse performs a DELETE /v1/regions/{id} (the `RegionServiceDeleteRegion` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceDeleteRegionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RegionServiceDeleteRegionResponse, error) - - // RegionServiceGetRegionWithResponse performs a GET /v1/regions/{id} (the `RegionServiceGetRegion` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RegionServiceGetRegionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RegionServiceGetRegionResponse, error) - - // RoadmapServiceDeleteRoadmapFeatureRequestCommentWithResponse performs a DELETE /v1/roadmap/comments/{commentId} (the `RoadmapServiceDeleteRoadmapFeatureRequestComment` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceDeleteRoadmapFeatureRequestCommentWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse, error) - - // RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBodyWithResponse performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBodyWithResponse(ctx context.Context, commentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse, error) - - // RoadmapServiceUpdateRoadmapFeatureRequestCommentWithResponse performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoadmapServiceUpdateRoadmapFeatureRequestCommentWithResponse(ctx context.Context, commentId string, body RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse, error) - - // RoadmapServiceListRoadmapProductCategoriesWithResponse performs a GET /v1/roadmap/products (the `RoadmapServiceListRoadmapProductCategories` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceListRoadmapProductCategoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapProductCategoriesResponse, error) - - // RoadmapServiceListRoadmapFeatureRequestsWithResponse performs a GET /v1/roadmap/requests (the `RoadmapServiceListRoadmapFeatureRequests` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceListRoadmapFeatureRequestsWithResponse(ctx context.Context, params *RoadmapServiceListRoadmapFeatureRequestsParams, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapFeatureRequestsResponse, error) - - // RoadmapServiceGetRoadmapFeatureRequestWithResponse performs a GET /v1/roadmap/requests/{slug} (the `RoadmapServiceGetRoadmapFeatureRequest` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceGetRoadmapFeatureRequestWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*RoadmapServiceGetRoadmapFeatureRequestResponse, error) - - // RoadmapServiceListRoadmapFeatureRequestCommentsWithResponse performs a GET /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceListRoadmapFeatureRequestComments` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceListRoadmapFeatureRequestCommentsWithResponse(ctx context.Context, slug string, params *RoadmapServiceListRoadmapFeatureRequestCommentsParams, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapFeatureRequestCommentsResponse, error) - - // RoadmapServiceCreateRoadmapFeatureRequestCommentWithBodyWithResponse performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceCreateRoadmapFeatureRequestCommentWithBodyWithResponse(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceCreateRoadmapFeatureRequestCommentResponse, error) - - // RoadmapServiceCreateRoadmapFeatureRequestCommentWithResponse performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoadmapServiceCreateRoadmapFeatureRequestCommentWithResponse(ctx context.Context, slug string, body RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceCreateRoadmapFeatureRequestCommentResponse, error) - - // RoadmapServiceRemoveRoadmapFeatureRequestVoteWithResponse performs a DELETE /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceRemoveRoadmapFeatureRequestVote` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceRemoveRoadmapFeatureRequestVoteWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse, error) - - // RoadmapServiceVoteRoadmapFeatureRequestWithBodyWithResponse performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceVoteRoadmapFeatureRequestWithBodyWithResponse(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceVoteRoadmapFeatureRequestResponse, error) - - // RoadmapServiceVoteRoadmapFeatureRequestWithResponse performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoadmapServiceVoteRoadmapFeatureRequestWithResponse(ctx context.Context, slug string, body RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceVoteRoadmapFeatureRequestResponse, error) - - // RoadmapServiceGetRoadmapStatsWithResponse performs a GET /v1/roadmap/stats (the `RoadmapServiceGetRoadmapStats` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceGetRoadmapStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RoadmapServiceGetRoadmapStatsResponse, error) - - // RoadmapServiceSubmitRoadmapFeatureRequestWithBodyWithResponse performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoadmapServiceSubmitRoadmapFeatureRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceSubmitRoadmapFeatureRequestResponse, error) - - // RoadmapServiceSubmitRoadmapFeatureRequestWithResponse performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoadmapServiceSubmitRoadmapFeatureRequestWithResponse(ctx context.Context, body RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceSubmitRoadmapFeatureRequestResponse, error) - - // RoleServiceListRolesWithResponse performs a GET /v1/roles (the `RoleServiceListRoles` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceListRolesWithResponse(ctx context.Context, params *RoleServiceListRolesParams, reqEditors ...RequestEditorFn) (*RoleServiceListRolesResponse, error) - - // RoleServiceCreateRoleWithBodyWithResponse performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceCreateRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceCreateRoleResponse, error) - - // RoleServiceCreateRoleWithResponse performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoleServiceCreateRoleWithResponse(ctx context.Context, body RoleServiceCreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceCreateRoleResponse, error) - - // RoleServiceReplaceRoleForGroupWithBodyWithResponse performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForGroupResponse, error) - - // RoleServiceReplaceRoleForGroupWithResponse performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForGroupWithResponse(ctx context.Context, body RoleServiceReplaceRoleForGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForGroupResponse, error) - - // RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) - - // RoleServiceReplaceRoleForServiceAccountWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForServiceAccountWithResponse(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) - - // RoleServiceReplaceRoleForUserWithBodyWithResponse performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForUserResponse, error) - - // RoleServiceReplaceRoleForUserWithResponse performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoleServiceReplaceRoleForUserWithResponse(ctx context.Context, body RoleServiceReplaceRoleForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForUserResponse, error) - - // RoleServiceDeleteRoleWithResponse performs a DELETE /v1/roles/{id} (the `RoleServiceDeleteRole` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceDeleteRoleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RoleServiceDeleteRoleResponse, error) - - // RoleServiceUpdateRoleWithBodyWithResponse performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - RoleServiceUpdateRoleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceUpdateRoleResponse, error) - - // RoleServiceUpdateRoleWithResponse performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - RoleServiceUpdateRoleWithResponse(ctx context.Context, id string, body RoleServiceUpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceUpdateRoleResponse, error) - - // SecretServiceListSecretsWithResponse performs a GET /v1/secrets (the `SecretServiceListSecrets` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SecretServiceListSecretsWithResponse(ctx context.Context, params *SecretServiceListSecretsParams, reqEditors ...RequestEditorFn) (*SecretServiceListSecretsResponse, error) - - // SecretServiceCreateSecretWithBodyWithResponse performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SecretServiceCreateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SecretServiceCreateSecretResponse, error) - - // SecretServiceCreateSecretWithResponse performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SecretServiceCreateSecretWithResponse(ctx context.Context, body SecretServiceCreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretServiceCreateSecretResponse, error) - - // SecretServiceDeleteSecretWithResponse performs a DELETE /v1/secrets/{id} (the `SecretServiceDeleteSecret` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SecretServiceDeleteSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SecretServiceDeleteSecretResponse, error) - - // SecretServiceGetSecretWithResponse performs a GET /v1/secrets/{id} (the `SecretServiceGetSecret` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SecretServiceGetSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SecretServiceGetSecretResponse, error) - - // SecretServiceUpdateSecretWithBodyWithResponse performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SecretServiceUpdateSecretWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SecretServiceUpdateSecretResponse, error) - - // SecretServiceUpdateSecretWithResponse performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SecretServiceUpdateSecretWithResponse(ctx context.Context, id string, body SecretServiceUpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretServiceUpdateSecretResponse, error) - - // ServiceAccountServiceListServiceAccountsWithResponse performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceListServiceAccountsWithResponse(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListServiceAccountsResponse, error) - - // ServiceAccountServiceCreateServiceAccountWithBodyWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceCreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) - - // ServiceAccountServiceCreateServiceAccountWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ServiceAccountServiceCreateServiceAccountWithResponse(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) - - // ServiceAccountServiceRevokeTokenWithResponse performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceRevokeTokenWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceRevokeTokenResponse, error) - - // ServiceAccountServiceDeleteServiceAccountWithResponse performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceDeleteServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceDeleteServiceAccountResponse, error) - - // ServiceAccountServiceGetServiceAccountWithResponse performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceGetServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGetServiceAccountResponse, error) - - // ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) - - // ServiceAccountServiceUpdateServiceAccountWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ServiceAccountServiceUpdateServiceAccountWithResponse(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) - - // ServiceAccountServiceListTokensWithResponse performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceListTokensWithResponse(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListTokensResponse, error) - - // ServiceAccountServiceGenerateTokenWithBodyWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - ServiceAccountServiceGenerateTokenWithBodyWithResponse(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) - - // ServiceAccountServiceGenerateTokenWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - ServiceAccountServiceGenerateTokenWithResponse(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) - - // SSHKeyServiceListSSHKeysWithResponse performs a GET /v1/ssh-keys (the `SSHKeyServiceListSSHKeys` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SSHKeyServiceListSSHKeysWithResponse(ctx context.Context, params *SSHKeyServiceListSSHKeysParams, reqEditors ...RequestEditorFn) (*SSHKeyServiceListSSHKeysResponse, error) - - // SSHKeyServiceCreateSSHKeyWithBodyWithResponse performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SSHKeyServiceCreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SSHKeyServiceCreateSSHKeyResponse, error) - - // SSHKeyServiceCreateSSHKeyWithResponse performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SSHKeyServiceCreateSSHKeyWithResponse(ctx context.Context, body SSHKeyServiceCreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SSHKeyServiceCreateSSHKeyResponse, error) - - // SSHKeyServiceDeleteSSHKeyWithResponse performs a DELETE /v1/ssh-keys/{id} (the `SSHKeyServiceDeleteSSHKey` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SSHKeyServiceDeleteSSHKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SSHKeyServiceDeleteSSHKeyResponse, error) - - // SSHKeyServiceGetSSHKeyWithResponse performs a GET /v1/ssh-keys/{id} (the `SSHKeyServiceGetSSHKey` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SSHKeyServiceGetSSHKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SSHKeyServiceGetSSHKeyResponse, error) - - // SubscriptionServiceListSubscriptionsWithResponse performs a GET /v1/subscriptions (the `SubscriptionServiceListSubscriptions` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SubscriptionServiceListSubscriptionsWithResponse(ctx context.Context, params *SubscriptionServiceListSubscriptionsParams, reqEditors ...RequestEditorFn) (*SubscriptionServiceListSubscriptionsResponse, error) - - // AddonServiceListAddonSubscriptionsWithResponse List addon subscriptions for a subscription - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceListAddonSubscriptions` operationId). - AddonServiceListAddonSubscriptionsWithResponse(ctx context.Context, subscriptionId string, params *AddonServiceListAddonSubscriptionsParams, reqEditors ...RequestEditorFn) (*AddonServiceListAddonSubscriptionsResponse, error) - - // AddonServiceAddAddonToSubscriptionWithBodyWithResponse Add an addon to a subscription - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). - AddonServiceAddAddonToSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceAddAddonToSubscriptionResponse, error) - - // AddonServiceAddAddonToSubscriptionWithResponse Add an addon to a subscription - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). - AddonServiceAddAddonToSubscriptionWithResponse(ctx context.Context, subscriptionId string, body AddonServiceAddAddonToSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceAddAddonToSubscriptionResponse, error) - - // SubscriptionServiceCancelWithResponse performs a POST /v1/subscriptions:cancel (the `SubscriptionServiceCancel` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SubscriptionServiceCancelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelResponse, error) - - // SubscriptionServiceCancelRenewalWithBodyWithResponse CancelRenewal schedules an asset/VM-linked subscription to stop renewing at - // current_period_end. The VM remains usable until then; no refund of the current period. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). - SubscriptionServiceCancelRenewalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelRenewalResponse, error) - - // SubscriptionServiceCancelRenewalWithResponse CancelRenewal schedules an asset/VM-linked subscription to stop renewing at - // current_period_end. The VM remains usable until then; no refund of the current period. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). - SubscriptionServiceCancelRenewalWithResponse(ctx context.Context, body SubscriptionServiceCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelRenewalResponse, error) - - // SubscriptionServiceRetryPaymentWithBodyWithResponse performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SubscriptionServiceRetryPaymentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceRetryPaymentResponse, error) - - // SubscriptionServiceRetryPaymentWithResponse performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SubscriptionServiceRetryPaymentWithResponse(ctx context.Context, body SubscriptionServiceRetryPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceRetryPaymentResponse, error) - - // SubscriptionServiceGetSubscriptionStatusWithResponse performs a GET /v1/subscriptions:status (the `SubscriptionServiceGetSubscriptionStatus` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SubscriptionServiceGetSubscriptionStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SubscriptionServiceGetSubscriptionStatusResponse, error) - - // SubscriptionServiceUndoCancelRenewalWithBodyWithResponse UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). - SubscriptionServiceUndoCancelRenewalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceUndoCancelRenewalResponse, error) - - // SubscriptionServiceUndoCancelRenewalWithResponse UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). - SubscriptionServiceUndoCancelRenewalWithResponse(ctx context.Context, body SubscriptionServiceUndoCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceUndoCancelRenewalResponse, error) - - // TicketServiceListTicketTemplatesWithResponse performs a GET /v1/ticket-templates (the `TicketServiceListTicketTemplates` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceListTicketTemplatesWithResponse(ctx context.Context, params *TicketServiceListTicketTemplatesParams, reqEditors ...RequestEditorFn) (*TicketServiceListTicketTemplatesResponse, error) - - // TicketServiceCreateTicketTemplateWithBodyWithResponse performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketTemplateResponse, error) - - // TicketServiceCreateTicketTemplateWithResponse performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketTemplateWithResponse(ctx context.Context, body TicketServiceCreateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketTemplateResponse, error) - - // TicketServiceDeleteTicketTemplateWithResponse performs a DELETE /v1/ticket-templates/{id} (the `TicketServiceDeleteTicketTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceDeleteTicketTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketTemplateResponse, error) - - // TicketServiceGetTicketTemplateWithResponse performs a GET /v1/ticket-templates/{id} (the `TicketServiceGetTicketTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceGetTicketTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceGetTicketTemplateResponse, error) - - // TicketServiceUpdateTicketTemplateWithBodyWithResponse performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceUpdateTicketTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceUpdateTicketTemplateResponse, error) - - // TicketServiceUpdateTicketTemplateWithResponse performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceUpdateTicketTemplateWithResponse(ctx context.Context, id string, body TicketServiceUpdateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceUpdateTicketTemplateResponse, error) - - // TicketServiceListTicketsWithResponse performs a GET /v1/tickets (the `TicketServiceListTickets` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceListTicketsWithResponse(ctx context.Context, params *TicketServiceListTicketsParams, reqEditors ...RequestEditorFn) (*TicketServiceListTicketsResponse, error) - - // TicketServiceCreateTicketWithBodyWithResponse performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketResponse, error) - - // TicketServiceCreateTicketWithResponse performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketWithResponse(ctx context.Context, body TicketServiceCreateTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketResponse, error) - - // TicketServiceDeleteTicketAttachmentWithResponse performs a DELETE /v1/tickets/attachments/{attachmentId} (the `TicketServiceDeleteTicketAttachment` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceDeleteTicketAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketAttachmentResponse, error) - - // TicketServiceDownloadTicketAttachmentWithResponse performs a GET /v1/tickets/attachments/{attachmentId}:download (the `TicketServiceDownloadTicketAttachment` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceDownloadTicketAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*TicketServiceDownloadTicketAttachmentResponse, error) - - // TicketServiceConfirmTicketAttachmentUploadWithBodyWithResponse performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceConfirmTicketAttachmentUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceConfirmTicketAttachmentUploadResponse, error) - - // TicketServiceConfirmTicketAttachmentUploadWithResponse performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceConfirmTicketAttachmentUploadWithResponse(ctx context.Context, body TicketServiceConfirmTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceConfirmTicketAttachmentUploadResponse, error) - - // TicketServiceUploadTicketAttachmentContentWithBodyWithResponse performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceUploadTicketAttachmentContentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceUploadTicketAttachmentContentResponse, error) - - // TicketServiceUploadTicketAttachmentContentWithResponse performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceUploadTicketAttachmentContentWithResponse(ctx context.Context, body TicketServiceUploadTicketAttachmentContentJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceUploadTicketAttachmentContentResponse, error) - - // TicketServiceDeleteTicketWithResponse performs a DELETE /v1/tickets/{id} (the `TicketServiceDeleteTicket` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceDeleteTicketWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketResponse, error) - - // TicketServiceGetTicketWithResponse performs a GET /v1/tickets/{id} (the `TicketServiceGetTicket` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceGetTicketWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceGetTicketResponse, error) - - // TicketServiceListTicketAttachmentsWithResponse performs a GET /v1/tickets/{ticketId}/attachments (the `TicketServiceListTicketAttachments` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceListTicketAttachmentsWithResponse(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*TicketServiceListTicketAttachmentsResponse, error) - - // TicketServiceCreateTicketAttachmentUploadWithBodyWithResponse performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketAttachmentUploadWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketAttachmentUploadResponse, error) - - // TicketServiceCreateTicketAttachmentUploadWithResponse performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceCreateTicketAttachmentUploadWithResponse(ctx context.Context, ticketId string, body TicketServiceCreateTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketAttachmentUploadResponse, error) - - // TicketServiceListInternalCommentsWithResponse performs a GET /v1/tickets/{ticketId}/internal-comments (the `TicketServiceListInternalComments` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceListInternalCommentsWithResponse(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*TicketServiceListInternalCommentsResponse, error) - - // TicketServiceAddReplyToTicketWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceAddReplyToTicketWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceAddReplyToTicketResponse, error) - - // TicketServiceAddReplyToTicketWithResponse performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceAddReplyToTicketWithResponse(ctx context.Context, ticketId string, body TicketServiceAddReplyToTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceAddReplyToTicketResponse, error) - - // TicketServiceAddInternalCommentWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceAddInternalCommentWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceAddInternalCommentResponse, error) - - // TicketServiceAddInternalCommentWithResponse performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceAddInternalCommentWithResponse(ctx context.Context, ticketId string, body TicketServiceAddInternalCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceAddInternalCommentResponse, error) - - // TicketServiceSetTicketPriorityWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceSetTicketPriorityWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketPriorityResponse, error) - - // TicketServiceSetTicketPriorityWithResponse performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceSetTicketPriorityWithResponse(ctx context.Context, ticketId string, body TicketServiceSetTicketPriorityJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketPriorityResponse, error) - - // TicketServiceSetTicketStatusWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceSetTicketStatusWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketStatusResponse, error) - - // TicketServiceSetTicketStatusWithResponse performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceSetTicketStatusWithResponse(ctx context.Context, ticketId string, body TicketServiceSetTicketStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketStatusResponse, error) - - // TicketServiceSearchTicketsWithBodyWithResponse performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - TicketServiceSearchTicketsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSearchTicketsResponse, error) - - // TicketServiceSearchTicketsWithResponse performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - TicketServiceSearchTicketsWithResponse(ctx context.Context, body TicketServiceSearchTicketsJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSearchTicketsResponse, error) - - // UsageReportServiceRecordUsageWithBodyWithResponse Record a single usage event (from Prometheus or other monitoring systems) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). - UsageReportServiceRecordUsageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsageReportServiceRecordUsageResponse, error) - - // UsageReportServiceRecordUsageWithResponse Record a single usage event (from Prometheus or other monitoring systems) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). - UsageReportServiceRecordUsageWithResponse(ctx context.Context, body UsageReportServiceRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*UsageReportServiceRecordUsageResponse, error) - - // UsageReportServiceBatchRecordUsageWithBodyWithResponse Batch record multiple usage events (for bulk ingestion) - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). - UsageReportServiceBatchRecordUsageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsageReportServiceBatchRecordUsageResponse, error) - - // UsageReportServiceBatchRecordUsageWithResponse Batch record multiple usage events (for bulk ingestion) - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). - UsageReportServiceBatchRecordUsageWithResponse(ctx context.Context, body UsageReportServiceBatchRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*UsageReportServiceBatchRecordUsageResponse, error) - - // UsageReportServiceListUsageRecordsWithResponse List usage records with filters - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/usage/records (the `UsageReportServiceListUsageRecords` operationId). - UsageReportServiceListUsageRecordsWithResponse(ctx context.Context, params *UsageReportServiceListUsageRecordsParams, reqEditors ...RequestEditorFn) (*UsageReportServiceListUsageRecordsResponse, error) - - // UsageReportServiceGetUsageRecordWithResponse Get a specific usage record by ID - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/usage/records/{id} (the `UsageReportServiceGetUsageRecord` operationId). - UsageReportServiceGetUsageRecordWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UsageReportServiceGetUsageRecordResponse, error) - - // UsageReportServiceGetUsageReportWithResponse Get aggregated usage report for a billing period - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/usage/report (the `UsageReportServiceGetUsageReport` operationId). - UsageReportServiceGetUsageReportWithResponse(ctx context.Context, params *UsageReportServiceGetUsageReportParams, reqEditors ...RequestEditorFn) (*UsageReportServiceGetUsageReportResponse, error) - - // UserServiceListUsersWithResponse performs a GET /v1/users (the `UserServiceListUsers` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceListUsersWithResponse(ctx context.Context, params *UserServiceListUsersParams, reqEditors ...RequestEditorFn) (*UserServiceListUsersResponse, error) - - // UserServiceDeleteUserWithResponse performs a DELETE /v1/users/{id} (the `UserServiceDeleteUser` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceDeleteUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UserServiceDeleteUserResponse, error) - - // UserServiceGetUserWithResponse performs a GET /v1/users/{id} (the `UserServiceGetUser` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - UserServiceGetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UserServiceGetUserResponse, error) - - // UserServiceUpdateUserWithBodyWithResponse performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - UserServiceUpdateUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateUserResponse, error) - - // UserServiceUpdateUserWithResponse performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - UserServiceUpdateUserWithResponse(ctx context.Context, id string, body UserServiceUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateUserResponse, error) - - // MetadataServiceGetVersionWithResponse performs a GET /v1/version (the `MetadataServiceGetVersion` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - MetadataServiceGetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetVersionResponse, error) - - // VirtualMachineServiceListVirtualMachinesWithResponse performs a GET /v1/virtual-machines (the `VirtualMachineServiceListVirtualMachines` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceListVirtualMachinesWithResponse(ctx context.Context, params *VirtualMachineServiceListVirtualMachinesParams, reqEditors ...RequestEditorFn) (*VirtualMachineServiceListVirtualMachinesResponse, error) - - // VirtualMachineServiceCreateVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceCreateVirtualMachineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceCreateVirtualMachineResponse, error) - - // VirtualMachineServiceCreateVirtualMachineWithResponse performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceCreateVirtualMachineWithResponse(ctx context.Context, body VirtualMachineServiceCreateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceCreateVirtualMachineResponse, error) - - // VirtualMachineServiceListVMTagsWithResponse ListVMTags returns all unique tags from virtual machines belonging to the organization - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/virtual-machines/tags (the `VirtualMachineServiceListVMTags` operationId). - VirtualMachineServiceListVMTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*VirtualMachineServiceListVMTagsResponse, error) - - // VirtualMachineServiceDeleteVirtualMachineWithResponse performs a DELETE /v1/virtual-machines/{id} (the `VirtualMachineServiceDeleteVirtualMachine` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceDeleteVirtualMachineWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDeleteVirtualMachineResponse, error) - - // VirtualMachineServiceGetVirtualMachineWithResponse performs a GET /v1/virtual-machines/{id} (the `VirtualMachineServiceGetVirtualMachine` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceGetVirtualMachineWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceGetVirtualMachineResponse, error) - - // VirtualMachineServiceUpdateVirtualMachineWithBodyWithResponse performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceUpdateVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceUpdateVirtualMachineResponse, error) - - // VirtualMachineServiceUpdateVirtualMachineWithResponse performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceUpdateVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceUpdateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceUpdateVirtualMachineResponse, error) - - // VirtualMachineServiceGetVNCConsoleWithResponse GetVNCConsole returns WebSocket URL for VNC console access. - // - // Returns a wrapper object for the known response body format(s). - // - // Corresponds with GET /v1/virtual-machines/{id}/console (the `VirtualMachineServiceGetVNCConsole` operationId). - VirtualMachineServiceGetVNCConsoleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceGetVNCConsoleResponse, error) - - // VirtualMachineServiceAttachVMFirewallWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceAttachVMFirewallWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceAttachVMFirewallResponse, error) - - // VirtualMachineServiceAttachVMFirewallWithResponse performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceAttachVMFirewallWithResponse(ctx context.Context, id string, body VirtualMachineServiceAttachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceAttachVMFirewallResponse, error) - - // VirtualMachineServiceDetachVMFirewallWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceDetachVMFirewallWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDetachVMFirewallResponse, error) - - // VirtualMachineServiceDetachVMFirewallWithResponse performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceDetachVMFirewallWithResponse(ctx context.Context, id string, body VirtualMachineServiceDetachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDetachVMFirewallResponse, error) - - // VirtualMachineServiceReinstallVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceReinstallVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceReinstallVirtualMachineResponse, error) - - // VirtualMachineServiceReinstallVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceReinstallVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceReinstallVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceReinstallVirtualMachineResponse, error) - - // VirtualMachineServiceRestartVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceRestartVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceRestartVirtualMachineResponse, error) - - // VirtualMachineServiceRestartVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceRestartVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceRestartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceRestartVirtualMachineResponse, error) - - // VirtualMachineServiceStartVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceStartVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStartVirtualMachineResponse, error) - - // VirtualMachineServiceStartVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceStartVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceStartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStartVirtualMachineResponse, error) - - // VirtualMachineServiceStopVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VirtualMachineServiceStopVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStopVirtualMachineResponse, error) - - // VirtualMachineServiceStopVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VirtualMachineServiceStopVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceStopVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStopVirtualMachineResponse, error) - - // BackupServiceListBackupsWithResponse performs a GET /v1/virtual-machines/{vmId}/backups (the `BackupServiceListBackups` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - BackupServiceListBackupsWithResponse(ctx context.Context, vmId string, params *BackupServiceListBackupsParams, reqEditors ...RequestEditorFn) (*BackupServiceListBackupsResponse, error) - - // BackupServiceDeleteBackupWithResponse performs a DELETE /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceDeleteBackup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - BackupServiceDeleteBackupWithResponse(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*BackupServiceDeleteBackupResponse, error) - - // BackupServiceGetBackupWithResponse performs a GET /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceGetBackup` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - BackupServiceGetBackupWithResponse(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*BackupServiceGetBackupResponse, error) - - // BackupServiceRestoreBackupWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - BackupServiceRestoreBackupWithBodyWithResponse(ctx context.Context, vmId string, backupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BackupServiceRestoreBackupResponse, error) - - // BackupServiceRestoreBackupWithResponse performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - BackupServiceRestoreBackupWithResponse(ctx context.Context, vmId string, backupId string, body BackupServiceRestoreBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*BackupServiceRestoreBackupResponse, error) - - // SnapshotServiceListSnapshotsWithResponse performs a GET /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceListSnapshots` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SnapshotServiceListSnapshotsWithResponse(ctx context.Context, vmId string, params *SnapshotServiceListSnapshotsParams, reqEditors ...RequestEditorFn) (*SnapshotServiceListSnapshotsResponse, error) - - // SnapshotServiceCreateSnapshotWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SnapshotServiceCreateSnapshotWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotServiceCreateSnapshotResponse, error) - - // SnapshotServiceCreateSnapshotWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SnapshotServiceCreateSnapshotWithResponse(ctx context.Context, vmId string, body SnapshotServiceCreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotServiceCreateSnapshotResponse, error) - - // SnapshotServiceDeleteSnapshotWithResponse performs a DELETE /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceDeleteSnapshot` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SnapshotServiceDeleteSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*SnapshotServiceDeleteSnapshotResponse, error) - - // SnapshotServiceGetSnapshotWithResponse performs a GET /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceGetSnapshot` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - SnapshotServiceGetSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*SnapshotServiceGetSnapshotResponse, error) - - // SnapshotServiceRestoreSnapshotWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - SnapshotServiceRestoreSnapshotWithBodyWithResponse(ctx context.Context, vmId string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotServiceRestoreSnapshotResponse, error) - - // SnapshotServiceRestoreSnapshotWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - SnapshotServiceRestoreSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, body SnapshotServiceRestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotServiceRestoreSnapshotResponse, error) - - // VirtualMachineServiceDisableAdditionalIPWithBodyWithResponse DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). - VirtualMachineServiceDisableAdditionalIPWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableAdditionalIPResponse, error) - - // VirtualMachineServiceDisableAdditionalIPWithResponse DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). - VirtualMachineServiceDisableAdditionalIPWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceDisableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableAdditionalIPResponse, error) - - // VirtualMachineServiceDisableBackupWithBodyWithResponse DisableBackup disables backup addon for a virtual machine - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). - VirtualMachineServiceDisableBackupWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableBackupResponse, error) - - // VirtualMachineServiceDisableBackupWithResponse DisableBackup disables backup addon for a virtual machine - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). - VirtualMachineServiceDisableBackupWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceDisableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableBackupResponse, error) - - // VirtualMachineServiceEnableAdditionalIPWithBodyWithResponse EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). - VirtualMachineServiceEnableAdditionalIPWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableAdditionalIPResponse, error) - - // VirtualMachineServiceEnableAdditionalIPWithResponse EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). - VirtualMachineServiceEnableAdditionalIPWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceEnableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableAdditionalIPResponse, error) - - // VirtualMachineServiceEnableBackupWithBodyWithResponse EnableBackup enables backup addon for a virtual machine - // - // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). - VirtualMachineServiceEnableBackupWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableBackupResponse, error) - - // VirtualMachineServiceEnableBackupWithResponse EnableBackup enables backup addon for a virtual machine - // - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - // - // Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). - VirtualMachineServiceEnableBackupWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceEnableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableBackupResponse, error) - - // VMTemplateServiceCreateVMTemplateWithBodyWithResponse performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VMTemplateServiceCreateVMTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VMTemplateServiceCreateVMTemplateResponse, error) - - // VMTemplateServiceCreateVMTemplateWithResponse performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VMTemplateServiceCreateVMTemplateWithResponse(ctx context.Context, body VMTemplateServiceCreateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*VMTemplateServiceCreateVMTemplateResponse, error) - - // VMTemplateServiceDeleteVMTemplateWithResponse performs a DELETE /v1/vmtemplate/{id} (the `VMTemplateServiceDeleteVMTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VMTemplateServiceDeleteVMTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VMTemplateServiceDeleteVMTemplateResponse, error) - - // VMTemplateServiceGetVMTemplateWithResponse performs a GET /v1/vmtemplate/{id} (the `VMTemplateServiceGetVMTemplate` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VMTemplateServiceGetVMTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VMTemplateServiceGetVMTemplateResponse, error) - - // VMTemplateServiceUpdateVMTemplateWithBodyWithResponse performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request, - // with any type of body and a specified content type. - // - // Returns a wrapper object for the known response body format(s). - VMTemplateServiceUpdateVMTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VMTemplateServiceUpdateVMTemplateResponse, error) - - // VMTemplateServiceUpdateVMTemplateWithResponse performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request. - // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). - VMTemplateServiceUpdateVMTemplateWithResponse(ctx context.Context, id string, body VMTemplateServiceUpdateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*VMTemplateServiceUpdateVMTemplateResponse, error) - - // VMTemplateServiceListVMTemplatesWithResponse performs a GET /v1/vmtemplates (the `VMTemplateServiceListVMTemplates` operationId) request. - // - // Returns a wrapper object for the known response body format(s). - VMTemplateServiceListVMTemplatesWithResponse(ctx context.Context, params *VMTemplateServiceListVMTemplatesParams, reqEditors ...RequestEditorFn) (*VMTemplateServiceListVMTemplatesResponse, error) -} - -type WebhookServiceHandleWebhookResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1HandleWebhookResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r WebhookServiceHandleWebhookResponse) GetJSON200() *V1HandleWebhookResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r WebhookServiceHandleWebhookResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r WebhookServiceHandleWebhookResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r WebhookServiceHandleWebhookResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r WebhookServiceHandleWebhookResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceRemoveAddonResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1RemoveAddonResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceRemoveAddonResponse) GetJSON200() *V1RemoveAddonResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceRemoveAddonResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceRemoveAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceRemoveAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceRemoveAddonResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceListAddonsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAddonsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceListAddonsResponse) GetJSON200() *V1ListAddonsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceListAddonsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceListAddonsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceListAddonsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceListAddonsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceCreateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceCreateAddonResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceCreateAddonResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceCreateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceCreateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceCreateAddonResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceDeleteAddonResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceDeleteAddonResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceDeleteAddonResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceDeleteAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceDeleteAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceDeleteAddonResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceGetAddonResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetAddonResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceGetAddonResponse) GetJSON200() *V1GetAddonResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceGetAddonResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceGetAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceGetAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceGetAddonResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceUpdateAddonResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceUpdateAddonResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceUpdateAddonResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceUpdateAddonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceUpdateAddonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceUpdateAddonResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceListAgentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAgentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceListAgentsResponse) GetJSON200() *V1ListAgentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceListAgentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceListAgentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceListAgentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceListAgentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceCreateAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetAgentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceCreateAgentResponse) GetJSON200() *V1GetAgentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceCreateAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceCreateAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceCreateAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceCreateAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceDeleteAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceDeleteAgentResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceDeleteAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceDeleteAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceDeleteAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceDeleteAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceGetAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetAgentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceGetAgentResponse) GetJSON200() *V1GetAgentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceGetAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceGetAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceGetAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceGetAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceUpdateAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateAgentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceUpdateAgentResponse) GetJSON200() *V1UpdateAgentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceUpdateAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceUpdateAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceUpdateAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceUpdateAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceGenerateInstallCommandResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GenerateInstallCommandResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceGenerateInstallCommandResponse) GetJSON200() *V1GenerateInstallCommandResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceGenerateInstallCommandResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceGenerateInstallCommandResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceGenerateInstallCommandResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceGenerateInstallCommandResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceGeneratePeeringConfigResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GeneratePeeringConfigResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceGeneratePeeringConfigResponse) GetJSON200() *V1GeneratePeeringConfigResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceGeneratePeeringConfigResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceGeneratePeeringConfigResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceGeneratePeeringConfigResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceGeneratePeeringConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AgentServiceUploadInboundPeeringConfigResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UploadInboundPeeringConfigResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AgentServiceUploadInboundPeeringConfigResponse) GetJSON200() *V1UploadInboundPeeringConfigResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AgentServiceUploadInboundPeeringConfigResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AgentServiceUploadInboundPeeringConfigResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AgentServiceUploadInboundPeeringConfigResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AgentServiceUploadInboundPeeringConfigResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceChangePasswordResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceChangePasswordResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceChangePasswordResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceChangePasswordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceChangePasswordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceChangePasswordResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceForgotPasswordResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceForgotPasswordResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceForgotPasswordResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceForgotPasswordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceForgotPasswordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceForgotPasswordResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceListLinkedIdentitiesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListLinkedIdentitiesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceListLinkedIdentitiesResponse) GetJSON200() *V1ListLinkedIdentitiesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceListLinkedIdentitiesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceListLinkedIdentitiesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceListLinkedIdentitiesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceListLinkedIdentitiesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceUnlinkIdentityResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceUnlinkIdentityResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceUnlinkIdentityResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceUnlinkIdentityResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceUnlinkIdentityResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceUnlinkIdentityResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceLoginResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1LoginResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceLoginResponse) GetJSON200() *V1LoginResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceLoginResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceLoginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceLoginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceLoginResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceLoginMfaVerifyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1LoginResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceLoginMfaVerifyResponse) GetJSON200() *V1LoginResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceLoginMfaVerifyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceLoginMfaVerifyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceLoginMfaVerifyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceLoginMfaVerifyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceLogoutResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceLogoutResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceLogoutResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceLogoutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceLogoutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceLogoutResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceRegenerateMfaBackupCodesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1RegenerateMfaBackupCodesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceRegenerateMfaBackupCodesResponse) GetJSON200() *V1RegenerateMfaBackupCodesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceRegenerateMfaBackupCodesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceRegenerateMfaBackupCodesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceRegenerateMfaBackupCodesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceRegenerateMfaBackupCodesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceDisableMfaResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceDisableMfaResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceDisableMfaResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceDisableMfaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceDisableMfaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceDisableMfaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceEnrollMfaTotpResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1EnrollMfaTotpResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceEnrollMfaTotpResponse) GetJSON200() *V1EnrollMfaTotpResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceEnrollMfaTotpResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceEnrollMfaTotpResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceEnrollMfaTotpResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceEnrollMfaTotpResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceGetMfaStatusResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetMfaStatusResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceGetMfaStatusResponse) GetJSON200() *V1GetMfaStatusResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceGetMfaStatusResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceGetMfaStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceGetMfaStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceGetMfaStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceVerifyMfaEnrollmentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VerifyMfaEnrollmentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceVerifyMfaEnrollmentResponse) GetJSON200() *V1VerifyMfaEnrollmentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceVerifyMfaEnrollmentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceVerifyMfaEnrollmentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceVerifyMfaEnrollmentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceVerifyMfaEnrollmentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceRegisterUserResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceRegisterUserResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceRegisterUserResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceRegisterUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceRegisterUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceRegisterUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceResendVerificationEmailResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceResendVerificationEmailResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceResendVerificationEmailResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceResendVerificationEmailResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceResendVerificationEmailResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceResendVerificationEmailResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceResetPasswordResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceResetPasswordResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceResetPasswordResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceResetPasswordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceResetPasswordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceResetPasswordResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceGetActiveSessionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetActiveSessionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceGetActiveSessionsResponse) GetJSON200() *V1GetActiveSessionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceGetActiveSessionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceGetActiveSessionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceGetActiveSessionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceGetActiveSessionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceSetPasswordResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceSetPasswordResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceSetPasswordResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceSetPasswordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceSetPasswordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceSetPasswordResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceExchangeSSOCodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1LoginResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceExchangeSSOCodeResponse) GetJSON200() *V1LoginResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceExchangeSSOCodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceExchangeSSOCodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceExchangeSSOCodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceExchangeSSOCodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceCompleteSSOLinkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1LoginResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceCompleteSSOLinkResponse) GetJSON200() *V1LoginResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceCompleteSSOLinkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceCompleteSSOLinkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceCompleteSSOLinkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceCompleteSSOLinkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceVerifyEmailResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceVerifyEmailResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceVerifyEmailResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceVerifyEmailResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceVerifyEmailResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceVerifyEmailResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ChatServiceChatResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ChatResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ChatServiceChatResponse) GetJSON200() *V1ChatResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ChatServiceChatResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ChatServiceChatResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ChatServiceChatResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ChatServiceChatResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ChatServiceChatAnonymousResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ChatResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ChatServiceChatAnonymousResponse) GetJSON200() *V1ChatResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ChatServiceChatAnonymousResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ChatServiceChatAnonymousResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ChatServiceChatAnonymousResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ChatServiceChatAnonymousResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ChatServiceListConversationsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListConversationsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ChatServiceListConversationsResponse) GetJSON200() *V1ListConversationsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ChatServiceListConversationsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ChatServiceListConversationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ChatServiceListConversationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ChatServiceListConversationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ChatServiceDeleteConversationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ChatServiceDeleteConversationResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ChatServiceDeleteConversationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ChatServiceDeleteConversationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ChatServiceDeleteConversationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ChatServiceDeleteConversationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ChatServiceGetConversationHistoryResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetConversationHistoryResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ChatServiceGetConversationHistoryResponse) GetJSON200() *V1GetConversationHistoryResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ChatServiceGetConversationHistoryResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ChatServiceGetConversationHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ChatServiceGetConversationHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ChatServiceGetConversationHistoryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientDashboardServiceGetClientDashboardBillingResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetClientDashboardBillingResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientDashboardServiceGetClientDashboardBillingResponse) GetJSON200() *V1GetClientDashboardBillingResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientDashboardServiceGetClientDashboardBillingResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientDashboardServiceGetClientDashboardBillingResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientDashboardServiceGetClientDashboardBillingResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientDashboardServiceGetClientDashboardBillingResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientDashboardServiceGetClientDashboardSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetClientDashboardSummaryResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientDashboardServiceGetClientDashboardSummaryResponse) GetJSON200() *V1GetClientDashboardSummaryResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientDashboardServiceGetClientDashboardSummaryResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientDashboardServiceGetClientDashboardSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientDashboardServiceGetClientDashboardSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientDashboardServiceGetClientDashboardSummaryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientProviderReviewServiceListClientProviderReviewAssetsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListClientProviderReviewAssetsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientProviderReviewServiceListClientProviderReviewAssetsResponse) GetJSON200() *V1ListClientProviderReviewAssetsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientProviderReviewServiceListClientProviderReviewAssetsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientProviderReviewServiceListClientProviderReviewAssetsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientProviderReviewServiceListClientProviderReviewAssetsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientProviderReviewServiceListClientProviderReviewAssetsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitTemplateServiceCreateCloudInitTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitTemplateServiceCreateCloudInitTemplateResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitTemplateServiceCreateCloudInitTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitTemplateServiceCreateCloudInitTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitTemplateServiceCreateCloudInitTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitTemplateServiceCreateCloudInitTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitTemplateServiceDeleteCloudInitTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitTemplateServiceDeleteCloudInitTemplateResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitTemplateServiceDeleteCloudInitTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitTemplateServiceDeleteCloudInitTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitTemplateServiceDeleteCloudInitTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitTemplateServiceDeleteCloudInitTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitTemplateServiceGetCloudInitTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetCloudInitTemplateResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitTemplateServiceGetCloudInitTemplateResponse) GetJSON200() *V1GetCloudInitTemplateResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitTemplateServiceGetCloudInitTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitTemplateServiceGetCloudInitTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitTemplateServiceGetCloudInitTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitTemplateServiceGetCloudInitTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitTemplateServiceUpdateCloudInitTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateCloudInitTemplateResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitTemplateServiceUpdateCloudInitTemplateResponse) GetJSON200() *V1UpdateCloudInitTemplateResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitTemplateServiceUpdateCloudInitTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitTemplateServiceUpdateCloudInitTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitTemplateServiceUpdateCloudInitTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitTemplateServiceUpdateCloudInitTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitTemplateServiceListCloudInitTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListCloudInitTemplatesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitTemplateServiceListCloudInitTemplatesResponse) GetJSON200() *V1ListCloudInitTemplatesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitTemplateServiceListCloudInitTemplatesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitTemplateServiceListCloudInitTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitTemplateServiceListCloudInitTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitTemplateServiceListCloudInitTemplatesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitUserDataServiceListCloudInitUserDataResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListCloudInitUserDataResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitUserDataServiceListCloudInitUserDataResponse) GetJSON200() *V1ListCloudInitUserDataResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitUserDataServiceListCloudInitUserDataResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitUserDataServiceListCloudInitUserDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitUserDataServiceListCloudInitUserDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitUserDataServiceListCloudInitUserDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitUserDataServiceCreateCloudInitUserDataResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CloudInitUserData -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitUserDataServiceCreateCloudInitUserDataResponse) GetJSON200() *V1CloudInitUserData { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitUserDataServiceCreateCloudInitUserDataResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitUserDataServiceCreateCloudInitUserDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitUserDataServiceCreateCloudInitUserDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitUserDataServiceCreateCloudInitUserDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitUserDataServiceDeleteCloudInitUserDataResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitUserDataServiceDeleteCloudInitUserDataResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitUserDataServiceDeleteCloudInitUserDataResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitUserDataServiceDeleteCloudInitUserDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitUserDataServiceDeleteCloudInitUserDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitUserDataServiceDeleteCloudInitUserDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitUserDataServiceGetCloudInitUserDataResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CloudInitUserData -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitUserDataServiceGetCloudInitUserDataResponse) GetJSON200() *V1CloudInitUserData { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitUserDataServiceGetCloudInitUserDataResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitUserDataServiceGetCloudInitUserDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitUserDataServiceGetCloudInitUserDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitUserDataServiceGetCloudInitUserDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CloudInitUserDataServiceUpdateCloudInitUserDataResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CloudInitUserData -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CloudInitUserDataServiceUpdateCloudInitUserDataResponse) GetJSON200() *V1CloudInitUserData { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CloudInitUserDataServiceUpdateCloudInitUserDataResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CloudInitUserDataServiceUpdateCloudInitUserDataResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CloudInitUserDataServiceUpdateCloudInitUserDataResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CloudInitUserDataServiceUpdateCloudInitUserDataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceListCountriesCitiesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListCountriesCitiesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceListCountriesCitiesResponse) GetJSON200() *V1ListCountriesCitiesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceListCountriesCitiesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceListCountriesCitiesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceListCountriesCitiesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceListCountriesCitiesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CreditServiceGetCreditBalanceResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetCreditBalanceResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CreditServiceGetCreditBalanceResponse) GetJSON200() *V1GetCreditBalanceResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CreditServiceGetCreditBalanceResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CreditServiceGetCreditBalanceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreditServiceGetCreditBalanceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreditServiceGetCreditBalanceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CreditServiceListCreditLedgerEntriesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListCreditLedgerEntriesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CreditServiceListCreditLedgerEntriesResponse) GetJSON200() *V1ListCreditLedgerEntriesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CreditServiceListCreditLedgerEntriesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CreditServiceListCreditLedgerEntriesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreditServiceListCreditLedgerEntriesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreditServiceListCreditLedgerEntriesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type CreditServicePurchaseCreditsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1PurchaseCreditsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CreditServicePurchaseCreditsResponse) GetJSON200() *V1PurchaseCreditsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r CreditServicePurchaseCreditsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r CreditServicePurchaseCreditsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r CreditServicePurchaseCreditsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreditServicePurchaseCreditsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceListDatacentersResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDatacentersResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceListDatacentersResponse) GetJSON200() *V1ListDatacentersResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceListDatacentersResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceListDatacentersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceListDatacentersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceListDatacentersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type DomainServiceGetDomainResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetDomainResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r DomainServiceGetDomainResponse) GetJSON200() *V1GetDomainResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r DomainServiceGetDomainResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r DomainServiceGetDomainResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DomainServiceGetDomainResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DomainServiceGetDomainResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type DomainServiceCreateDomainResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r DomainServiceCreateDomainResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r DomainServiceCreateDomainResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r DomainServiceCreateDomainResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DomainServiceCreateDomainResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DomainServiceCreateDomainResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type DomainServiceVerifyDomainResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r DomainServiceVerifyDomainResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r DomainServiceVerifyDomainResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r DomainServiceVerifyDomainResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DomainServiceVerifyDomainResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DomainServiceVerifyDomainResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type DomainServiceDeleteDomainResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r DomainServiceDeleteDomainResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r DomainServiceDeleteDomainResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r DomainServiceDeleteDomainResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DomainServiceDeleteDomainResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DomainServiceDeleteDomainResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type EnvironmentVariableServiceListEnvironmentVariablesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListEnvironmentVariablesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EnvironmentVariableServiceListEnvironmentVariablesResponse) GetJSON200() *V1ListEnvironmentVariablesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r EnvironmentVariableServiceListEnvironmentVariablesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r EnvironmentVariableServiceListEnvironmentVariablesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EnvironmentVariableServiceListEnvironmentVariablesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EnvironmentVariableServiceListEnvironmentVariablesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type EnvironmentVariableServiceCreateEnvironmentVariableResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EnvironmentVariableServiceCreateEnvironmentVariableResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r EnvironmentVariableServiceCreateEnvironmentVariableResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r EnvironmentVariableServiceCreateEnvironmentVariableResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EnvironmentVariableServiceCreateEnvironmentVariableResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EnvironmentVariableServiceCreateEnvironmentVariableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type EnvironmentVariableServiceDeleteEnvironmentVariableResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EnvironmentVariableServiceDeleteEnvironmentVariableResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r EnvironmentVariableServiceDeleteEnvironmentVariableResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r EnvironmentVariableServiceDeleteEnvironmentVariableResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EnvironmentVariableServiceDeleteEnvironmentVariableResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EnvironmentVariableServiceDeleteEnvironmentVariableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type EnvironmentVariableServiceGetEnvironmentVariableResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetEnvironmentVariableResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EnvironmentVariableServiceGetEnvironmentVariableResponse) GetJSON200() *V1GetEnvironmentVariableResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r EnvironmentVariableServiceGetEnvironmentVariableResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r EnvironmentVariableServiceGetEnvironmentVariableResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EnvironmentVariableServiceGetEnvironmentVariableResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EnvironmentVariableServiceGetEnvironmentVariableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type EnvironmentVariableServiceUpdateEnvironmentVariableResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EnvironmentVariableServiceUpdateEnvironmentVariableResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r EnvironmentVariableServiceUpdateEnvironmentVariableResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r EnvironmentVariableServiceUpdateEnvironmentVariableResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r EnvironmentVariableServiceUpdateEnvironmentVariableResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EnvironmentVariableServiceUpdateEnvironmentVariableResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ExchangeRateServiceConvertCurrencyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ConvertCurrencyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ExchangeRateServiceConvertCurrencyResponse) GetJSON200() *V1ConvertCurrencyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ExchangeRateServiceConvertCurrencyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ExchangeRateServiceConvertCurrencyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExchangeRateServiceConvertCurrencyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ExchangeRateServiceConvertCurrencyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ExchangeRateServiceListSupportedCurrenciesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListSupportedCurrenciesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ExchangeRateServiceListSupportedCurrenciesResponse) GetJSON200() *V1ListSupportedCurrenciesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ExchangeRateServiceListSupportedCurrenciesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ExchangeRateServiceListSupportedCurrenciesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExchangeRateServiceListSupportedCurrenciesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ExchangeRateServiceListSupportedCurrenciesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ExchangeRateServiceGetExchangeRateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetExchangeRateResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ExchangeRateServiceGetExchangeRateResponse) GetJSON200() *V1GetExchangeRateResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ExchangeRateServiceGetExchangeRateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ExchangeRateServiceGetExchangeRateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExchangeRateServiceGetExchangeRateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ExchangeRateServiceGetExchangeRateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ExchangeRateServiceGetAllExchangeRatesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetAllExchangeRatesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ExchangeRateServiceGetAllExchangeRatesResponse) GetJSON200() *V1GetAllExchangeRatesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ExchangeRateServiceGetAllExchangeRatesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ExchangeRateServiceGetAllExchangeRatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ExchangeRateServiceGetAllExchangeRatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ExchangeRateServiceGetAllExchangeRatesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceListFirewallAddressGroupsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListFirewallAddressGroupsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceListFirewallAddressGroupsResponse) GetJSON200() *V1ListFirewallAddressGroupsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceListFirewallAddressGroupsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceListFirewallAddressGroupsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceListFirewallAddressGroupsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceListFirewallAddressGroupsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceCreateFirewallAddressGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceCreateFirewallAddressGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceCreateFirewallAddressGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceCreateFirewallAddressGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceCreateFirewallAddressGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceCreateFirewallAddressGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceDeleteFirewallAddressGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceDeleteFirewallAddressGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceDeleteFirewallAddressGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceDeleteFirewallAddressGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceDeleteFirewallAddressGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceDeleteFirewallAddressGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceGetFirewallAddressGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallAddressGroup -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceGetFirewallAddressGroupResponse) GetJSON200() *V1FirewallAddressGroup { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceGetFirewallAddressGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceGetFirewallAddressGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceGetFirewallAddressGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceGetFirewallAddressGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceUpdateFirewallAddressGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallAddressGroup -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceUpdateFirewallAddressGroupResponse) GetJSON200() *V1FirewallAddressGroup { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceUpdateFirewallAddressGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceUpdateFirewallAddressGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceUpdateFirewallAddressGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceUpdateFirewallAddressGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceDeleteFirewallRuleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceDeleteFirewallRuleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceDeleteFirewallRuleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceDeleteFirewallRuleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceDeleteFirewallRuleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceDeleteFirewallRuleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceGetFirewallRuleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallRuleResource -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceGetFirewallRuleResponse) GetJSON200() *V1FirewallRuleResource { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceGetFirewallRuleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceGetFirewallRuleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceGetFirewallRuleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceGetFirewallRuleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceUpdateFirewallRuleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallRuleResource -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceUpdateFirewallRuleResponse) GetJSON200() *V1FirewallRuleResource { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceUpdateFirewallRuleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceUpdateFirewallRuleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceUpdateFirewallRuleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceUpdateFirewallRuleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceMoveFirewallRuleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallRuleResource -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceMoveFirewallRuleResponse) GetJSON200() *V1FirewallRuleResource { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceMoveFirewallRuleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceMoveFirewallRuleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceMoveFirewallRuleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceMoveFirewallRuleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceListFirewallRuleSetsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListFirewallRuleSetsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceListFirewallRuleSetsResponse) GetJSON200() *V1ListFirewallRuleSetsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceListFirewallRuleSetsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceListFirewallRuleSetsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceListFirewallRuleSetsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceListFirewallRuleSetsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceCreateFirewallRuleSetResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceCreateFirewallRuleSetResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceCreateFirewallRuleSetResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceCreateFirewallRuleSetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceCreateFirewallRuleSetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceCreateFirewallRuleSetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceDeleteFirewallRuleSetResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceDeleteFirewallRuleSetResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceDeleteFirewallRuleSetResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceDeleteFirewallRuleSetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceDeleteFirewallRuleSetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceDeleteFirewallRuleSetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceGetFirewallRuleSetResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallRuleSet -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceGetFirewallRuleSetResponse) GetJSON200() *V1FirewallRuleSet { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceGetFirewallRuleSetResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceGetFirewallRuleSetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceGetFirewallRuleSetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceGetFirewallRuleSetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceUpdateFirewallRuleSetResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1FirewallRuleSet -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceUpdateFirewallRuleSetResponse) GetJSON200() *V1FirewallRuleSet { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceUpdateFirewallRuleSetResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceUpdateFirewallRuleSetResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceUpdateFirewallRuleSetResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceUpdateFirewallRuleSetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceListFirewallRulesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListFirewallRulesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceListFirewallRulesResponse) GetJSON200() *V1ListFirewallRulesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceListFirewallRulesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceListFirewallRulesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceListFirewallRulesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceListFirewallRulesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type FirewallServiceCreateFirewallRuleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r FirewallServiceCreateFirewallRuleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r FirewallServiceCreateFirewallRuleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r FirewallServiceCreateFirewallRuleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r FirewallServiceCreateFirewallRuleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r FirewallServiceCreateFirewallRuleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceListGroupsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListGroupsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceListGroupsResponse) GetJSON200() *V1ListGroupsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceListGroupsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceListGroupsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceListGroupsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceListGroupsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceCreateGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceCreateGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceCreateGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceCreateGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceCreateGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceCreateGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceAddServiceAccountToGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceAddServiceAccountToGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceAddServiceAccountToGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceAddServiceAccountToGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceAddServiceAccountToGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceAddServiceAccountToGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceAddUserToGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceAddUserToGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceAddUserToGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceAddUserToGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceAddUserToGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceAddUserToGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceRemoveServiceAccountFromGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceRemoveServiceAccountFromGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceRemoveServiceAccountFromGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceRemoveServiceAccountFromGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceRemoveServiceAccountFromGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceRemoveServiceAccountFromGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceRemoveUserFromGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceRemoveUserFromGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceRemoveUserFromGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceRemoveUserFromGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceRemoveUserFromGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceRemoveUserFromGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceDeleteGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceDeleteGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceDeleteGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceDeleteGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceDeleteGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceDeleteGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceGetGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetGroupResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceGetGroupResponse) GetJSON200() *V1GetGroupResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceGetGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceGetGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceGetGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceGetGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type GroupServiceUpdateGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateGroupResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GroupServiceUpdateGroupResponse) GetJSON200() *V1UpdateGroupResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r GroupServiceUpdateGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GroupServiceUpdateGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GroupServiceUpdateGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GroupServiceUpdateGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetadataServiceHealthCheckResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1HealthCheckResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetadataServiceHealthCheckResponse) GetJSON200() *V1HealthCheckResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetadataServiceHealthCheckResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetadataServiceHealthCheckResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetadataServiceHealthCheckResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetadataServiceHealthCheckResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InstantAppServiceListInstantAppsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListInstantAppsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InstantAppServiceListInstantAppsResponse) GetJSON200() *V1ListInstantAppsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InstantAppServiceListInstantAppsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InstantAppServiceListInstantAppsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InstantAppServiceListInstantAppsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InstantAppServiceListInstantAppsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InstantAppServiceGetInstantApp2Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1InstantApp -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InstantAppServiceGetInstantApp2Response) GetJSON200() *V1InstantApp { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InstantAppServiceGetInstantApp2Response) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InstantAppServiceGetInstantApp2Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InstantAppServiceGetInstantApp2Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InstantAppServiceGetInstantApp2Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InstantAppServiceGetInstantAppResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1InstantApp -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InstantAppServiceGetInstantAppResponse) GetJSON200() *V1InstantApp { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InstantAppServiceGetInstantAppResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InstantAppServiceGetInstantAppResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InstantAppServiceGetInstantAppResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InstantAppServiceGetInstantAppResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceListInvitesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListInvitesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceListInvitesResponse) GetJSON200() *V1ListInvitesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceListInvitesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceListInvitesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceListInvitesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceListInvitesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceUpdateInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceUpdateInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceUpdateInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceUpdateInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceUpdateInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceUpdateInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceCreateInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceCreateInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceCreateInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceCreateInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceCreateInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceCreateInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceAcceptInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceAcceptInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceAcceptInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceAcceptInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceAcceptInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceAcceptInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceDeclineInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceDeclineInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceDeclineInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceDeclineInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceDeclineInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceDeclineInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceListMyInvitesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListMyInvitesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceListMyInvitesResponse) GetJSON200() *V1ListMyInvitesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceListMyInvitesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceListMyInvitesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceListMyInvitesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceListMyInvitesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceResendInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceResendInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceResendInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceResendInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceResendInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceResendInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InviteServiceDeleteInviteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InviteServiceDeleteInviteResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InviteServiceDeleteInviteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InviteServiceDeleteInviteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InviteServiceDeleteInviteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InviteServiceDeleteInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InvoiceServiceListInvoicesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListInvoicesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InvoiceServiceListInvoicesResponse) GetJSON200() *V1ListInvoicesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InvoiceServiceListInvoicesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InvoiceServiceListInvoicesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InvoiceServiceListInvoicesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InvoiceServiceListInvoicesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type InvoiceServiceGetInvoiceResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetInvoiceResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r InvoiceServiceGetInvoiceResponse) GetJSON200() *V1GetInvoiceResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r InvoiceServiceGetInvoiceResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r InvoiceServiceGetInvoiceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r InvoiceServiceGetInvoiceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r InvoiceServiceGetInvoiceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceListAllocationsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAllocationsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceListAllocationsResponse) GetJSON200() *V1ListAllocationsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceListAllocationsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceListAllocationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceListAllocationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceListAllocationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceListNetworksResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListNetworksResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceListNetworksResponse) GetJSON200() *V1ListNetworksResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceListNetworksResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceListNetworksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceListNetworksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceListNetworksResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceCreateNetworkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceCreateNetworkResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceCreateNetworkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceCreateNetworkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceCreateNetworkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceCreateNetworkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceDeleteNetworkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceDeleteNetworkResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceDeleteNetworkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceDeleteNetworkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceDeleteNetworkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceDeleteNetworkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceGetNetworkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetNetworkResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceGetNetworkResponse) GetJSON200() *V1GetNetworkResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceGetNetworkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceGetNetworkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceGetNetworkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceGetNetworkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceUpdateNetworkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateNetworkResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceUpdateNetworkResponse) GetJSON200() *V1UpdateNetworkResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceUpdateNetworkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceUpdateNetworkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceUpdateNetworkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceUpdateNetworkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceAssignNetworkToNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceAssignNetworkToNodeResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceAssignNetworkToNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceAssignNetworkToNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceAssignNetworkToNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceAssignNetworkToNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceListNetworkNodesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListNetworkNodesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceListNetworkNodesResponse) GetJSON200() *V1ListNetworkNodesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceListNetworkNodesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceListNetworkNodesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceListNetworkNodesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceListNetworkNodesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceGetNodeNetworkResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetNodeNetworkResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceGetNodeNetworkResponse) GetJSON200() *V1GetNodeNetworkResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceGetNodeNetworkResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceGetNodeNetworkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceGetNodeNetworkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceGetNodeNetworkResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceUnassignNetworkFromNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceUnassignNetworkFromNodeResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceUnassignNetworkFromNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceUnassignNetworkFromNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceUnassignNetworkFromNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceUnassignNetworkFromNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceListPrefixesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPrefixesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceListPrefixesResponse) GetJSON200() *V1ListPrefixesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceListPrefixesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceListPrefixesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceListPrefixesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceListPrefixesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceCreatePrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceCreatePrefixResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceCreatePrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceCreatePrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceCreatePrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceCreatePrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceDeletePrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceDeletePrefixResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceDeletePrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceDeletePrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceDeletePrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceDeletePrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceGetPrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPrefixResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceGetPrefixResponse) GetJSON200() *V1GetPrefixResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceGetPrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceGetPrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceGetPrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceGetPrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceUpdatePrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdatePrefixResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceUpdatePrefixResponse) GetJSON200() *V1UpdatePrefixResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceUpdatePrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceUpdatePrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceUpdatePrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceUpdatePrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceListAvailableIPsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAvailableIPsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceListAvailableIPsResponse) GetJSON200() *V1ListAvailableIPsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceListAvailableIPsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceListAvailableIPsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceListAvailableIPsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceListAvailableIPsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceAddReservedIPResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceAddReservedIPResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceAddReservedIPResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceAddReservedIPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceAddReservedIPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceAddReservedIPResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceClearAllPrefixReservedIPsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceClearAllPrefixReservedIPsResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceClearAllPrefixReservedIPsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceClearAllPrefixReservedIPsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceClearAllPrefixReservedIPsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceClearAllPrefixReservedIPsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceReserveAllPrefixIPsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceReserveAllPrefixIPsResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceReserveAllPrefixIPsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceReserveAllPrefixIPsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceReserveAllPrefixIPsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceReserveAllPrefixIPsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceRemoveReservedIPResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceRemoveReservedIPResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceRemoveReservedIPResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceRemoveReservedIPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceRemoveReservedIPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceRemoveReservedIPResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceRemoveReservedPrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceRemoveReservedPrefixResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceRemoveReservedPrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceRemoveReservedPrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceRemoveReservedPrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceRemoveReservedPrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceAddReservedPrefixResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceAddReservedPrefixResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceAddReservedPrefixResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceAddReservedPrefixResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceAddReservedPrefixResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceAddReservedPrefixResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type IPAMServiceGetPrefixUtilizationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPrefixUtilizationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r IPAMServiceGetPrefixUtilizationResponse) GetJSON200() *V1GetPrefixUtilizationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r IPAMServiceGetPrefixUtilizationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r IPAMServiceGetPrefixUtilizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r IPAMServiceGetPrefixUtilizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IPAMServiceGetPrefixUtilizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceListAvailableAddonsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAvailableAddonsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceListAvailableAddonsResponse) GetJSON200() *V1ListAvailableAddonsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceListAvailableAddonsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceListAvailableAddonsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceListAvailableAddonsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceListAvailableAddonsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceListAvailablePlansResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAvailablePlansResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceListAvailablePlansResponse) GetJSON200() *V1ListAvailablePlansResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceListAvailablePlansResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceListAvailablePlansResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceListAvailablePlansResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceListAvailablePlansResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceGetMarketplacePlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetMarketplacePlanResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceGetMarketplacePlanResponse) GetJSON200() *V1GetMarketplacePlanResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceGetMarketplacePlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceGetMarketplacePlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceGetMarketplacePlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceGetMarketplacePlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceListMarketplaceProviderDirectoryResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListMarketplaceProviderDirectoryResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceListMarketplaceProviderDirectoryResponse) GetJSON200() *V1ListMarketplaceProviderDirectoryResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceListMarketplaceProviderDirectoryResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceListMarketplaceProviderDirectoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceListMarketplaceProviderDirectoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceListMarketplaceProviderDirectoryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceListProvidersResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListProvidersResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceListProvidersResponse) GetJSON200() *V1ListProvidersResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceListProvidersResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceListProvidersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceListProvidersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceListProvidersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceGetProviderResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetProviderResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceGetProviderResponse) GetJSON200() *V1GetProviderResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceGetProviderResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceGetProviderResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceGetProviderResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceGetProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceListAvailableRegionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAvailableRegionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceListAvailableRegionsResponse) GetJSON200() *V1ListAvailableRegionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceListAvailableRegionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceListAvailableRegionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceListAvailableRegionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceListAvailableRegionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MarketplaceServiceSearchMarketplaceResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SearchMarketplaceResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MarketplaceServiceSearchMarketplaceResponse) GetJSON200() *V1SearchMarketplaceResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MarketplaceServiceSearchMarketplaceResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MarketplaceServiceSearchMarketplaceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MarketplaceServiceSearchMarketplaceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MarketplaceServiceSearchMarketplaceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricServiceListMetricsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListMetricsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricServiceListMetricsResponse) GetJSON200() *V1ListMetricsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricServiceListMetricsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricServiceListMetricsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricServiceListMetricsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricServiceListMetricsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricsCredentialServiceListMetricsWriteCredentialsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListMetricsWriteCredentialsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) GetJSON200() *V1ListMetricsWriteCredentialsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricsCredentialServiceCreateMetricsWriteCredentialResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateMetricsWriteCredentialResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) GetJSON200() *V1CreateMetricsWriteCredentialResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricsCredentialServiceRevokeMetricsWriteCredentialResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricsCredentialServiceRevokeMetricsWriteCredentialResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricsCredentialServiceRevokeMetricsWriteCredentialResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricsCredentialServiceRevokeMetricsWriteCredentialResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricsCredentialServiceRevokeMetricsWriteCredentialResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricsCredentialServiceRevokeMetricsWriteCredentialResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricsCredentialServiceRotateMetricsWriteCredentialResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateMetricsWriteCredentialResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) GetJSON200() *V1CreateMetricsWriteCredentialResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetricServiceGetMetricResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetMetricResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetricServiceGetMetricResponse) GetJSON200() *V1GetMetricResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetricServiceGetMetricResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetricServiceGetMetricResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetricServiceGetMetricResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetricServiceGetMetricResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceCreateNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceCreateNodeResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceCreateNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceCreateNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceCreateNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceCreateNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodePlacementServiceGetNodePlacementPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetNodePlacementPolicyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodePlacementServiceGetNodePlacementPolicyResponse) GetJSON200() *V1GetNodePlacementPolicyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodePlacementServiceGetNodePlacementPolicyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodePlacementServiceGetNodePlacementPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodePlacementServiceGetNodePlacementPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodePlacementServiceGetNodePlacementPolicyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodePlacementServiceUpdateNodePlacementPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateNodePlacementPolicyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodePlacementServiceUpdateNodePlacementPolicyResponse) GetJSON200() *V1UpdateNodePlacementPolicyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodePlacementServiceUpdateNodePlacementPolicyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodePlacementServiceUpdateNodePlacementPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodePlacementServiceUpdateNodePlacementPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodePlacementServiceUpdateNodePlacementPolicyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceValidateNodeTopologyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ValidateNodeTopologyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceValidateNodeTopologyResponse) GetJSON200() *V1ValidateNodeTopologyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceValidateNodeTopologyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceValidateNodeTopologyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceValidateNodeTopologyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceValidateNodeTopologyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceDeleteNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceDeleteNodeResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceDeleteNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceDeleteNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceDeleteNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceDeleteNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceGetNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetNodeResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceGetNodeResponse) GetJSON200() *V1GetNodeResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceGetNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceGetNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceGetNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceGetNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceUpdateNodeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateNodeResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceUpdateNodeResponse) GetJSON200() *V1UpdateNodeResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceUpdateNodeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceUpdateNodeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceUpdateNodeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceUpdateNodeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceGetNodeCPUMapResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetNodeCPUMapResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceGetNodeCPUMapResponse) GetJSON200() *V1GetNodeCPUMapResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceGetNodeCPUMapResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceGetNodeCPUMapResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceGetNodeCPUMapResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceGetNodeCPUMapResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type NodeServiceListNodesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListNodesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r NodeServiceListNodesResponse) GetJSON200() *V1ListNodesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r NodeServiceListNodesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r NodeServiceListNodesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r NodeServiceListNodesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r NodeServiceListNodesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceAuthorizeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1AuthorizeResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceAuthorizeResponse) GetJSON200() *V1AuthorizeResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceAuthorizeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceAuthorizeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceAuthorizeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceAuthorizeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceListClientsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListOAuth2ClientsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceListClientsResponse) GetJSON200() *V1ListOAuth2ClientsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceListClientsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceListClientsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceListClientsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceListClientsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceCreateClientResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateOAuth2ClientResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceCreateClientResponse) GetJSON200() *V1CreateOAuth2ClientResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceCreateClientResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceCreateClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceCreateClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceCreateClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceDeleteClientResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *map[string]interface{} -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceDeleteClientResponse) GetJSON200() *map[string]interface{} { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceDeleteClientResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceDeleteClientResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceDeleteClientResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceDeleteClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceRefreshTokenResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TokenResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceRefreshTokenResponse) GetJSON200() *V1TokenResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceRefreshTokenResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceRefreshTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceRefreshTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceRefreshTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceRevokeTokenResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *map[string]interface{} -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceRevokeTokenResponse) GetJSON200() *map[string]interface{} { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceRevokeTokenResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceRevokeTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceRevokeTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceRevokeTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OAuth2ServiceTokenResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TokenResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OAuth2ServiceTokenResponse) GetJSON200() *V1TokenResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OAuth2ServiceTokenResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OAuth2ServiceTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OAuth2ServiceTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OAuth2ServiceTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OrganizationServiceGetOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetOrganizationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OrganizationServiceGetOrganizationResponse) GetJSON200() *V1GetOrganizationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OrganizationServiceGetOrganizationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OrganizationServiceGetOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OrganizationServiceGetOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OrganizationServiceGetOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OrganizationServiceDeleteOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OrganizationServiceDeleteOrganizationResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OrganizationServiceDeleteOrganizationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OrganizationServiceDeleteOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OrganizationServiceDeleteOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OrganizationServiceDeleteOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OrganizationServiceListOrganizationsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListOrganizationsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OrganizationServiceListOrganizationsResponse) GetJSON200() *V1ListOrganizationsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OrganizationServiceListOrganizationsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OrganizationServiceListOrganizationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OrganizationServiceListOrganizationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OrganizationServiceListOrganizationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OrganizationServiceUpdateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateOrganizationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OrganizationServiceUpdateOrganizationResponse) GetJSON200() *V1UpdateOrganizationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OrganizationServiceUpdateOrganizationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OrganizationServiceUpdateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OrganizationServiceUpdateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OrganizationServiceUpdateOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type OrganizationServiceCreateOrganizationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r OrganizationServiceCreateOrganizationResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r OrganizationServiceCreateOrganizationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r OrganizationServiceCreateOrganizationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r OrganizationServiceCreateOrganizationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r OrganizationServiceCreateOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentMethodServiceListPaymentMethodsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPaymentMethodsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentMethodServiceListPaymentMethodsResponse) GetJSON200() *V1ListPaymentMethodsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentMethodServiceListPaymentMethodsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentMethodServiceListPaymentMethodsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentMethodServiceListPaymentMethodsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentMethodServiceListPaymentMethodsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentMethodServiceAttachPaymentMethodResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1AttachPaymentMethodResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentMethodServiceAttachPaymentMethodResponse) GetJSON200() *V1AttachPaymentMethodResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentMethodServiceAttachPaymentMethodResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentMethodServiceAttachPaymentMethodResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentMethodServiceAttachPaymentMethodResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentMethodServiceAttachPaymentMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentMethodServiceRemovePaymentMethodResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1RemovePaymentMethodResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentMethodServiceRemovePaymentMethodResponse) GetJSON200() *V1RemovePaymentMethodResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentMethodServiceRemovePaymentMethodResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentMethodServiceRemovePaymentMethodResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentMethodServiceRemovePaymentMethodResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentMethodServiceRemovePaymentMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentMethodServiceSetDefaultPaymentMethodResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SetDefaultPaymentMethodResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentMethodServiceSetDefaultPaymentMethodResponse) GetJSON200() *V1SetDefaultPaymentMethodResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentMethodServiceSetDefaultPaymentMethodResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentMethodServiceSetDefaultPaymentMethodResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentMethodServiceSetDefaultPaymentMethodResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentMethodServiceSetDefaultPaymentMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentServiceListPaymentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPaymentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentServiceListPaymentsResponse) GetJSON200() *V1ListPaymentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentServiceListPaymentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentServiceListPaymentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentServiceListPaymentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentServiceListPaymentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PaymentServiceGetPaymentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPaymentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PaymentServiceGetPaymentResponse) GetJSON200() *V1GetPaymentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PaymentServiceGetPaymentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PaymentServiceGetPaymentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PaymentServiceGetPaymentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PaymentServiceGetPaymentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PermissionServiceListPermissionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPermissionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PermissionServiceListPermissionsResponse) GetJSON200() *V1ListPermissionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PermissionServiceListPermissionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PermissionServiceListPermissionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PermissionServiceListPermissionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PermissionServiceListPermissionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PermissionServiceAssignPermissionToRoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PermissionServiceAssignPermissionToRoleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PermissionServiceAssignPermissionToRoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PermissionServiceAssignPermissionToRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PermissionServiceAssignPermissionToRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PermissionServiceAssignPermissionToRoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PermissionServiceListEffectivePermissionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListEffectivePermissionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PermissionServiceListEffectivePermissionsResponse) GetJSON200() *V1ListEffectivePermissionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PermissionServiceListEffectivePermissionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PermissionServiceListEffectivePermissionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PermissionServiceListEffectivePermissionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PermissionServiceListEffectivePermissionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PermissionServiceRemovePermissionFromRoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PermissionServiceRemovePermissionFromRoleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PermissionServiceRemovePermissionFromRoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PermissionServiceRemovePermissionFromRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PermissionServiceRemovePermissionFromRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PermissionServiceRemovePermissionFromRoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlanServiceListPlansResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPlansResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlanServiceListPlansResponse) GetJSON200() *V1ListPlansResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlanServiceListPlansResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlanServiceListPlansResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlanServiceListPlansResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlanServiceListPlansResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderPlanServiceCreatePlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderPlanServiceCreatePlanResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderPlanServiceCreatePlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderPlanServiceCreatePlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderPlanServiceCreatePlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderPlanServiceCreatePlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderPlanServiceDeletePlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderPlanServiceDeletePlanResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderPlanServiceDeletePlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderPlanServiceDeletePlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderPlanServiceDeletePlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderPlanServiceDeletePlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderPlanServiceUpdatePlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderPlanServiceUpdatePlanResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderPlanServiceUpdatePlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderPlanServiceUpdatePlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderPlanServiceUpdatePlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderPlanServiceUpdatePlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlanServiceSubscribeResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SubscribeResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlanServiceSubscribeResponse) GetJSON200() *V1SubscribeResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlanServiceSubscribeResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlanServiceSubscribeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlanServiceSubscribeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlanServiceSubscribeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderPlanServiceCalculatePlanPricingResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CalculatePlanPricingResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderPlanServiceCalculatePlanPricingResponse) GetJSON200() *V1CalculatePlanPricingResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderPlanServiceCalculatePlanPricingResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderPlanServiceCalculatePlanPricingResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderPlanServiceCalculatePlanPricingResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderPlanServiceCalculatePlanPricingResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceCreatePlatformResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceCreatePlatformResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceCreatePlatformResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceCreatePlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceCreatePlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceCreatePlatformResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetadataServiceGetPlatformVersionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1PlatformVersions -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetadataServiceGetPlatformVersionsResponse) GetJSON200() *V1PlatformVersions { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetadataServiceGetPlatformVersionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetadataServiceGetPlatformVersionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetadataServiceGetPlatformVersionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetadataServiceGetPlatformVersionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceDeletePlatformResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceDeletePlatformResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceDeletePlatformResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceDeletePlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceDeletePlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceDeletePlatformResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceGetPlatformResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPlatformResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceGetPlatformResponse) GetJSON200() *V1GetPlatformResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceGetPlatformResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceGetPlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceGetPlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceGetPlatformResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceUpdatePlatformResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdatePlatformResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceUpdatePlatformResponse) GetJSON200() *V1UpdatePlatformResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceUpdatePlatformResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceUpdatePlatformResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceUpdatePlatformResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceUpdatePlatformResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceListPlatformsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPlatformsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceListPlatformsResponse) GetJSON200() *V1ListPlatformsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceListPlatformsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceListPlatformsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceListPlatformsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceListPlatformsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceAssignAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceAssignAgentResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceAssignAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceAssignAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceAssignAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceAssignAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PlatformServiceUnassignAgentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PlatformServiceUnassignAgentResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PlatformServiceUnassignAgentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PlatformServiceUnassignAgentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PlatformServiceUnassignAgentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PlatformServiceUnassignAgentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderReviewServiceListProviderReviewsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListProviderReviewsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderReviewServiceListProviderReviewsResponse) GetJSON200() *V1ListProviderReviewsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderReviewServiceListProviderReviewsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderReviewServiceListProviderReviewsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderReviewServiceListProviderReviewsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderReviewServiceListProviderReviewsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientProviderReviewServiceCreateClientReviewResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateClientReviewResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientProviderReviewServiceCreateClientReviewResponse) GetJSON200() *V1CreateClientReviewResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientProviderReviewServiceCreateClientReviewResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientProviderReviewServiceCreateClientReviewResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientProviderReviewServiceCreateClientReviewResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientProviderReviewServiceCreateClientReviewResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetClientReviewForVirtualMachineResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse) GetJSON200() *V1GetClientReviewForVirtualMachineResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientProviderReviewServiceDeleteClientReviewResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientProviderReviewServiceDeleteClientReviewResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientProviderReviewServiceDeleteClientReviewResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientProviderReviewServiceDeleteClientReviewResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientProviderReviewServiceDeleteClientReviewResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientProviderReviewServiceDeleteClientReviewResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ClientProviderReviewServiceUpdateClientReviewResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateClientReviewResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ClientProviderReviewServiceUpdateClientReviewResponse) GetJSON200() *V1UpdateClientReviewResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ClientProviderReviewServiceUpdateClientReviewResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ClientProviderReviewServiceUpdateClientReviewResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ClientProviderReviewServiceUpdateClientReviewResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ClientProviderReviewServiceUpdateClientReviewResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderReviewServiceDeleteProviderReviewReplyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1DeleteProviderReviewReplyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderReviewServiceDeleteProviderReviewReplyResponse) GetJSON200() *V1DeleteProviderReviewReplyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderReviewServiceDeleteProviderReviewReplyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderReviewServiceDeleteProviderReviewReplyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderReviewServiceDeleteProviderReviewReplyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderReviewServiceDeleteProviderReviewReplyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderReviewServiceUpdateProviderReviewReplyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateProviderReviewReplyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderReviewServiceUpdateProviderReviewReplyResponse) GetJSON200() *V1UpdateProviderReviewReplyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderReviewServiceUpdateProviderReviewReplyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderReviewServiceUpdateProviderReviewReplyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderReviewServiceUpdateProviderReviewReplyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderReviewServiceUpdateProviderReviewReplyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderReviewServiceCreateProviderReviewReplyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateProviderReviewReplyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderReviewServiceCreateProviderReviewReplyResponse) GetJSON200() *V1CreateProviderReviewReplyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderReviewServiceCreateProviderReviewReplyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderReviewServiceCreateProviderReviewReplyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderReviewServiceCreateProviderReviewReplyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderReviewServiceCreateProviderReviewReplyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderConnectServiceDisconnectConnectAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderConnectServiceDisconnectConnectAccountResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderConnectServiceDisconnectConnectAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderConnectServiceDisconnectConnectAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderConnectServiceDisconnectConnectAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderConnectServiceDisconnectConnectAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderConnectServiceGetConnectAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetConnectAccountResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderConnectServiceGetConnectAccountResponse) GetJSON200() *V1GetConnectAccountResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderConnectServiceGetConnectAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderConnectServiceGetConnectAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderConnectServiceGetConnectAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderConnectServiceGetConnectAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderConnectServiceCreateConnectAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateConnectAccountResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderConnectServiceCreateConnectAccountResponse) GetJSON200() *V1CreateConnectAccountResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderConnectServiceCreateConnectAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderConnectServiceCreateConnectAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderConnectServiceCreateConnectAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderConnectServiceCreateConnectAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderConnectServiceCreateConnectTaxSessionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateConnectTaxSessionResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderConnectServiceCreateConnectTaxSessionResponse) GetJSON200() *V1CreateConnectTaxSessionResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderConnectServiceCreateConnectTaxSessionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderConnectServiceCreateConnectTaxSessionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderConnectServiceCreateConnectTaxSessionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderConnectServiceCreateConnectTaxSessionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceGetProviderCustomerStatsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetProviderCustomerStatsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceGetProviderCustomerStatsResponse) GetJSON200() *V1GetProviderCustomerStatsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceGetProviderCustomerStatsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceGetProviderCustomerStatsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceGetProviderCustomerStatsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceGetProviderCustomerStatsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceListProviderCustomersResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListProviderCustomersResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceListProviderCustomersResponse) GetJSON200() *V1ListProviderCustomersResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceListProviderCustomersResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceListProviderCustomersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceListProviderCustomersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceListProviderCustomersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceGetProviderCustomerResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetProviderCustomerResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceGetProviderCustomerResponse) GetJSON200() *V1GetProviderCustomerResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceGetProviderCustomerResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceGetProviderCustomerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceGetProviderCustomerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceGetProviderCustomerResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceListProviderCustomerAssetsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListProviderCustomerAssetsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceListProviderCustomerAssetsResponse) GetJSON200() *V1ListProviderCustomerAssetsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceListProviderCustomerAssetsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceListProviderCustomerAssetsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceListProviderCustomerAssetsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceListProviderCustomerAssetsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardAddonCatalogStatsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardAddonCatalogStatsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardAddonCatalogStatsResponse) GetJSON200() *V1ListDashboardAddonCatalogStatsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardAddonCatalogStatsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardAddonCatalogStatsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardAddonCatalogStatsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardAddonCatalogStatsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetDashboardAssetSalesTimeseriesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse) GetJSON200() *V1GetDashboardAssetSalesTimeseriesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceGetDashboardBillingSalesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetDashboardBillingSalesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceGetDashboardBillingSalesResponse) GetJSON200() *V1GetDashboardBillingSalesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceGetDashboardBillingSalesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceGetDashboardBillingSalesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceGetDashboardBillingSalesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceGetDashboardBillingSalesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetDashboardCustomerAcquisitionTimeseriesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse) GetJSON200() *V1GetDashboardCustomerAcquisitionTimeseriesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardInfrastructureResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardInfrastructureResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardInfrastructureResponse) GetJSON200() *V1ListDashboardInfrastructureResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardInfrastructureResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardInfrastructureResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardInfrastructureResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardInfrastructureResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardIpamResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardIpamResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardIpamResponse) GetJSON200() *V1ListDashboardIpamResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardIpamResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardIpamResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardIpamResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardIpamResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardIpamAssignmentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardIpamAssignmentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardIpamAssignmentsResponse) GetJSON200() *V1ListDashboardIpamAssignmentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardIpamAssignmentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardIpamAssignmentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardIpamAssignmentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardIpamAssignmentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardPlanSubscriptionStatsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse) GetJSON200() *V1ListDashboardPlanSubscriptionStatsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ProviderDashboardPlansTabStats -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse) GetJSON200() *V1ProviderDashboardPlansTabStats { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceGetDashboardSummaryResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetDashboardSummaryResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceGetDashboardSummaryResponse) GetJSON200() *V1GetDashboardSummaryResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceGetDashboardSummaryResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceGetDashboardSummaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceGetDashboardSummaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceGetDashboardSummaryResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardTicketStatisticsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardTicketStatisticsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardTicketStatisticsResponse) GetJSON200() *V1ListDashboardTicketStatisticsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardTicketStatisticsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardTicketStatisticsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardTicketStatisticsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardTicketStatisticsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderDashboardServiceListDashboardVirtualMachinesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListDashboardVirtualMachinesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderDashboardServiceListDashboardVirtualMachinesResponse) GetJSON200() *V1ListDashboardVirtualMachinesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderDashboardServiceListDashboardVirtualMachinesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderDashboardServiceListDashboardVirtualMachinesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderDashboardServiceListDashboardVirtualMachinesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderDashboardServiceListDashboardVirtualMachinesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceListPlanLiveValidationsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPlanLiveValidationsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceListPlanLiveValidationsResponse) GetJSON200() *V1ListPlanLiveValidationsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceListPlanLiveValidationsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceListPlanLiveValidationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceListPlanLiveValidationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceListPlanLiveValidationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ManualPayoutServiceDeleteManualPayoutResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ManualPayoutServiceDeleteManualPayoutResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ManualPayoutServiceDeleteManualPayoutResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ManualPayoutServiceDeleteManualPayoutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManualPayoutServiceDeleteManualPayoutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ManualPayoutServiceDeleteManualPayoutResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ManualPayoutServiceGetManualPayoutResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetManualPayoutResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ManualPayoutServiceGetManualPayoutResponse) GetJSON200() *V1GetManualPayoutResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ManualPayoutServiceGetManualPayoutResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ManualPayoutServiceGetManualPayoutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManualPayoutServiceGetManualPayoutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ManualPayoutServiceGetManualPayoutResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ManualPayoutServiceCreateManualPayoutResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateManualPayoutResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ManualPayoutServiceCreateManualPayoutResponse) GetJSON200() *V1CreateManualPayoutResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ManualPayoutServiceCreateManualPayoutResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ManualPayoutServiceCreateManualPayoutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ManualPayoutServiceCreateManualPayoutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ManualPayoutServiceCreateManualPayoutResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListVirtualMachineSmtpOutboundPoliciesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse) GetJSON200() *V1ListVirtualMachineSmtpOutboundPoliciesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachineSmtpOutboundPolicyView -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse) GetJSON200() *V1VirtualMachineSmtpOutboundPolicyView { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSmtpOutboundProviderPolicyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse) GetJSON200() *V1GetSmtpOutboundProviderPolicyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSmtpOutboundProviderPolicyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse) GetJSON200() *V1GetSmtpOutboundProviderPolicyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderOnboardingServiceGetProviderOnboardingChecklistResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetProviderOnboardingChecklistResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderOnboardingServiceGetProviderOnboardingChecklistResponse) GetJSON200() *V1GetProviderOnboardingChecklistResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderOnboardingServiceGetProviderOnboardingChecklistResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderOnboardingServiceGetProviderOnboardingChecklistResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderOnboardingServiceGetProviderOnboardingChecklistResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderOnboardingServiceGetProviderOnboardingChecklistResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PayoutConfigurationServiceGetPayoutConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPayoutConfigurationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PayoutConfigurationServiceGetPayoutConfigurationResponse) GetJSON200() *V1GetPayoutConfigurationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PayoutConfigurationServiceGetPayoutConfigurationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PayoutConfigurationServiceGetPayoutConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PayoutConfigurationServiceGetPayoutConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PayoutConfigurationServiceGetPayoutConfigurationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PayoutConfigurationServiceUpdatePayoutConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPayoutConfigurationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PayoutConfigurationServiceUpdatePayoutConfigurationResponse) GetJSON200() *V1GetPayoutConfigurationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PayoutConfigurationServiceUpdatePayoutConfigurationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PayoutConfigurationServiceUpdatePayoutConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PayoutConfigurationServiceUpdatePayoutConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PayoutConfigurationServiceUpdatePayoutConfigurationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PayoutInvoiceServiceListPayoutInvoicesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPayoutInvoicesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PayoutInvoiceServiceListPayoutInvoicesResponse) GetJSON200() *V1ListPayoutInvoicesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PayoutInvoiceServiceListPayoutInvoicesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PayoutInvoiceServiceListPayoutInvoicesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PayoutInvoiceServiceListPayoutInvoicesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PayoutInvoiceServiceListPayoutInvoicesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PayoutInvoiceServiceGetPayoutInvoiceResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPayoutInvoiceResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PayoutInvoiceServiceGetPayoutInvoiceResponse) GetJSON200() *V1GetPayoutInvoiceResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PayoutInvoiceServiceGetPayoutInvoiceResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PayoutInvoiceServiceGetPayoutInvoiceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PayoutInvoiceServiceGetPayoutInvoiceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PayoutInvoiceServiceGetPayoutInvoiceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ProviderPlanServiceListAssignableNodesForPlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAssignableNodesForPlanResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ProviderPlanServiceListAssignableNodesForPlanResponse) GetJSON200() *V1ListAssignableNodesForPlanResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ProviderPlanServiceListAssignableNodesForPlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ProviderPlanServiceListAssignableNodesForPlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ProviderPlanServiceListAssignableNodesForPlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ProviderPlanServiceListAssignableNodesForPlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceDeletePlanLiveValidationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceDeletePlanLiveValidationResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceDeletePlanLiveValidationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceDeletePlanLiveValidationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceDeletePlanLiveValidationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceDeletePlanLiveValidationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceGetPlanLiveValidationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetPlanLiveValidationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceGetPlanLiveValidationResponse) GetJSON200() *V1GetPlanLiveValidationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceGetPlanLiveValidationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceGetPlanLiveValidationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceGetPlanLiveValidationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceGetPlanLiveValidationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceStartPlanLiveValidationResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1StartPlanLiveValidationResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceStartPlanLiveValidationResponse) GetJSON200() *V1StartPlanLiveValidationResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceStartPlanLiveValidationResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceStartPlanLiveValidationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceStartPlanLiveValidationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceStartPlanLiveValidationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceListPlanLiveValidationBenchmarksResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPlanLiveValidationBenchmarksResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceListPlanLiveValidationBenchmarksResponse) GetJSON200() *V1ListPlanLiveValidationBenchmarksResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceListPlanLiveValidationBenchmarksResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceListPlanLiveValidationBenchmarksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceListPlanLiveValidationBenchmarksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceListPlanLiveValidationBenchmarksResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type LiveValidationServiceListEligibleNodesForPlanResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListEligibleNodesForPlanResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r LiveValidationServiceListEligibleNodesForPlanResponse) GetJSON200() *V1ListEligibleNodesForPlanResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r LiveValidationServiceListEligibleNodesForPlanResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r LiveValidationServiceListEligibleNodesForPlanResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r LiveValidationServiceListEligibleNodesForPlanResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r LiveValidationServiceListEligibleNodesForPlanResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PreflightServiceListPreflightChecksResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListPreflightChecksResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PreflightServiceListPreflightChecksResponse) GetJSON200() *V1ListPreflightChecksResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PreflightServiceListPreflightChecksResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PreflightServiceListPreflightChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PreflightServiceListPreflightChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PreflightServiceListPreflightChecksResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type PayoutInvoiceServiceGetProviderRevenueResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetProviderRevenueResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PayoutInvoiceServiceGetProviderRevenueResponse) GetJSON200() *V1GetProviderRevenueResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r PayoutInvoiceServiceGetProviderRevenueResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PayoutInvoiceServiceGetProviderRevenueResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PayoutInvoiceServiceGetProviderRevenueResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PayoutInvoiceServiceGetProviderRevenueResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RefundServiceListRefundsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRefundsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RefundServiceListRefundsResponse) GetJSON200() *V1ListRefundsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RefundServiceListRefundsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RefundServiceListRefundsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RefundServiceListRefundsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RefundServiceListRefundsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RefundServiceGetRefundResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetRefundResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RefundServiceGetRefundResponse) GetJSON200() *V1GetRefundResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RefundServiceGetRefundResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RefundServiceGetRefundResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RefundServiceGetRefundResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RefundServiceGetRefundResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceListRegionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRegionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceListRegionsResponse) GetJSON200() *V1ListRegionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceListRegionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceListRegionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceListRegionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceListRegionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceCreateRegionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1Region -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceCreateRegionResponse) GetJSON200() *V1Region { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceCreateRegionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceCreateRegionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceCreateRegionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceCreateRegionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceDeleteRegionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceDeleteRegionResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceDeleteRegionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceDeleteRegionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceDeleteRegionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceDeleteRegionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RegionServiceGetRegionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1Region -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RegionServiceGetRegionResponse) GetJSON200() *V1Region { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RegionServiceGetRegionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RegionServiceGetRegionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RegionServiceGetRegionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegionServiceGetRegionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1DeleteRoadmapFeatureRequestCommentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse) GetJSON200() *V1DeleteRoadmapFeatureRequestCommentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateRoadmapFeatureRequestCommentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse) GetJSON200() *V1UpdateRoadmapFeatureRequestCommentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceListRoadmapProductCategoriesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRoadmapProductCategoriesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceListRoadmapProductCategoriesResponse) GetJSON200() *V1ListRoadmapProductCategoriesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceListRoadmapProductCategoriesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceListRoadmapProductCategoriesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceListRoadmapProductCategoriesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceListRoadmapProductCategoriesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceListRoadmapFeatureRequestsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRoadmapFeatureRequestsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceListRoadmapFeatureRequestsResponse) GetJSON200() *V1ListRoadmapFeatureRequestsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceListRoadmapFeatureRequestsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceListRoadmapFeatureRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceListRoadmapFeatureRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceListRoadmapFeatureRequestsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceGetRoadmapFeatureRequestResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetRoadmapFeatureRequestResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceGetRoadmapFeatureRequestResponse) GetJSON200() *V1GetRoadmapFeatureRequestResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceGetRoadmapFeatureRequestResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceGetRoadmapFeatureRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceGetRoadmapFeatureRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceGetRoadmapFeatureRequestResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceListRoadmapFeatureRequestCommentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRoadmapFeatureRequestCommentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceListRoadmapFeatureRequestCommentsResponse) GetJSON200() *V1ListRoadmapFeatureRequestCommentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceListRoadmapFeatureRequestCommentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceListRoadmapFeatureRequestCommentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceListRoadmapFeatureRequestCommentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceListRoadmapFeatureRequestCommentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceCreateRoadmapFeatureRequestCommentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateRoadmapFeatureRequestCommentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceCreateRoadmapFeatureRequestCommentResponse) GetJSON200() *V1CreateRoadmapFeatureRequestCommentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceCreateRoadmapFeatureRequestCommentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceCreateRoadmapFeatureRequestCommentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceCreateRoadmapFeatureRequestCommentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceCreateRoadmapFeatureRequestCommentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VoteRoadmapFeatureRequestResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse) GetJSON200() *V1VoteRoadmapFeatureRequestResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceVoteRoadmapFeatureRequestResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VoteRoadmapFeatureRequestResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceVoteRoadmapFeatureRequestResponse) GetJSON200() *V1VoteRoadmapFeatureRequestResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceVoteRoadmapFeatureRequestResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceVoteRoadmapFeatureRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceVoteRoadmapFeatureRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceVoteRoadmapFeatureRequestResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceGetRoadmapStatsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetRoadmapStatsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceGetRoadmapStatsResponse) GetJSON200() *V1GetRoadmapStatsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceGetRoadmapStatsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceGetRoadmapStatsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceGetRoadmapStatsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceGetRoadmapStatsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoadmapServiceSubmitRoadmapFeatureRequestResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SubmitRoadmapFeatureRequestResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoadmapServiceSubmitRoadmapFeatureRequestResponse) GetJSON200() *V1SubmitRoadmapFeatureRequestResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoadmapServiceSubmitRoadmapFeatureRequestResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoadmapServiceSubmitRoadmapFeatureRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoadmapServiceSubmitRoadmapFeatureRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoadmapServiceSubmitRoadmapFeatureRequestResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceListRolesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListRolesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceListRolesResponse) GetJSON200() *V1ListRolesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceListRolesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceListRolesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceListRolesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceListRolesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceCreateRoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceCreateRoleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceCreateRoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceCreateRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceCreateRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceCreateRoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceReplaceRoleForGroupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceReplaceRoleForGroupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceReplaceRoleForGroupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceReplaceRoleForGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceReplaceRoleForGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceReplaceRoleForGroupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceReplaceRoleForServiceAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceReplaceRoleForServiceAccountResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceReplaceRoleForServiceAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceReplaceRoleForServiceAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceReplaceRoleForServiceAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceReplaceRoleForServiceAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceReplaceRoleForUserResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceReplaceRoleForUserResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceReplaceRoleForUserResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceReplaceRoleForUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceReplaceRoleForUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceReplaceRoleForUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceDeleteRoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceDeleteRoleResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceDeleteRoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceDeleteRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceDeleteRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceDeleteRoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type RoleServiceUpdateRoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateRoleResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r RoleServiceUpdateRoleResponse) GetJSON200() *V1UpdateRoleResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r RoleServiceUpdateRoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r RoleServiceUpdateRoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r RoleServiceUpdateRoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RoleServiceUpdateRoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SecretServiceListSecretsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListSecretsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SecretServiceListSecretsResponse) GetJSON200() *V1ListSecretsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SecretServiceListSecretsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SecretServiceListSecretsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SecretServiceListSecretsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SecretServiceListSecretsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SecretServiceCreateSecretResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateSecretResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SecretServiceCreateSecretResponse) GetJSON200() *V1CreateSecretResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SecretServiceCreateSecretResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SecretServiceCreateSecretResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SecretServiceCreateSecretResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SecretServiceCreateSecretResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SecretServiceDeleteSecretResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SecretServiceDeleteSecretResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SecretServiceDeleteSecretResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SecretServiceDeleteSecretResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SecretServiceDeleteSecretResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SecretServiceDeleteSecretResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SecretServiceGetSecretResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSecretResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SecretServiceGetSecretResponse) GetJSON200() *V1GetSecretResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SecretServiceGetSecretResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SecretServiceGetSecretResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SecretServiceGetSecretResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SecretServiceGetSecretResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SecretServiceUpdateSecretResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SecretServiceUpdateSecretResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SecretServiceUpdateSecretResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SecretServiceUpdateSecretResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SecretServiceUpdateSecretResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SecretServiceUpdateSecretResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceListServiceAccountsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListServiceAccountsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceListServiceAccountsResponse) GetJSON200() *V1ListServiceAccountsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceListServiceAccountsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceListServiceAccountsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceListServiceAccountsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceListServiceAccountsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceCreateServiceAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ServiceAccountResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceCreateServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceCreateServiceAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceCreateServiceAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceCreateServiceAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceCreateServiceAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceRevokeTokenResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *map[string]interface{} -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceRevokeTokenResponse) GetJSON200() *map[string]interface{} { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceRevokeTokenResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceRevokeTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceRevokeTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceRevokeTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceDeleteServiceAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *map[string]interface{} -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceDeleteServiceAccountResponse) GetJSON200() *map[string]interface{} { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceDeleteServiceAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceDeleteServiceAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceDeleteServiceAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceDeleteServiceAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceGetServiceAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ServiceAccountResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceGetServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceGetServiceAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceGetServiceAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceGetServiceAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceGetServiceAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceUpdateServiceAccountResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ServiceAccountResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceUpdateServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceUpdateServiceAccountResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceUpdateServiceAccountResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceUpdateServiceAccountResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceUpdateServiceAccountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceListTokensResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListServiceAccountTokensResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceListTokensResponse) GetJSON200() *V1ListServiceAccountTokensResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceListTokensResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceListTokensResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceListTokensResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceListTokensResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type ServiceAccountServiceGenerateTokenResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GenerateServiceAccountTokenResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ServiceAccountServiceGenerateTokenResponse) GetJSON200() *V1GenerateServiceAccountTokenResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r ServiceAccountServiceGenerateTokenResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r ServiceAccountServiceGenerateTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r ServiceAccountServiceGenerateTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ServiceAccountServiceGenerateTokenResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SSHKeyServiceListSSHKeysResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListSSHKeysResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SSHKeyServiceListSSHKeysResponse) GetJSON200() *V1ListSSHKeysResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SSHKeyServiceListSSHKeysResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SSHKeyServiceListSSHKeysResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SSHKeyServiceListSSHKeysResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SSHKeyServiceListSSHKeysResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SSHKeyServiceCreateSSHKeyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateSSHKeyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SSHKeyServiceCreateSSHKeyResponse) GetJSON200() *V1CreateSSHKeyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SSHKeyServiceCreateSSHKeyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SSHKeyServiceCreateSSHKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SSHKeyServiceCreateSSHKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SSHKeyServiceCreateSSHKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SSHKeyServiceDeleteSSHKeyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SSHKeyServiceDeleteSSHKeyResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SSHKeyServiceDeleteSSHKeyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SSHKeyServiceDeleteSSHKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SSHKeyServiceDeleteSSHKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SSHKeyServiceDeleteSSHKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SSHKeyServiceGetSSHKeyResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSSHKeyResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SSHKeyServiceGetSSHKeyResponse) GetJSON200() *V1GetSSHKeyResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SSHKeyServiceGetSSHKeyResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SSHKeyServiceGetSSHKeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SSHKeyServiceGetSSHKeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SSHKeyServiceGetSSHKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceListSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListSubscriptionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceListSubscriptionsResponse) GetJSON200() *V1ListSubscriptionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceListSubscriptionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceListSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceListSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceListSubscriptionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceListAddonSubscriptionsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListAddonSubscriptionsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceListAddonSubscriptionsResponse) GetJSON200() *V1ListAddonSubscriptionsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceListAddonSubscriptionsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceListAddonSubscriptionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceListAddonSubscriptionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceListAddonSubscriptionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type AddonServiceAddAddonToSubscriptionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1AddAddonToSubscriptionResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r AddonServiceAddAddonToSubscriptionResponse) GetJSON200() *V1AddAddonToSubscriptionResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r AddonServiceAddAddonToSubscriptionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r AddonServiceAddAddonToSubscriptionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r AddonServiceAddAddonToSubscriptionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddonServiceAddAddonToSubscriptionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceCancelResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CancelResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceCancelResponse) GetJSON200() *V1CancelResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceCancelResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceCancelResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceCancelResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceCancelResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceCancelRenewalResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CancelResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceCancelRenewalResponse) GetJSON200() *V1CancelResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceCancelRenewalResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceCancelRenewalResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceCancelRenewalResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceCancelRenewalResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceRetryPaymentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1RetryPaymentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceRetryPaymentResponse) GetJSON200() *V1RetryPaymentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceRetryPaymentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceRetryPaymentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceRetryPaymentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceRetryPaymentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceGetSubscriptionStatusResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSubscriptionStatusResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceGetSubscriptionStatusResponse) GetJSON200() *V1GetSubscriptionStatusResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceGetSubscriptionStatusResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceGetSubscriptionStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceGetSubscriptionStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceGetSubscriptionStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SubscriptionServiceUndoCancelRenewalResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CancelResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SubscriptionServiceUndoCancelRenewalResponse) GetJSON200() *V1CancelResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SubscriptionServiceUndoCancelRenewalResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SubscriptionServiceUndoCancelRenewalResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SubscriptionServiceUndoCancelRenewalResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubscriptionServiceUndoCancelRenewalResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceListTicketTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListTicketTemplatesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceListTicketTemplatesResponse) GetJSON200() *V1ListTicketTemplatesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceListTicketTemplatesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceListTicketTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceListTicketTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceListTicketTemplatesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceCreateTicketTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TicketTemplate -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceCreateTicketTemplateResponse) GetJSON200() *V1TicketTemplate { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceCreateTicketTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceCreateTicketTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceCreateTicketTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceCreateTicketTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceDeleteTicketTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceDeleteTicketTemplateResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceDeleteTicketTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceDeleteTicketTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceDeleteTicketTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceDeleteTicketTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceGetTicketTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TicketTemplate -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceGetTicketTemplateResponse) GetJSON200() *V1TicketTemplate { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceGetTicketTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceGetTicketTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceGetTicketTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceGetTicketTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceUpdateTicketTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TicketTemplate -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceUpdateTicketTemplateResponse) GetJSON200() *V1TicketTemplate { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceUpdateTicketTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceUpdateTicketTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceUpdateTicketTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceUpdateTicketTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceListTicketsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListTicketsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceListTicketsResponse) GetJSON200() *V1ListTicketsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceListTicketsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceListTicketsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceListTicketsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceListTicketsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceCreateTicketResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateTicketResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceCreateTicketResponse) GetJSON200() *V1CreateTicketResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceCreateTicketResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceCreateTicketResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceCreateTicketResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceCreateTicketResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceDeleteTicketAttachmentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceDeleteTicketAttachmentResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceDeleteTicketAttachmentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceDeleteTicketAttachmentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceDeleteTicketAttachmentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceDeleteTicketAttachmentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceDownloadTicketAttachmentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1DownloadTicketAttachmentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceDownloadTicketAttachmentResponse) GetJSON200() *V1DownloadTicketAttachmentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceDownloadTicketAttachmentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceDownloadTicketAttachmentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceDownloadTicketAttachmentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceDownloadTicketAttachmentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceConfirmTicketAttachmentUploadResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TicketAttachment -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceConfirmTicketAttachmentUploadResponse) GetJSON200() *V1TicketAttachment { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceConfirmTicketAttachmentUploadResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceConfirmTicketAttachmentUploadResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceConfirmTicketAttachmentUploadResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceConfirmTicketAttachmentUploadResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceUploadTicketAttachmentContentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1TicketAttachment -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceUploadTicketAttachmentContentResponse) GetJSON200() *V1TicketAttachment { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceUploadTicketAttachmentContentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceUploadTicketAttachmentContentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceUploadTicketAttachmentContentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceUploadTicketAttachmentContentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceDeleteTicketResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceDeleteTicketResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceDeleteTicketResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceDeleteTicketResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceDeleteTicketResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceDeleteTicketResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceGetTicketResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetTicketResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceGetTicketResponse) GetJSON200() *V1GetTicketResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceGetTicketResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceGetTicketResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceGetTicketResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceGetTicketResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceListTicketAttachmentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListTicketAttachmentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceListTicketAttachmentsResponse) GetJSON200() *V1ListTicketAttachmentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceListTicketAttachmentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceListTicketAttachmentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceListTicketAttachmentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceListTicketAttachmentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceCreateTicketAttachmentUploadResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1CreateTicketAttachmentUploadResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceCreateTicketAttachmentUploadResponse) GetJSON200() *V1CreateTicketAttachmentUploadResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceCreateTicketAttachmentUploadResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceCreateTicketAttachmentUploadResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceCreateTicketAttachmentUploadResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceCreateTicketAttachmentUploadResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceListInternalCommentsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListInternalCommentsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceListInternalCommentsResponse) GetJSON200() *V1ListInternalCommentsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceListInternalCommentsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceListInternalCommentsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceListInternalCommentsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceListInternalCommentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceAddReplyToTicketResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceAddReplyToTicketResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceAddReplyToTicketResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceAddReplyToTicketResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceAddReplyToTicketResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceAddReplyToTicketResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceAddInternalCommentResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1AddInternalCommentResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceAddInternalCommentResponse) GetJSON200() *V1AddInternalCommentResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceAddInternalCommentResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceAddInternalCommentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceAddInternalCommentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceAddInternalCommentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceSetTicketPriorityResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceSetTicketPriorityResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceSetTicketPriorityResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceSetTicketPriorityResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceSetTicketPriorityResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceSetTicketPriorityResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceSetTicketStatusResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceSetTicketStatusResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceSetTicketStatusResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceSetTicketStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceSetTicketStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceSetTicketStatusResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type TicketServiceSearchTicketsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SearchTicketsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r TicketServiceSearchTicketsResponse) GetJSON200() *V1SearchTicketsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r TicketServiceSearchTicketsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r TicketServiceSearchTicketsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r TicketServiceSearchTicketsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TicketServiceSearchTicketsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UsageReportServiceRecordUsageResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1RecordUsageResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UsageReportServiceRecordUsageResponse) GetJSON200() *V1RecordUsageResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UsageReportServiceRecordUsageResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UsageReportServiceRecordUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsageReportServiceRecordUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UsageReportServiceRecordUsageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UsageReportServiceBatchRecordUsageResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1BatchRecordUsageResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UsageReportServiceBatchRecordUsageResponse) GetJSON200() *V1BatchRecordUsageResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UsageReportServiceBatchRecordUsageResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UsageReportServiceBatchRecordUsageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsageReportServiceBatchRecordUsageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UsageReportServiceBatchRecordUsageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UsageReportServiceListUsageRecordsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListUsageRecordsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UsageReportServiceListUsageRecordsResponse) GetJSON200() *V1ListUsageRecordsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UsageReportServiceListUsageRecordsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UsageReportServiceListUsageRecordsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsageReportServiceListUsageRecordsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UsageReportServiceListUsageRecordsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UsageReportServiceGetUsageRecordResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetUsageRecordResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UsageReportServiceGetUsageRecordResponse) GetJSON200() *V1GetUsageRecordResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UsageReportServiceGetUsageRecordResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UsageReportServiceGetUsageRecordResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsageReportServiceGetUsageRecordResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UsageReportServiceGetUsageRecordResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UsageReportServiceGetUsageReportResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetUsageReportResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UsageReportServiceGetUsageReportResponse) GetJSON200() *V1GetUsageReportResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UsageReportServiceGetUsageReportResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UsageReportServiceGetUsageReportResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UsageReportServiceGetUsageReportResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UsageReportServiceGetUsageReportResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceListUsersResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListUsersResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceListUsersResponse) GetJSON200() *V1ListUsersResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceListUsersResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceListUsersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceListUsersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceListUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceDeleteUserResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceDeleteUserResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceDeleteUserResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceDeleteUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceDeleteUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceDeleteUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceGetUserResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetUserResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceGetUserResponse) GetJSON200() *V1GetUserResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceGetUserResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceGetUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceGetUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceGetUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type UserServiceUpdateUserResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateUserResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UserServiceUpdateUserResponse) GetJSON200() *V1UpdateUserResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r UserServiceUpdateUserResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UserServiceUpdateUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UserServiceUpdateUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UserServiceUpdateUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type MetadataServiceGetVersionResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1Metadata -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r MetadataServiceGetVersionResponse) GetJSON200() *V1Metadata { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r MetadataServiceGetVersionResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r MetadataServiceGetVersionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r MetadataServiceGetVersionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r MetadataServiceGetVersionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceListVirtualMachinesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListVirtualMachinesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceListVirtualMachinesResponse) GetJSON200() *V1ListVirtualMachinesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceListVirtualMachinesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceListVirtualMachinesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceListVirtualMachinesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceListVirtualMachinesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceCreateVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceCreateVirtualMachineResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceCreateVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceCreateVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceCreateVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceCreateVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceListVMTagsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListVMTagsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceListVMTagsResponse) GetJSON200() *V1ListVMTagsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceListVMTagsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceListVMTagsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceListVMTagsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceListVMTagsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceDeleteVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceDeleteVirtualMachineResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceDeleteVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceDeleteVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceDeleteVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceDeleteVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceGetVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceGetVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceGetVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceGetVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceGetVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceGetVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceUpdateVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceUpdateVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceUpdateVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceUpdateVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceUpdateVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceUpdateVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceGetVNCConsoleResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetVNCConsoleResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceGetVNCConsoleResponse) GetJSON200() *V1GetVNCConsoleResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceGetVNCConsoleResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceGetVNCConsoleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceGetVNCConsoleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceGetVNCConsoleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceAttachVMFirewallResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceAttachVMFirewallResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceAttachVMFirewallResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceAttachVMFirewallResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceAttachVMFirewallResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceAttachVMFirewallResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceDetachVMFirewallResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceDetachVMFirewallResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceDetachVMFirewallResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceDetachVMFirewallResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceDetachVMFirewallResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceDetachVMFirewallResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceReinstallVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceReinstallVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceReinstallVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceReinstallVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceReinstallVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceReinstallVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceRestartVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceRestartVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceRestartVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceRestartVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceRestartVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceRestartVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceStartVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceStartVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceStartVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceStartVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceStartVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceStartVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceStopVirtualMachineResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1VirtualMachine -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceStopVirtualMachineResponse) GetJSON200() *V1VirtualMachine { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceStopVirtualMachineResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceStopVirtualMachineResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceStopVirtualMachineResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceStopVirtualMachineResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type BackupServiceListBackupsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListBackupsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r BackupServiceListBackupsResponse) GetJSON200() *V1ListBackupsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r BackupServiceListBackupsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r BackupServiceListBackupsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r BackupServiceListBackupsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r BackupServiceListBackupsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type BackupServiceDeleteBackupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r BackupServiceDeleteBackupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r BackupServiceDeleteBackupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r BackupServiceDeleteBackupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r BackupServiceDeleteBackupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r BackupServiceDeleteBackupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type BackupServiceGetBackupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetBackupResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r BackupServiceGetBackupResponse) GetJSON200() *V1GetBackupResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r BackupServiceGetBackupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r BackupServiceGetBackupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r BackupServiceGetBackupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r BackupServiceGetBackupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type BackupServiceRestoreBackupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r BackupServiceRestoreBackupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r BackupServiceRestoreBackupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r BackupServiceRestoreBackupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r BackupServiceRestoreBackupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r BackupServiceRestoreBackupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SnapshotServiceListSnapshotsResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListSnapshotsResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SnapshotServiceListSnapshotsResponse) GetJSON200() *V1ListSnapshotsResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SnapshotServiceListSnapshotsResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SnapshotServiceListSnapshotsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SnapshotServiceListSnapshotsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SnapshotServiceListSnapshotsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SnapshotServiceCreateSnapshotResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SnapshotServiceCreateSnapshotResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SnapshotServiceCreateSnapshotResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SnapshotServiceCreateSnapshotResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SnapshotServiceCreateSnapshotResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SnapshotServiceCreateSnapshotResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SnapshotServiceDeleteSnapshotResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SnapshotServiceDeleteSnapshotResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SnapshotServiceDeleteSnapshotResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SnapshotServiceDeleteSnapshotResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SnapshotServiceDeleteSnapshotResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SnapshotServiceDeleteSnapshotResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SnapshotServiceGetSnapshotResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetSnapshotResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SnapshotServiceGetSnapshotResponse) GetJSON200() *V1GetSnapshotResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SnapshotServiceGetSnapshotResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SnapshotServiceGetSnapshotResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SnapshotServiceGetSnapshotResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SnapshotServiceGetSnapshotResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type SnapshotServiceRestoreSnapshotResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SnapshotServiceRestoreSnapshotResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r SnapshotServiceRestoreSnapshotResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r SnapshotServiceRestoreSnapshotResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r SnapshotServiceRestoreSnapshotResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SnapshotServiceRestoreSnapshotResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceDisableAdditionalIPResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceDisableAdditionalIPResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceDisableAdditionalIPResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceDisableAdditionalIPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceDisableAdditionalIPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceDisableAdditionalIPResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceDisableBackupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceDisableBackupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceDisableBackupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceDisableBackupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceDisableBackupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceDisableBackupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceEnableAdditionalIPResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1EnableAdditionalIPResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceEnableAdditionalIPResponse) GetJSON200() *V1EnableAdditionalIPResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceEnableAdditionalIPResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceEnableAdditionalIPResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceEnableAdditionalIPResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceEnableAdditionalIPResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VirtualMachineServiceEnableBackupResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VirtualMachineServiceEnableBackupResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VirtualMachineServiceEnableBackupResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VirtualMachineServiceEnableBackupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VirtualMachineServiceEnableBackupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VirtualMachineServiceEnableBackupResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VMTemplateServiceCreateVMTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VMTemplateServiceCreateVMTemplateResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VMTemplateServiceCreateVMTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VMTemplateServiceCreateVMTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VMTemplateServiceCreateVMTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VMTemplateServiceCreateVMTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VMTemplateServiceDeleteVMTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1SuccessResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VMTemplateServiceDeleteVMTemplateResponse) GetJSON200() *V1SuccessResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VMTemplateServiceDeleteVMTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VMTemplateServiceDeleteVMTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VMTemplateServiceDeleteVMTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VMTemplateServiceDeleteVMTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VMTemplateServiceGetVMTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1GetVMTemplateResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VMTemplateServiceGetVMTemplateResponse) GetJSON200() *V1GetVMTemplateResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VMTemplateServiceGetVMTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VMTemplateServiceGetVMTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VMTemplateServiceGetVMTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VMTemplateServiceGetVMTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VMTemplateServiceUpdateVMTemplateResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1UpdateVMTemplateResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VMTemplateServiceUpdateVMTemplateResponse) GetJSON200() *V1UpdateVMTemplateResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VMTemplateServiceUpdateVMTemplateResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VMTemplateServiceUpdateVMTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VMTemplateServiceUpdateVMTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VMTemplateServiceUpdateVMTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -type VMTemplateServiceListVMTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *V1ListVMTemplatesResponse -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r VMTemplateServiceListVMTemplatesResponse) GetJSON200() *V1ListVMTemplatesResponse { - return r.JSON200 -} - -// GetBody returns the raw response body bytes -func (r VMTemplateServiceListVMTemplatesResponse) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r VMTemplateServiceListVMTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r VMTemplateServiceListVMTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VMTemplateServiceListVMTemplatesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -// WebhookServiceHandleWebhookWithBodyWithResponse Handle webhook events from payment providers (Stripe, PayPal, etc.) -// This endpoint receives webhook payloads and processes payment/subscription -// events Note: The actual implementation will read raw HTTP body and headers -// directly to support webhook signature verification -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). -func (c *ClientWithResponses) WebhookServiceHandleWebhookWithBodyWithResponse(ctx context.Context, provider string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WebhookServiceHandleWebhookResponse, error) { - rsp, err := c.WebhookServiceHandleWebhookWithBody(ctx, provider, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseWebhookServiceHandleWebhookResponse(rsp) -} - -// WebhookServiceHandleWebhookWithResponse Handle webhook events from payment providers (Stripe, PayPal, etc.) -// This endpoint receives webhook payloads and processes payment/subscription -// events Note: The actual implementation will read raw HTTP body and headers -// directly to support webhook signature verification -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/v1/webhooks/{provider} (the `WebhookServiceHandleWebhook` operationId). -func (c *ClientWithResponses) WebhookServiceHandleWebhookWithResponse(ctx context.Context, provider string, body WebhookServiceHandleWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*WebhookServiceHandleWebhookResponse, error) { - rsp, err := c.WebhookServiceHandleWebhook(ctx, provider, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseWebhookServiceHandleWebhookResponse(rsp) -} - -// AddonServiceRemoveAddonWithResponse Remove an addon from a subscription -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /v1/addon-subscriptions/{addonSubscriptionId} (the `AddonServiceRemoveAddon` operationId). -func (c *ClientWithResponses) AddonServiceRemoveAddonWithResponse(ctx context.Context, addonSubscriptionId string, params *AddonServiceRemoveAddonParams, reqEditors ...RequestEditorFn) (*AddonServiceRemoveAddonResponse, error) { - rsp, err := c.AddonServiceRemoveAddon(ctx, addonSubscriptionId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceRemoveAddonResponse(rsp) -} - -// AddonServiceListAddonsWithResponse List available addons -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/addons (the `AddonServiceListAddons` operationId). -func (c *ClientWithResponses) AddonServiceListAddonsWithResponse(ctx context.Context, params *AddonServiceListAddonsParams, reqEditors ...RequestEditorFn) (*AddonServiceListAddonsResponse, error) { - rsp, err := c.AddonServiceListAddons(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceListAddonsResponse(rsp) -} - -// AddonServiceCreateAddonWithBodyWithResponse Create an addon from a template addon -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). -func (c *ClientWithResponses) AddonServiceCreateAddonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceCreateAddonResponse, error) { - rsp, err := c.AddonServiceCreateAddonWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceCreateAddonResponse(rsp) -} - -// AddonServiceCreateAddonWithResponse Create an addon from a template addon -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/addons (the `AddonServiceCreateAddon` operationId). -func (c *ClientWithResponses) AddonServiceCreateAddonWithResponse(ctx context.Context, body AddonServiceCreateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceCreateAddonResponse, error) { - rsp, err := c.AddonServiceCreateAddon(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceCreateAddonResponse(rsp) -} - -// AddonServiceDeleteAddonWithResponse Delete an addon (soft delete) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /v1/addons/{id} (the `AddonServiceDeleteAddon` operationId). -func (c *ClientWithResponses) AddonServiceDeleteAddonWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AddonServiceDeleteAddonResponse, error) { - rsp, err := c.AddonServiceDeleteAddon(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceDeleteAddonResponse(rsp) -} - -// AddonServiceGetAddonWithResponse Get a specific addon with its prices -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/addons/{id} (the `AddonServiceGetAddon` operationId). -func (c *ClientWithResponses) AddonServiceGetAddonWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AddonServiceGetAddonResponse, error) { - rsp, err := c.AddonServiceGetAddon(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceGetAddonResponse(rsp) -} - -// AddonServiceUpdateAddonWithBodyWithResponse Update an addon (allows changing price and currency) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). -func (c *ClientWithResponses) AddonServiceUpdateAddonWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceUpdateAddonResponse, error) { - rsp, err := c.AddonServiceUpdateAddonWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceUpdateAddonResponse(rsp) -} - -// AddonServiceUpdateAddonWithResponse Update an addon (allows changing price and currency) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PATCH /v1/addons/{id} (the `AddonServiceUpdateAddon` operationId). -func (c *ClientWithResponses) AddonServiceUpdateAddonWithResponse(ctx context.Context, id string, body AddonServiceUpdateAddonJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceUpdateAddonResponse, error) { - rsp, err := c.AddonServiceUpdateAddon(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceUpdateAddonResponse(rsp) -} - -// AgentServiceListAgentsWithResponse performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceListAgentsWithResponse(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*AgentServiceListAgentsResponse, error) { - rsp, err := c.AgentServiceListAgents(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceListAgentsResponse(rsp) -} - -// AgentServiceCreateAgentWithBodyWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceCreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) { - rsp, err := c.AgentServiceCreateAgentWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceCreateAgentResponse(rsp) -} - -// AgentServiceCreateAgentWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceCreateAgentWithResponse(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) { - rsp, err := c.AgentServiceCreateAgent(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceCreateAgentResponse(rsp) -} - -// AgentServiceDeleteAgentWithResponse performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceDeleteAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceDeleteAgentResponse, error) { - rsp, err := c.AgentServiceDeleteAgent(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceDeleteAgentResponse(rsp) -} - -// AgentServiceGetAgentWithResponse performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceGetAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceGetAgentResponse, error) { - rsp, err := c.AgentServiceGetAgent(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceGetAgentResponse(rsp) -} - -// AgentServiceUpdateAgentWithBodyWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceUpdateAgentWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) { - rsp, err := c.AgentServiceUpdateAgentWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceUpdateAgentResponse(rsp) -} - -// AgentServiceUpdateAgentWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceUpdateAgentWithResponse(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) { - rsp, err := c.AgentServiceUpdateAgent(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceUpdateAgentResponse(rsp) -} - -// AgentServiceGenerateInstallCommandWithBodyWithResponse performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceGenerateInstallCommandWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGenerateInstallCommandResponse, error) { - rsp, err := c.AgentServiceGenerateInstallCommandWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceGenerateInstallCommandResponse(rsp) -} - -// AgentServiceGenerateInstallCommandWithResponse performs a POST /v1/agents/{id}:generateInstallCommand (the `AgentServiceGenerateInstallCommand` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceGenerateInstallCommandWithResponse(ctx context.Context, id string, body AgentServiceGenerateInstallCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGenerateInstallCommandResponse, error) { - rsp, err := c.AgentServiceGenerateInstallCommand(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceGenerateInstallCommandResponse(rsp) -} - -// AgentServiceGeneratePeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceGeneratePeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) { - rsp, err := c.AgentServiceGeneratePeeringConfigWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceGeneratePeeringConfigResponse(rsp) -} - -// AgentServiceGeneratePeeringConfigWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceGeneratePeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) { - rsp, err := c.AgentServiceGeneratePeeringConfig(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceGeneratePeeringConfigResponse(rsp) -} - -// AgentServiceUploadInboundPeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceUploadInboundPeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) { - rsp, err := c.AgentServiceUploadInboundPeeringConfigWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceUploadInboundPeeringConfigResponse(rsp) -} - -// AgentServiceUploadInboundPeeringConfigWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) AgentServiceUploadInboundPeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) { - rsp, err := c.AgentServiceUploadInboundPeeringConfig(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAgentServiceUploadInboundPeeringConfigResponse(rsp) -} - -// UserServiceChangePasswordWithBodyWithResponse performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceChangePasswordResponse, error) { - rsp, err := c.UserServiceChangePasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceChangePasswordResponse(rsp) -} - -// UserServiceChangePasswordWithResponse performs a POST /v1/auth/change-password (the `UserServiceChangePassword` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceChangePasswordWithResponse(ctx context.Context, body UserServiceChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceChangePasswordResponse, error) { - rsp, err := c.UserServiceChangePassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceChangePasswordResponse(rsp) -} - -// UserServiceForgotPasswordWithBodyWithResponse performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceForgotPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceForgotPasswordResponse, error) { - rsp, err := c.UserServiceForgotPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceForgotPasswordResponse(rsp) -} - -// UserServiceForgotPasswordWithResponse performs a POST /v1/auth/forgot-password (the `UserServiceForgotPassword` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceForgotPasswordWithResponse(ctx context.Context, body UserServiceForgotPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceForgotPasswordResponse, error) { - rsp, err := c.UserServiceForgotPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceForgotPasswordResponse(rsp) -} - -// UserServiceListLinkedIdentitiesWithResponse performs a GET /v1/auth/identities (the `UserServiceListLinkedIdentities` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceListLinkedIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceListLinkedIdentitiesResponse, error) { - rsp, err := c.UserServiceListLinkedIdentities(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceListLinkedIdentitiesResponse(rsp) -} - -// UserServiceUnlinkIdentityWithResponse performs a DELETE /v1/auth/identities/{provider} (the `UserServiceUnlinkIdentity` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceUnlinkIdentityWithResponse(ctx context.Context, provider string, reqEditors ...RequestEditorFn) (*UserServiceUnlinkIdentityResponse, error) { - rsp, err := c.UserServiceUnlinkIdentity(ctx, provider, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceUnlinkIdentityResponse(rsp) -} - -// UserServiceLoginWithBodyWithResponse performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLoginResponse, error) { - rsp, err := c.UserServiceLoginWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLoginResponse(rsp) -} - -// UserServiceLoginWithResponse performs a POST /v1/auth/login (the `UserServiceLogin` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLoginWithResponse(ctx context.Context, body UserServiceLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLoginResponse, error) { - rsp, err := c.UserServiceLogin(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLoginResponse(rsp) -} - -// UserServiceLoginMfaVerifyWithBodyWithResponse performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLoginMfaVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLoginMfaVerifyResponse, error) { - rsp, err := c.UserServiceLoginMfaVerifyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLoginMfaVerifyResponse(rsp) -} - -// UserServiceLoginMfaVerifyWithResponse performs a POST /v1/auth/login/mfa (the `UserServiceLoginMfaVerify` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLoginMfaVerifyWithResponse(ctx context.Context, body UserServiceLoginMfaVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLoginMfaVerifyResponse, error) { - rsp, err := c.UserServiceLoginMfaVerify(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLoginMfaVerifyResponse(rsp) -} - -// UserServiceLogoutWithBodyWithResponse performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceLogoutResponse, error) { - rsp, err := c.UserServiceLogoutWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLogoutResponse(rsp) -} - -// UserServiceLogoutWithResponse performs a POST /v1/auth/logout (the `UserServiceLogout` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceLogoutWithResponse(ctx context.Context, body UserServiceLogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceLogoutResponse, error) { - rsp, err := c.UserServiceLogout(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceLogoutResponse(rsp) -} - -// UserServiceRegenerateMfaBackupCodesWithBodyWithResponse performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceRegenerateMfaBackupCodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceRegenerateMfaBackupCodesResponse, error) { - rsp, err := c.UserServiceRegenerateMfaBackupCodesWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceRegenerateMfaBackupCodesResponse(rsp) -} - -// UserServiceRegenerateMfaBackupCodesWithResponse performs a POST /v1/auth/mfa/backup-codes/regenerate (the `UserServiceRegenerateMfaBackupCodes` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceRegenerateMfaBackupCodesWithResponse(ctx context.Context, body UserServiceRegenerateMfaBackupCodesJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceRegenerateMfaBackupCodesResponse, error) { - rsp, err := c.UserServiceRegenerateMfaBackupCodes(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceRegenerateMfaBackupCodesResponse(rsp) -} - -// UserServiceDisableMfaWithBodyWithResponse performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceDisableMfaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceDisableMfaResponse, error) { - rsp, err := c.UserServiceDisableMfaWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceDisableMfaResponse(rsp) -} - -// UserServiceDisableMfaWithResponse performs a POST /v1/auth/mfa/disable (the `UserServiceDisableMfa` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceDisableMfaWithResponse(ctx context.Context, body UserServiceDisableMfaJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceDisableMfaResponse, error) { - rsp, err := c.UserServiceDisableMfa(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceDisableMfaResponse(rsp) -} - -// UserServiceEnrollMfaTotpWithBodyWithResponse performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceEnrollMfaTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceEnrollMfaTotpResponse, error) { - rsp, err := c.UserServiceEnrollMfaTotpWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceEnrollMfaTotpResponse(rsp) -} - -// UserServiceEnrollMfaTotpWithResponse performs a POST /v1/auth/mfa/enroll (the `UserServiceEnrollMfaTotp` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceEnrollMfaTotpWithResponse(ctx context.Context, body UserServiceEnrollMfaTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceEnrollMfaTotpResponse, error) { - rsp, err := c.UserServiceEnrollMfaTotp(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceEnrollMfaTotpResponse(rsp) -} - -// UserServiceGetMfaStatusWithResponse performs a GET /v1/auth/mfa/status (the `UserServiceGetMfaStatus` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceGetMfaStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceGetMfaStatusResponse, error) { - rsp, err := c.UserServiceGetMfaStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceGetMfaStatusResponse(rsp) -} - -// UserServiceVerifyMfaEnrollmentWithBodyWithResponse performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceVerifyMfaEnrollmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceVerifyMfaEnrollmentResponse, error) { - rsp, err := c.UserServiceVerifyMfaEnrollmentWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceVerifyMfaEnrollmentResponse(rsp) -} - -// UserServiceVerifyMfaEnrollmentWithResponse performs a POST /v1/auth/mfa/verify-enrollment (the `UserServiceVerifyMfaEnrollment` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceVerifyMfaEnrollmentWithResponse(ctx context.Context, body UserServiceVerifyMfaEnrollmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceVerifyMfaEnrollmentResponse, error) { - rsp, err := c.UserServiceVerifyMfaEnrollment(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceVerifyMfaEnrollmentResponse(rsp) -} - -// UserServiceRegisterUserWithBodyWithResponse performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceRegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceRegisterUserResponse, error) { - rsp, err := c.UserServiceRegisterUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceRegisterUserResponse(rsp) -} - -// UserServiceRegisterUserWithResponse performs a POST /v1/auth/register (the `UserServiceRegisterUser` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceRegisterUserWithResponse(ctx context.Context, body UserServiceRegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceRegisterUserResponse, error) { - rsp, err := c.UserServiceRegisterUser(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceRegisterUserResponse(rsp) -} - -// UserServiceResendVerificationEmailWithBodyWithResponse performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceResendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceResendVerificationEmailResponse, error) { - rsp, err := c.UserServiceResendVerificationEmailWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceResendVerificationEmailResponse(rsp) -} - -// UserServiceResendVerificationEmailWithResponse performs a POST /v1/auth/resend-verification-email (the `UserServiceResendVerificationEmail` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceResendVerificationEmailWithResponse(ctx context.Context, body UserServiceResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceResendVerificationEmailResponse, error) { - rsp, err := c.UserServiceResendVerificationEmail(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceResendVerificationEmailResponse(rsp) -} - -// UserServiceResetPasswordWithBodyWithResponse performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceResetPasswordResponse, error) { - rsp, err := c.UserServiceResetPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceResetPasswordResponse(rsp) -} - -// UserServiceResetPasswordWithResponse performs a POST /v1/auth/reset-password (the `UserServiceResetPassword` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceResetPasswordWithResponse(ctx context.Context, body UserServiceResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceResetPasswordResponse, error) { - rsp, err := c.UserServiceResetPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceResetPasswordResponse(rsp) -} - -// UserServiceGetActiveSessionsWithResponse performs a GET /v1/auth/sessions (the `UserServiceGetActiveSessions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceGetActiveSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserServiceGetActiveSessionsResponse, error) { - rsp, err := c.UserServiceGetActiveSessions(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceGetActiveSessionsResponse(rsp) -} - -// UserServiceSetPasswordWithBodyWithResponse performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceSetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceSetPasswordResponse, error) { - rsp, err := c.UserServiceSetPasswordWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceSetPasswordResponse(rsp) -} - -// UserServiceSetPasswordWithResponse performs a POST /v1/auth/set-password (the `UserServiceSetPassword` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceSetPasswordWithResponse(ctx context.Context, body UserServiceSetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceSetPasswordResponse, error) { - rsp, err := c.UserServiceSetPassword(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceSetPasswordResponse(rsp) -} - -// UserServiceExchangeSSOCodeWithBodyWithResponse performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceExchangeSSOCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceExchangeSSOCodeResponse, error) { - rsp, err := c.UserServiceExchangeSSOCodeWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceExchangeSSOCodeResponse(rsp) -} - -// UserServiceExchangeSSOCodeWithResponse performs a POST /v1/auth/sso/exchange (the `UserServiceExchangeSSOCode` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceExchangeSSOCodeWithResponse(ctx context.Context, body UserServiceExchangeSSOCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceExchangeSSOCodeResponse, error) { - rsp, err := c.UserServiceExchangeSSOCode(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceExchangeSSOCodeResponse(rsp) -} - -// UserServiceCompleteSSOLinkWithBodyWithResponse performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceCompleteSSOLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceCompleteSSOLinkResponse, error) { - rsp, err := c.UserServiceCompleteSSOLinkWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceCompleteSSOLinkResponse(rsp) -} - -// UserServiceCompleteSSOLinkWithResponse performs a POST /v1/auth/sso/link (the `UserServiceCompleteSSOLink` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceCompleteSSOLinkWithResponse(ctx context.Context, body UserServiceCompleteSSOLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceCompleteSSOLinkResponse, error) { - rsp, err := c.UserServiceCompleteSSOLink(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceCompleteSSOLinkResponse(rsp) -} - -// UserServiceVerifyEmailWithResponse performs a GET /v1/auth/verify-email (the `UserServiceVerifyEmail` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceVerifyEmailWithResponse(ctx context.Context, params *UserServiceVerifyEmailParams, reqEditors ...RequestEditorFn) (*UserServiceVerifyEmailResponse, error) { - rsp, err := c.UserServiceVerifyEmail(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceVerifyEmailResponse(rsp) -} - -// ChatServiceChatWithBodyWithResponse Chat provides a non-streaming chat endpoint -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). -func (c *ClientWithResponses) ChatServiceChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatServiceChatResponse, error) { - rsp, err := c.ChatServiceChatWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceChatResponse(rsp) -} - -// ChatServiceChatWithResponse Chat provides a non-streaming chat endpoint -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/chat (the `ChatServiceChat` operationId). -func (c *ClientWithResponses) ChatServiceChatWithResponse(ctx context.Context, body ChatServiceChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatServiceChatResponse, error) { - rsp, err := c.ChatServiceChat(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceChatResponse(rsp) -} - -// ChatServiceChatAnonymousWithBodyWithResponse ChatAnonymous provides a non-streaming chat endpoint for anonymous users -// Session ID is extracted from the cookie header (managed by the frontend) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). -func (c *ClientWithResponses) ChatServiceChatAnonymousWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChatServiceChatAnonymousResponse, error) { - rsp, err := c.ChatServiceChatAnonymousWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceChatAnonymousResponse(rsp) -} - -// ChatServiceChatAnonymousWithResponse ChatAnonymous provides a non-streaming chat endpoint for anonymous users -// Session ID is extracted from the cookie header (managed by the frontend) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/chat/anonymous (the `ChatServiceChatAnonymous` operationId). -func (c *ClientWithResponses) ChatServiceChatAnonymousWithResponse(ctx context.Context, body ChatServiceChatAnonymousJSONRequestBody, reqEditors ...RequestEditorFn) (*ChatServiceChatAnonymousResponse, error) { - rsp, err := c.ChatServiceChatAnonymous(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceChatAnonymousResponse(rsp) -} - -// ChatServiceListConversationsWithResponse ListConversations returns all conversation IDs for the authenticated user -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/chat/conversations (the `ChatServiceListConversations` operationId). -func (c *ClientWithResponses) ChatServiceListConversationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ChatServiceListConversationsResponse, error) { - rsp, err := c.ChatServiceListConversations(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceListConversationsResponse(rsp) -} - -// ChatServiceDeleteConversationWithResponse DeleteConversation marks a conversation as deleted (soft delete) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /v1/chat/conversations/{conversationId} (the `ChatServiceDeleteConversation` operationId). -func (c *ClientWithResponses) ChatServiceDeleteConversationWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ChatServiceDeleteConversationResponse, error) { - rsp, err := c.ChatServiceDeleteConversation(ctx, conversationId, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceDeleteConversationResponse(rsp) -} - -// ChatServiceGetConversationHistoryWithResponse GetConversationHistory returns the full message history for a conversation -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/chat/conversations/{conversationId}/history (the `ChatServiceGetConversationHistory` operationId). -func (c *ClientWithResponses) ChatServiceGetConversationHistoryWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ChatServiceGetConversationHistoryResponse, error) { - rsp, err := c.ChatServiceGetConversationHistory(ctx, conversationId, reqEditors...) - if err != nil { - return nil, err - } - return ParseChatServiceGetConversationHistoryResponse(rsp) -} - -// ClientDashboardServiceGetClientDashboardBillingWithResponse performs a GET /v1/client/dashboard/billing (the `ClientDashboardServiceGetClientDashboardBilling` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientDashboardServiceGetClientDashboardBillingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientDashboardServiceGetClientDashboardBillingResponse, error) { - rsp, err := c.ClientDashboardServiceGetClientDashboardBilling(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientDashboardServiceGetClientDashboardBillingResponse(rsp) -} - -// ClientDashboardServiceGetClientDashboardSummaryWithResponse performs a GET /v1/client/dashboard/summary (the `ClientDashboardServiceGetClientDashboardSummary` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientDashboardServiceGetClientDashboardSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientDashboardServiceGetClientDashboardSummaryResponse, error) { - rsp, err := c.ClientDashboardServiceGetClientDashboardSummary(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientDashboardServiceGetClientDashboardSummaryResponse(rsp) -} - -// ClientProviderReviewServiceListClientProviderReviewAssetsWithResponse performs a GET /v1/client/provider-review-assets (the `ClientProviderReviewServiceListClientProviderReviewAssets` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceListClientProviderReviewAssetsWithResponse(ctx context.Context, params *ClientProviderReviewServiceListClientProviderReviewAssetsParams, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceListClientProviderReviewAssetsResponse, error) { - rsp, err := c.ClientProviderReviewServiceListClientProviderReviewAssets(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceListClientProviderReviewAssetsResponse(rsp) -} - -// CloudInitTemplateServiceCreateCloudInitTemplateWithBodyWithResponse performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceCreateCloudInitTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceCreateCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceCreateCloudInitTemplateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceCreateCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceCreateCloudInitTemplateWithResponse performs a POST /v1/cloudinittemplate (the `CloudInitTemplateServiceCreateCloudInitTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceCreateCloudInitTemplateWithResponse(ctx context.Context, body CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceCreateCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceCreateCloudInitTemplate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceCreateCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceDeleteCloudInitTemplateWithResponse performs a DELETE /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceDeleteCloudInitTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceDeleteCloudInitTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceDeleteCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceDeleteCloudInitTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceDeleteCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceGetCloudInitTemplateWithResponse performs a GET /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceGetCloudInitTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceGetCloudInitTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceGetCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceGetCloudInitTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceGetCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceUpdateCloudInitTemplateWithBodyWithResponse performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceUpdateCloudInitTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceUpdateCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceUpdateCloudInitTemplateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceUpdateCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceUpdateCloudInitTemplateWithResponse performs a PATCH /v1/cloudinittemplate/{id} (the `CloudInitTemplateServiceUpdateCloudInitTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceUpdateCloudInitTemplateWithResponse(ctx context.Context, id string, body CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceUpdateCloudInitTemplateResponse, error) { - rsp, err := c.CloudInitTemplateServiceUpdateCloudInitTemplate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceUpdateCloudInitTemplateResponse(rsp) -} - -// CloudInitTemplateServiceListCloudInitTemplatesWithResponse performs a GET /v1/cloudinittemplates (the `CloudInitTemplateServiceListCloudInitTemplates` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitTemplateServiceListCloudInitTemplatesWithResponse(ctx context.Context, params *CloudInitTemplateServiceListCloudInitTemplatesParams, reqEditors ...RequestEditorFn) (*CloudInitTemplateServiceListCloudInitTemplatesResponse, error) { - rsp, err := c.CloudInitTemplateServiceListCloudInitTemplates(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitTemplateServiceListCloudInitTemplatesResponse(rsp) -} - -// CloudInitUserDataServiceListCloudInitUserDataWithResponse performs a GET /v1/cloudinituserdata (the `CloudInitUserDataServiceListCloudInitUserData` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceListCloudInitUserDataWithResponse(ctx context.Context, params *CloudInitUserDataServiceListCloudInitUserDataParams, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceListCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceListCloudInitUserData(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceListCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceCreateCloudInitUserDataWithBodyWithResponse performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceCreateCloudInitUserDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceCreateCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceCreateCloudInitUserDataWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceCreateCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceCreateCloudInitUserDataWithResponse performs a POST /v1/cloudinituserdata (the `CloudInitUserDataServiceCreateCloudInitUserData` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceCreateCloudInitUserDataWithResponse(ctx context.Context, body CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceCreateCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceCreateCloudInitUserData(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceCreateCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceDeleteCloudInitUserDataWithResponse performs a DELETE /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceDeleteCloudInitUserData` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceDeleteCloudInitUserDataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceDeleteCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceDeleteCloudInitUserData(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceDeleteCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceGetCloudInitUserDataWithResponse performs a GET /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceGetCloudInitUserData` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceGetCloudInitUserDataWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceGetCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceGetCloudInitUserData(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceGetCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceUpdateCloudInitUserDataWithBodyWithResponse performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceUpdateCloudInitUserDataWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceUpdateCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceUpdateCloudInitUserDataWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceUpdateCloudInitUserDataResponse(rsp) -} - -// CloudInitUserDataServiceUpdateCloudInitUserDataWithResponse performs a PATCH /v1/cloudinituserdata/{id} (the `CloudInitUserDataServiceUpdateCloudInitUserData` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CloudInitUserDataServiceUpdateCloudInitUserDataWithResponse(ctx context.Context, id string, body CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody, reqEditors ...RequestEditorFn) (*CloudInitUserDataServiceUpdateCloudInitUserDataResponse, error) { - rsp, err := c.CloudInitUserDataServiceUpdateCloudInitUserData(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCloudInitUserDataServiceUpdateCloudInitUserDataResponse(rsp) -} - -// RegionServiceListCountriesCitiesWithResponse performs a GET /v1/countries-cities (the `RegionServiceListCountriesCities` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceListCountriesCitiesWithResponse(ctx context.Context, params *RegionServiceListCountriesCitiesParams, reqEditors ...RequestEditorFn) (*RegionServiceListCountriesCitiesResponse, error) { - rsp, err := c.RegionServiceListCountriesCities(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceListCountriesCitiesResponse(rsp) -} - -// CreditServiceGetCreditBalanceWithResponse performs a GET /v1/credits/balance (the `CreditServiceGetCreditBalance` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CreditServiceGetCreditBalanceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreditServiceGetCreditBalanceResponse, error) { - rsp, err := c.CreditServiceGetCreditBalance(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreditServiceGetCreditBalanceResponse(rsp) -} - -// CreditServiceListCreditLedgerEntriesWithResponse performs a GET /v1/credits/ledger (the `CreditServiceListCreditLedgerEntries` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CreditServiceListCreditLedgerEntriesWithResponse(ctx context.Context, params *CreditServiceListCreditLedgerEntriesParams, reqEditors ...RequestEditorFn) (*CreditServiceListCreditLedgerEntriesResponse, error) { - rsp, err := c.CreditServiceListCreditLedgerEntries(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreditServiceListCreditLedgerEntriesResponse(rsp) -} - -// CreditServicePurchaseCreditsWithBodyWithResponse performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CreditServicePurchaseCreditsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreditServicePurchaseCreditsResponse, error) { - rsp, err := c.CreditServicePurchaseCreditsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreditServicePurchaseCreditsResponse(rsp) -} - -// CreditServicePurchaseCreditsWithResponse performs a POST /v1/credits:purchase (the `CreditServicePurchaseCredits` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) CreditServicePurchaseCreditsWithResponse(ctx context.Context, body CreditServicePurchaseCreditsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreditServicePurchaseCreditsResponse, error) { - rsp, err := c.CreditServicePurchaseCredits(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreditServicePurchaseCreditsResponse(rsp) -} - -// RegionServiceListDatacentersWithResponse performs a GET /v1/datacenters (the `RegionServiceListDatacenters` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceListDatacentersWithResponse(ctx context.Context, params *RegionServiceListDatacentersParams, reqEditors ...RequestEditorFn) (*RegionServiceListDatacentersResponse, error) { - rsp, err := c.RegionServiceListDatacenters(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceListDatacentersResponse(rsp) -} - -// DomainServiceGetDomainWithResponse performs a GET /v1/domain (the `DomainServiceGetDomain` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) DomainServiceGetDomainWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DomainServiceGetDomainResponse, error) { - rsp, err := c.DomainServiceGetDomain(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseDomainServiceGetDomainResponse(rsp) -} - -// DomainServiceCreateDomainWithBodyWithResponse performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) DomainServiceCreateDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DomainServiceCreateDomainResponse, error) { - rsp, err := c.DomainServiceCreateDomainWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDomainServiceCreateDomainResponse(rsp) -} - -// DomainServiceCreateDomainWithResponse performs a POST /v1/domain (the `DomainServiceCreateDomain` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) DomainServiceCreateDomainWithResponse(ctx context.Context, body DomainServiceCreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*DomainServiceCreateDomainResponse, error) { - rsp, err := c.DomainServiceCreateDomain(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDomainServiceCreateDomainResponse(rsp) -} - -// DomainServiceVerifyDomainWithResponse performs a GET /v1/domain/verify/{id} (the `DomainServiceVerifyDomain` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) DomainServiceVerifyDomainWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DomainServiceVerifyDomainResponse, error) { - rsp, err := c.DomainServiceVerifyDomain(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDomainServiceVerifyDomainResponse(rsp) -} - -// DomainServiceDeleteDomainWithResponse performs a DELETE /v1/domain/{id} (the `DomainServiceDeleteDomain` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) DomainServiceDeleteDomainWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DomainServiceDeleteDomainResponse, error) { - rsp, err := c.DomainServiceDeleteDomain(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDomainServiceDeleteDomainResponse(rsp) -} - -// EnvironmentVariableServiceListEnvironmentVariablesWithResponse performs a GET /v1/environment-variables (the `EnvironmentVariableServiceListEnvironmentVariables` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceListEnvironmentVariablesWithResponse(ctx context.Context, params *EnvironmentVariableServiceListEnvironmentVariablesParams, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceListEnvironmentVariablesResponse, error) { - rsp, err := c.EnvironmentVariableServiceListEnvironmentVariables(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceListEnvironmentVariablesResponse(rsp) -} - -// EnvironmentVariableServiceCreateEnvironmentVariableWithBodyWithResponse performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceCreateEnvironmentVariableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceCreateEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceCreateEnvironmentVariableWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceCreateEnvironmentVariableResponse(rsp) -} - -// EnvironmentVariableServiceCreateEnvironmentVariableWithResponse performs a POST /v1/environment-variables (the `EnvironmentVariableServiceCreateEnvironmentVariable` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceCreateEnvironmentVariableWithResponse(ctx context.Context, body EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceCreateEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceCreateEnvironmentVariable(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceCreateEnvironmentVariableResponse(rsp) -} - -// EnvironmentVariableServiceDeleteEnvironmentVariableWithResponse performs a DELETE /v1/environment-variables/{id} (the `EnvironmentVariableServiceDeleteEnvironmentVariable` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceDeleteEnvironmentVariableWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceDeleteEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceDeleteEnvironmentVariable(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceDeleteEnvironmentVariableResponse(rsp) -} - -// EnvironmentVariableServiceGetEnvironmentVariableWithResponse performs a GET /v1/environment-variables/{id} (the `EnvironmentVariableServiceGetEnvironmentVariable` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceGetEnvironmentVariableWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceGetEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceGetEnvironmentVariable(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceGetEnvironmentVariableResponse(rsp) -} - -// EnvironmentVariableServiceUpdateEnvironmentVariableWithBodyWithResponse performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceUpdateEnvironmentVariableWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceUpdateEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceUpdateEnvironmentVariableWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceUpdateEnvironmentVariableResponse(rsp) -} - -// EnvironmentVariableServiceUpdateEnvironmentVariableWithResponse performs a PATCH /v1/environment-variables/{id} (the `EnvironmentVariableServiceUpdateEnvironmentVariable` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) EnvironmentVariableServiceUpdateEnvironmentVariableWithResponse(ctx context.Context, id string, body EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*EnvironmentVariableServiceUpdateEnvironmentVariableResponse, error) { - rsp, err := c.EnvironmentVariableServiceUpdateEnvironmentVariable(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseEnvironmentVariableServiceUpdateEnvironmentVariableResponse(rsp) -} - -// ExchangeRateServiceConvertCurrencyWithBodyWithResponse Convert an amount from USD to a target currency -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). -func (c *ClientWithResponses) ExchangeRateServiceConvertCurrencyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeRateServiceConvertCurrencyResponse, error) { - rsp, err := c.ExchangeRateServiceConvertCurrencyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExchangeRateServiceConvertCurrencyResponse(rsp) -} - -// ExchangeRateServiceConvertCurrencyWithResponse Convert an amount from USD to a target currency -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/exchange-rate/convert (the `ExchangeRateServiceConvertCurrency` operationId). -func (c *ClientWithResponses) ExchangeRateServiceConvertCurrencyWithResponse(ctx context.Context, body ExchangeRateServiceConvertCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*ExchangeRateServiceConvertCurrencyResponse, error) { - rsp, err := c.ExchangeRateServiceConvertCurrency(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseExchangeRateServiceConvertCurrencyResponse(rsp) -} - -// ExchangeRateServiceListSupportedCurrenciesWithResponse List all supported currency codes -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/exchange-rate/currencies (the `ExchangeRateServiceListSupportedCurrencies` operationId). -func (c *ClientWithResponses) ExchangeRateServiceListSupportedCurrenciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExchangeRateServiceListSupportedCurrenciesResponse, error) { - rsp, err := c.ExchangeRateServiceListSupportedCurrencies(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseExchangeRateServiceListSupportedCurrenciesResponse(rsp) -} - -// ExchangeRateServiceGetExchangeRateWithResponse Get the current exchange rate for a specific currency (from USD) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/exchange-rate/rate/{currencyCode} (the `ExchangeRateServiceGetExchangeRate` operationId). -func (c *ClientWithResponses) ExchangeRateServiceGetExchangeRateWithResponse(ctx context.Context, currencyCode string, reqEditors ...RequestEditorFn) (*ExchangeRateServiceGetExchangeRateResponse, error) { - rsp, err := c.ExchangeRateServiceGetExchangeRate(ctx, currencyCode, reqEditors...) - if err != nil { - return nil, err - } - return ParseExchangeRateServiceGetExchangeRateResponse(rsp) -} - -// ExchangeRateServiceGetAllExchangeRatesWithResponse Get all exchange rates at once (returns map of currency codes to rates) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/exchange-rate/rates (the `ExchangeRateServiceGetAllExchangeRates` operationId). -func (c *ClientWithResponses) ExchangeRateServiceGetAllExchangeRatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExchangeRateServiceGetAllExchangeRatesResponse, error) { - rsp, err := c.ExchangeRateServiceGetAllExchangeRates(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseExchangeRateServiceGetAllExchangeRatesResponse(rsp) -} - -// FirewallServiceListFirewallAddressGroupsWithResponse performs a GET /v1/firewall/address-groups (the `FirewallServiceListFirewallAddressGroups` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceListFirewallAddressGroupsWithResponse(ctx context.Context, params *FirewallServiceListFirewallAddressGroupsParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallAddressGroupsResponse, error) { - rsp, err := c.FirewallServiceListFirewallAddressGroups(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceListFirewallAddressGroupsResponse(rsp) -} - -// FirewallServiceCreateFirewallAddressGroupWithBodyWithResponse performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallAddressGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallAddressGroupWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceCreateFirewallAddressGroupWithResponse performs a POST /v1/firewall/address-groups (the `FirewallServiceCreateFirewallAddressGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallAddressGroupWithResponse(ctx context.Context, body FirewallServiceCreateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallAddressGroup(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceDeleteFirewallAddressGroupWithResponse performs a DELETE /v1/firewall/address-groups/{id} (the `FirewallServiceDeleteFirewallAddressGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceDeleteFirewallAddressGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceDeleteFirewallAddressGroup(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceDeleteFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceGetFirewallAddressGroupWithResponse performs a GET /v1/firewall/address-groups/{id} (the `FirewallServiceGetFirewallAddressGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceGetFirewallAddressGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceGetFirewallAddressGroup(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceGetFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceUpdateFirewallAddressGroupWithBodyWithResponse performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallAddressGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallAddressGroupWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceUpdateFirewallAddressGroupWithResponse performs a PATCH /v1/firewall/address-groups/{id} (the `FirewallServiceUpdateFirewallAddressGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallAddressGroupWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallAddressGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallAddressGroupResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallAddressGroup(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallAddressGroupResponse(rsp) -} - -// FirewallServiceDeleteFirewallRuleWithResponse performs a DELETE /v1/firewall/rules/{id} (the `FirewallServiceDeleteFirewallRule` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceDeleteFirewallRuleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceDeleteFirewallRule(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceDeleteFirewallRuleResponse(rsp) -} - -// FirewallServiceGetFirewallRuleWithResponse performs a GET /v1/firewall/rules/{id} (the `FirewallServiceGetFirewallRule` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceGetFirewallRuleWithResponse(ctx context.Context, id string, params *FirewallServiceGetFirewallRuleParams, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceGetFirewallRule(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceGetFirewallRuleResponse(rsp) -} - -// FirewallServiceUpdateFirewallRuleWithBodyWithResponse performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallRuleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallRuleWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallRuleResponse(rsp) -} - -// FirewallServiceUpdateFirewallRuleWithResponse performs a PATCH /v1/firewall/rules/{id} (the `FirewallServiceUpdateFirewallRule` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallRuleWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallRule(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallRuleResponse(rsp) -} - -// FirewallServiceMoveFirewallRuleWithBodyWithResponse performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceMoveFirewallRuleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceMoveFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceMoveFirewallRuleWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceMoveFirewallRuleResponse(rsp) -} - -// FirewallServiceMoveFirewallRuleWithResponse performs a POST /v1/firewall/rules/{id}/move (the `FirewallServiceMoveFirewallRule` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceMoveFirewallRuleWithResponse(ctx context.Context, id string, body FirewallServiceMoveFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceMoveFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceMoveFirewallRule(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceMoveFirewallRuleResponse(rsp) -} - -// FirewallServiceListFirewallRuleSetsWithResponse performs a GET /v1/firewall/rulesets (the `FirewallServiceListFirewallRuleSets` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceListFirewallRuleSetsWithResponse(ctx context.Context, params *FirewallServiceListFirewallRuleSetsParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallRuleSetsResponse, error) { - rsp, err := c.FirewallServiceListFirewallRuleSets(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceListFirewallRuleSetsResponse(rsp) -} - -// FirewallServiceCreateFirewallRuleSetWithBodyWithResponse performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallRuleSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallRuleSetWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallRuleSetResponse(rsp) -} - -// FirewallServiceCreateFirewallRuleSetWithResponse performs a POST /v1/firewall/rulesets (the `FirewallServiceCreateFirewallRuleSet` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallRuleSetWithResponse(ctx context.Context, body FirewallServiceCreateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallRuleSet(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallRuleSetResponse(rsp) -} - -// FirewallServiceDeleteFirewallRuleSetWithResponse performs a DELETE /v1/firewall/rulesets/{id} (the `FirewallServiceDeleteFirewallRuleSet` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceDeleteFirewallRuleSetWithResponse(ctx context.Context, id string, params *FirewallServiceDeleteFirewallRuleSetParams, reqEditors ...RequestEditorFn) (*FirewallServiceDeleteFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceDeleteFirewallRuleSet(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceDeleteFirewallRuleSetResponse(rsp) -} - -// FirewallServiceGetFirewallRuleSetWithResponse performs a GET /v1/firewall/rulesets/{id} (the `FirewallServiceGetFirewallRuleSet` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceGetFirewallRuleSetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FirewallServiceGetFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceGetFirewallRuleSet(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceGetFirewallRuleSetResponse(rsp) -} - -// FirewallServiceUpdateFirewallRuleSetWithBodyWithResponse performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallRuleSetWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallRuleSetWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallRuleSetResponse(rsp) -} - -// FirewallServiceUpdateFirewallRuleSetWithResponse performs a PATCH /v1/firewall/rulesets/{id} (the `FirewallServiceUpdateFirewallRuleSet` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceUpdateFirewallRuleSetWithResponse(ctx context.Context, id string, body FirewallServiceUpdateFirewallRuleSetJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceUpdateFirewallRuleSetResponse, error) { - rsp, err := c.FirewallServiceUpdateFirewallRuleSet(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceUpdateFirewallRuleSetResponse(rsp) -} - -// FirewallServiceListFirewallRulesWithResponse performs a GET /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceListFirewallRules` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceListFirewallRulesWithResponse(ctx context.Context, rulesetId string, params *FirewallServiceListFirewallRulesParams, reqEditors ...RequestEditorFn) (*FirewallServiceListFirewallRulesResponse, error) { - rsp, err := c.FirewallServiceListFirewallRules(ctx, rulesetId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceListFirewallRulesResponse(rsp) -} - -// FirewallServiceCreateFirewallRuleWithBodyWithResponse performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallRuleWithBodyWithResponse(ctx context.Context, rulesetId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallRuleWithBody(ctx, rulesetId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallRuleResponse(rsp) -} - -// FirewallServiceCreateFirewallRuleWithResponse performs a POST /v1/firewall/rulesets/{rulesetId}/rules (the `FirewallServiceCreateFirewallRule` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) FirewallServiceCreateFirewallRuleWithResponse(ctx context.Context, rulesetId string, body FirewallServiceCreateFirewallRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FirewallServiceCreateFirewallRuleResponse, error) { - rsp, err := c.FirewallServiceCreateFirewallRule(ctx, rulesetId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseFirewallServiceCreateFirewallRuleResponse(rsp) -} - -// GroupServiceListGroupsWithResponse performs a GET /v1/groups (the `GroupServiceListGroups` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceListGroupsWithResponse(ctx context.Context, params *GroupServiceListGroupsParams, reqEditors ...RequestEditorFn) (*GroupServiceListGroupsResponse, error) { - rsp, err := c.GroupServiceListGroups(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceListGroupsResponse(rsp) -} - -// GroupServiceCreateGroupWithBodyWithResponse performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceCreateGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceCreateGroupResponse, error) { - rsp, err := c.GroupServiceCreateGroupWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceCreateGroupResponse(rsp) -} - -// GroupServiceCreateGroupWithResponse performs a POST /v1/groups (the `GroupServiceCreateGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceCreateGroupWithResponse(ctx context.Context, body GroupServiceCreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceCreateGroupResponse, error) { - rsp, err := c.GroupServiceCreateGroup(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceCreateGroupResponse(rsp) -} - -// GroupServiceAddServiceAccountToGroupWithBodyWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceAddServiceAccountToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) { - rsp, err := c.GroupServiceAddServiceAccountToGroupWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceAddServiceAccountToGroupResponse(rsp) -} - -// GroupServiceAddServiceAccountToGroupWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceAddServiceAccountToGroupWithResponse(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) { - rsp, err := c.GroupServiceAddServiceAccountToGroup(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceAddServiceAccountToGroupResponse(rsp) -} - -// GroupServiceAddUserToGroupWithBodyWithResponse performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceAddUserToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddUserToGroupResponse, error) { - rsp, err := c.GroupServiceAddUserToGroupWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceAddUserToGroupResponse(rsp) -} - -// GroupServiceAddUserToGroupWithResponse performs a POST /v1/groups/add-user (the `GroupServiceAddUserToGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceAddUserToGroupWithResponse(ctx context.Context, body GroupServiceAddUserToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddUserToGroupResponse, error) { - rsp, err := c.GroupServiceAddUserToGroup(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceAddUserToGroupResponse(rsp) -} - -// GroupServiceRemoveServiceAccountFromGroupWithResponse performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceRemoveServiceAccountFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) { - rsp, err := c.GroupServiceRemoveServiceAccountFromGroup(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceRemoveServiceAccountFromGroupResponse(rsp) -} - -// GroupServiceRemoveUserFromGroupWithResponse performs a DELETE /v1/groups/remove-user (the `GroupServiceRemoveUserFromGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceRemoveUserFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveUserFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveUserFromGroupResponse, error) { - rsp, err := c.GroupServiceRemoveUserFromGroup(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceRemoveUserFromGroupResponse(rsp) -} - -// GroupServiceDeleteGroupWithResponse performs a DELETE /v1/groups/{id} (the `GroupServiceDeleteGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceDeleteGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GroupServiceDeleteGroupResponse, error) { - rsp, err := c.GroupServiceDeleteGroup(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceDeleteGroupResponse(rsp) -} - -// GroupServiceGetGroupWithResponse performs a GET /v1/groups/{id} (the `GroupServiceGetGroup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceGetGroupWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GroupServiceGetGroupResponse, error) { - rsp, err := c.GroupServiceGetGroup(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceGetGroupResponse(rsp) -} - -// GroupServiceUpdateGroupWithBodyWithResponse performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceUpdateGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceUpdateGroupResponse, error) { - rsp, err := c.GroupServiceUpdateGroupWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceUpdateGroupResponse(rsp) -} - -// GroupServiceUpdateGroupWithResponse performs a PATCH /v1/groups/{id} (the `GroupServiceUpdateGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) GroupServiceUpdateGroupWithResponse(ctx context.Context, id string, body GroupServiceUpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceUpdateGroupResponse, error) { - rsp, err := c.GroupServiceUpdateGroup(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGroupServiceUpdateGroupResponse(rsp) -} - -// MetadataServiceHealthCheckWithResponse performs a GET /v1/healthz (the `MetadataServiceHealthCheck` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetadataServiceHealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceHealthCheckResponse, error) { - rsp, err := c.MetadataServiceHealthCheck(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetadataServiceHealthCheckResponse(rsp) -} - -// InstantAppServiceListInstantAppsWithResponse performs a GET /v1/instantapps (the `InstantAppServiceListInstantApps` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InstantAppServiceListInstantAppsWithResponse(ctx context.Context, params *InstantAppServiceListInstantAppsParams, reqEditors ...RequestEditorFn) (*InstantAppServiceListInstantAppsResponse, error) { - rsp, err := c.InstantAppServiceListInstantApps(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInstantAppServiceListInstantAppsResponse(rsp) -} - -// InstantAppServiceGetInstantApp2WithResponse performs a GET /v1/instantapps/slug/{slug} (the `InstantAppServiceGetInstantApp2` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InstantAppServiceGetInstantApp2WithResponse(ctx context.Context, slug string, params *InstantAppServiceGetInstantApp2Params, reqEditors ...RequestEditorFn) (*InstantAppServiceGetInstantApp2Response, error) { - rsp, err := c.InstantAppServiceGetInstantApp2(ctx, slug, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInstantAppServiceGetInstantApp2Response(rsp) -} - -// InstantAppServiceGetInstantAppWithResponse performs a GET /v1/instantapps/{id} (the `InstantAppServiceGetInstantApp` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InstantAppServiceGetInstantAppWithResponse(ctx context.Context, id string, params *InstantAppServiceGetInstantAppParams, reqEditors ...RequestEditorFn) (*InstantAppServiceGetInstantAppResponse, error) { - rsp, err := c.InstantAppServiceGetInstantApp(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInstantAppServiceGetInstantAppResponse(rsp) -} - -// InviteServiceListInvitesWithResponse performs a GET /v1/invites (the `InviteServiceListInvites` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceListInvitesWithResponse(ctx context.Context, params *InviteServiceListInvitesParams, reqEditors ...RequestEditorFn) (*InviteServiceListInvitesResponse, error) { - rsp, err := c.InviteServiceListInvites(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceListInvitesResponse(rsp) -} - -// InviteServiceUpdateInviteWithBodyWithResponse performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceUpdateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteServiceUpdateInviteResponse, error) { - rsp, err := c.InviteServiceUpdateInviteWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceUpdateInviteResponse(rsp) -} - -// InviteServiceUpdateInviteWithResponse performs a PATCH /v1/invites (the `InviteServiceUpdateInvite` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceUpdateInviteWithResponse(ctx context.Context, body InviteServiceUpdateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteServiceUpdateInviteResponse, error) { - rsp, err := c.InviteServiceUpdateInvite(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceUpdateInviteResponse(rsp) -} - -// InviteServiceCreateInviteWithBodyWithResponse performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceCreateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteServiceCreateInviteResponse, error) { - rsp, err := c.InviteServiceCreateInviteWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceCreateInviteResponse(rsp) -} - -// InviteServiceCreateInviteWithResponse performs a POST /v1/invites (the `InviteServiceCreateInvite` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceCreateInviteWithResponse(ctx context.Context, body InviteServiceCreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteServiceCreateInviteResponse, error) { - rsp, err := c.InviteServiceCreateInvite(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceCreateInviteResponse(rsp) -} - -// InviteServiceAcceptInviteWithResponse performs a GET /v1/invites/accept (the `InviteServiceAcceptInvite` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceAcceptInviteWithResponse(ctx context.Context, params *InviteServiceAcceptInviteParams, reqEditors ...RequestEditorFn) (*InviteServiceAcceptInviteResponse, error) { - rsp, err := c.InviteServiceAcceptInvite(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceAcceptInviteResponse(rsp) -} - -// InviteServiceDeclineInviteWithResponse performs a GET /v1/invites/decline (the `InviteServiceDeclineInvite` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceDeclineInviteWithResponse(ctx context.Context, params *InviteServiceDeclineInviteParams, reqEditors ...RequestEditorFn) (*InviteServiceDeclineInviteResponse, error) { - rsp, err := c.InviteServiceDeclineInvite(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceDeclineInviteResponse(rsp) -} - -// InviteServiceListMyInvitesWithResponse performs a GET /v1/invites/me (the `InviteServiceListMyInvites` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceListMyInvitesWithResponse(ctx context.Context, params *InviteServiceListMyInvitesParams, reqEditors ...RequestEditorFn) (*InviteServiceListMyInvitesResponse, error) { - rsp, err := c.InviteServiceListMyInvites(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceListMyInvitesResponse(rsp) -} - -// InviteServiceResendInviteWithResponse performs a POST /v1/invites/resend/{inviteId} (the `InviteServiceResendInvite` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceResendInviteWithResponse(ctx context.Context, inviteId string, reqEditors ...RequestEditorFn) (*InviteServiceResendInviteResponse, error) { - rsp, err := c.InviteServiceResendInvite(ctx, inviteId, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceResendInviteResponse(rsp) -} - -// InviteServiceDeleteInviteWithResponse performs a DELETE /v1/invites/{id} (the `InviteServiceDeleteInvite` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) InviteServiceDeleteInviteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*InviteServiceDeleteInviteResponse, error) { - rsp, err := c.InviteServiceDeleteInvite(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseInviteServiceDeleteInviteResponse(rsp) -} - -// InvoiceServiceListInvoicesWithResponse ListInvoices lists invoices for a subscription or organization -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/invoices (the `InvoiceServiceListInvoices` operationId). -func (c *ClientWithResponses) InvoiceServiceListInvoicesWithResponse(ctx context.Context, params *InvoiceServiceListInvoicesParams, reqEditors ...RequestEditorFn) (*InvoiceServiceListInvoicesResponse, error) { - rsp, err := c.InvoiceServiceListInvoices(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseInvoiceServiceListInvoicesResponse(rsp) -} - -// InvoiceServiceGetInvoiceWithResponse GetInvoice retrieves a single invoice with line items -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/invoices/{invoiceId} (the `InvoiceServiceGetInvoice` operationId). -func (c *ClientWithResponses) InvoiceServiceGetInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*InvoiceServiceGetInvoiceResponse, error) { - rsp, err := c.InvoiceServiceGetInvoice(ctx, invoiceId, reqEditors...) - if err != nil { - return nil, err - } - return ParseInvoiceServiceGetInvoiceResponse(rsp) -} - -// IPAMServiceListAllocationsWithResponse IP Allocation (read-only - allocations are managed automatically) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/ipam/allocations (the `IPAMServiceListAllocations` operationId). -func (c *ClientWithResponses) IPAMServiceListAllocationsWithResponse(ctx context.Context, params *IPAMServiceListAllocationsParams, reqEditors ...RequestEditorFn) (*IPAMServiceListAllocationsResponse, error) { - rsp, err := c.IPAMServiceListAllocations(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceListAllocationsResponse(rsp) -} - -// IPAMServiceListNetworksWithResponse performs a GET /v1/ipam/networks (the `IPAMServiceListNetworks` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceListNetworksWithResponse(ctx context.Context, params *IPAMServiceListNetworksParams, reqEditors ...RequestEditorFn) (*IPAMServiceListNetworksResponse, error) { - rsp, err := c.IPAMServiceListNetworks(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceListNetworksResponse(rsp) -} - -// IPAMServiceCreateNetworkWithBodyWithResponse IPAM Network management -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). -func (c *ClientWithResponses) IPAMServiceCreateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceCreateNetworkResponse, error) { - rsp, err := c.IPAMServiceCreateNetworkWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceCreateNetworkResponse(rsp) -} - -// IPAMServiceCreateNetworkWithResponse IPAM Network management -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/networks (the `IPAMServiceCreateNetwork` operationId). -func (c *ClientWithResponses) IPAMServiceCreateNetworkWithResponse(ctx context.Context, body IPAMServiceCreateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceCreateNetworkResponse, error) { - rsp, err := c.IPAMServiceCreateNetwork(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceCreateNetworkResponse(rsp) -} - -// IPAMServiceDeleteNetworkWithResponse performs a DELETE /v1/ipam/networks/{id} (the `IPAMServiceDeleteNetwork` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceDeleteNetworkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceDeleteNetworkResponse, error) { - rsp, err := c.IPAMServiceDeleteNetwork(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceDeleteNetworkResponse(rsp) -} - -// IPAMServiceGetNetworkWithResponse performs a GET /v1/ipam/networks/{id} (the `IPAMServiceGetNetwork` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceGetNetworkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceGetNetworkResponse, error) { - rsp, err := c.IPAMServiceGetNetwork(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceGetNetworkResponse(rsp) -} - -// IPAMServiceUpdateNetworkWithBodyWithResponse performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceUpdateNetworkWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceUpdateNetworkResponse, error) { - rsp, err := c.IPAMServiceUpdateNetworkWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceUpdateNetworkResponse(rsp) -} - -// IPAMServiceUpdateNetworkWithResponse performs a PATCH /v1/ipam/networks/{id} (the `IPAMServiceUpdateNetwork` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceUpdateNetworkWithResponse(ctx context.Context, id string, body IPAMServiceUpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceUpdateNetworkResponse, error) { - rsp, err := c.IPAMServiceUpdateNetwork(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceUpdateNetworkResponse(rsp) -} - -// IPAMServiceAssignNetworkToNodeWithBodyWithResponse Node-Network assignment -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). -func (c *ClientWithResponses) IPAMServiceAssignNetworkToNodeWithBodyWithResponse(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAssignNetworkToNodeResponse, error) { - rsp, err := c.IPAMServiceAssignNetworkToNodeWithBody(ctx, networkId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAssignNetworkToNodeResponse(rsp) -} - -// IPAMServiceAssignNetworkToNodeWithResponse Node-Network assignment -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/networks/{networkId}/assign-node (the `IPAMServiceAssignNetworkToNode` operationId). -func (c *ClientWithResponses) IPAMServiceAssignNetworkToNodeWithResponse(ctx context.Context, networkId string, body IPAMServiceAssignNetworkToNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAssignNetworkToNodeResponse, error) { - rsp, err := c.IPAMServiceAssignNetworkToNode(ctx, networkId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAssignNetworkToNodeResponse(rsp) -} - -// IPAMServiceListNetworkNodesWithResponse performs a GET /v1/ipam/networks/{networkId}/nodes (the `IPAMServiceListNetworkNodes` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceListNetworkNodesWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*IPAMServiceListNetworkNodesResponse, error) { - rsp, err := c.IPAMServiceListNetworkNodes(ctx, networkId, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceListNetworkNodesResponse(rsp) -} - -// IPAMServiceGetNodeNetworkWithResponse performs a GET /v1/ipam/nodes/{nodeId}/network (the `IPAMServiceGetNodeNetwork` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceGetNodeNetworkWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*IPAMServiceGetNodeNetworkResponse, error) { - rsp, err := c.IPAMServiceGetNodeNetwork(ctx, nodeId, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceGetNodeNetworkResponse(rsp) -} - -// IPAMServiceUnassignNetworkFromNodeWithResponse performs a POST /v1/ipam/nodes/{nodeId}/unassign-network (the `IPAMServiceUnassignNetworkFromNode` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceUnassignNetworkFromNodeWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*IPAMServiceUnassignNetworkFromNodeResponse, error) { - rsp, err := c.IPAMServiceUnassignNetworkFromNode(ctx, nodeId, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceUnassignNetworkFromNodeResponse(rsp) -} - -// IPAMServiceListPrefixesWithResponse performs a GET /v1/ipam/prefixes (the `IPAMServiceListPrefixes` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceListPrefixesWithResponse(ctx context.Context, params *IPAMServiceListPrefixesParams, reqEditors ...RequestEditorFn) (*IPAMServiceListPrefixesResponse, error) { - rsp, err := c.IPAMServiceListPrefixes(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceListPrefixesResponse(rsp) -} - -// IPAMServiceCreatePrefixWithBodyWithResponse Prefix management -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). -func (c *ClientWithResponses) IPAMServiceCreatePrefixWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceCreatePrefixResponse, error) { - rsp, err := c.IPAMServiceCreatePrefixWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceCreatePrefixResponse(rsp) -} - -// IPAMServiceCreatePrefixWithResponse Prefix management -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/prefixes (the `IPAMServiceCreatePrefix` operationId). -func (c *ClientWithResponses) IPAMServiceCreatePrefixWithResponse(ctx context.Context, body IPAMServiceCreatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceCreatePrefixResponse, error) { - rsp, err := c.IPAMServiceCreatePrefix(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceCreatePrefixResponse(rsp) -} - -// IPAMServiceDeletePrefixWithResponse performs a DELETE /v1/ipam/prefixes/{id} (the `IPAMServiceDeletePrefix` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceDeletePrefixWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceDeletePrefixResponse, error) { - rsp, err := c.IPAMServiceDeletePrefix(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceDeletePrefixResponse(rsp) -} - -// IPAMServiceGetPrefixWithResponse performs a GET /v1/ipam/prefixes/{id} (the `IPAMServiceGetPrefix` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceGetPrefixWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*IPAMServiceGetPrefixResponse, error) { - rsp, err := c.IPAMServiceGetPrefix(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceGetPrefixResponse(rsp) -} - -// IPAMServiceUpdatePrefixWithBodyWithResponse performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceUpdatePrefixWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceUpdatePrefixResponse, error) { - rsp, err := c.IPAMServiceUpdatePrefixWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceUpdatePrefixResponse(rsp) -} - -// IPAMServiceUpdatePrefixWithResponse performs a PATCH /v1/ipam/prefixes/{id} (the `IPAMServiceUpdatePrefix` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceUpdatePrefixWithResponse(ctx context.Context, id string, body IPAMServiceUpdatePrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceUpdatePrefixResponse, error) { - rsp, err := c.IPAMServiceUpdatePrefix(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceUpdatePrefixResponse(rsp) -} - -// IPAMServiceListAvailableIPsWithResponse performs a GET /v1/ipam/prefixes/{prefixId}/available-ips (the `IPAMServiceListAvailableIPs` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceListAvailableIPsWithResponse(ctx context.Context, prefixId string, params *IPAMServiceListAvailableIPsParams, reqEditors ...RequestEditorFn) (*IPAMServiceListAvailableIPsResponse, error) { - rsp, err := c.IPAMServiceListAvailableIPs(ctx, prefixId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceListAvailableIPsResponse(rsp) -} - -// IPAMServiceAddReservedIPWithBodyWithResponse IP Reservation (manage reserved_ips array in prefix) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). -func (c *ClientWithResponses) IPAMServiceAddReservedIPWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedIPResponse, error) { - rsp, err := c.IPAMServiceAddReservedIPWithBody(ctx, prefixId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAddReservedIPResponse(rsp) -} - -// IPAMServiceAddReservedIPWithResponse IP Reservation (manage reserved_ips array in prefix) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/ipam/prefixes/{prefixId}/reserved-ips (the `IPAMServiceAddReservedIP` operationId). -func (c *ClientWithResponses) IPAMServiceAddReservedIPWithResponse(ctx context.Context, prefixId string, body IPAMServiceAddReservedIPJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedIPResponse, error) { - rsp, err := c.IPAMServiceAddReservedIP(ctx, prefixId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAddReservedIPResponse(rsp) -} - -// IPAMServiceClearAllPrefixReservedIPsWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceClearAllPrefixReservedIPsWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceClearAllPrefixReservedIPsResponse, error) { - rsp, err := c.IPAMServiceClearAllPrefixReservedIPsWithBody(ctx, prefixId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceClearAllPrefixReservedIPsResponse(rsp) -} - -// IPAMServiceClearAllPrefixReservedIPsWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all (the `IPAMServiceClearAllPrefixReservedIPs` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceClearAllPrefixReservedIPsWithResponse(ctx context.Context, prefixId string, body IPAMServiceClearAllPrefixReservedIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceClearAllPrefixReservedIPsResponse, error) { - rsp, err := c.IPAMServiceClearAllPrefixReservedIPs(ctx, prefixId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceClearAllPrefixReservedIPsResponse(rsp) -} - -// IPAMServiceReserveAllPrefixIPsWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceReserveAllPrefixIPsWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceReserveAllPrefixIPsResponse, error) { - rsp, err := c.IPAMServiceReserveAllPrefixIPsWithBody(ctx, prefixId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceReserveAllPrefixIPsResponse(rsp) -} - -// IPAMServiceReserveAllPrefixIPsWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all (the `IPAMServiceReserveAllPrefixIPs` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceReserveAllPrefixIPsWithResponse(ctx context.Context, prefixId string, body IPAMServiceReserveAllPrefixIPsJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceReserveAllPrefixIPsResponse, error) { - rsp, err := c.IPAMServiceReserveAllPrefixIPs(ctx, prefixId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceReserveAllPrefixIPsResponse(rsp) -} - -// IPAMServiceRemoveReservedIPWithResponse performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress} (the `IPAMServiceRemoveReservedIP` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceRemoveReservedIPWithResponse(ctx context.Context, prefixId string, ipAddress string, reqEditors ...RequestEditorFn) (*IPAMServiceRemoveReservedIPResponse, error) { - rsp, err := c.IPAMServiceRemoveReservedIP(ctx, prefixId, ipAddress, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceRemoveReservedIPResponse(rsp) -} - -// IPAMServiceRemoveReservedPrefixWithResponse performs a DELETE /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceRemoveReservedPrefix` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceRemoveReservedPrefixWithResponse(ctx context.Context, prefixId string, params *IPAMServiceRemoveReservedPrefixParams, reqEditors ...RequestEditorFn) (*IPAMServiceRemoveReservedPrefixResponse, error) { - rsp, err := c.IPAMServiceRemoveReservedPrefix(ctx, prefixId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceRemoveReservedPrefixResponse(rsp) -} - -// IPAMServiceAddReservedPrefixWithBodyWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceAddReservedPrefixWithBodyWithResponse(ctx context.Context, prefixId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedPrefixResponse, error) { - rsp, err := c.IPAMServiceAddReservedPrefixWithBody(ctx, prefixId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAddReservedPrefixResponse(rsp) -} - -// IPAMServiceAddReservedPrefixWithResponse performs a POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes (the `IPAMServiceAddReservedPrefix` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) IPAMServiceAddReservedPrefixWithResponse(ctx context.Context, prefixId string, body IPAMServiceAddReservedPrefixJSONRequestBody, reqEditors ...RequestEditorFn) (*IPAMServiceAddReservedPrefixResponse, error) { - rsp, err := c.IPAMServiceAddReservedPrefix(ctx, prefixId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceAddReservedPrefixResponse(rsp) -} - -// IPAMServiceGetPrefixUtilizationWithResponse Utility -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/ipam/prefixes/{prefixId}/utilization (the `IPAMServiceGetPrefixUtilization` operationId). -func (c *ClientWithResponses) IPAMServiceGetPrefixUtilizationWithResponse(ctx context.Context, prefixId string, reqEditors ...RequestEditorFn) (*IPAMServiceGetPrefixUtilizationResponse, error) { - rsp, err := c.IPAMServiceGetPrefixUtilization(ctx, prefixId, reqEditors...) - if err != nil { - return nil, err - } - return ParseIPAMServiceGetPrefixUtilizationResponse(rsp) -} - -// MarketplaceServiceListAvailableAddonsWithResponse performs a GET /v1/marketplace/addons (the `MarketplaceServiceListAvailableAddons` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceListAvailableAddonsWithResponse(ctx context.Context, params *MarketplaceServiceListAvailableAddonsParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailableAddonsResponse, error) { - rsp, err := c.MarketplaceServiceListAvailableAddons(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceListAvailableAddonsResponse(rsp) -} - -// MarketplaceServiceListAvailablePlansWithResponse performs a GET /v1/marketplace/plans (the `MarketplaceServiceListAvailablePlans` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceListAvailablePlansWithResponse(ctx context.Context, params *MarketplaceServiceListAvailablePlansParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailablePlansResponse, error) { - rsp, err := c.MarketplaceServiceListAvailablePlans(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceListAvailablePlansResponse(rsp) -} - -// MarketplaceServiceGetMarketplacePlanWithResponse performs a GET /v1/marketplace/plans/{planId} (the `MarketplaceServiceGetMarketplacePlan` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceGetMarketplacePlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*MarketplaceServiceGetMarketplacePlanResponse, error) { - rsp, err := c.MarketplaceServiceGetMarketplacePlan(ctx, planId, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceGetMarketplacePlanResponse(rsp) -} - -// MarketplaceServiceListMarketplaceProviderDirectoryWithResponse performs a GET /v1/marketplace/provider-directory (the `MarketplaceServiceListMarketplaceProviderDirectory` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceListMarketplaceProviderDirectoryWithResponse(ctx context.Context, params *MarketplaceServiceListMarketplaceProviderDirectoryParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListMarketplaceProviderDirectoryResponse, error) { - rsp, err := c.MarketplaceServiceListMarketplaceProviderDirectory(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceListMarketplaceProviderDirectoryResponse(rsp) -} - -// MarketplaceServiceListProvidersWithResponse performs a GET /v1/marketplace/providers (the `MarketplaceServiceListProviders` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceListProvidersWithResponse(ctx context.Context, params *MarketplaceServiceListProvidersParams, reqEditors ...RequestEditorFn) (*MarketplaceServiceListProvidersResponse, error) { - rsp, err := c.MarketplaceServiceListProviders(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceListProvidersResponse(rsp) -} - -// MarketplaceServiceGetProviderWithResponse performs a GET /v1/marketplace/providers/{providerId} (the `MarketplaceServiceGetProvider` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceGetProviderWithResponse(ctx context.Context, providerId string, reqEditors ...RequestEditorFn) (*MarketplaceServiceGetProviderResponse, error) { - rsp, err := c.MarketplaceServiceGetProvider(ctx, providerId, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceGetProviderResponse(rsp) -} - -// MarketplaceServiceListAvailableRegionsWithResponse performs a GET /v1/marketplace/regions (the `MarketplaceServiceListAvailableRegions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceListAvailableRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarketplaceServiceListAvailableRegionsResponse, error) { - rsp, err := c.MarketplaceServiceListAvailableRegions(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceListAvailableRegionsResponse(rsp) -} - -// MarketplaceServiceSearchMarketplaceWithBodyWithResponse performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceSearchMarketplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarketplaceServiceSearchMarketplaceResponse, error) { - rsp, err := c.MarketplaceServiceSearchMarketplaceWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceSearchMarketplaceResponse(rsp) -} - -// MarketplaceServiceSearchMarketplaceWithResponse performs a POST /v1/marketplace/search (the `MarketplaceServiceSearchMarketplace` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MarketplaceServiceSearchMarketplaceWithResponse(ctx context.Context, body MarketplaceServiceSearchMarketplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*MarketplaceServiceSearchMarketplaceResponse, error) { - rsp, err := c.MarketplaceServiceSearchMarketplace(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMarketplaceServiceSearchMarketplaceResponse(rsp) -} - -// MetricServiceListMetricsWithResponse List all available metrics -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/metrics (the `MetricServiceListMetrics` operationId). -func (c *ClientWithResponses) MetricServiceListMetricsWithResponse(ctx context.Context, params *MetricServiceListMetricsParams, reqEditors ...RequestEditorFn) (*MetricServiceListMetricsResponse, error) { - rsp, err := c.MetricServiceListMetrics(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricServiceListMetricsResponse(rsp) -} - -// MetricsCredentialServiceListMetricsWriteCredentialsWithResponse performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceListMetricsWriteCredentialsWithResponse(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) { - rsp, err := c.MetricsCredentialServiceListMetricsWriteCredentials(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse(rsp) -} - -// MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp) -} - -// MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceCreateMetricsWriteCredential(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp) -} - -// MetricsCredentialServiceRevokeMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceRevokeMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRevokeMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceRevokeMetricsWriteCredentialWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceRevokeMetricsWriteCredentialResponse(rsp) -} - -// MetricsCredentialServiceRevokeMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:revoke (the `MetricsCredentialServiceRevokeMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceRevokeMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRevokeMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceRevokeMetricsWriteCredential(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceRevokeMetricsWriteCredentialResponse(rsp) -} - -// MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp) -} - -// MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { - rsp, err := c.MetricsCredentialServiceRotateMetricsWriteCredential(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp) -} - -// MetricServiceGetMetricWithResponse Get a specific metric by ID or code -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/metrics/{id} (the `MetricServiceGetMetric` operationId). -func (c *ClientWithResponses) MetricServiceGetMetricWithResponse(ctx context.Context, id string, params *MetricServiceGetMetricParams, reqEditors ...RequestEditorFn) (*MetricServiceGetMetricResponse, error) { - rsp, err := c.MetricServiceGetMetric(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetricServiceGetMetricResponse(rsp) -} - -// NodeServiceCreateNodeWithBodyWithResponse performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceCreateNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceCreateNodeResponse, error) { - rsp, err := c.NodeServiceCreateNodeWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceCreateNodeResponse(rsp) -} - -// NodeServiceCreateNodeWithResponse performs a POST /v1/node (the `NodeServiceCreateNode` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceCreateNodeWithResponse(ctx context.Context, body NodeServiceCreateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceCreateNodeResponse, error) { - rsp, err := c.NodeServiceCreateNode(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceCreateNodeResponse(rsp) -} - -// NodePlacementServiceGetNodePlacementPolicyWithResponse performs a GET /v1/node-placement-policy (the `NodePlacementServiceGetNodePlacementPolicy` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodePlacementServiceGetNodePlacementPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*NodePlacementServiceGetNodePlacementPolicyResponse, error) { - rsp, err := c.NodePlacementServiceGetNodePlacementPolicy(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodePlacementServiceGetNodePlacementPolicyResponse(rsp) -} - -// NodePlacementServiceUpdateNodePlacementPolicyWithBodyWithResponse performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodePlacementServiceUpdateNodePlacementPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodePlacementServiceUpdateNodePlacementPolicyResponse, error) { - rsp, err := c.NodePlacementServiceUpdateNodePlacementPolicyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodePlacementServiceUpdateNodePlacementPolicyResponse(rsp) -} - -// NodePlacementServiceUpdateNodePlacementPolicyWithResponse performs a PUT /v1/node-placement-policy (the `NodePlacementServiceUpdateNodePlacementPolicy` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodePlacementServiceUpdateNodePlacementPolicyWithResponse(ctx context.Context, body NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*NodePlacementServiceUpdateNodePlacementPolicyResponse, error) { - rsp, err := c.NodePlacementServiceUpdateNodePlacementPolicy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodePlacementServiceUpdateNodePlacementPolicyResponse(rsp) -} - -// NodeServiceValidateNodeTopologyWithBodyWithResponse Dedicated CPU cores: parse-preview of a topology paste without persisting. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). -func (c *ClientWithResponses) NodeServiceValidateNodeTopologyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceValidateNodeTopologyResponse, error) { - rsp, err := c.NodeServiceValidateNodeTopologyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceValidateNodeTopologyResponse(rsp) -} - -// NodeServiceValidateNodeTopologyWithResponse Dedicated CPU cores: parse-preview of a topology paste without persisting. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/node/topology/validate (the `NodeServiceValidateNodeTopology` operationId). -func (c *ClientWithResponses) NodeServiceValidateNodeTopologyWithResponse(ctx context.Context, body NodeServiceValidateNodeTopologyJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceValidateNodeTopologyResponse, error) { - rsp, err := c.NodeServiceValidateNodeTopology(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceValidateNodeTopologyResponse(rsp) -} - -// NodeServiceDeleteNodeWithResponse performs a DELETE /v1/node/{id} (the `NodeServiceDeleteNode` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceDeleteNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceDeleteNodeResponse, error) { - rsp, err := c.NodeServiceDeleteNode(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceDeleteNodeResponse(rsp) -} - -// NodeServiceGetNodeWithResponse performs a GET /v1/node/{id} (the `NodeServiceGetNode` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceGetNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceGetNodeResponse, error) { - rsp, err := c.NodeServiceGetNode(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceGetNodeResponse(rsp) -} - -// NodeServiceUpdateNodeWithBodyWithResponse performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceUpdateNodeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeServiceUpdateNodeResponse, error) { - rsp, err := c.NodeServiceUpdateNodeWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceUpdateNodeResponse(rsp) -} - -// NodeServiceUpdateNodeWithResponse performs a PATCH /v1/node/{id} (the `NodeServiceUpdateNode` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceUpdateNodeWithResponse(ctx context.Context, id string, body NodeServiceUpdateNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeServiceUpdateNodeResponse, error) { - rsp, err := c.NodeServiceUpdateNode(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceUpdateNodeResponse(rsp) -} - -// NodeServiceGetNodeCPUMapWithResponse Dedicated CPU cores: full topology + per-CPU occupancy for the node -// topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3). -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/node/{id}/cpu-map (the `NodeServiceGetNodeCPUMap` operationId). -func (c *ClientWithResponses) NodeServiceGetNodeCPUMapWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*NodeServiceGetNodeCPUMapResponse, error) { - rsp, err := c.NodeServiceGetNodeCPUMap(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceGetNodeCPUMapResponse(rsp) -} - -// NodeServiceListNodesWithResponse performs a GET /v1/nodes (the `NodeServiceListNodes` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) NodeServiceListNodesWithResponse(ctx context.Context, params *NodeServiceListNodesParams, reqEditors ...RequestEditorFn) (*NodeServiceListNodesResponse, error) { - rsp, err := c.NodeServiceListNodes(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseNodeServiceListNodesResponse(rsp) -} - -// OAuth2ServiceAuthorizeWithResponse Authorize initiates the OAuth2 authorization flow -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/oauth2/authorize (the `OAuth2ServiceAuthorize` operationId). -func (c *ClientWithResponses) OAuth2ServiceAuthorizeWithResponse(ctx context.Context, params *OAuth2ServiceAuthorizeParams, reqEditors ...RequestEditorFn) (*OAuth2ServiceAuthorizeResponse, error) { - rsp, err := c.OAuth2ServiceAuthorize(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceAuthorizeResponse(rsp) -} - -// OAuth2ServiceListClientsWithResponse ListClients lists OAuth2 clients for the organization -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/oauth2/clients (the `OAuth2ServiceListClients` operationId). -func (c *ClientWithResponses) OAuth2ServiceListClientsWithResponse(ctx context.Context, params *OAuth2ServiceListClientsParams, reqEditors ...RequestEditorFn) (*OAuth2ServiceListClientsResponse, error) { - rsp, err := c.OAuth2ServiceListClients(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceListClientsResponse(rsp) -} - -// OAuth2ServiceCreateClientWithBodyWithResponse CreateClient creates a new OAuth2 client -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). -func (c *ClientWithResponses) OAuth2ServiceCreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceCreateClientResponse, error) { - rsp, err := c.OAuth2ServiceCreateClientWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceCreateClientResponse(rsp) -} - -// OAuth2ServiceCreateClientWithResponse CreateClient creates a new OAuth2 client -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/clients (the `OAuth2ServiceCreateClient` operationId). -func (c *ClientWithResponses) OAuth2ServiceCreateClientWithResponse(ctx context.Context, body OAuth2ServiceCreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceCreateClientResponse, error) { - rsp, err := c.OAuth2ServiceCreateClient(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceCreateClientResponse(rsp) -} - -// OAuth2ServiceDeleteClientWithResponse DeleteClient deletes an OAuth2 client -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /v1/oauth2/clients/{clientId} (the `OAuth2ServiceDeleteClient` operationId). -func (c *ClientWithResponses) OAuth2ServiceDeleteClientWithResponse(ctx context.Context, clientId string, reqEditors ...RequestEditorFn) (*OAuth2ServiceDeleteClientResponse, error) { - rsp, err := c.OAuth2ServiceDeleteClient(ctx, clientId, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceDeleteClientResponse(rsp) -} - -// OAuth2ServiceRefreshTokenWithBodyWithResponse RefreshToken exchanges refresh token for new access token -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceRefreshTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceRefreshTokenResponse, error) { - rsp, err := c.OAuth2ServiceRefreshTokenWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceRefreshTokenResponse(rsp) -} - -// OAuth2ServiceRefreshTokenWithResponse RefreshToken exchanges refresh token for new access token -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/refresh (the `OAuth2ServiceRefreshToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceRefreshTokenWithResponse(ctx context.Context, body OAuth2ServiceRefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceRefreshTokenResponse, error) { - rsp, err := c.OAuth2ServiceRefreshToken(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceRefreshTokenResponse(rsp) -} - -// OAuth2ServiceRevokeTokenWithBodyWithResponse RevokeToken revokes an access or refresh token -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceRevokeTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceRevokeTokenResponse, error) { - rsp, err := c.OAuth2ServiceRevokeTokenWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceRevokeTokenResponse(rsp) -} - -// OAuth2ServiceRevokeTokenWithResponse RevokeToken revokes an access or refresh token -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/revoke (the `OAuth2ServiceRevokeToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceRevokeTokenWithResponse(ctx context.Context, body OAuth2ServiceRevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceRevokeTokenResponse, error) { - rsp, err := c.OAuth2ServiceRevokeToken(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceRevokeTokenResponse(rsp) -} - -// OAuth2ServiceTokenWithBodyWithResponse Token exchanges authorization code for access token -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OAuth2ServiceTokenResponse, error) { - rsp, err := c.OAuth2ServiceTokenWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceTokenResponse(rsp) -} - -// OAuth2ServiceTokenWithResponse Token exchanges authorization code for access token -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/oauth2/token (the `OAuth2ServiceToken` operationId). -func (c *ClientWithResponses) OAuth2ServiceTokenWithResponse(ctx context.Context, body OAuth2ServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*OAuth2ServiceTokenResponse, error) { - rsp, err := c.OAuth2ServiceToken(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOAuth2ServiceTokenResponse(rsp) -} - -// OrganizationServiceGetOrganizationWithResponse performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceGetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceGetOrganizationResponse, error) { - rsp, err := c.OrganizationServiceGetOrganization(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceGetOrganizationResponse(rsp) -} - -// OrganizationServiceDeleteOrganizationWithResponse performs a DELETE /v1/organizations (the `OrganizationServiceDeleteOrganization` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceDeleteOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceDeleteOrganizationResponse, error) { - rsp, err := c.OrganizationServiceDeleteOrganization(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceDeleteOrganizationResponse(rsp) -} - -// OrganizationServiceListOrganizationsWithResponse performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceListOrganizationsWithResponse(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*OrganizationServiceListOrganizationsResponse, error) { - rsp, err := c.OrganizationServiceListOrganizations(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceListOrganizationsResponse(rsp) -} - -// OrganizationServiceUpdateOrganizationWithBodyWithResponse performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceUpdateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationServiceUpdateOrganizationResponse, error) { - rsp, err := c.OrganizationServiceUpdateOrganizationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceUpdateOrganizationResponse(rsp) -} - -// OrganizationServiceUpdateOrganizationWithResponse performs a PATCH /v1/organizations (the `OrganizationServiceUpdateOrganization` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceUpdateOrganizationWithResponse(ctx context.Context, body OrganizationServiceUpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationServiceUpdateOrganizationResponse, error) { - rsp, err := c.OrganizationServiceUpdateOrganization(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceUpdateOrganizationResponse(rsp) -} - -// OrganizationServiceCreateOrganizationWithBodyWithResponse performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceCreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationServiceCreateOrganizationResponse, error) { - rsp, err := c.OrganizationServiceCreateOrganizationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceCreateOrganizationResponse(rsp) -} - -// OrganizationServiceCreateOrganizationWithResponse performs a POST /v1/organizations (the `OrganizationServiceCreateOrganization` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) OrganizationServiceCreateOrganizationWithResponse(ctx context.Context, body OrganizationServiceCreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationServiceCreateOrganizationResponse, error) { - rsp, err := c.OrganizationServiceCreateOrganization(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseOrganizationServiceCreateOrganizationResponse(rsp) -} - -// PaymentMethodServiceListPaymentMethodsWithResponse List payment methods for an organization/subscription -// Returns payment method details (type, last4, brand, expiry, is_default) -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/payment-methods (the `PaymentMethodServiceListPaymentMethods` operationId). -func (c *ClientWithResponses) PaymentMethodServiceListPaymentMethodsWithResponse(ctx context.Context, params *PaymentMethodServiceListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*PaymentMethodServiceListPaymentMethodsResponse, error) { - rsp, err := c.PaymentMethodServiceListPaymentMethods(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceListPaymentMethodsResponse(rsp) -} - -// PaymentMethodServiceAttachPaymentMethodWithBodyWithResponse Attach a payment method to a subscription/organization -// Works for both providers (platform subscriptions) and clients (provider -// plan subscriptions) Authorization: Check organization type and rule engine -// (subscription.payment_method.manage.enabled) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). -func (c *ClientWithResponses) PaymentMethodServiceAttachPaymentMethodWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PaymentMethodServiceAttachPaymentMethodResponse, error) { - rsp, err := c.PaymentMethodServiceAttachPaymentMethodWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceAttachPaymentMethodResponse(rsp) -} - -// PaymentMethodServiceAttachPaymentMethodWithResponse Attach a payment method to a subscription/organization -// Works for both providers (platform subscriptions) and clients (provider -// plan subscriptions) Authorization: Check organization type and rule engine -// (subscription.payment_method.manage.enabled) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/payment-methods (the `PaymentMethodServiceAttachPaymentMethod` operationId). -func (c *ClientWithResponses) PaymentMethodServiceAttachPaymentMethodWithResponse(ctx context.Context, body PaymentMethodServiceAttachPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*PaymentMethodServiceAttachPaymentMethodResponse, error) { - rsp, err := c.PaymentMethodServiceAttachPaymentMethod(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceAttachPaymentMethodResponse(rsp) -} - -// PaymentMethodServiceRemovePaymentMethodWithResponse Remove a payment method -// Validation: -// - Providers: Cannot remove if only one method exists (except on free plan) -// - Clients: Cannot remove if only one method exists -// - Cannot remove if payment method is currently in use for active -// subscriptions -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /v1/payment-methods/{paymentMethodId} (the `PaymentMethodServiceRemovePaymentMethod` operationId). -func (c *ClientWithResponses) PaymentMethodServiceRemovePaymentMethodWithResponse(ctx context.Context, paymentMethodId string, reqEditors ...RequestEditorFn) (*PaymentMethodServiceRemovePaymentMethodResponse, error) { - rsp, err := c.PaymentMethodServiceRemovePaymentMethod(ctx, paymentMethodId, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceRemovePaymentMethodResponse(rsp) -} - -// PaymentMethodServiceSetDefaultPaymentMethodWithBodyWithResponse Set a payment method as the default payment method -// Validates payment method belongs to organization/subscription -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). -func (c *ClientWithResponses) PaymentMethodServiceSetDefaultPaymentMethodWithBodyWithResponse(ctx context.Context, paymentMethodId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PaymentMethodServiceSetDefaultPaymentMethodResponse, error) { - rsp, err := c.PaymentMethodServiceSetDefaultPaymentMethodWithBody(ctx, paymentMethodId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceSetDefaultPaymentMethodResponse(rsp) -} - -// PaymentMethodServiceSetDefaultPaymentMethodWithResponse Set a payment method as the default payment method -// Validates payment method belongs to organization/subscription -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/payment-methods/{paymentMethodId}:set-default (the `PaymentMethodServiceSetDefaultPaymentMethod` operationId). -func (c *ClientWithResponses) PaymentMethodServiceSetDefaultPaymentMethodWithResponse(ctx context.Context, paymentMethodId string, body PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*PaymentMethodServiceSetDefaultPaymentMethodResponse, error) { - rsp, err := c.PaymentMethodServiceSetDefaultPaymentMethod(ctx, paymentMethodId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentMethodServiceSetDefaultPaymentMethodResponse(rsp) -} - -// PaymentServiceListPaymentsWithResponse ListPayments lists payments for an invoice or organization -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/payments (the `PaymentServiceListPayments` operationId). -func (c *ClientWithResponses) PaymentServiceListPaymentsWithResponse(ctx context.Context, params *PaymentServiceListPaymentsParams, reqEditors ...RequestEditorFn) (*PaymentServiceListPaymentsResponse, error) { - rsp, err := c.PaymentServiceListPayments(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentServiceListPaymentsResponse(rsp) -} - -// PaymentServiceGetPaymentWithResponse GetPayment retrieves a single payment with refunds -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/payments/{paymentId} (the `PaymentServiceGetPayment` operationId). -func (c *ClientWithResponses) PaymentServiceGetPaymentWithResponse(ctx context.Context, paymentId string, reqEditors ...RequestEditorFn) (*PaymentServiceGetPaymentResponse, error) { - rsp, err := c.PaymentServiceGetPayment(ctx, paymentId, reqEditors...) - if err != nil { - return nil, err - } - return ParsePaymentServiceGetPaymentResponse(rsp) -} - -// PermissionServiceListPermissionsWithResponse performs a GET /v1/permissions (the `PermissionServiceListPermissions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PermissionServiceListPermissionsWithResponse(ctx context.Context, params *PermissionServiceListPermissionsParams, reqEditors ...RequestEditorFn) (*PermissionServiceListPermissionsResponse, error) { - rsp, err := c.PermissionServiceListPermissions(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePermissionServiceListPermissionsResponse(rsp) -} - -// PermissionServiceAssignPermissionToRoleWithBodyWithResponse performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PermissionServiceAssignPermissionToRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PermissionServiceAssignPermissionToRoleResponse, error) { - rsp, err := c.PermissionServiceAssignPermissionToRoleWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePermissionServiceAssignPermissionToRoleResponse(rsp) -} - -// PermissionServiceAssignPermissionToRoleWithResponse performs a POST /v1/permissions/assign-to-role (the `PermissionServiceAssignPermissionToRole` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PermissionServiceAssignPermissionToRoleWithResponse(ctx context.Context, body PermissionServiceAssignPermissionToRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*PermissionServiceAssignPermissionToRoleResponse, error) { - rsp, err := c.PermissionServiceAssignPermissionToRole(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePermissionServiceAssignPermissionToRoleResponse(rsp) -} - -// PermissionServiceListEffectivePermissionsWithResponse performs a GET /v1/permissions/effective (the `PermissionServiceListEffectivePermissions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PermissionServiceListEffectivePermissionsWithResponse(ctx context.Context, params *PermissionServiceListEffectivePermissionsParams, reqEditors ...RequestEditorFn) (*PermissionServiceListEffectivePermissionsResponse, error) { - rsp, err := c.PermissionServiceListEffectivePermissions(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePermissionServiceListEffectivePermissionsResponse(rsp) -} - -// PermissionServiceRemovePermissionFromRoleWithResponse performs a DELETE /v1/permissions/remove-from-role (the `PermissionServiceRemovePermissionFromRole` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PermissionServiceRemovePermissionFromRoleWithResponse(ctx context.Context, params *PermissionServiceRemovePermissionFromRoleParams, reqEditors ...RequestEditorFn) (*PermissionServiceRemovePermissionFromRoleResponse, error) { - rsp, err := c.PermissionServiceRemovePermissionFromRole(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePermissionServiceRemovePermissionFromRoleResponse(rsp) -} - -// PlanServiceListPlansWithResponse performs a GET /v1/plans (the `PlanServiceListPlans` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlanServiceListPlansWithResponse(ctx context.Context, params *PlanServiceListPlansParams, reqEditors ...RequestEditorFn) (*PlanServiceListPlansResponse, error) { - rsp, err := c.PlanServiceListPlans(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlanServiceListPlansResponse(rsp) -} - -// ProviderPlanServiceCreatePlanWithBodyWithResponse performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceCreatePlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCreatePlanResponse, error) { - rsp, err := c.ProviderPlanServiceCreatePlanWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceCreatePlanResponse(rsp) -} - -// ProviderPlanServiceCreatePlanWithResponse performs a POST /v1/plans (the `ProviderPlanServiceCreatePlan` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceCreatePlanWithResponse(ctx context.Context, body ProviderPlanServiceCreatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCreatePlanResponse, error) { - rsp, err := c.ProviderPlanServiceCreatePlan(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceCreatePlanResponse(rsp) -} - -// ProviderPlanServiceDeletePlanWithResponse performs a DELETE /v1/plans/{id} (the `ProviderPlanServiceDeletePlan` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceDeletePlanWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ProviderPlanServiceDeletePlanResponse, error) { - rsp, err := c.ProviderPlanServiceDeletePlan(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceDeletePlanResponse(rsp) -} - -// ProviderPlanServiceUpdatePlanWithBodyWithResponse performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceUpdatePlanWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceUpdatePlanResponse, error) { - rsp, err := c.ProviderPlanServiceUpdatePlanWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceUpdatePlanResponse(rsp) -} - -// ProviderPlanServiceUpdatePlanWithResponse performs a PATCH /v1/plans/{id} (the `ProviderPlanServiceUpdatePlan` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceUpdatePlanWithResponse(ctx context.Context, id string, body ProviderPlanServiceUpdatePlanJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceUpdatePlanResponse, error) { - rsp, err := c.ProviderPlanServiceUpdatePlan(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceUpdatePlanResponse(rsp) -} - -// PlanServiceSubscribeWithResponse performs a POST /v1/plans/{planId}:subscribe (the `PlanServiceSubscribe` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlanServiceSubscribeWithResponse(ctx context.Context, planId string, params *PlanServiceSubscribeParams, reqEditors ...RequestEditorFn) (*PlanServiceSubscribeResponse, error) { - rsp, err := c.PlanServiceSubscribe(ctx, planId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlanServiceSubscribeResponse(rsp) -} - -// ProviderPlanServiceCalculatePlanPricingWithBodyWithResponse performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceCalculatePlanPricingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCalculatePlanPricingResponse, error) { - rsp, err := c.ProviderPlanServiceCalculatePlanPricingWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceCalculatePlanPricingResponse(rsp) -} - -// ProviderPlanServiceCalculatePlanPricingWithResponse performs a POST /v1/plans:calculate (the `ProviderPlanServiceCalculatePlanPricing` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderPlanServiceCalculatePlanPricingWithResponse(ctx context.Context, body ProviderPlanServiceCalculatePlanPricingJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderPlanServiceCalculatePlanPricingResponse, error) { - rsp, err := c.ProviderPlanServiceCalculatePlanPricing(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceCalculatePlanPricingResponse(rsp) -} - -// PlatformServiceCreatePlatformWithBodyWithResponse performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceCreatePlatformWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceCreatePlatformResponse, error) { - rsp, err := c.PlatformServiceCreatePlatformWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceCreatePlatformResponse(rsp) -} - -// PlatformServiceCreatePlatformWithResponse performs a POST /v1/platform (the `PlatformServiceCreatePlatform` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceCreatePlatformWithResponse(ctx context.Context, body PlatformServiceCreatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceCreatePlatformResponse, error) { - rsp, err := c.PlatformServiceCreatePlatform(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceCreatePlatformResponse(rsp) -} - -// MetadataServiceGetPlatformVersionsWithResponse GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, liqoctl, and helm. -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId). -func (c *ClientWithResponses) MetadataServiceGetPlatformVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetPlatformVersionsResponse, error) { - rsp, err := c.MetadataServiceGetPlatformVersions(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetadataServiceGetPlatformVersionsResponse(rsp) -} - -// PlatformServiceDeletePlatformWithResponse performs a DELETE /v1/platform/{id} (the `PlatformServiceDeletePlatform` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceDeletePlatformWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlatformServiceDeletePlatformResponse, error) { - rsp, err := c.PlatformServiceDeletePlatform(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceDeletePlatformResponse(rsp) -} - -// PlatformServiceGetPlatformWithResponse performs a GET /v1/platform/{id} (the `PlatformServiceGetPlatform` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceGetPlatformWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlatformServiceGetPlatformResponse, error) { - rsp, err := c.PlatformServiceGetPlatform(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceGetPlatformResponse(rsp) -} - -// PlatformServiceUpdatePlatformWithBodyWithResponse performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceUpdatePlatformWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceUpdatePlatformResponse, error) { - rsp, err := c.PlatformServiceUpdatePlatformWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceUpdatePlatformResponse(rsp) -} - -// PlatformServiceUpdatePlatformWithResponse performs a PATCH /v1/platform/{id} (the `PlatformServiceUpdatePlatform` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceUpdatePlatformWithResponse(ctx context.Context, id string, body PlatformServiceUpdatePlatformJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceUpdatePlatformResponse, error) { - rsp, err := c.PlatformServiceUpdatePlatform(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceUpdatePlatformResponse(rsp) -} - -// PlatformServiceListPlatformsWithResponse performs a GET /v1/platforms (the `PlatformServiceListPlatforms` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceListPlatformsWithResponse(ctx context.Context, params *PlatformServiceListPlatformsParams, reqEditors ...RequestEditorFn) (*PlatformServiceListPlatformsResponse, error) { - rsp, err := c.PlatformServiceListPlatforms(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceListPlatformsResponse(rsp) -} - -// PlatformServiceAssignAgentWithBodyWithResponse performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceAssignAgentWithBodyWithResponse(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceAssignAgentResponse, error) { - rsp, err := c.PlatformServiceAssignAgentWithBody(ctx, platformId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceAssignAgentResponse(rsp) -} - -// PlatformServiceAssignAgentWithResponse performs a POST /v1/platforms/{platformId}:AssignAgent (the `PlatformServiceAssignAgent` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceAssignAgentWithResponse(ctx context.Context, platformId string, body PlatformServiceAssignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceAssignAgentResponse, error) { - rsp, err := c.PlatformServiceAssignAgent(ctx, platformId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceAssignAgentResponse(rsp) -} - -// PlatformServiceUnassignAgentWithBodyWithResponse performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceUnassignAgentWithBodyWithResponse(ctx context.Context, platformId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlatformServiceUnassignAgentResponse, error) { - rsp, err := c.PlatformServiceUnassignAgentWithBody(ctx, platformId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceUnassignAgentResponse(rsp) -} - -// PlatformServiceUnassignAgentWithResponse performs a POST /v1/platforms/{platformId}:UnassignAgent (the `PlatformServiceUnassignAgent` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PlatformServiceUnassignAgentWithResponse(ctx context.Context, platformId string, body PlatformServiceUnassignAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*PlatformServiceUnassignAgentResponse, error) { - rsp, err := c.PlatformServiceUnassignAgent(ctx, platformId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePlatformServiceUnassignAgentResponse(rsp) -} - -// ProviderReviewServiceListProviderReviewsWithResponse performs a GET /v1/provider-reviews (the `ProviderReviewServiceListProviderReviews` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceListProviderReviewsWithResponse(ctx context.Context, params *ProviderReviewServiceListProviderReviewsParams, reqEditors ...RequestEditorFn) (*ProviderReviewServiceListProviderReviewsResponse, error) { - rsp, err := c.ProviderReviewServiceListProviderReviews(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceListProviderReviewsResponse(rsp) -} - -// ClientProviderReviewServiceCreateClientReviewWithBodyWithResponse performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceCreateClientReviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceCreateClientReviewResponse, error) { - rsp, err := c.ClientProviderReviewServiceCreateClientReviewWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceCreateClientReviewResponse(rsp) -} - -// ClientProviderReviewServiceCreateClientReviewWithResponse performs a POST /v1/provider-reviews (the `ClientProviderReviewServiceCreateClientReview` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceCreateClientReviewWithResponse(ctx context.Context, body ClientProviderReviewServiceCreateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceCreateClientReviewResponse, error) { - rsp, err := c.ClientProviderReviewServiceCreateClientReview(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceCreateClientReviewResponse(rsp) -} - -// ClientProviderReviewServiceGetClientReviewForVirtualMachineWithResponse performs a GET /v1/provider-reviews/virtual-machines/{virtualMachineId} (the `ClientProviderReviewServiceGetClientReviewForVirtualMachine` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceGetClientReviewForVirtualMachineWithResponse(ctx context.Context, virtualMachineId string, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse, error) { - rsp, err := c.ClientProviderReviewServiceGetClientReviewForVirtualMachine(ctx, virtualMachineId, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceGetClientReviewForVirtualMachineResponse(rsp) -} - -// ClientProviderReviewServiceDeleteClientReviewWithResponse performs a DELETE /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceDeleteClientReview` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceDeleteClientReviewWithResponse(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceDeleteClientReviewResponse, error) { - rsp, err := c.ClientProviderReviewServiceDeleteClientReview(ctx, reviewId, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceDeleteClientReviewResponse(rsp) -} - -// ClientProviderReviewServiceUpdateClientReviewWithBodyWithResponse performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceUpdateClientReviewWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceUpdateClientReviewResponse, error) { - rsp, err := c.ClientProviderReviewServiceUpdateClientReviewWithBody(ctx, reviewId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceUpdateClientReviewResponse(rsp) -} - -// ClientProviderReviewServiceUpdateClientReviewWithResponse performs a PATCH /v1/provider-reviews/{reviewId} (the `ClientProviderReviewServiceUpdateClientReview` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ClientProviderReviewServiceUpdateClientReviewWithResponse(ctx context.Context, reviewId string, body ClientProviderReviewServiceUpdateClientReviewJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientProviderReviewServiceUpdateClientReviewResponse, error) { - rsp, err := c.ClientProviderReviewServiceUpdateClientReview(ctx, reviewId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseClientProviderReviewServiceUpdateClientReviewResponse(rsp) -} - -// ProviderReviewServiceDeleteProviderReviewReplyWithResponse performs a DELETE /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceDeleteProviderReviewReply` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceDeleteProviderReviewReplyWithResponse(ctx context.Context, reviewId string, reqEditors ...RequestEditorFn) (*ProviderReviewServiceDeleteProviderReviewReplyResponse, error) { - rsp, err := c.ProviderReviewServiceDeleteProviderReviewReply(ctx, reviewId, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceDeleteProviderReviewReplyResponse(rsp) -} - -// ProviderReviewServiceUpdateProviderReviewReplyWithBodyWithResponse performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceUpdateProviderReviewReplyWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderReviewServiceUpdateProviderReviewReplyResponse, error) { - rsp, err := c.ProviderReviewServiceUpdateProviderReviewReplyWithBody(ctx, reviewId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceUpdateProviderReviewReplyResponse(rsp) -} - -// ProviderReviewServiceUpdateProviderReviewReplyWithResponse performs a PATCH /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceUpdateProviderReviewReply` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceUpdateProviderReviewReplyWithResponse(ctx context.Context, reviewId string, body ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderReviewServiceUpdateProviderReviewReplyResponse, error) { - rsp, err := c.ProviderReviewServiceUpdateProviderReviewReply(ctx, reviewId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceUpdateProviderReviewReplyResponse(rsp) -} - -// ProviderReviewServiceCreateProviderReviewReplyWithBodyWithResponse performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceCreateProviderReviewReplyWithBodyWithResponse(ctx context.Context, reviewId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderReviewServiceCreateProviderReviewReplyResponse, error) { - rsp, err := c.ProviderReviewServiceCreateProviderReviewReplyWithBody(ctx, reviewId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceCreateProviderReviewReplyResponse(rsp) -} - -// ProviderReviewServiceCreateProviderReviewReplyWithResponse performs a POST /v1/provider-reviews/{reviewId}/reply (the `ProviderReviewServiceCreateProviderReviewReply` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderReviewServiceCreateProviderReviewReplyWithResponse(ctx context.Context, reviewId string, body ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderReviewServiceCreateProviderReviewReplyResponse, error) { - rsp, err := c.ProviderReviewServiceCreateProviderReviewReply(ctx, reviewId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderReviewServiceCreateProviderReviewReplyResponse(rsp) -} - -// ProviderConnectServiceDisconnectConnectAccountWithResponse performs a DELETE /v1/provider/connect/account (the `ProviderConnectServiceDisconnectConnectAccount` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderConnectServiceDisconnectConnectAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderConnectServiceDisconnectConnectAccountResponse, error) { - rsp, err := c.ProviderConnectServiceDisconnectConnectAccount(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceDisconnectConnectAccountResponse(rsp) -} - -// ProviderConnectServiceGetConnectAccountWithResponse performs a GET /v1/provider/connect/account (the `ProviderConnectServiceGetConnectAccount` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderConnectServiceGetConnectAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderConnectServiceGetConnectAccountResponse, error) { - rsp, err := c.ProviderConnectServiceGetConnectAccount(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceGetConnectAccountResponse(rsp) -} - -// ProviderConnectServiceCreateConnectAccountWithBodyWithResponse performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderConnectServiceCreateConnectAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectAccountResponse, error) { - rsp, err := c.ProviderConnectServiceCreateConnectAccountWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceCreateConnectAccountResponse(rsp) -} - -// ProviderConnectServiceCreateConnectAccountWithResponse performs a POST /v1/provider/connect/account (the `ProviderConnectServiceCreateConnectAccount` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderConnectServiceCreateConnectAccountWithResponse(ctx context.Context, body ProviderConnectServiceCreateConnectAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectAccountResponse, error) { - rsp, err := c.ProviderConnectServiceCreateConnectAccount(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceCreateConnectAccountResponse(rsp) -} - -// ProviderConnectServiceCreateConnectTaxSessionWithBodyWithResponse Creates a Stripe AccountSession client secret for Connect tax_settings / -// tax_registrations embedded components. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). -func (c *ClientWithResponses) ProviderConnectServiceCreateConnectTaxSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectTaxSessionResponse, error) { - rsp, err := c.ProviderConnectServiceCreateConnectTaxSessionWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceCreateConnectTaxSessionResponse(rsp) -} - -// ProviderConnectServiceCreateConnectTaxSessionWithResponse Creates a Stripe AccountSession client secret for Connect tax_settings / -// tax_registrations embedded components. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/provider/connect/tax-session (the `ProviderConnectServiceCreateConnectTaxSession` operationId). -func (c *ClientWithResponses) ProviderConnectServiceCreateConnectTaxSessionWithResponse(ctx context.Context, body ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderConnectServiceCreateConnectTaxSessionResponse, error) { - rsp, err := c.ProviderConnectServiceCreateConnectTaxSession(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderConnectServiceCreateConnectTaxSessionResponse(rsp) -} - -// ProviderCustomerServiceGetProviderCustomerStatsWithResponse Path must not be `/customers/stats`: some gateways match `/customers/{client_organization_id}` first and treat "stats" as a UUID field (validation error). -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/provider/customer-stats (the `ProviderCustomerServiceGetProviderCustomerStats` operationId). -func (c *ClientWithResponses) ProviderCustomerServiceGetProviderCustomerStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceGetProviderCustomerStatsResponse, error) { - rsp, err := c.ProviderCustomerServiceGetProviderCustomerStats(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceGetProviderCustomerStatsResponse(rsp) -} - -// ProviderCustomerServiceListProviderCustomersWithResponse performs a GET /v1/provider/customers (the `ProviderCustomerServiceListProviderCustomers` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceListProviderCustomersWithResponse(ctx context.Context, params *ProviderCustomerServiceListProviderCustomersParams, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceListProviderCustomersResponse, error) { - rsp, err := c.ProviderCustomerServiceListProviderCustomers(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceListProviderCustomersResponse(rsp) -} - -// ProviderCustomerServiceGetProviderCustomerWithResponse performs a GET /v1/provider/customers/{clientOrganizationId} (the `ProviderCustomerServiceGetProviderCustomer` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceGetProviderCustomerWithResponse(ctx context.Context, clientOrganizationId string, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceGetProviderCustomerResponse, error) { - rsp, err := c.ProviderCustomerServiceGetProviderCustomer(ctx, clientOrganizationId, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceGetProviderCustomerResponse(rsp) -} - -// ProviderCustomerServiceListProviderCustomerAssetsWithResponse performs a GET /v1/provider/customers/{clientOrganizationId}/assets (the `ProviderCustomerServiceListProviderCustomerAssets` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceListProviderCustomerAssetsWithResponse(ctx context.Context, clientOrganizationId string, params *ProviderCustomerServiceListProviderCustomerAssetsParams, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceListProviderCustomerAssetsResponse, error) { - rsp, err := c.ProviderCustomerServiceListProviderCustomerAssets(ctx, clientOrganizationId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceListProviderCustomerAssetsResponse(rsp) -} - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithBody(ctx, clientOrganizationId, virtualMachineId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart (the `ProviderCustomerServiceRestartProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceRestartProviderCustomerVirtualMachine(ctx, clientOrganizationId, virtualMachineId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceStartProviderCustomerVirtualMachineWithBody(ctx, clientOrganizationId, virtualMachineId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceStartProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderCustomerServiceStartProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start (the `ProviderCustomerServiceStartProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceStartProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceStartProviderCustomerVirtualMachine(ctx, clientOrganizationId, virtualMachineId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceStartProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBodyWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBodyWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceStopProviderCustomerVirtualMachineWithBody(ctx, clientOrganizationId, virtualMachineId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceStopProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderCustomerServiceStopProviderCustomerVirtualMachineWithResponse performs a POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop (the `ProviderCustomerServiceStopProviderCustomerVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderCustomerServiceStopProviderCustomerVirtualMachineWithResponse(ctx context.Context, clientOrganizationId string, virtualMachineId string, body ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse, error) { - rsp, err := c.ProviderCustomerServiceStopProviderCustomerVirtualMachine(ctx, clientOrganizationId, virtualMachineId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderCustomerServiceStopProviderCustomerVirtualMachineResponse(rsp) -} - -// ProviderDashboardServiceListDashboardAddonCatalogStatsWithResponse performs a GET /v1/provider/dashboard/addon-catalog-stats (the `ProviderDashboardServiceListDashboardAddonCatalogStats` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardAddonCatalogStatsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardAddonCatalogStatsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardAddonCatalogStatsResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardAddonCatalogStats(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardAddonCatalogStatsResponse(rsp) -} - -// ProviderDashboardServiceGetDashboardAssetSalesTimeseriesWithResponse performs a GET /v1/provider/dashboard/asset-sales-timeseries (the `ProviderDashboardServiceGetDashboardAssetSalesTimeseries` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceGetDashboardAssetSalesTimeseriesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse, error) { - rsp, err := c.ProviderDashboardServiceGetDashboardAssetSalesTimeseries(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse(rsp) -} - -// ProviderDashboardServiceGetDashboardBillingSalesWithResponse performs a GET /v1/provider/dashboard/billing-sales (the `ProviderDashboardServiceGetDashboardBillingSales` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceGetDashboardBillingSalesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardBillingSalesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardBillingSalesResponse, error) { - rsp, err := c.ProviderDashboardServiceGetDashboardBillingSales(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceGetDashboardBillingSalesResponse(rsp) -} - -// ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesWithResponse performs a GET /v1/provider/dashboard/customer-acquisition-timeseries (the `ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesWithResponse(ctx context.Context, params *ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse, error) { - rsp, err := c.ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse(rsp) -} - -// ProviderDashboardServiceListDashboardInfrastructureWithResponse performs a GET /v1/provider/dashboard/infrastructure (the `ProviderDashboardServiceListDashboardInfrastructure` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardInfrastructureWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardInfrastructureParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardInfrastructureResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardInfrastructure(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardInfrastructureResponse(rsp) -} - -// ProviderDashboardServiceListDashboardIpamWithResponse performs a GET /v1/provider/dashboard/ipam (the `ProviderDashboardServiceListDashboardIpam` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardIpamWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardIpamResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardIpam(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardIpamResponse(rsp) -} - -// ProviderDashboardServiceListDashboardIpamAssignmentsWithResponse performs a GET /v1/provider/dashboard/ipam/assignments (the `ProviderDashboardServiceListDashboardIpamAssignments` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardIpamAssignmentsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardIpamAssignmentsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardIpamAssignmentsResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardIpamAssignments(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardIpamAssignmentsResponse(rsp) -} - -// ProviderDashboardServiceListDashboardPlanSubscriptionStatsWithResponse performs a GET /v1/provider/dashboard/plan-subscription-stats (the `ProviderDashboardServiceListDashboardPlanSubscriptionStats` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardPlanSubscriptionStatsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardPlanSubscriptionStats(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse(rsp) -} - -// ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsWithResponse performs a GET /v1/provider/dashboard/plans-tab-stats (the `ProviderDashboardPlansTabServiceGetDashboardPlansTabStats` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse, error) { - rsp, err := c.ProviderDashboardPlansTabServiceGetDashboardPlansTabStats(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse(rsp) -} - -// ProviderDashboardServiceGetDashboardSummaryWithResponse performs a GET /v1/provider/dashboard/summary (the `ProviderDashboardServiceGetDashboardSummary` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceGetDashboardSummaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceGetDashboardSummaryResponse, error) { - rsp, err := c.ProviderDashboardServiceGetDashboardSummary(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceGetDashboardSummaryResponse(rsp) -} - -// ProviderDashboardServiceListDashboardTicketStatisticsWithResponse performs a GET /v1/provider/dashboard/tickets/statistics (the `ProviderDashboardServiceListDashboardTicketStatistics` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardTicketStatisticsWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardTicketStatisticsParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardTicketStatisticsResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardTicketStatistics(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardTicketStatisticsResponse(rsp) -} - -// ProviderDashboardServiceListDashboardVirtualMachinesWithResponse performs a GET /v1/provider/dashboard/virtual-machines (the `ProviderDashboardServiceListDashboardVirtualMachines` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderDashboardServiceListDashboardVirtualMachinesWithResponse(ctx context.Context, params *ProviderDashboardServiceListDashboardVirtualMachinesParams, reqEditors ...RequestEditorFn) (*ProviderDashboardServiceListDashboardVirtualMachinesResponse, error) { - rsp, err := c.ProviderDashboardServiceListDashboardVirtualMachines(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderDashboardServiceListDashboardVirtualMachinesResponse(rsp) -} - -// LiveValidationServiceListPlanLiveValidationsWithResponse performs a GET /v1/provider/live-validations (the `LiveValidationServiceListPlanLiveValidations` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceListPlanLiveValidationsWithResponse(ctx context.Context, params *LiveValidationServiceListPlanLiveValidationsParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceListPlanLiveValidationsResponse, error) { - rsp, err := c.LiveValidationServiceListPlanLiveValidations(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceListPlanLiveValidationsResponse(rsp) -} - -// ManualPayoutServiceDeleteManualPayoutWithResponse performs a DELETE /v1/provider/manual-payout (the `ManualPayoutServiceDeleteManualPayout` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ManualPayoutServiceDeleteManualPayoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManualPayoutServiceDeleteManualPayoutResponse, error) { - rsp, err := c.ManualPayoutServiceDeleteManualPayout(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseManualPayoutServiceDeleteManualPayoutResponse(rsp) -} - -// ManualPayoutServiceGetManualPayoutWithResponse performs a GET /v1/provider/manual-payout (the `ManualPayoutServiceGetManualPayout` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ManualPayoutServiceGetManualPayoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ManualPayoutServiceGetManualPayoutResponse, error) { - rsp, err := c.ManualPayoutServiceGetManualPayout(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseManualPayoutServiceGetManualPayoutResponse(rsp) -} - -// ManualPayoutServiceCreateManualPayoutWithBodyWithResponse performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ManualPayoutServiceCreateManualPayoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManualPayoutServiceCreateManualPayoutResponse, error) { - rsp, err := c.ManualPayoutServiceCreateManualPayoutWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManualPayoutServiceCreateManualPayoutResponse(rsp) -} - -// ManualPayoutServiceCreateManualPayoutWithResponse performs a POST /v1/provider/manual-payout (the `ManualPayoutServiceCreateManualPayout` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ManualPayoutServiceCreateManualPayoutWithResponse(ctx context.Context, body ManualPayoutServiceCreateManualPayoutJSONRequestBody, reqEditors ...RequestEditorFn) (*ManualPayoutServiceCreateManualPayoutResponse, error) { - rsp, err := c.ManualPayoutServiceCreateManualPayout(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseManualPayoutServiceCreateManualPayoutResponse(rsp) -} - -// ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesWithResponse performs a GET /v1/provider/network/smtp-outbound-policies (the `ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesWithResponse(ctx context.Context, params *ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse, error) { - rsp, err := c.ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse(rsp) -} - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBodyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBodyWithResponse(ctx context.Context, virtualMachineId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse, error) { - rsp, err := c.ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithBody(ctx, virtualMachineId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse(rsp) -} - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId} (the `ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithResponse(ctx context.Context, virtualMachineId string, body ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse, error) { - rsp, err := c.ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy(ctx, virtualMachineId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse(rsp) -} - -// ProviderNetworkServiceGetSmtpOutboundProviderPolicyWithResponse performs a GET /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceGetSmtpOutboundProviderPolicy` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceGetSmtpOutboundProviderPolicyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse, error) { - rsp, err := c.ProviderNetworkServiceGetSmtpOutboundProviderPolicy(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse(rsp) -} - -// ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBodyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse, error) { - rsp, err := c.ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse(rsp) -} - -// ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithResponse performs a PUT /v1/provider/network/smtp-outbound-policy (the `ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithResponse(ctx context.Context, body ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse, error) { - rsp, err := c.ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse(rsp) -} - -// ProviderOnboardingServiceGetProviderOnboardingChecklistWithResponse performs a GET /v1/provider/onboarding/checklist (the `ProviderOnboardingServiceGetProviderOnboardingChecklist` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ProviderOnboardingServiceGetProviderOnboardingChecklistWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProviderOnboardingServiceGetProviderOnboardingChecklistResponse, error) { - rsp, err := c.ProviderOnboardingServiceGetProviderOnboardingChecklist(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderOnboardingServiceGetProviderOnboardingChecklistResponse(rsp) -} - -// PayoutConfigurationServiceGetPayoutConfigurationWithResponse performs a GET /v1/provider/payout-configuration (the `PayoutConfigurationServiceGetPayoutConfiguration` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutConfigurationServiceGetPayoutConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceGetPayoutConfigurationResponse, error) { - rsp, err := c.PayoutConfigurationServiceGetPayoutConfiguration(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutConfigurationServiceGetPayoutConfigurationResponse(rsp) -} - -// PayoutConfigurationServiceUpdatePayoutConfigurationWithBodyWithResponse performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutConfigurationServiceUpdatePayoutConfigurationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceUpdatePayoutConfigurationResponse, error) { - rsp, err := c.PayoutConfigurationServiceUpdatePayoutConfigurationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutConfigurationServiceUpdatePayoutConfigurationResponse(rsp) -} - -// PayoutConfigurationServiceUpdatePayoutConfigurationWithResponse performs a PUT /v1/provider/payout-configuration (the `PayoutConfigurationServiceUpdatePayoutConfiguration` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutConfigurationServiceUpdatePayoutConfigurationWithResponse(ctx context.Context, body PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*PayoutConfigurationServiceUpdatePayoutConfigurationResponse, error) { - rsp, err := c.PayoutConfigurationServiceUpdatePayoutConfiguration(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutConfigurationServiceUpdatePayoutConfigurationResponse(rsp) -} - -// PayoutInvoiceServiceListPayoutInvoicesWithResponse performs a GET /v1/provider/payout-invoices (the `PayoutInvoiceServiceListPayoutInvoices` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutInvoiceServiceListPayoutInvoicesWithResponse(ctx context.Context, params *PayoutInvoiceServiceListPayoutInvoicesParams, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceListPayoutInvoicesResponse, error) { - rsp, err := c.PayoutInvoiceServiceListPayoutInvoices(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutInvoiceServiceListPayoutInvoicesResponse(rsp) -} - -// PayoutInvoiceServiceGetPayoutInvoiceWithResponse performs a GET /v1/provider/payout-invoices/{id} (the `PayoutInvoiceServiceGetPayoutInvoice` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutInvoiceServiceGetPayoutInvoiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceGetPayoutInvoiceResponse, error) { - rsp, err := c.PayoutInvoiceServiceGetPayoutInvoice(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutInvoiceServiceGetPayoutInvoiceResponse(rsp) -} - -// ProviderPlanServiceListAssignableNodesForPlanWithResponse Nodes the provider may assign to a plan (catalog-eligible for tier/category). -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/provider/plans/assignable-nodes (the `ProviderPlanServiceListAssignableNodesForPlan` operationId). -func (c *ClientWithResponses) ProviderPlanServiceListAssignableNodesForPlanWithResponse(ctx context.Context, params *ProviderPlanServiceListAssignableNodesForPlanParams, reqEditors ...RequestEditorFn) (*ProviderPlanServiceListAssignableNodesForPlanResponse, error) { - rsp, err := c.ProviderPlanServiceListAssignableNodesForPlan(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseProviderPlanServiceListAssignableNodesForPlanResponse(rsp) -} - -// LiveValidationServiceDeletePlanLiveValidationWithResponse performs a DELETE /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceDeletePlanLiveValidation` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceDeletePlanLiveValidationWithResponse(ctx context.Context, planId string, params *LiveValidationServiceDeletePlanLiveValidationParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceDeletePlanLiveValidationResponse, error) { - rsp, err := c.LiveValidationServiceDeletePlanLiveValidation(ctx, planId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceDeletePlanLiveValidationResponse(rsp) -} - -// LiveValidationServiceGetPlanLiveValidationWithResponse performs a GET /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceGetPlanLiveValidation` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceGetPlanLiveValidationWithResponse(ctx context.Context, planId string, params *LiveValidationServiceGetPlanLiveValidationParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceGetPlanLiveValidationResponse, error) { - rsp, err := c.LiveValidationServiceGetPlanLiveValidation(ctx, planId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceGetPlanLiveValidationResponse(rsp) -} - -// LiveValidationServiceStartPlanLiveValidationWithBodyWithResponse performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceStartPlanLiveValidationWithBodyWithResponse(ctx context.Context, planId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LiveValidationServiceStartPlanLiveValidationResponse, error) { - rsp, err := c.LiveValidationServiceStartPlanLiveValidationWithBody(ctx, planId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceStartPlanLiveValidationResponse(rsp) -} - -// LiveValidationServiceStartPlanLiveValidationWithResponse performs a POST /v1/provider/plans/{planId}/live-validation (the `LiveValidationServiceStartPlanLiveValidation` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceStartPlanLiveValidationWithResponse(ctx context.Context, planId string, body LiveValidationServiceStartPlanLiveValidationJSONRequestBody, reqEditors ...RequestEditorFn) (*LiveValidationServiceStartPlanLiveValidationResponse, error) { - rsp, err := c.LiveValidationServiceStartPlanLiveValidation(ctx, planId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceStartPlanLiveValidationResponse(rsp) -} - -// LiveValidationServiceListPlanLiveValidationBenchmarksWithResponse performs a GET /v1/provider/plans/{planId}/live-validation/benchmarks (the `LiveValidationServiceListPlanLiveValidationBenchmarks` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceListPlanLiveValidationBenchmarksWithResponse(ctx context.Context, planId string, params *LiveValidationServiceListPlanLiveValidationBenchmarksParams, reqEditors ...RequestEditorFn) (*LiveValidationServiceListPlanLiveValidationBenchmarksResponse, error) { - rsp, err := c.LiveValidationServiceListPlanLiveValidationBenchmarks(ctx, planId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceListPlanLiveValidationBenchmarksResponse(rsp) -} - -// LiveValidationServiceListEligibleNodesForPlanWithResponse performs a GET /v1/provider/plans/{planId}/live-validation/nodes (the `LiveValidationServiceListEligibleNodesForPlan` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) LiveValidationServiceListEligibleNodesForPlanWithResponse(ctx context.Context, planId string, reqEditors ...RequestEditorFn) (*LiveValidationServiceListEligibleNodesForPlanResponse, error) { - rsp, err := c.LiveValidationServiceListEligibleNodesForPlan(ctx, planId, reqEditors...) - if err != nil { - return nil, err - } - return ParseLiveValidationServiceListEligibleNodesForPlanResponse(rsp) -} - -// PreflightServiceListPreflightChecksWithResponse performs a GET /v1/provider/preflight-checks (the `PreflightServiceListPreflightChecks` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PreflightServiceListPreflightChecksWithResponse(ctx context.Context, params *PreflightServiceListPreflightChecksParams, reqEditors ...RequestEditorFn) (*PreflightServiceListPreflightChecksResponse, error) { - rsp, err := c.PreflightServiceListPreflightChecks(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePreflightServiceListPreflightChecksResponse(rsp) -} - -// PayoutInvoiceServiceGetProviderRevenueWithResponse performs a GET /v1/provider/revenue (the `PayoutInvoiceServiceGetProviderRevenue` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) PayoutInvoiceServiceGetProviderRevenueWithResponse(ctx context.Context, params *PayoutInvoiceServiceGetProviderRevenueParams, reqEditors ...RequestEditorFn) (*PayoutInvoiceServiceGetProviderRevenueResponse, error) { - rsp, err := c.PayoutInvoiceServiceGetProviderRevenue(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePayoutInvoiceServiceGetProviderRevenueResponse(rsp) -} - -// RefundServiceListRefundsWithResponse ListRefunds lists refunds for a payment, invoice, or organization -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/refunds (the `RefundServiceListRefunds` operationId). -func (c *ClientWithResponses) RefundServiceListRefundsWithResponse(ctx context.Context, params *RefundServiceListRefundsParams, reqEditors ...RequestEditorFn) (*RefundServiceListRefundsResponse, error) { - rsp, err := c.RefundServiceListRefunds(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRefundServiceListRefundsResponse(rsp) -} - -// RefundServiceGetRefundWithResponse GetRefund retrieves a single refund with payment and invoice details -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/refunds/{refundId} (the `RefundServiceGetRefund` operationId). -func (c *ClientWithResponses) RefundServiceGetRefundWithResponse(ctx context.Context, refundId string, reqEditors ...RequestEditorFn) (*RefundServiceGetRefundResponse, error) { - rsp, err := c.RefundServiceGetRefund(ctx, refundId, reqEditors...) - if err != nil { - return nil, err - } - return ParseRefundServiceGetRefundResponse(rsp) -} - -// RegionServiceListRegionsWithResponse performs a GET /v1/regions (the `RegionServiceListRegions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceListRegionsWithResponse(ctx context.Context, params *RegionServiceListRegionsParams, reqEditors ...RequestEditorFn) (*RegionServiceListRegionsResponse, error) { - rsp, err := c.RegionServiceListRegions(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceListRegionsResponse(rsp) -} - -// RegionServiceCreateRegionWithBodyWithResponse performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceCreateRegionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegionServiceCreateRegionResponse, error) { - rsp, err := c.RegionServiceCreateRegionWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceCreateRegionResponse(rsp) -} - -// RegionServiceCreateRegionWithResponse performs a POST /v1/regions (the `RegionServiceCreateRegion` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceCreateRegionWithResponse(ctx context.Context, body RegionServiceCreateRegionJSONRequestBody, reqEditors ...RequestEditorFn) (*RegionServiceCreateRegionResponse, error) { - rsp, err := c.RegionServiceCreateRegion(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceCreateRegionResponse(rsp) -} - -// RegionServiceDeleteRegionWithResponse performs a DELETE /v1/regions/{id} (the `RegionServiceDeleteRegion` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceDeleteRegionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RegionServiceDeleteRegionResponse, error) { - rsp, err := c.RegionServiceDeleteRegion(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceDeleteRegionResponse(rsp) -} - -// RegionServiceGetRegionWithResponse performs a GET /v1/regions/{id} (the `RegionServiceGetRegion` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RegionServiceGetRegionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RegionServiceGetRegionResponse, error) { - rsp, err := c.RegionServiceGetRegion(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseRegionServiceGetRegionResponse(rsp) -} - -// RoadmapServiceDeleteRoadmapFeatureRequestCommentWithResponse performs a DELETE /v1/roadmap/comments/{commentId} (the `RoadmapServiceDeleteRoadmapFeatureRequestComment` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceDeleteRoadmapFeatureRequestCommentWithResponse(ctx context.Context, commentId string, reqEditors ...RequestEditorFn) (*RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse, error) { - rsp, err := c.RoadmapServiceDeleteRoadmapFeatureRequestComment(ctx, commentId, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceDeleteRoadmapFeatureRequestCommentResponse(rsp) -} - -// RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBodyWithResponse performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBodyWithResponse(ctx context.Context, commentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse, error) { - rsp, err := c.RoadmapServiceUpdateRoadmapFeatureRequestCommentWithBody(ctx, commentId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceUpdateRoadmapFeatureRequestCommentResponse(rsp) -} - -// RoadmapServiceUpdateRoadmapFeatureRequestCommentWithResponse performs a PATCH /v1/roadmap/comments/{commentId} (the `RoadmapServiceUpdateRoadmapFeatureRequestComment` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceUpdateRoadmapFeatureRequestCommentWithResponse(ctx context.Context, commentId string, body RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse, error) { - rsp, err := c.RoadmapServiceUpdateRoadmapFeatureRequestComment(ctx, commentId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceUpdateRoadmapFeatureRequestCommentResponse(rsp) -} - -// RoadmapServiceListRoadmapProductCategoriesWithResponse performs a GET /v1/roadmap/products (the `RoadmapServiceListRoadmapProductCategories` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceListRoadmapProductCategoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapProductCategoriesResponse, error) { - rsp, err := c.RoadmapServiceListRoadmapProductCategories(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceListRoadmapProductCategoriesResponse(rsp) -} - -// RoadmapServiceListRoadmapFeatureRequestsWithResponse performs a GET /v1/roadmap/requests (the `RoadmapServiceListRoadmapFeatureRequests` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceListRoadmapFeatureRequestsWithResponse(ctx context.Context, params *RoadmapServiceListRoadmapFeatureRequestsParams, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapFeatureRequestsResponse, error) { - rsp, err := c.RoadmapServiceListRoadmapFeatureRequests(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceListRoadmapFeatureRequestsResponse(rsp) -} - -// RoadmapServiceGetRoadmapFeatureRequestWithResponse performs a GET /v1/roadmap/requests/{slug} (the `RoadmapServiceGetRoadmapFeatureRequest` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceGetRoadmapFeatureRequestWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*RoadmapServiceGetRoadmapFeatureRequestResponse, error) { - rsp, err := c.RoadmapServiceGetRoadmapFeatureRequest(ctx, slug, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceGetRoadmapFeatureRequestResponse(rsp) -} - -// RoadmapServiceListRoadmapFeatureRequestCommentsWithResponse performs a GET /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceListRoadmapFeatureRequestComments` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceListRoadmapFeatureRequestCommentsWithResponse(ctx context.Context, slug string, params *RoadmapServiceListRoadmapFeatureRequestCommentsParams, reqEditors ...RequestEditorFn) (*RoadmapServiceListRoadmapFeatureRequestCommentsResponse, error) { - rsp, err := c.RoadmapServiceListRoadmapFeatureRequestComments(ctx, slug, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceListRoadmapFeatureRequestCommentsResponse(rsp) -} - -// RoadmapServiceCreateRoadmapFeatureRequestCommentWithBodyWithResponse performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceCreateRoadmapFeatureRequestCommentWithBodyWithResponse(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceCreateRoadmapFeatureRequestCommentResponse, error) { - rsp, err := c.RoadmapServiceCreateRoadmapFeatureRequestCommentWithBody(ctx, slug, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceCreateRoadmapFeatureRequestCommentResponse(rsp) -} - -// RoadmapServiceCreateRoadmapFeatureRequestCommentWithResponse performs a POST /v1/roadmap/requests/{slug}/comments (the `RoadmapServiceCreateRoadmapFeatureRequestComment` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceCreateRoadmapFeatureRequestCommentWithResponse(ctx context.Context, slug string, body RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceCreateRoadmapFeatureRequestCommentResponse, error) { - rsp, err := c.RoadmapServiceCreateRoadmapFeatureRequestComment(ctx, slug, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceCreateRoadmapFeatureRequestCommentResponse(rsp) -} - -// RoadmapServiceRemoveRoadmapFeatureRequestVoteWithResponse performs a DELETE /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceRemoveRoadmapFeatureRequestVote` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceRemoveRoadmapFeatureRequestVoteWithResponse(ctx context.Context, slug string, reqEditors ...RequestEditorFn) (*RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse, error) { - rsp, err := c.RoadmapServiceRemoveRoadmapFeatureRequestVote(ctx, slug, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceRemoveRoadmapFeatureRequestVoteResponse(rsp) -} - -// RoadmapServiceVoteRoadmapFeatureRequestWithBodyWithResponse performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceVoteRoadmapFeatureRequestWithBodyWithResponse(ctx context.Context, slug string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceVoteRoadmapFeatureRequestResponse, error) { - rsp, err := c.RoadmapServiceVoteRoadmapFeatureRequestWithBody(ctx, slug, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceVoteRoadmapFeatureRequestResponse(rsp) -} - -// RoadmapServiceVoteRoadmapFeatureRequestWithResponse performs a POST /v1/roadmap/requests/{slug}/vote (the `RoadmapServiceVoteRoadmapFeatureRequest` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceVoteRoadmapFeatureRequestWithResponse(ctx context.Context, slug string, body RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceVoteRoadmapFeatureRequestResponse, error) { - rsp, err := c.RoadmapServiceVoteRoadmapFeatureRequest(ctx, slug, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceVoteRoadmapFeatureRequestResponse(rsp) -} - -// RoadmapServiceGetRoadmapStatsWithResponse performs a GET /v1/roadmap/stats (the `RoadmapServiceGetRoadmapStats` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceGetRoadmapStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RoadmapServiceGetRoadmapStatsResponse, error) { - rsp, err := c.RoadmapServiceGetRoadmapStats(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceGetRoadmapStatsResponse(rsp) -} - -// RoadmapServiceSubmitRoadmapFeatureRequestWithBodyWithResponse performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceSubmitRoadmapFeatureRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoadmapServiceSubmitRoadmapFeatureRequestResponse, error) { - rsp, err := c.RoadmapServiceSubmitRoadmapFeatureRequestWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceSubmitRoadmapFeatureRequestResponse(rsp) -} - -// RoadmapServiceSubmitRoadmapFeatureRequestWithResponse performs a POST /v1/roadmap/submit (the `RoadmapServiceSubmitRoadmapFeatureRequest` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoadmapServiceSubmitRoadmapFeatureRequestWithResponse(ctx context.Context, body RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*RoadmapServiceSubmitRoadmapFeatureRequestResponse, error) { - rsp, err := c.RoadmapServiceSubmitRoadmapFeatureRequest(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoadmapServiceSubmitRoadmapFeatureRequestResponse(rsp) -} - -// RoleServiceListRolesWithResponse performs a GET /v1/roles (the `RoleServiceListRoles` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceListRolesWithResponse(ctx context.Context, params *RoleServiceListRolesParams, reqEditors ...RequestEditorFn) (*RoleServiceListRolesResponse, error) { - rsp, err := c.RoleServiceListRoles(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceListRolesResponse(rsp) -} - -// RoleServiceCreateRoleWithBodyWithResponse performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceCreateRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceCreateRoleResponse, error) { - rsp, err := c.RoleServiceCreateRoleWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceCreateRoleResponse(rsp) -} - -// RoleServiceCreateRoleWithResponse performs a POST /v1/roles (the `RoleServiceCreateRole` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceCreateRoleWithResponse(ctx context.Context, body RoleServiceCreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceCreateRoleResponse, error) { - rsp, err := c.RoleServiceCreateRole(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceCreateRoleResponse(rsp) -} - -// RoleServiceReplaceRoleForGroupWithBodyWithResponse performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForGroupResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForGroupWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForGroupResponse(rsp) -} - -// RoleServiceReplaceRoleForGroupWithResponse performs a PUT /v1/roles/replace-for-group (the `RoleServiceReplaceRoleForGroup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForGroupWithResponse(ctx context.Context, body RoleServiceReplaceRoleForGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForGroupResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForGroup(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForGroupResponse(rsp) -} - -// RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForServiceAccountWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp) -} - -// RoleServiceReplaceRoleForServiceAccountWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForServiceAccountWithResponse(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForServiceAccount(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp) -} - -// RoleServiceReplaceRoleForUserWithBodyWithResponse performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForUserResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForUserWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForUserResponse(rsp) -} - -// RoleServiceReplaceRoleForUserWithResponse performs a PUT /v1/roles/replace-for-user (the `RoleServiceReplaceRoleForUser` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceReplaceRoleForUserWithResponse(ctx context.Context, body RoleServiceReplaceRoleForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForUserResponse, error) { - rsp, err := c.RoleServiceReplaceRoleForUser(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceReplaceRoleForUserResponse(rsp) -} - -// RoleServiceDeleteRoleWithResponse performs a DELETE /v1/roles/{id} (the `RoleServiceDeleteRole` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceDeleteRoleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RoleServiceDeleteRoleResponse, error) { - rsp, err := c.RoleServiceDeleteRole(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceDeleteRoleResponse(rsp) -} - -// RoleServiceUpdateRoleWithBodyWithResponse performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceUpdateRoleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceUpdateRoleResponse, error) { - rsp, err := c.RoleServiceUpdateRoleWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceUpdateRoleResponse(rsp) -} - -// RoleServiceUpdateRoleWithResponse performs a PATCH /v1/roles/{id} (the `RoleServiceUpdateRole` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) RoleServiceUpdateRoleWithResponse(ctx context.Context, id string, body RoleServiceUpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceUpdateRoleResponse, error) { - rsp, err := c.RoleServiceUpdateRole(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseRoleServiceUpdateRoleResponse(rsp) -} - -// SecretServiceListSecretsWithResponse performs a GET /v1/secrets (the `SecretServiceListSecrets` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceListSecretsWithResponse(ctx context.Context, params *SecretServiceListSecretsParams, reqEditors ...RequestEditorFn) (*SecretServiceListSecretsResponse, error) { - rsp, err := c.SecretServiceListSecrets(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceListSecretsResponse(rsp) -} - -// SecretServiceCreateSecretWithBodyWithResponse performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceCreateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SecretServiceCreateSecretResponse, error) { - rsp, err := c.SecretServiceCreateSecretWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceCreateSecretResponse(rsp) -} - -// SecretServiceCreateSecretWithResponse performs a POST /v1/secrets (the `SecretServiceCreateSecret` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceCreateSecretWithResponse(ctx context.Context, body SecretServiceCreateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretServiceCreateSecretResponse, error) { - rsp, err := c.SecretServiceCreateSecret(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceCreateSecretResponse(rsp) -} - -// SecretServiceDeleteSecretWithResponse performs a DELETE /v1/secrets/{id} (the `SecretServiceDeleteSecret` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceDeleteSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SecretServiceDeleteSecretResponse, error) { - rsp, err := c.SecretServiceDeleteSecret(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceDeleteSecretResponse(rsp) -} - -// SecretServiceGetSecretWithResponse performs a GET /v1/secrets/{id} (the `SecretServiceGetSecret` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceGetSecretWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SecretServiceGetSecretResponse, error) { - rsp, err := c.SecretServiceGetSecret(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceGetSecretResponse(rsp) -} - -// SecretServiceUpdateSecretWithBodyWithResponse performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceUpdateSecretWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SecretServiceUpdateSecretResponse, error) { - rsp, err := c.SecretServiceUpdateSecretWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceUpdateSecretResponse(rsp) -} - -// SecretServiceUpdateSecretWithResponse performs a PATCH /v1/secrets/{id} (the `SecretServiceUpdateSecret` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SecretServiceUpdateSecretWithResponse(ctx context.Context, id string, body SecretServiceUpdateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*SecretServiceUpdateSecretResponse, error) { - rsp, err := c.SecretServiceUpdateSecret(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSecretServiceUpdateSecretResponse(rsp) -} - -// ServiceAccountServiceListServiceAccountsWithResponse performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceListServiceAccountsWithResponse(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListServiceAccountsResponse, error) { - rsp, err := c.ServiceAccountServiceListServiceAccounts(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceListServiceAccountsResponse(rsp) -} - -// ServiceAccountServiceCreateServiceAccountWithBodyWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceCreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceCreateServiceAccountWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceCreateServiceAccountResponse(rsp) -} - -// ServiceAccountServiceCreateServiceAccountWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceCreateServiceAccountWithResponse(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceCreateServiceAccount(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceCreateServiceAccountResponse(rsp) -} - -// ServiceAccountServiceRevokeTokenWithResponse performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceRevokeTokenWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceRevokeTokenResponse, error) { - rsp, err := c.ServiceAccountServiceRevokeToken(ctx, tokenId, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceRevokeTokenResponse(rsp) -} - -// ServiceAccountServiceDeleteServiceAccountWithResponse performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceDeleteServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceDeleteServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceDeleteServiceAccount(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceDeleteServiceAccountResponse(rsp) -} - -// ServiceAccountServiceGetServiceAccountWithResponse performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceGetServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGetServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceGetServiceAccount(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceGetServiceAccountResponse(rsp) -} - -// ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceUpdateServiceAccountWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceUpdateServiceAccountResponse(rsp) -} - -// ServiceAccountServiceUpdateServiceAccountWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceUpdateServiceAccountWithResponse(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { - rsp, err := c.ServiceAccountServiceUpdateServiceAccount(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceUpdateServiceAccountResponse(rsp) -} - -// ServiceAccountServiceListTokensWithResponse performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceListTokensWithResponse(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListTokensResponse, error) { - rsp, err := c.ServiceAccountServiceListTokens(ctx, serviceAccountId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceListTokensResponse(rsp) -} - -// ServiceAccountServiceGenerateTokenWithBodyWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceGenerateTokenWithBodyWithResponse(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) { - rsp, err := c.ServiceAccountServiceGenerateTokenWithBody(ctx, serviceAccountId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceGenerateTokenResponse(rsp) -} - -// ServiceAccountServiceGenerateTokenWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) ServiceAccountServiceGenerateTokenWithResponse(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) { - rsp, err := c.ServiceAccountServiceGenerateToken(ctx, serviceAccountId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseServiceAccountServiceGenerateTokenResponse(rsp) -} - -// SSHKeyServiceListSSHKeysWithResponse performs a GET /v1/ssh-keys (the `SSHKeyServiceListSSHKeys` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SSHKeyServiceListSSHKeysWithResponse(ctx context.Context, params *SSHKeyServiceListSSHKeysParams, reqEditors ...RequestEditorFn) (*SSHKeyServiceListSSHKeysResponse, error) { - rsp, err := c.SSHKeyServiceListSSHKeys(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSSHKeyServiceListSSHKeysResponse(rsp) -} - -// SSHKeyServiceCreateSSHKeyWithBodyWithResponse performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SSHKeyServiceCreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SSHKeyServiceCreateSSHKeyResponse, error) { - rsp, err := c.SSHKeyServiceCreateSSHKeyWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSSHKeyServiceCreateSSHKeyResponse(rsp) -} - -// SSHKeyServiceCreateSSHKeyWithResponse performs a POST /v1/ssh-keys (the `SSHKeyServiceCreateSSHKey` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SSHKeyServiceCreateSSHKeyWithResponse(ctx context.Context, body SSHKeyServiceCreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SSHKeyServiceCreateSSHKeyResponse, error) { - rsp, err := c.SSHKeyServiceCreateSSHKey(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSSHKeyServiceCreateSSHKeyResponse(rsp) -} - -// SSHKeyServiceDeleteSSHKeyWithResponse performs a DELETE /v1/ssh-keys/{id} (the `SSHKeyServiceDeleteSSHKey` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SSHKeyServiceDeleteSSHKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SSHKeyServiceDeleteSSHKeyResponse, error) { - rsp, err := c.SSHKeyServiceDeleteSSHKey(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseSSHKeyServiceDeleteSSHKeyResponse(rsp) -} - -// SSHKeyServiceGetSSHKeyWithResponse performs a GET /v1/ssh-keys/{id} (the `SSHKeyServiceGetSSHKey` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SSHKeyServiceGetSSHKeyWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SSHKeyServiceGetSSHKeyResponse, error) { - rsp, err := c.SSHKeyServiceGetSSHKey(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseSSHKeyServiceGetSSHKeyResponse(rsp) -} - -// SubscriptionServiceListSubscriptionsWithResponse performs a GET /v1/subscriptions (the `SubscriptionServiceListSubscriptions` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SubscriptionServiceListSubscriptionsWithResponse(ctx context.Context, params *SubscriptionServiceListSubscriptionsParams, reqEditors ...RequestEditorFn) (*SubscriptionServiceListSubscriptionsResponse, error) { - rsp, err := c.SubscriptionServiceListSubscriptions(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceListSubscriptionsResponse(rsp) -} - -// AddonServiceListAddonSubscriptionsWithResponse List addon subscriptions for a subscription -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceListAddonSubscriptions` operationId). -func (c *ClientWithResponses) AddonServiceListAddonSubscriptionsWithResponse(ctx context.Context, subscriptionId string, params *AddonServiceListAddonSubscriptionsParams, reqEditors ...RequestEditorFn) (*AddonServiceListAddonSubscriptionsResponse, error) { - rsp, err := c.AddonServiceListAddonSubscriptions(ctx, subscriptionId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceListAddonSubscriptionsResponse(rsp) -} - -// AddonServiceAddAddonToSubscriptionWithBodyWithResponse Add an addon to a subscription -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). -func (c *ClientWithResponses) AddonServiceAddAddonToSubscriptionWithBodyWithResponse(ctx context.Context, subscriptionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddonServiceAddAddonToSubscriptionResponse, error) { - rsp, err := c.AddonServiceAddAddonToSubscriptionWithBody(ctx, subscriptionId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceAddAddonToSubscriptionResponse(rsp) -} - -// AddonServiceAddAddonToSubscriptionWithResponse Add an addon to a subscription -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions/{subscriptionId}/addons (the `AddonServiceAddAddonToSubscription` operationId). -func (c *ClientWithResponses) AddonServiceAddAddonToSubscriptionWithResponse(ctx context.Context, subscriptionId string, body AddonServiceAddAddonToSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddonServiceAddAddonToSubscriptionResponse, error) { - rsp, err := c.AddonServiceAddAddonToSubscription(ctx, subscriptionId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseAddonServiceAddAddonToSubscriptionResponse(rsp) -} - -// SubscriptionServiceCancelWithResponse performs a POST /v1/subscriptions:cancel (the `SubscriptionServiceCancel` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SubscriptionServiceCancelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelResponse, error) { - rsp, err := c.SubscriptionServiceCancel(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceCancelResponse(rsp) -} - -// SubscriptionServiceCancelRenewalWithBodyWithResponse CancelRenewal schedules an asset/VM-linked subscription to stop renewing at -// current_period_end. The VM remains usable until then; no refund of the current period. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). -func (c *ClientWithResponses) SubscriptionServiceCancelRenewalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelRenewalResponse, error) { - rsp, err := c.SubscriptionServiceCancelRenewalWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceCancelRenewalResponse(rsp) -} - -// SubscriptionServiceCancelRenewalWithResponse CancelRenewal schedules an asset/VM-linked subscription to stop renewing at -// current_period_end. The VM remains usable until then; no refund of the current period. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions:cancel-renewal (the `SubscriptionServiceCancelRenewal` operationId). -func (c *ClientWithResponses) SubscriptionServiceCancelRenewalWithResponse(ctx context.Context, body SubscriptionServiceCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceCancelRenewalResponse, error) { - rsp, err := c.SubscriptionServiceCancelRenewal(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceCancelRenewalResponse(rsp) -} - -// SubscriptionServiceRetryPaymentWithBodyWithResponse performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SubscriptionServiceRetryPaymentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceRetryPaymentResponse, error) { - rsp, err := c.SubscriptionServiceRetryPaymentWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceRetryPaymentResponse(rsp) -} - -// SubscriptionServiceRetryPaymentWithResponse performs a POST /v1/subscriptions:retry-payment (the `SubscriptionServiceRetryPayment` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SubscriptionServiceRetryPaymentWithResponse(ctx context.Context, body SubscriptionServiceRetryPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceRetryPaymentResponse, error) { - rsp, err := c.SubscriptionServiceRetryPayment(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceRetryPaymentResponse(rsp) -} - -// SubscriptionServiceGetSubscriptionStatusWithResponse performs a GET /v1/subscriptions:status (the `SubscriptionServiceGetSubscriptionStatus` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SubscriptionServiceGetSubscriptionStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SubscriptionServiceGetSubscriptionStatusResponse, error) { - rsp, err := c.SubscriptionServiceGetSubscriptionStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceGetSubscriptionStatusResponse(rsp) -} - -// SubscriptionServiceUndoCancelRenewalWithBodyWithResponse UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). -func (c *ClientWithResponses) SubscriptionServiceUndoCancelRenewalWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionServiceUndoCancelRenewalResponse, error) { - rsp, err := c.SubscriptionServiceUndoCancelRenewalWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceUndoCancelRenewalResponse(rsp) -} - -// SubscriptionServiceUndoCancelRenewalWithResponse UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/subscriptions:undo-cancel-renewal (the `SubscriptionServiceUndoCancelRenewal` operationId). -func (c *ClientWithResponses) SubscriptionServiceUndoCancelRenewalWithResponse(ctx context.Context, body SubscriptionServiceUndoCancelRenewalJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionServiceUndoCancelRenewalResponse, error) { - rsp, err := c.SubscriptionServiceUndoCancelRenewal(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSubscriptionServiceUndoCancelRenewalResponse(rsp) -} - -// TicketServiceListTicketTemplatesWithResponse performs a GET /v1/ticket-templates (the `TicketServiceListTicketTemplates` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceListTicketTemplatesWithResponse(ctx context.Context, params *TicketServiceListTicketTemplatesParams, reqEditors ...RequestEditorFn) (*TicketServiceListTicketTemplatesResponse, error) { - rsp, err := c.TicketServiceListTicketTemplates(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceListTicketTemplatesResponse(rsp) -} - -// TicketServiceCreateTicketTemplateWithBodyWithResponse performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketTemplateResponse, error) { - rsp, err := c.TicketServiceCreateTicketTemplateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketTemplateResponse(rsp) -} - -// TicketServiceCreateTicketTemplateWithResponse performs a POST /v1/ticket-templates (the `TicketServiceCreateTicketTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketTemplateWithResponse(ctx context.Context, body TicketServiceCreateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketTemplateResponse, error) { - rsp, err := c.TicketServiceCreateTicketTemplate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketTemplateResponse(rsp) -} - -// TicketServiceDeleteTicketTemplateWithResponse performs a DELETE /v1/ticket-templates/{id} (the `TicketServiceDeleteTicketTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceDeleteTicketTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketTemplateResponse, error) { - rsp, err := c.TicketServiceDeleteTicketTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceDeleteTicketTemplateResponse(rsp) -} - -// TicketServiceGetTicketTemplateWithResponse performs a GET /v1/ticket-templates/{id} (the `TicketServiceGetTicketTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceGetTicketTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceGetTicketTemplateResponse, error) { - rsp, err := c.TicketServiceGetTicketTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceGetTicketTemplateResponse(rsp) -} - -// TicketServiceUpdateTicketTemplateWithBodyWithResponse performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceUpdateTicketTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceUpdateTicketTemplateResponse, error) { - rsp, err := c.TicketServiceUpdateTicketTemplateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceUpdateTicketTemplateResponse(rsp) -} - -// TicketServiceUpdateTicketTemplateWithResponse performs a PATCH /v1/ticket-templates/{id} (the `TicketServiceUpdateTicketTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceUpdateTicketTemplateWithResponse(ctx context.Context, id string, body TicketServiceUpdateTicketTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceUpdateTicketTemplateResponse, error) { - rsp, err := c.TicketServiceUpdateTicketTemplate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceUpdateTicketTemplateResponse(rsp) -} - -// TicketServiceListTicketsWithResponse performs a GET /v1/tickets (the `TicketServiceListTickets` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceListTicketsWithResponse(ctx context.Context, params *TicketServiceListTicketsParams, reqEditors ...RequestEditorFn) (*TicketServiceListTicketsResponse, error) { - rsp, err := c.TicketServiceListTickets(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceListTicketsResponse(rsp) -} - -// TicketServiceCreateTicketWithBodyWithResponse performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketResponse, error) { - rsp, err := c.TicketServiceCreateTicketWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketResponse(rsp) -} - -// TicketServiceCreateTicketWithResponse performs a POST /v1/tickets (the `TicketServiceCreateTicket` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketWithResponse(ctx context.Context, body TicketServiceCreateTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketResponse, error) { - rsp, err := c.TicketServiceCreateTicket(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketResponse(rsp) -} - -// TicketServiceDeleteTicketAttachmentWithResponse performs a DELETE /v1/tickets/attachments/{attachmentId} (the `TicketServiceDeleteTicketAttachment` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceDeleteTicketAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketAttachmentResponse, error) { - rsp, err := c.TicketServiceDeleteTicketAttachment(ctx, attachmentId, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceDeleteTicketAttachmentResponse(rsp) -} - -// TicketServiceDownloadTicketAttachmentWithResponse performs a GET /v1/tickets/attachments/{attachmentId}:download (the `TicketServiceDownloadTicketAttachment` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceDownloadTicketAttachmentWithResponse(ctx context.Context, attachmentId string, reqEditors ...RequestEditorFn) (*TicketServiceDownloadTicketAttachmentResponse, error) { - rsp, err := c.TicketServiceDownloadTicketAttachment(ctx, attachmentId, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceDownloadTicketAttachmentResponse(rsp) -} - -// TicketServiceConfirmTicketAttachmentUploadWithBodyWithResponse performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceConfirmTicketAttachmentUploadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceConfirmTicketAttachmentUploadResponse, error) { - rsp, err := c.TicketServiceConfirmTicketAttachmentUploadWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceConfirmTicketAttachmentUploadResponse(rsp) -} - -// TicketServiceConfirmTicketAttachmentUploadWithResponse performs a POST /v1/tickets/attachments:confirm-upload (the `TicketServiceConfirmTicketAttachmentUpload` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceConfirmTicketAttachmentUploadWithResponse(ctx context.Context, body TicketServiceConfirmTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceConfirmTicketAttachmentUploadResponse, error) { - rsp, err := c.TicketServiceConfirmTicketAttachmentUpload(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceConfirmTicketAttachmentUploadResponse(rsp) -} - -// TicketServiceUploadTicketAttachmentContentWithBodyWithResponse performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceUploadTicketAttachmentContentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceUploadTicketAttachmentContentResponse, error) { - rsp, err := c.TicketServiceUploadTicketAttachmentContentWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceUploadTicketAttachmentContentResponse(rsp) -} - -// TicketServiceUploadTicketAttachmentContentWithResponse performs a POST /v1/tickets/attachments:upload-content (the `TicketServiceUploadTicketAttachmentContent` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceUploadTicketAttachmentContentWithResponse(ctx context.Context, body TicketServiceUploadTicketAttachmentContentJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceUploadTicketAttachmentContentResponse, error) { - rsp, err := c.TicketServiceUploadTicketAttachmentContent(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceUploadTicketAttachmentContentResponse(rsp) -} - -// TicketServiceDeleteTicketWithResponse performs a DELETE /v1/tickets/{id} (the `TicketServiceDeleteTicket` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceDeleteTicketWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceDeleteTicketResponse, error) { - rsp, err := c.TicketServiceDeleteTicket(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceDeleteTicketResponse(rsp) -} - -// TicketServiceGetTicketWithResponse performs a GET /v1/tickets/{id} (the `TicketServiceGetTicket` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceGetTicketWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TicketServiceGetTicketResponse, error) { - rsp, err := c.TicketServiceGetTicket(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceGetTicketResponse(rsp) -} - -// TicketServiceListTicketAttachmentsWithResponse performs a GET /v1/tickets/{ticketId}/attachments (the `TicketServiceListTicketAttachments` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceListTicketAttachmentsWithResponse(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*TicketServiceListTicketAttachmentsResponse, error) { - rsp, err := c.TicketServiceListTicketAttachments(ctx, ticketId, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceListTicketAttachmentsResponse(rsp) -} - -// TicketServiceCreateTicketAttachmentUploadWithBodyWithResponse performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketAttachmentUploadWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketAttachmentUploadResponse, error) { - rsp, err := c.TicketServiceCreateTicketAttachmentUploadWithBody(ctx, ticketId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketAttachmentUploadResponse(rsp) -} - -// TicketServiceCreateTicketAttachmentUploadWithResponse performs a POST /v1/tickets/{ticketId}/attachments:upload (the `TicketServiceCreateTicketAttachmentUpload` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceCreateTicketAttachmentUploadWithResponse(ctx context.Context, ticketId string, body TicketServiceCreateTicketAttachmentUploadJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceCreateTicketAttachmentUploadResponse, error) { - rsp, err := c.TicketServiceCreateTicketAttachmentUpload(ctx, ticketId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceCreateTicketAttachmentUploadResponse(rsp) -} - -// TicketServiceListInternalCommentsWithResponse performs a GET /v1/tickets/{ticketId}/internal-comments (the `TicketServiceListInternalComments` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceListInternalCommentsWithResponse(ctx context.Context, ticketId string, reqEditors ...RequestEditorFn) (*TicketServiceListInternalCommentsResponse, error) { - rsp, err := c.TicketServiceListInternalComments(ctx, ticketId, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceListInternalCommentsResponse(rsp) -} - -// TicketServiceAddReplyToTicketWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceAddReplyToTicketWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceAddReplyToTicketResponse, error) { - rsp, err := c.TicketServiceAddReplyToTicketWithBody(ctx, ticketId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceAddReplyToTicketResponse(rsp) -} - -// TicketServiceAddReplyToTicketWithResponse performs a POST /v1/tickets/{ticketId}:add-reply (the `TicketServiceAddReplyToTicket` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceAddReplyToTicketWithResponse(ctx context.Context, ticketId string, body TicketServiceAddReplyToTicketJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceAddReplyToTicketResponse, error) { - rsp, err := c.TicketServiceAddReplyToTicket(ctx, ticketId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceAddReplyToTicketResponse(rsp) -} - -// TicketServiceAddInternalCommentWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceAddInternalCommentWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceAddInternalCommentResponse, error) { - rsp, err := c.TicketServiceAddInternalCommentWithBody(ctx, ticketId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceAddInternalCommentResponse(rsp) -} - -// TicketServiceAddInternalCommentWithResponse performs a POST /v1/tickets/{ticketId}:internal-comment (the `TicketServiceAddInternalComment` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceAddInternalCommentWithResponse(ctx context.Context, ticketId string, body TicketServiceAddInternalCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceAddInternalCommentResponse, error) { - rsp, err := c.TicketServiceAddInternalComment(ctx, ticketId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceAddInternalCommentResponse(rsp) -} - -// TicketServiceSetTicketPriorityWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSetTicketPriorityWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketPriorityResponse, error) { - rsp, err := c.TicketServiceSetTicketPriorityWithBody(ctx, ticketId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSetTicketPriorityResponse(rsp) -} - -// TicketServiceSetTicketPriorityWithResponse performs a POST /v1/tickets/{ticketId}:set-priority (the `TicketServiceSetTicketPriority` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSetTicketPriorityWithResponse(ctx context.Context, ticketId string, body TicketServiceSetTicketPriorityJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketPriorityResponse, error) { - rsp, err := c.TicketServiceSetTicketPriority(ctx, ticketId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSetTicketPriorityResponse(rsp) -} - -// TicketServiceSetTicketStatusWithBodyWithResponse performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSetTicketStatusWithBodyWithResponse(ctx context.Context, ticketId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketStatusResponse, error) { - rsp, err := c.TicketServiceSetTicketStatusWithBody(ctx, ticketId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSetTicketStatusResponse(rsp) -} - -// TicketServiceSetTicketStatusWithResponse performs a POST /v1/tickets/{ticketId}:set-status (the `TicketServiceSetTicketStatus` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSetTicketStatusWithResponse(ctx context.Context, ticketId string, body TicketServiceSetTicketStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSetTicketStatusResponse, error) { - rsp, err := c.TicketServiceSetTicketStatus(ctx, ticketId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSetTicketStatusResponse(rsp) -} - -// TicketServiceSearchTicketsWithBodyWithResponse performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSearchTicketsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TicketServiceSearchTicketsResponse, error) { - rsp, err := c.TicketServiceSearchTicketsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSearchTicketsResponse(rsp) -} - -// TicketServiceSearchTicketsWithResponse performs a POST /v1/tickets:search (the `TicketServiceSearchTickets` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) TicketServiceSearchTicketsWithResponse(ctx context.Context, body TicketServiceSearchTicketsJSONRequestBody, reqEditors ...RequestEditorFn) (*TicketServiceSearchTicketsResponse, error) { - rsp, err := c.TicketServiceSearchTickets(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseTicketServiceSearchTicketsResponse(rsp) -} - -// UsageReportServiceRecordUsageWithBodyWithResponse Record a single usage event (from Prometheus or other monitoring systems) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). -func (c *ClientWithResponses) UsageReportServiceRecordUsageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsageReportServiceRecordUsageResponse, error) { - rsp, err := c.UsageReportServiceRecordUsageWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceRecordUsageResponse(rsp) -} - -// UsageReportServiceRecordUsageWithResponse Record a single usage event (from Prometheus or other monitoring systems) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/usage/record (the `UsageReportServiceRecordUsage` operationId). -func (c *ClientWithResponses) UsageReportServiceRecordUsageWithResponse(ctx context.Context, body UsageReportServiceRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*UsageReportServiceRecordUsageResponse, error) { - rsp, err := c.UsageReportServiceRecordUsage(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceRecordUsageResponse(rsp) -} - -// UsageReportServiceBatchRecordUsageWithBodyWithResponse Batch record multiple usage events (for bulk ingestion) -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). -func (c *ClientWithResponses) UsageReportServiceBatchRecordUsageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsageReportServiceBatchRecordUsageResponse, error) { - rsp, err := c.UsageReportServiceBatchRecordUsageWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceBatchRecordUsageResponse(rsp) -} - -// UsageReportServiceBatchRecordUsageWithResponse Batch record multiple usage events (for bulk ingestion) -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/usage/record:batch (the `UsageReportServiceBatchRecordUsage` operationId). -func (c *ClientWithResponses) UsageReportServiceBatchRecordUsageWithResponse(ctx context.Context, body UsageReportServiceBatchRecordUsageJSONRequestBody, reqEditors ...RequestEditorFn) (*UsageReportServiceBatchRecordUsageResponse, error) { - rsp, err := c.UsageReportServiceBatchRecordUsage(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceBatchRecordUsageResponse(rsp) -} - -// UsageReportServiceListUsageRecordsWithResponse List usage records with filters -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/usage/records (the `UsageReportServiceListUsageRecords` operationId). -func (c *ClientWithResponses) UsageReportServiceListUsageRecordsWithResponse(ctx context.Context, params *UsageReportServiceListUsageRecordsParams, reqEditors ...RequestEditorFn) (*UsageReportServiceListUsageRecordsResponse, error) { - rsp, err := c.UsageReportServiceListUsageRecords(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceListUsageRecordsResponse(rsp) -} - -// UsageReportServiceGetUsageRecordWithResponse Get a specific usage record by ID -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/usage/records/{id} (the `UsageReportServiceGetUsageRecord` operationId). -func (c *ClientWithResponses) UsageReportServiceGetUsageRecordWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UsageReportServiceGetUsageRecordResponse, error) { - rsp, err := c.UsageReportServiceGetUsageRecord(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceGetUsageRecordResponse(rsp) -} - -// UsageReportServiceGetUsageReportWithResponse Get aggregated usage report for a billing period -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/usage/report (the `UsageReportServiceGetUsageReport` operationId). -func (c *ClientWithResponses) UsageReportServiceGetUsageReportWithResponse(ctx context.Context, params *UsageReportServiceGetUsageReportParams, reqEditors ...RequestEditorFn) (*UsageReportServiceGetUsageReportResponse, error) { - rsp, err := c.UsageReportServiceGetUsageReport(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUsageReportServiceGetUsageReportResponse(rsp) -} - -// UserServiceListUsersWithResponse performs a GET /v1/users (the `UserServiceListUsers` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceListUsersWithResponse(ctx context.Context, params *UserServiceListUsersParams, reqEditors ...RequestEditorFn) (*UserServiceListUsersResponse, error) { - rsp, err := c.UserServiceListUsers(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceListUsersResponse(rsp) -} - -// UserServiceDeleteUserWithResponse performs a DELETE /v1/users/{id} (the `UserServiceDeleteUser` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceDeleteUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UserServiceDeleteUserResponse, error) { - rsp, err := c.UserServiceDeleteUser(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceDeleteUserResponse(rsp) -} - -// UserServiceGetUserWithResponse performs a GET /v1/users/{id} (the `UserServiceGetUser` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceGetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*UserServiceGetUserResponse, error) { - rsp, err := c.UserServiceGetUser(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceGetUserResponse(rsp) -} - -// UserServiceUpdateUserWithBodyWithResponse performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceUpdateUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateUserResponse, error) { - rsp, err := c.UserServiceUpdateUserWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceUpdateUserResponse(rsp) -} - -// UserServiceUpdateUserWithResponse performs a PATCH /v1/users/{id} (the `UserServiceUpdateUser` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) UserServiceUpdateUserWithResponse(ctx context.Context, id string, body UserServiceUpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateUserResponse, error) { - rsp, err := c.UserServiceUpdateUser(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUserServiceUpdateUserResponse(rsp) -} - -// MetadataServiceGetVersionWithResponse performs a GET /v1/version (the `MetadataServiceGetVersion` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) MetadataServiceGetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetVersionResponse, error) { - rsp, err := c.MetadataServiceGetVersion(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseMetadataServiceGetVersionResponse(rsp) -} - -// VirtualMachineServiceListVirtualMachinesWithResponse performs a GET /v1/virtual-machines (the `VirtualMachineServiceListVirtualMachines` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceListVirtualMachinesWithResponse(ctx context.Context, params *VirtualMachineServiceListVirtualMachinesParams, reqEditors ...RequestEditorFn) (*VirtualMachineServiceListVirtualMachinesResponse, error) { - rsp, err := c.VirtualMachineServiceListVirtualMachines(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceListVirtualMachinesResponse(rsp) -} - -// VirtualMachineServiceCreateVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceCreateVirtualMachineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceCreateVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceCreateVirtualMachineWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceCreateVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceCreateVirtualMachineWithResponse performs a POST /v1/virtual-machines (the `VirtualMachineServiceCreateVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceCreateVirtualMachineWithResponse(ctx context.Context, body VirtualMachineServiceCreateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceCreateVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceCreateVirtualMachine(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceCreateVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceListVMTagsWithResponse ListVMTags returns all unique tags from virtual machines belonging to the organization -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/virtual-machines/tags (the `VirtualMachineServiceListVMTags` operationId). -func (c *ClientWithResponses) VirtualMachineServiceListVMTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*VirtualMachineServiceListVMTagsResponse, error) { - rsp, err := c.VirtualMachineServiceListVMTags(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceListVMTagsResponse(rsp) -} - -// VirtualMachineServiceDeleteVirtualMachineWithResponse performs a DELETE /v1/virtual-machines/{id} (the `VirtualMachineServiceDeleteVirtualMachine` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceDeleteVirtualMachineWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDeleteVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceDeleteVirtualMachine(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDeleteVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceGetVirtualMachineWithResponse performs a GET /v1/virtual-machines/{id} (the `VirtualMachineServiceGetVirtualMachine` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceGetVirtualMachineWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceGetVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceGetVirtualMachine(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceGetVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceUpdateVirtualMachineWithBodyWithResponse performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceUpdateVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceUpdateVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceUpdateVirtualMachineWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceUpdateVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceUpdateVirtualMachineWithResponse performs a PATCH /v1/virtual-machines/{id} (the `VirtualMachineServiceUpdateVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceUpdateVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceUpdateVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceUpdateVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceUpdateVirtualMachine(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceUpdateVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceGetVNCConsoleWithResponse GetVNCConsole returns WebSocket URL for VNC console access. -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /v1/virtual-machines/{id}/console (the `VirtualMachineServiceGetVNCConsole` operationId). -func (c *ClientWithResponses) VirtualMachineServiceGetVNCConsoleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VirtualMachineServiceGetVNCConsoleResponse, error) { - rsp, err := c.VirtualMachineServiceGetVNCConsole(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceGetVNCConsoleResponse(rsp) -} - -// VirtualMachineServiceAttachVMFirewallWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceAttachVMFirewallWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceAttachVMFirewallResponse, error) { - rsp, err := c.VirtualMachineServiceAttachVMFirewallWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceAttachVMFirewallResponse(rsp) -} - -// VirtualMachineServiceAttachVMFirewallWithResponse performs a POST /v1/virtual-machines/{id}:attach-firewall (the `VirtualMachineServiceAttachVMFirewall` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceAttachVMFirewallWithResponse(ctx context.Context, id string, body VirtualMachineServiceAttachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceAttachVMFirewallResponse, error) { - rsp, err := c.VirtualMachineServiceAttachVMFirewall(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceAttachVMFirewallResponse(rsp) -} - -// VirtualMachineServiceDetachVMFirewallWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceDetachVMFirewallWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDetachVMFirewallResponse, error) { - rsp, err := c.VirtualMachineServiceDetachVMFirewallWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDetachVMFirewallResponse(rsp) -} - -// VirtualMachineServiceDetachVMFirewallWithResponse performs a POST /v1/virtual-machines/{id}:detach-firewall (the `VirtualMachineServiceDetachVMFirewall` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceDetachVMFirewallWithResponse(ctx context.Context, id string, body VirtualMachineServiceDetachVMFirewallJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDetachVMFirewallResponse, error) { - rsp, err := c.VirtualMachineServiceDetachVMFirewall(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDetachVMFirewallResponse(rsp) -} - -// VirtualMachineServiceReinstallVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceReinstallVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceReinstallVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceReinstallVirtualMachineWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceReinstallVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceReinstallVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:reinstall (the `VirtualMachineServiceReinstallVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceReinstallVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceReinstallVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceReinstallVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceReinstallVirtualMachine(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceReinstallVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceRestartVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceRestartVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceRestartVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceRestartVirtualMachineWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceRestartVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceRestartVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:restart (the `VirtualMachineServiceRestartVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceRestartVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceRestartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceRestartVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceRestartVirtualMachine(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceRestartVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceStartVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceStartVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStartVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceStartVirtualMachineWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceStartVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceStartVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:start (the `VirtualMachineServiceStartVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceStartVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceStartVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStartVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceStartVirtualMachine(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceStartVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceStopVirtualMachineWithBodyWithResponse performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceStopVirtualMachineWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStopVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceStopVirtualMachineWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceStopVirtualMachineResponse(rsp) -} - -// VirtualMachineServiceStopVirtualMachineWithResponse performs a POST /v1/virtual-machines/{id}:stop (the `VirtualMachineServiceStopVirtualMachine` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VirtualMachineServiceStopVirtualMachineWithResponse(ctx context.Context, id string, body VirtualMachineServiceStopVirtualMachineJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceStopVirtualMachineResponse, error) { - rsp, err := c.VirtualMachineServiceStopVirtualMachine(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceStopVirtualMachineResponse(rsp) -} - -// BackupServiceListBackupsWithResponse performs a GET /v1/virtual-machines/{vmId}/backups (the `BackupServiceListBackups` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) BackupServiceListBackupsWithResponse(ctx context.Context, vmId string, params *BackupServiceListBackupsParams, reqEditors ...RequestEditorFn) (*BackupServiceListBackupsResponse, error) { - rsp, err := c.BackupServiceListBackups(ctx, vmId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseBackupServiceListBackupsResponse(rsp) -} - -// BackupServiceDeleteBackupWithResponse performs a DELETE /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceDeleteBackup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) BackupServiceDeleteBackupWithResponse(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*BackupServiceDeleteBackupResponse, error) { - rsp, err := c.BackupServiceDeleteBackup(ctx, vmId, backupId, reqEditors...) - if err != nil { - return nil, err - } - return ParseBackupServiceDeleteBackupResponse(rsp) -} - -// BackupServiceGetBackupWithResponse performs a GET /v1/virtual-machines/{vmId}/backups/{backupId} (the `BackupServiceGetBackup` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) BackupServiceGetBackupWithResponse(ctx context.Context, vmId string, backupId string, reqEditors ...RequestEditorFn) (*BackupServiceGetBackupResponse, error) { - rsp, err := c.BackupServiceGetBackup(ctx, vmId, backupId, reqEditors...) - if err != nil { - return nil, err - } - return ParseBackupServiceGetBackupResponse(rsp) -} - -// BackupServiceRestoreBackupWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) BackupServiceRestoreBackupWithBodyWithResponse(ctx context.Context, vmId string, backupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BackupServiceRestoreBackupResponse, error) { - rsp, err := c.BackupServiceRestoreBackupWithBody(ctx, vmId, backupId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseBackupServiceRestoreBackupResponse(rsp) -} - -// BackupServiceRestoreBackupWithResponse performs a POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore (the `BackupServiceRestoreBackup` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) BackupServiceRestoreBackupWithResponse(ctx context.Context, vmId string, backupId string, body BackupServiceRestoreBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*BackupServiceRestoreBackupResponse, error) { - rsp, err := c.BackupServiceRestoreBackup(ctx, vmId, backupId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseBackupServiceRestoreBackupResponse(rsp) -} - -// SnapshotServiceListSnapshotsWithResponse performs a GET /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceListSnapshots` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceListSnapshotsWithResponse(ctx context.Context, vmId string, params *SnapshotServiceListSnapshotsParams, reqEditors ...RequestEditorFn) (*SnapshotServiceListSnapshotsResponse, error) { - rsp, err := c.SnapshotServiceListSnapshots(ctx, vmId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceListSnapshotsResponse(rsp) -} - -// SnapshotServiceCreateSnapshotWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceCreateSnapshotWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotServiceCreateSnapshotResponse, error) { - rsp, err := c.SnapshotServiceCreateSnapshotWithBody(ctx, vmId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceCreateSnapshotResponse(rsp) -} - -// SnapshotServiceCreateSnapshotWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots (the `SnapshotServiceCreateSnapshot` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceCreateSnapshotWithResponse(ctx context.Context, vmId string, body SnapshotServiceCreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotServiceCreateSnapshotResponse, error) { - rsp, err := c.SnapshotServiceCreateSnapshot(ctx, vmId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceCreateSnapshotResponse(rsp) -} - -// SnapshotServiceDeleteSnapshotWithResponse performs a DELETE /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceDeleteSnapshot` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceDeleteSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*SnapshotServiceDeleteSnapshotResponse, error) { - rsp, err := c.SnapshotServiceDeleteSnapshot(ctx, vmId, snapshotId, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceDeleteSnapshotResponse(rsp) -} - -// SnapshotServiceGetSnapshotWithResponse performs a GET /v1/virtual-machines/{vmId}/snapshots/{snapshotId} (the `SnapshotServiceGetSnapshot` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceGetSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, reqEditors ...RequestEditorFn) (*SnapshotServiceGetSnapshotResponse, error) { - rsp, err := c.SnapshotServiceGetSnapshot(ctx, vmId, snapshotId, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceGetSnapshotResponse(rsp) -} - -// SnapshotServiceRestoreSnapshotWithBodyWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceRestoreSnapshotWithBodyWithResponse(ctx context.Context, vmId string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotServiceRestoreSnapshotResponse, error) { - rsp, err := c.SnapshotServiceRestoreSnapshotWithBody(ctx, vmId, snapshotId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceRestoreSnapshotResponse(rsp) -} - -// SnapshotServiceRestoreSnapshotWithResponse performs a POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore (the `SnapshotServiceRestoreSnapshot` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) SnapshotServiceRestoreSnapshotWithResponse(ctx context.Context, vmId string, snapshotId string, body SnapshotServiceRestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotServiceRestoreSnapshotResponse, error) { - rsp, err := c.SnapshotServiceRestoreSnapshot(ctx, vmId, snapshotId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSnapshotServiceRestoreSnapshotResponse(rsp) -} - -// VirtualMachineServiceDisableAdditionalIPWithBodyWithResponse DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). -func (c *ClientWithResponses) VirtualMachineServiceDisableAdditionalIPWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableAdditionalIPResponse, error) { - rsp, err := c.VirtualMachineServiceDisableAdditionalIPWithBody(ctx, vmId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDisableAdditionalIPResponse(rsp) -} - -// VirtualMachineServiceDisableAdditionalIPWithResponse DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-additional-ip (the `VirtualMachineServiceDisableAdditionalIP` operationId). -func (c *ClientWithResponses) VirtualMachineServiceDisableAdditionalIPWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceDisableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableAdditionalIPResponse, error) { - rsp, err := c.VirtualMachineServiceDisableAdditionalIP(ctx, vmId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDisableAdditionalIPResponse(rsp) -} - -// VirtualMachineServiceDisableBackupWithBodyWithResponse DisableBackup disables backup addon for a virtual machine -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). -func (c *ClientWithResponses) VirtualMachineServiceDisableBackupWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableBackupResponse, error) { - rsp, err := c.VirtualMachineServiceDisableBackupWithBody(ctx, vmId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDisableBackupResponse(rsp) -} - -// VirtualMachineServiceDisableBackupWithResponse DisableBackup disables backup addon for a virtual machine -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:disable-backup (the `VirtualMachineServiceDisableBackup` operationId). -func (c *ClientWithResponses) VirtualMachineServiceDisableBackupWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceDisableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceDisableBackupResponse, error) { - rsp, err := c.VirtualMachineServiceDisableBackup(ctx, vmId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceDisableBackupResponse(rsp) -} - -// VirtualMachineServiceEnableAdditionalIPWithBodyWithResponse EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). -func (c *ClientWithResponses) VirtualMachineServiceEnableAdditionalIPWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableAdditionalIPResponse, error) { - rsp, err := c.VirtualMachineServiceEnableAdditionalIPWithBody(ctx, vmId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceEnableAdditionalIPResponse(rsp) -} - -// VirtualMachineServiceEnableAdditionalIPWithResponse EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-additional-ip (the `VirtualMachineServiceEnableAdditionalIP` operationId). -func (c *ClientWithResponses) VirtualMachineServiceEnableAdditionalIPWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceEnableAdditionalIPJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableAdditionalIPResponse, error) { - rsp, err := c.VirtualMachineServiceEnableAdditionalIP(ctx, vmId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceEnableAdditionalIPResponse(rsp) -} - -// VirtualMachineServiceEnableBackupWithBodyWithResponse EnableBackup enables backup addon for a virtual machine -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). -func (c *ClientWithResponses) VirtualMachineServiceEnableBackupWithBodyWithResponse(ctx context.Context, vmId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableBackupResponse, error) { - rsp, err := c.VirtualMachineServiceEnableBackupWithBody(ctx, vmId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceEnableBackupResponse(rsp) -} - -// VirtualMachineServiceEnableBackupWithResponse EnableBackup enables backup addon for a virtual machine -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /v1/virtual-machines/{vmId}:enable-backup (the `VirtualMachineServiceEnableBackup` operationId). -func (c *ClientWithResponses) VirtualMachineServiceEnableBackupWithResponse(ctx context.Context, vmId string, body VirtualMachineServiceEnableBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*VirtualMachineServiceEnableBackupResponse, error) { - rsp, err := c.VirtualMachineServiceEnableBackup(ctx, vmId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVirtualMachineServiceEnableBackupResponse(rsp) -} - -// VMTemplateServiceCreateVMTemplateWithBodyWithResponse performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceCreateVMTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VMTemplateServiceCreateVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceCreateVMTemplateWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceCreateVMTemplateResponse(rsp) -} - -// VMTemplateServiceCreateVMTemplateWithResponse performs a POST /v1/vmtemplate (the `VMTemplateServiceCreateVMTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceCreateVMTemplateWithResponse(ctx context.Context, body VMTemplateServiceCreateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*VMTemplateServiceCreateVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceCreateVMTemplate(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceCreateVMTemplateResponse(rsp) -} - -// VMTemplateServiceDeleteVMTemplateWithResponse performs a DELETE /v1/vmtemplate/{id} (the `VMTemplateServiceDeleteVMTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceDeleteVMTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VMTemplateServiceDeleteVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceDeleteVMTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceDeleteVMTemplateResponse(rsp) -} - -// VMTemplateServiceGetVMTemplateWithResponse performs a GET /v1/vmtemplate/{id} (the `VMTemplateServiceGetVMTemplate` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceGetVMTemplateWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*VMTemplateServiceGetVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceGetVMTemplate(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceGetVMTemplateResponse(rsp) -} - -// VMTemplateServiceUpdateVMTemplateWithBodyWithResponse performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request, -// with any type of body and a specified content type. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceUpdateVMTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VMTemplateServiceUpdateVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceUpdateVMTemplateWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceUpdateVMTemplateResponse(rsp) -} - -// VMTemplateServiceUpdateVMTemplateWithResponse performs a PATCH /v1/vmtemplate/{id} (the `VMTemplateServiceUpdateVMTemplate` operationId) request. -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceUpdateVMTemplateWithResponse(ctx context.Context, id string, body VMTemplateServiceUpdateVMTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*VMTemplateServiceUpdateVMTemplateResponse, error) { - rsp, err := c.VMTemplateServiceUpdateVMTemplate(ctx, id, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceUpdateVMTemplateResponse(rsp) -} - -// VMTemplateServiceListVMTemplatesWithResponse performs a GET /v1/vmtemplates (the `VMTemplateServiceListVMTemplates` operationId) request. -// -// Returns a wrapper object for the known response body format(s). -func (c *ClientWithResponses) VMTemplateServiceListVMTemplatesWithResponse(ctx context.Context, params *VMTemplateServiceListVMTemplatesParams, reqEditors ...RequestEditorFn) (*VMTemplateServiceListVMTemplatesResponse, error) { - rsp, err := c.VMTemplateServiceListVMTemplates(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseVMTemplateServiceListVMTemplatesResponse(rsp) -} - -// ParseWebhookServiceHandleWebhookResponse parses an HTTP response from a WebhookServiceHandleWebhookWithResponse call -func ParseWebhookServiceHandleWebhookResponse(rsp *http.Response) (*WebhookServiceHandleWebhookResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &WebhookServiceHandleWebhookResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1HandleWebhookResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceRemoveAddonResponse parses an HTTP response from a AddonServiceRemoveAddonWithResponse call -func ParseAddonServiceRemoveAddonResponse(rsp *http.Response) (*AddonServiceRemoveAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceRemoveAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1RemoveAddonResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceListAddonsResponse parses an HTTP response from a AddonServiceListAddonsWithResponse call -func ParseAddonServiceListAddonsResponse(rsp *http.Response) (*AddonServiceListAddonsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceListAddonsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAddonsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceCreateAddonResponse parses an HTTP response from a AddonServiceCreateAddonWithResponse call -func ParseAddonServiceCreateAddonResponse(rsp *http.Response) (*AddonServiceCreateAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceCreateAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceDeleteAddonResponse parses an HTTP response from a AddonServiceDeleteAddonWithResponse call -func ParseAddonServiceDeleteAddonResponse(rsp *http.Response) (*AddonServiceDeleteAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceDeleteAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceGetAddonResponse parses an HTTP response from a AddonServiceGetAddonWithResponse call -func ParseAddonServiceGetAddonResponse(rsp *http.Response) (*AddonServiceGetAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceGetAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetAddonResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAddonServiceUpdateAddonResponse parses an HTTP response from a AddonServiceUpdateAddonWithResponse call -func ParseAddonServiceUpdateAddonResponse(rsp *http.Response) (*AddonServiceUpdateAddonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AddonServiceUpdateAddonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceListAgentsResponse parses an HTTP response from a AgentServiceListAgentsWithResponse call -func ParseAgentServiceListAgentsResponse(rsp *http.Response) (*AgentServiceListAgentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceListAgentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAgentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceCreateAgentResponse parses an HTTP response from a AgentServiceCreateAgentWithResponse call -func ParseAgentServiceCreateAgentResponse(rsp *http.Response) (*AgentServiceCreateAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceCreateAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetAgentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceDeleteAgentResponse parses an HTTP response from a AgentServiceDeleteAgentWithResponse call -func ParseAgentServiceDeleteAgentResponse(rsp *http.Response) (*AgentServiceDeleteAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceDeleteAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceGetAgentResponse parses an HTTP response from a AgentServiceGetAgentWithResponse call -func ParseAgentServiceGetAgentResponse(rsp *http.Response) (*AgentServiceGetAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceGetAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetAgentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceUpdateAgentResponse parses an HTTP response from a AgentServiceUpdateAgentWithResponse call -func ParseAgentServiceUpdateAgentResponse(rsp *http.Response) (*AgentServiceUpdateAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceUpdateAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateAgentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceGenerateInstallCommandResponse parses an HTTP response from a AgentServiceGenerateInstallCommandWithResponse call -func ParseAgentServiceGenerateInstallCommandResponse(rsp *http.Response) (*AgentServiceGenerateInstallCommandResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceGenerateInstallCommandResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GenerateInstallCommandResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceGeneratePeeringConfigResponse parses an HTTP response from a AgentServiceGeneratePeeringConfigWithResponse call -func ParseAgentServiceGeneratePeeringConfigResponse(rsp *http.Response) (*AgentServiceGeneratePeeringConfigResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceGeneratePeeringConfigResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GeneratePeeringConfigResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseAgentServiceUploadInboundPeeringConfigResponse parses an HTTP response from a AgentServiceUploadInboundPeeringConfigWithResponse call -func ParseAgentServiceUploadInboundPeeringConfigResponse(rsp *http.Response) (*AgentServiceUploadInboundPeeringConfigResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &AgentServiceUploadInboundPeeringConfigResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UploadInboundPeeringConfigResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceChangePasswordResponse parses an HTTP response from a UserServiceChangePasswordWithResponse call -func ParseUserServiceChangePasswordResponse(rsp *http.Response) (*UserServiceChangePasswordResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceChangePasswordResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceForgotPasswordResponse parses an HTTP response from a UserServiceForgotPasswordWithResponse call -func ParseUserServiceForgotPasswordResponse(rsp *http.Response) (*UserServiceForgotPasswordResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceForgotPasswordResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceListLinkedIdentitiesResponse parses an HTTP response from a UserServiceListLinkedIdentitiesWithResponse call -func ParseUserServiceListLinkedIdentitiesResponse(rsp *http.Response) (*UserServiceListLinkedIdentitiesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceListLinkedIdentitiesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListLinkedIdentitiesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceUnlinkIdentityResponse parses an HTTP response from a UserServiceUnlinkIdentityWithResponse call -func ParseUserServiceUnlinkIdentityResponse(rsp *http.Response) (*UserServiceUnlinkIdentityResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceUnlinkIdentityResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceLoginResponse parses an HTTP response from a UserServiceLoginWithResponse call -func ParseUserServiceLoginResponse(rsp *http.Response) (*UserServiceLoginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceLoginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1LoginResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceLoginMfaVerifyResponse parses an HTTP response from a UserServiceLoginMfaVerifyWithResponse call -func ParseUserServiceLoginMfaVerifyResponse(rsp *http.Response) (*UserServiceLoginMfaVerifyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceLoginMfaVerifyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1LoginResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceLogoutResponse parses an HTTP response from a UserServiceLogoutWithResponse call -func ParseUserServiceLogoutResponse(rsp *http.Response) (*UserServiceLogoutResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceLogoutResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceRegenerateMfaBackupCodesResponse parses an HTTP response from a UserServiceRegenerateMfaBackupCodesWithResponse call -func ParseUserServiceRegenerateMfaBackupCodesResponse(rsp *http.Response) (*UserServiceRegenerateMfaBackupCodesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceRegenerateMfaBackupCodesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1RegenerateMfaBackupCodesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceDisableMfaResponse parses an HTTP response from a UserServiceDisableMfaWithResponse call -func ParseUserServiceDisableMfaResponse(rsp *http.Response) (*UserServiceDisableMfaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceDisableMfaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceEnrollMfaTotpResponse parses an HTTP response from a UserServiceEnrollMfaTotpWithResponse call -func ParseUserServiceEnrollMfaTotpResponse(rsp *http.Response) (*UserServiceEnrollMfaTotpResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceEnrollMfaTotpResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1EnrollMfaTotpResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceGetMfaStatusResponse parses an HTTP response from a UserServiceGetMfaStatusWithResponse call -func ParseUserServiceGetMfaStatusResponse(rsp *http.Response) (*UserServiceGetMfaStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceGetMfaStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetMfaStatusResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceVerifyMfaEnrollmentResponse parses an HTTP response from a UserServiceVerifyMfaEnrollmentWithResponse call -func ParseUserServiceVerifyMfaEnrollmentResponse(rsp *http.Response) (*UserServiceVerifyMfaEnrollmentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceVerifyMfaEnrollmentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VerifyMfaEnrollmentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceRegisterUserResponse parses an HTTP response from a UserServiceRegisterUserWithResponse call -func ParseUserServiceRegisterUserResponse(rsp *http.Response) (*UserServiceRegisterUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceRegisterUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceResendVerificationEmailResponse parses an HTTP response from a UserServiceResendVerificationEmailWithResponse call -func ParseUserServiceResendVerificationEmailResponse(rsp *http.Response) (*UserServiceResendVerificationEmailResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceResendVerificationEmailResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceResetPasswordResponse parses an HTTP response from a UserServiceResetPasswordWithResponse call -func ParseUserServiceResetPasswordResponse(rsp *http.Response) (*UserServiceResetPasswordResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceResetPasswordResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceGetActiveSessionsResponse parses an HTTP response from a UserServiceGetActiveSessionsWithResponse call -func ParseUserServiceGetActiveSessionsResponse(rsp *http.Response) (*UserServiceGetActiveSessionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceGetActiveSessionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetActiveSessionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceSetPasswordResponse parses an HTTP response from a UserServiceSetPasswordWithResponse call -func ParseUserServiceSetPasswordResponse(rsp *http.Response) (*UserServiceSetPasswordResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceSetPasswordResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceExchangeSSOCodeResponse parses an HTTP response from a UserServiceExchangeSSOCodeWithResponse call -func ParseUserServiceExchangeSSOCodeResponse(rsp *http.Response) (*UserServiceExchangeSSOCodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceExchangeSSOCodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1LoginResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceCompleteSSOLinkResponse parses an HTTP response from a UserServiceCompleteSSOLinkWithResponse call -func ParseUserServiceCompleteSSOLinkResponse(rsp *http.Response) (*UserServiceCompleteSSOLinkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceCompleteSSOLinkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1LoginResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseUserServiceVerifyEmailResponse parses an HTTP response from a UserServiceVerifyEmailWithResponse call -func ParseUserServiceVerifyEmailResponse(rsp *http.Response) (*UserServiceVerifyEmailResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &UserServiceVerifyEmailResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseChatServiceChatResponse parses an HTTP response from a ChatServiceChatWithResponse call -func ParseChatServiceChatResponse(rsp *http.Response) (*ChatServiceChatResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ChatServiceChatResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ChatResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseChatServiceChatAnonymousResponse parses an HTTP response from a ChatServiceChatAnonymousWithResponse call -func ParseChatServiceChatAnonymousResponse(rsp *http.Response) (*ChatServiceChatAnonymousResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ChatServiceChatAnonymousResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ChatResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseChatServiceListConversationsResponse parses an HTTP response from a ChatServiceListConversationsWithResponse call -func ParseChatServiceListConversationsResponse(rsp *http.Response) (*ChatServiceListConversationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ChatServiceListConversationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListConversationsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseChatServiceDeleteConversationResponse parses an HTTP response from a ChatServiceDeleteConversationWithResponse call -func ParseChatServiceDeleteConversationResponse(rsp *http.Response) (*ChatServiceDeleteConversationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ChatServiceDeleteConversationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseChatServiceGetConversationHistoryResponse parses an HTTP response from a ChatServiceGetConversationHistoryWithResponse call -func ParseChatServiceGetConversationHistoryResponse(rsp *http.Response) (*ChatServiceGetConversationHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ChatServiceGetConversationHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetConversationHistoryResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientDashboardServiceGetClientDashboardBillingResponse parses an HTTP response from a ClientDashboardServiceGetClientDashboardBillingWithResponse call -func ParseClientDashboardServiceGetClientDashboardBillingResponse(rsp *http.Response) (*ClientDashboardServiceGetClientDashboardBillingResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientDashboardServiceGetClientDashboardBillingResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetClientDashboardBillingResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientDashboardServiceGetClientDashboardSummaryResponse parses an HTTP response from a ClientDashboardServiceGetClientDashboardSummaryWithResponse call -func ParseClientDashboardServiceGetClientDashboardSummaryResponse(rsp *http.Response) (*ClientDashboardServiceGetClientDashboardSummaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientDashboardServiceGetClientDashboardSummaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetClientDashboardSummaryResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientProviderReviewServiceListClientProviderReviewAssetsResponse parses an HTTP response from a ClientProviderReviewServiceListClientProviderReviewAssetsWithResponse call -func ParseClientProviderReviewServiceListClientProviderReviewAssetsResponse(rsp *http.Response) (*ClientProviderReviewServiceListClientProviderReviewAssetsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientProviderReviewServiceListClientProviderReviewAssetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListClientProviderReviewAssetsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitTemplateServiceCreateCloudInitTemplateResponse parses an HTTP response from a CloudInitTemplateServiceCreateCloudInitTemplateWithResponse call -func ParseCloudInitTemplateServiceCreateCloudInitTemplateResponse(rsp *http.Response) (*CloudInitTemplateServiceCreateCloudInitTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitTemplateServiceCreateCloudInitTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitTemplateServiceDeleteCloudInitTemplateResponse parses an HTTP response from a CloudInitTemplateServiceDeleteCloudInitTemplateWithResponse call -func ParseCloudInitTemplateServiceDeleteCloudInitTemplateResponse(rsp *http.Response) (*CloudInitTemplateServiceDeleteCloudInitTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitTemplateServiceDeleteCloudInitTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitTemplateServiceGetCloudInitTemplateResponse parses an HTTP response from a CloudInitTemplateServiceGetCloudInitTemplateWithResponse call -func ParseCloudInitTemplateServiceGetCloudInitTemplateResponse(rsp *http.Response) (*CloudInitTemplateServiceGetCloudInitTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitTemplateServiceGetCloudInitTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetCloudInitTemplateResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitTemplateServiceUpdateCloudInitTemplateResponse parses an HTTP response from a CloudInitTemplateServiceUpdateCloudInitTemplateWithResponse call -func ParseCloudInitTemplateServiceUpdateCloudInitTemplateResponse(rsp *http.Response) (*CloudInitTemplateServiceUpdateCloudInitTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitTemplateServiceUpdateCloudInitTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateCloudInitTemplateResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitTemplateServiceListCloudInitTemplatesResponse parses an HTTP response from a CloudInitTemplateServiceListCloudInitTemplatesWithResponse call -func ParseCloudInitTemplateServiceListCloudInitTemplatesResponse(rsp *http.Response) (*CloudInitTemplateServiceListCloudInitTemplatesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitTemplateServiceListCloudInitTemplatesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListCloudInitTemplatesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitUserDataServiceListCloudInitUserDataResponse parses an HTTP response from a CloudInitUserDataServiceListCloudInitUserDataWithResponse call -func ParseCloudInitUserDataServiceListCloudInitUserDataResponse(rsp *http.Response) (*CloudInitUserDataServiceListCloudInitUserDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitUserDataServiceListCloudInitUserDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListCloudInitUserDataResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitUserDataServiceCreateCloudInitUserDataResponse parses an HTTP response from a CloudInitUserDataServiceCreateCloudInitUserDataWithResponse call -func ParseCloudInitUserDataServiceCreateCloudInitUserDataResponse(rsp *http.Response) (*CloudInitUserDataServiceCreateCloudInitUserDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitUserDataServiceCreateCloudInitUserDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CloudInitUserData - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitUserDataServiceDeleteCloudInitUserDataResponse parses an HTTP response from a CloudInitUserDataServiceDeleteCloudInitUserDataWithResponse call -func ParseCloudInitUserDataServiceDeleteCloudInitUserDataResponse(rsp *http.Response) (*CloudInitUserDataServiceDeleteCloudInitUserDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitUserDataServiceDeleteCloudInitUserDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitUserDataServiceGetCloudInitUserDataResponse parses an HTTP response from a CloudInitUserDataServiceGetCloudInitUserDataWithResponse call -func ParseCloudInitUserDataServiceGetCloudInitUserDataResponse(rsp *http.Response) (*CloudInitUserDataServiceGetCloudInitUserDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitUserDataServiceGetCloudInitUserDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CloudInitUserData - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCloudInitUserDataServiceUpdateCloudInitUserDataResponse parses an HTTP response from a CloudInitUserDataServiceUpdateCloudInitUserDataWithResponse call -func ParseCloudInitUserDataServiceUpdateCloudInitUserDataResponse(rsp *http.Response) (*CloudInitUserDataServiceUpdateCloudInitUserDataResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CloudInitUserDataServiceUpdateCloudInitUserDataResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CloudInitUserData - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseRegionServiceListCountriesCitiesResponse parses an HTTP response from a RegionServiceListCountriesCitiesWithResponse call -func ParseRegionServiceListCountriesCitiesResponse(rsp *http.Response) (*RegionServiceListCountriesCitiesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &RegionServiceListCountriesCitiesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListCountriesCitiesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCreditServiceGetCreditBalanceResponse parses an HTTP response from a CreditServiceGetCreditBalanceWithResponse call -func ParseCreditServiceGetCreditBalanceResponse(rsp *http.Response) (*CreditServiceGetCreditBalanceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreditServiceGetCreditBalanceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetCreditBalanceResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCreditServiceListCreditLedgerEntriesResponse parses an HTTP response from a CreditServiceListCreditLedgerEntriesWithResponse call -func ParseCreditServiceListCreditLedgerEntriesResponse(rsp *http.Response) (*CreditServiceListCreditLedgerEntriesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreditServiceListCreditLedgerEntriesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListCreditLedgerEntriesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseCreditServicePurchaseCreditsResponse parses an HTTP response from a CreditServicePurchaseCreditsWithResponse call -func ParseCreditServicePurchaseCreditsResponse(rsp *http.Response) (*CreditServicePurchaseCreditsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreditServicePurchaseCreditsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1PurchaseCreditsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseRegionServiceListDatacentersResponse parses an HTTP response from a RegionServiceListDatacentersWithResponse call -func ParseRegionServiceListDatacentersResponse(rsp *http.Response) (*RegionServiceListDatacentersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &RegionServiceListDatacentersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDatacentersResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseDomainServiceGetDomainResponse parses an HTTP response from a DomainServiceGetDomainWithResponse call -func ParseDomainServiceGetDomainResponse(rsp *http.Response) (*DomainServiceGetDomainResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DomainServiceGetDomainResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetDomainResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseDomainServiceCreateDomainResponse parses an HTTP response from a DomainServiceCreateDomainWithResponse call -func ParseDomainServiceCreateDomainResponse(rsp *http.Response) (*DomainServiceCreateDomainResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DomainServiceCreateDomainResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseDomainServiceVerifyDomainResponse parses an HTTP response from a DomainServiceVerifyDomainWithResponse call -func ParseDomainServiceVerifyDomainResponse(rsp *http.Response) (*DomainServiceVerifyDomainResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DomainServiceVerifyDomainResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseDomainServiceDeleteDomainResponse parses an HTTP response from a DomainServiceDeleteDomainWithResponse call -func ParseDomainServiceDeleteDomainResponse(rsp *http.Response) (*DomainServiceDeleteDomainResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DomainServiceDeleteDomainResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseEnvironmentVariableServiceListEnvironmentVariablesResponse parses an HTTP response from a EnvironmentVariableServiceListEnvironmentVariablesWithResponse call -func ParseEnvironmentVariableServiceListEnvironmentVariablesResponse(rsp *http.Response) (*EnvironmentVariableServiceListEnvironmentVariablesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EnvironmentVariableServiceListEnvironmentVariablesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListEnvironmentVariablesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseEnvironmentVariableServiceCreateEnvironmentVariableResponse parses an HTTP response from a EnvironmentVariableServiceCreateEnvironmentVariableWithResponse call -func ParseEnvironmentVariableServiceCreateEnvironmentVariableResponse(rsp *http.Response) (*EnvironmentVariableServiceCreateEnvironmentVariableResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EnvironmentVariableServiceCreateEnvironmentVariableResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseEnvironmentVariableServiceDeleteEnvironmentVariableResponse parses an HTTP response from a EnvironmentVariableServiceDeleteEnvironmentVariableWithResponse call -func ParseEnvironmentVariableServiceDeleteEnvironmentVariableResponse(rsp *http.Response) (*EnvironmentVariableServiceDeleteEnvironmentVariableResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EnvironmentVariableServiceDeleteEnvironmentVariableResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseEnvironmentVariableServiceGetEnvironmentVariableResponse parses an HTTP response from a EnvironmentVariableServiceGetEnvironmentVariableWithResponse call -func ParseEnvironmentVariableServiceGetEnvironmentVariableResponse(rsp *http.Response) (*EnvironmentVariableServiceGetEnvironmentVariableResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EnvironmentVariableServiceGetEnvironmentVariableResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetEnvironmentVariableResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseEnvironmentVariableServiceUpdateEnvironmentVariableResponse parses an HTTP response from a EnvironmentVariableServiceUpdateEnvironmentVariableWithResponse call -func ParseEnvironmentVariableServiceUpdateEnvironmentVariableResponse(rsp *http.Response) (*EnvironmentVariableServiceUpdateEnvironmentVariableResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EnvironmentVariableServiceUpdateEnvironmentVariableResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseExchangeRateServiceConvertCurrencyResponse parses an HTTP response from a ExchangeRateServiceConvertCurrencyWithResponse call -func ParseExchangeRateServiceConvertCurrencyResponse(rsp *http.Response) (*ExchangeRateServiceConvertCurrencyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExchangeRateServiceConvertCurrencyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ConvertCurrencyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseExchangeRateServiceListSupportedCurrenciesResponse parses an HTTP response from a ExchangeRateServiceListSupportedCurrenciesWithResponse call -func ParseExchangeRateServiceListSupportedCurrenciesResponse(rsp *http.Response) (*ExchangeRateServiceListSupportedCurrenciesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExchangeRateServiceListSupportedCurrenciesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListSupportedCurrenciesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseExchangeRateServiceGetExchangeRateResponse parses an HTTP response from a ExchangeRateServiceGetExchangeRateWithResponse call -func ParseExchangeRateServiceGetExchangeRateResponse(rsp *http.Response) (*ExchangeRateServiceGetExchangeRateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExchangeRateServiceGetExchangeRateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetExchangeRateResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseExchangeRateServiceGetAllExchangeRatesResponse parses an HTTP response from a ExchangeRateServiceGetAllExchangeRatesWithResponse call -func ParseExchangeRateServiceGetAllExchangeRatesResponse(rsp *http.Response) (*ExchangeRateServiceGetAllExchangeRatesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ExchangeRateServiceGetAllExchangeRatesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetAllExchangeRatesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceListFirewallAddressGroupsResponse parses an HTTP response from a FirewallServiceListFirewallAddressGroupsWithResponse call -func ParseFirewallServiceListFirewallAddressGroupsResponse(rsp *http.Response) (*FirewallServiceListFirewallAddressGroupsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceListFirewallAddressGroupsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListFirewallAddressGroupsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceCreateFirewallAddressGroupResponse parses an HTTP response from a FirewallServiceCreateFirewallAddressGroupWithResponse call -func ParseFirewallServiceCreateFirewallAddressGroupResponse(rsp *http.Response) (*FirewallServiceCreateFirewallAddressGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceCreateFirewallAddressGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceDeleteFirewallAddressGroupResponse parses an HTTP response from a FirewallServiceDeleteFirewallAddressGroupWithResponse call -func ParseFirewallServiceDeleteFirewallAddressGroupResponse(rsp *http.Response) (*FirewallServiceDeleteFirewallAddressGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceDeleteFirewallAddressGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceGetFirewallAddressGroupResponse parses an HTTP response from a FirewallServiceGetFirewallAddressGroupWithResponse call -func ParseFirewallServiceGetFirewallAddressGroupResponse(rsp *http.Response) (*FirewallServiceGetFirewallAddressGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceGetFirewallAddressGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallAddressGroup - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceUpdateFirewallAddressGroupResponse parses an HTTP response from a FirewallServiceUpdateFirewallAddressGroupWithResponse call -func ParseFirewallServiceUpdateFirewallAddressGroupResponse(rsp *http.Response) (*FirewallServiceUpdateFirewallAddressGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceUpdateFirewallAddressGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallAddressGroup - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceDeleteFirewallRuleResponse parses an HTTP response from a FirewallServiceDeleteFirewallRuleWithResponse call -func ParseFirewallServiceDeleteFirewallRuleResponse(rsp *http.Response) (*FirewallServiceDeleteFirewallRuleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceDeleteFirewallRuleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceGetFirewallRuleResponse parses an HTTP response from a FirewallServiceGetFirewallRuleWithResponse call -func ParseFirewallServiceGetFirewallRuleResponse(rsp *http.Response) (*FirewallServiceGetFirewallRuleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceGetFirewallRuleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallRuleResource - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceUpdateFirewallRuleResponse parses an HTTP response from a FirewallServiceUpdateFirewallRuleWithResponse call -func ParseFirewallServiceUpdateFirewallRuleResponse(rsp *http.Response) (*FirewallServiceUpdateFirewallRuleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceUpdateFirewallRuleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallRuleResource - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceMoveFirewallRuleResponse parses an HTTP response from a FirewallServiceMoveFirewallRuleWithResponse call -func ParseFirewallServiceMoveFirewallRuleResponse(rsp *http.Response) (*FirewallServiceMoveFirewallRuleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceMoveFirewallRuleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallRuleResource - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceListFirewallRuleSetsResponse parses an HTTP response from a FirewallServiceListFirewallRuleSetsWithResponse call -func ParseFirewallServiceListFirewallRuleSetsResponse(rsp *http.Response) (*FirewallServiceListFirewallRuleSetsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceListFirewallRuleSetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListFirewallRuleSetsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceCreateFirewallRuleSetResponse parses an HTTP response from a FirewallServiceCreateFirewallRuleSetWithResponse call -func ParseFirewallServiceCreateFirewallRuleSetResponse(rsp *http.Response) (*FirewallServiceCreateFirewallRuleSetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceCreateFirewallRuleSetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceDeleteFirewallRuleSetResponse parses an HTTP response from a FirewallServiceDeleteFirewallRuleSetWithResponse call -func ParseFirewallServiceDeleteFirewallRuleSetResponse(rsp *http.Response) (*FirewallServiceDeleteFirewallRuleSetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceDeleteFirewallRuleSetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceGetFirewallRuleSetResponse parses an HTTP response from a FirewallServiceGetFirewallRuleSetWithResponse call -func ParseFirewallServiceGetFirewallRuleSetResponse(rsp *http.Response) (*FirewallServiceGetFirewallRuleSetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceGetFirewallRuleSetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallRuleSet - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceUpdateFirewallRuleSetResponse parses an HTTP response from a FirewallServiceUpdateFirewallRuleSetWithResponse call -func ParseFirewallServiceUpdateFirewallRuleSetResponse(rsp *http.Response) (*FirewallServiceUpdateFirewallRuleSetResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceUpdateFirewallRuleSetResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1FirewallRuleSet - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceListFirewallRulesResponse parses an HTTP response from a FirewallServiceListFirewallRulesWithResponse call -func ParseFirewallServiceListFirewallRulesResponse(rsp *http.Response) (*FirewallServiceListFirewallRulesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceListFirewallRulesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListFirewallRulesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseFirewallServiceCreateFirewallRuleResponse parses an HTTP response from a FirewallServiceCreateFirewallRuleWithResponse call -func ParseFirewallServiceCreateFirewallRuleResponse(rsp *http.Response) (*FirewallServiceCreateFirewallRuleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &FirewallServiceCreateFirewallRuleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceListGroupsResponse parses an HTTP response from a GroupServiceListGroupsWithResponse call -func ParseGroupServiceListGroupsResponse(rsp *http.Response) (*GroupServiceListGroupsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceListGroupsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListGroupsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceCreateGroupResponse parses an HTTP response from a GroupServiceCreateGroupWithResponse call -func ParseGroupServiceCreateGroupResponse(rsp *http.Response) (*GroupServiceCreateGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceCreateGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceAddServiceAccountToGroupResponse parses an HTTP response from a GroupServiceAddServiceAccountToGroupWithResponse call -func ParseGroupServiceAddServiceAccountToGroupResponse(rsp *http.Response) (*GroupServiceAddServiceAccountToGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceAddServiceAccountToGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceAddUserToGroupResponse parses an HTTP response from a GroupServiceAddUserToGroupWithResponse call -func ParseGroupServiceAddUserToGroupResponse(rsp *http.Response) (*GroupServiceAddUserToGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceAddUserToGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceRemoveServiceAccountFromGroupResponse parses an HTTP response from a GroupServiceRemoveServiceAccountFromGroupWithResponse call -func ParseGroupServiceRemoveServiceAccountFromGroupResponse(rsp *http.Response) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceRemoveServiceAccountFromGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceRemoveUserFromGroupResponse parses an HTTP response from a GroupServiceRemoveUserFromGroupWithResponse call -func ParseGroupServiceRemoveUserFromGroupResponse(rsp *http.Response) (*GroupServiceRemoveUserFromGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceRemoveUserFromGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceDeleteGroupResponse parses an HTTP response from a GroupServiceDeleteGroupWithResponse call -func ParseGroupServiceDeleteGroupResponse(rsp *http.Response) (*GroupServiceDeleteGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceDeleteGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceGetGroupResponse parses an HTTP response from a GroupServiceGetGroupWithResponse call -func ParseGroupServiceGetGroupResponse(rsp *http.Response) (*GroupServiceGetGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceGetGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetGroupResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseGroupServiceUpdateGroupResponse parses an HTTP response from a GroupServiceUpdateGroupWithResponse call -func ParseGroupServiceUpdateGroupResponse(rsp *http.Response) (*GroupServiceUpdateGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GroupServiceUpdateGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateGroupResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetadataServiceHealthCheckResponse parses an HTTP response from a MetadataServiceHealthCheckWithResponse call -func ParseMetadataServiceHealthCheckResponse(rsp *http.Response) (*MetadataServiceHealthCheckResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetadataServiceHealthCheckResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1HealthCheckResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInstantAppServiceListInstantAppsResponse parses an HTTP response from a InstantAppServiceListInstantAppsWithResponse call -func ParseInstantAppServiceListInstantAppsResponse(rsp *http.Response) (*InstantAppServiceListInstantAppsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InstantAppServiceListInstantAppsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListInstantAppsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInstantAppServiceGetInstantApp2Response parses an HTTP response from a InstantAppServiceGetInstantApp2WithResponse call -func ParseInstantAppServiceGetInstantApp2Response(rsp *http.Response) (*InstantAppServiceGetInstantApp2Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InstantAppServiceGetInstantApp2Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1InstantApp - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInstantAppServiceGetInstantAppResponse parses an HTTP response from a InstantAppServiceGetInstantAppWithResponse call -func ParseInstantAppServiceGetInstantAppResponse(rsp *http.Response) (*InstantAppServiceGetInstantAppResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InstantAppServiceGetInstantAppResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1InstantApp - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceListInvitesResponse parses an HTTP response from a InviteServiceListInvitesWithResponse call -func ParseInviteServiceListInvitesResponse(rsp *http.Response) (*InviteServiceListInvitesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceListInvitesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListInvitesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceUpdateInviteResponse parses an HTTP response from a InviteServiceUpdateInviteWithResponse call -func ParseInviteServiceUpdateInviteResponse(rsp *http.Response) (*InviteServiceUpdateInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceUpdateInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceCreateInviteResponse parses an HTTP response from a InviteServiceCreateInviteWithResponse call -func ParseInviteServiceCreateInviteResponse(rsp *http.Response) (*InviteServiceCreateInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceCreateInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceAcceptInviteResponse parses an HTTP response from a InviteServiceAcceptInviteWithResponse call -func ParseInviteServiceAcceptInviteResponse(rsp *http.Response) (*InviteServiceAcceptInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceAcceptInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceDeclineInviteResponse parses an HTTP response from a InviteServiceDeclineInviteWithResponse call -func ParseInviteServiceDeclineInviteResponse(rsp *http.Response) (*InviteServiceDeclineInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceDeclineInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceListMyInvitesResponse parses an HTTP response from a InviteServiceListMyInvitesWithResponse call -func ParseInviteServiceListMyInvitesResponse(rsp *http.Response) (*InviteServiceListMyInvitesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceListMyInvitesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListMyInvitesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceResendInviteResponse parses an HTTP response from a InviteServiceResendInviteWithResponse call -func ParseInviteServiceResendInviteResponse(rsp *http.Response) (*InviteServiceResendInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceResendInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInviteServiceDeleteInviteResponse parses an HTTP response from a InviteServiceDeleteInviteWithResponse call -func ParseInviteServiceDeleteInviteResponse(rsp *http.Response) (*InviteServiceDeleteInviteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InviteServiceDeleteInviteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInvoiceServiceListInvoicesResponse parses an HTTP response from a InvoiceServiceListInvoicesWithResponse call -func ParseInvoiceServiceListInvoicesResponse(rsp *http.Response) (*InvoiceServiceListInvoicesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InvoiceServiceListInvoicesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListInvoicesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseInvoiceServiceGetInvoiceResponse parses an HTTP response from a InvoiceServiceGetInvoiceWithResponse call -func ParseInvoiceServiceGetInvoiceResponse(rsp *http.Response) (*InvoiceServiceGetInvoiceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &InvoiceServiceGetInvoiceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetInvoiceResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceListAllocationsResponse parses an HTTP response from a IPAMServiceListAllocationsWithResponse call -func ParseIPAMServiceListAllocationsResponse(rsp *http.Response) (*IPAMServiceListAllocationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceListAllocationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAllocationsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceListNetworksResponse parses an HTTP response from a IPAMServiceListNetworksWithResponse call -func ParseIPAMServiceListNetworksResponse(rsp *http.Response) (*IPAMServiceListNetworksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceListNetworksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListNetworksResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceCreateNetworkResponse parses an HTTP response from a IPAMServiceCreateNetworkWithResponse call -func ParseIPAMServiceCreateNetworkResponse(rsp *http.Response) (*IPAMServiceCreateNetworkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceCreateNetworkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceDeleteNetworkResponse parses an HTTP response from a IPAMServiceDeleteNetworkWithResponse call -func ParseIPAMServiceDeleteNetworkResponse(rsp *http.Response) (*IPAMServiceDeleteNetworkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceDeleteNetworkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceGetNetworkResponse parses an HTTP response from a IPAMServiceGetNetworkWithResponse call -func ParseIPAMServiceGetNetworkResponse(rsp *http.Response) (*IPAMServiceGetNetworkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceGetNetworkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetNetworkResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceUpdateNetworkResponse parses an HTTP response from a IPAMServiceUpdateNetworkWithResponse call -func ParseIPAMServiceUpdateNetworkResponse(rsp *http.Response) (*IPAMServiceUpdateNetworkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceUpdateNetworkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateNetworkResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceAssignNetworkToNodeResponse parses an HTTP response from a IPAMServiceAssignNetworkToNodeWithResponse call -func ParseIPAMServiceAssignNetworkToNodeResponse(rsp *http.Response) (*IPAMServiceAssignNetworkToNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceAssignNetworkToNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceListNetworkNodesResponse parses an HTTP response from a IPAMServiceListNetworkNodesWithResponse call -func ParseIPAMServiceListNetworkNodesResponse(rsp *http.Response) (*IPAMServiceListNetworkNodesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceListNetworkNodesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListNetworkNodesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceGetNodeNetworkResponse parses an HTTP response from a IPAMServiceGetNodeNetworkWithResponse call -func ParseIPAMServiceGetNodeNetworkResponse(rsp *http.Response) (*IPAMServiceGetNodeNetworkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceGetNodeNetworkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetNodeNetworkResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceUnassignNetworkFromNodeResponse parses an HTTP response from a IPAMServiceUnassignNetworkFromNodeWithResponse call -func ParseIPAMServiceUnassignNetworkFromNodeResponse(rsp *http.Response) (*IPAMServiceUnassignNetworkFromNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceUnassignNetworkFromNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceListPrefixesResponse parses an HTTP response from a IPAMServiceListPrefixesWithResponse call -func ParseIPAMServiceListPrefixesResponse(rsp *http.Response) (*IPAMServiceListPrefixesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceListPrefixesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPrefixesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceCreatePrefixResponse parses an HTTP response from a IPAMServiceCreatePrefixWithResponse call -func ParseIPAMServiceCreatePrefixResponse(rsp *http.Response) (*IPAMServiceCreatePrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceCreatePrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceDeletePrefixResponse parses an HTTP response from a IPAMServiceDeletePrefixWithResponse call -func ParseIPAMServiceDeletePrefixResponse(rsp *http.Response) (*IPAMServiceDeletePrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceDeletePrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceGetPrefixResponse parses an HTTP response from a IPAMServiceGetPrefixWithResponse call -func ParseIPAMServiceGetPrefixResponse(rsp *http.Response) (*IPAMServiceGetPrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceGetPrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPrefixResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceUpdatePrefixResponse parses an HTTP response from a IPAMServiceUpdatePrefixWithResponse call -func ParseIPAMServiceUpdatePrefixResponse(rsp *http.Response) (*IPAMServiceUpdatePrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceUpdatePrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdatePrefixResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceListAvailableIPsResponse parses an HTTP response from a IPAMServiceListAvailableIPsWithResponse call -func ParseIPAMServiceListAvailableIPsResponse(rsp *http.Response) (*IPAMServiceListAvailableIPsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceListAvailableIPsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAvailableIPsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceAddReservedIPResponse parses an HTTP response from a IPAMServiceAddReservedIPWithResponse call -func ParseIPAMServiceAddReservedIPResponse(rsp *http.Response) (*IPAMServiceAddReservedIPResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceAddReservedIPResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceClearAllPrefixReservedIPsResponse parses an HTTP response from a IPAMServiceClearAllPrefixReservedIPsWithResponse call -func ParseIPAMServiceClearAllPrefixReservedIPsResponse(rsp *http.Response) (*IPAMServiceClearAllPrefixReservedIPsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceClearAllPrefixReservedIPsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceReserveAllPrefixIPsResponse parses an HTTP response from a IPAMServiceReserveAllPrefixIPsWithResponse call -func ParseIPAMServiceReserveAllPrefixIPsResponse(rsp *http.Response) (*IPAMServiceReserveAllPrefixIPsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceReserveAllPrefixIPsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceRemoveReservedIPResponse parses an HTTP response from a IPAMServiceRemoveReservedIPWithResponse call -func ParseIPAMServiceRemoveReservedIPResponse(rsp *http.Response) (*IPAMServiceRemoveReservedIPResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceRemoveReservedIPResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceRemoveReservedPrefixResponse parses an HTTP response from a IPAMServiceRemoveReservedPrefixWithResponse call -func ParseIPAMServiceRemoveReservedPrefixResponse(rsp *http.Response) (*IPAMServiceRemoveReservedPrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceRemoveReservedPrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceAddReservedPrefixResponse parses an HTTP response from a IPAMServiceAddReservedPrefixWithResponse call -func ParseIPAMServiceAddReservedPrefixResponse(rsp *http.Response) (*IPAMServiceAddReservedPrefixResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceAddReservedPrefixResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseIPAMServiceGetPrefixUtilizationResponse parses an HTTP response from a IPAMServiceGetPrefixUtilizationWithResponse call -func ParseIPAMServiceGetPrefixUtilizationResponse(rsp *http.Response) (*IPAMServiceGetPrefixUtilizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &IPAMServiceGetPrefixUtilizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPrefixUtilizationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceListAvailableAddonsResponse parses an HTTP response from a MarketplaceServiceListAvailableAddonsWithResponse call -func ParseMarketplaceServiceListAvailableAddonsResponse(rsp *http.Response) (*MarketplaceServiceListAvailableAddonsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceListAvailableAddonsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAvailableAddonsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceListAvailablePlansResponse parses an HTTP response from a MarketplaceServiceListAvailablePlansWithResponse call -func ParseMarketplaceServiceListAvailablePlansResponse(rsp *http.Response) (*MarketplaceServiceListAvailablePlansResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceListAvailablePlansResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAvailablePlansResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceGetMarketplacePlanResponse parses an HTTP response from a MarketplaceServiceGetMarketplacePlanWithResponse call -func ParseMarketplaceServiceGetMarketplacePlanResponse(rsp *http.Response) (*MarketplaceServiceGetMarketplacePlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceGetMarketplacePlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetMarketplacePlanResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceListMarketplaceProviderDirectoryResponse parses an HTTP response from a MarketplaceServiceListMarketplaceProviderDirectoryWithResponse call -func ParseMarketplaceServiceListMarketplaceProviderDirectoryResponse(rsp *http.Response) (*MarketplaceServiceListMarketplaceProviderDirectoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceListMarketplaceProviderDirectoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListMarketplaceProviderDirectoryResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceListProvidersResponse parses an HTTP response from a MarketplaceServiceListProvidersWithResponse call -func ParseMarketplaceServiceListProvidersResponse(rsp *http.Response) (*MarketplaceServiceListProvidersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceListProvidersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListProvidersResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceGetProviderResponse parses an HTTP response from a MarketplaceServiceGetProviderWithResponse call -func ParseMarketplaceServiceGetProviderResponse(rsp *http.Response) (*MarketplaceServiceGetProviderResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceGetProviderResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetProviderResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceListAvailableRegionsResponse parses an HTTP response from a MarketplaceServiceListAvailableRegionsWithResponse call -func ParseMarketplaceServiceListAvailableRegionsResponse(rsp *http.Response) (*MarketplaceServiceListAvailableRegionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceListAvailableRegionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAvailableRegionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMarketplaceServiceSearchMarketplaceResponse parses an HTTP response from a MarketplaceServiceSearchMarketplaceWithResponse call -func ParseMarketplaceServiceSearchMarketplaceResponse(rsp *http.Response) (*MarketplaceServiceSearchMarketplaceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MarketplaceServiceSearchMarketplaceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SearchMarketplaceResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricServiceListMetricsResponse parses an HTTP response from a MetricServiceListMetricsWithResponse call -func ParseMetricServiceListMetricsResponse(rsp *http.Response) (*MetricServiceListMetricsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricServiceListMetricsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListMetricsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse parses an HTTP response from a MetricsCredentialServiceListMetricsWriteCredentialsWithResponse call -func ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse(rsp *http.Response) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricsCredentialServiceListMetricsWriteCredentialsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListMetricsWriteCredentialsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse parses an HTTP response from a MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse call -func ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp *http.Response) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricsCredentialServiceCreateMetricsWriteCredentialResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateMetricsWriteCredentialResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricsCredentialServiceRevokeMetricsWriteCredentialResponse parses an HTTP response from a MetricsCredentialServiceRevokeMetricsWriteCredentialWithResponse call -func ParseMetricsCredentialServiceRevokeMetricsWriteCredentialResponse(rsp *http.Response) (*MetricsCredentialServiceRevokeMetricsWriteCredentialResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricsCredentialServiceRevokeMetricsWriteCredentialResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse parses an HTTP response from a MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse call -func ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp *http.Response) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricsCredentialServiceRotateMetricsWriteCredentialResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateMetricsWriteCredentialResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetricServiceGetMetricResponse parses an HTTP response from a MetricServiceGetMetricWithResponse call -func ParseMetricServiceGetMetricResponse(rsp *http.Response) (*MetricServiceGetMetricResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetricServiceGetMetricResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetMetricResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceCreateNodeResponse parses an HTTP response from a NodeServiceCreateNodeWithResponse call -func ParseNodeServiceCreateNodeResponse(rsp *http.Response) (*NodeServiceCreateNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceCreateNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodePlacementServiceGetNodePlacementPolicyResponse parses an HTTP response from a NodePlacementServiceGetNodePlacementPolicyWithResponse call -func ParseNodePlacementServiceGetNodePlacementPolicyResponse(rsp *http.Response) (*NodePlacementServiceGetNodePlacementPolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodePlacementServiceGetNodePlacementPolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetNodePlacementPolicyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodePlacementServiceUpdateNodePlacementPolicyResponse parses an HTTP response from a NodePlacementServiceUpdateNodePlacementPolicyWithResponse call -func ParseNodePlacementServiceUpdateNodePlacementPolicyResponse(rsp *http.Response) (*NodePlacementServiceUpdateNodePlacementPolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodePlacementServiceUpdateNodePlacementPolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateNodePlacementPolicyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceValidateNodeTopologyResponse parses an HTTP response from a NodeServiceValidateNodeTopologyWithResponse call -func ParseNodeServiceValidateNodeTopologyResponse(rsp *http.Response) (*NodeServiceValidateNodeTopologyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceValidateNodeTopologyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ValidateNodeTopologyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceDeleteNodeResponse parses an HTTP response from a NodeServiceDeleteNodeWithResponse call -func ParseNodeServiceDeleteNodeResponse(rsp *http.Response) (*NodeServiceDeleteNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceDeleteNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceGetNodeResponse parses an HTTP response from a NodeServiceGetNodeWithResponse call -func ParseNodeServiceGetNodeResponse(rsp *http.Response) (*NodeServiceGetNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceGetNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetNodeResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceUpdateNodeResponse parses an HTTP response from a NodeServiceUpdateNodeWithResponse call -func ParseNodeServiceUpdateNodeResponse(rsp *http.Response) (*NodeServiceUpdateNodeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceUpdateNodeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateNodeResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceGetNodeCPUMapResponse parses an HTTP response from a NodeServiceGetNodeCPUMapWithResponse call -func ParseNodeServiceGetNodeCPUMapResponse(rsp *http.Response) (*NodeServiceGetNodeCPUMapResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceGetNodeCPUMapResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetNodeCPUMapResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseNodeServiceListNodesResponse parses an HTTP response from a NodeServiceListNodesWithResponse call -func ParseNodeServiceListNodesResponse(rsp *http.Response) (*NodeServiceListNodesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &NodeServiceListNodesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListNodesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceAuthorizeResponse parses an HTTP response from a OAuth2ServiceAuthorizeWithResponse call -func ParseOAuth2ServiceAuthorizeResponse(rsp *http.Response) (*OAuth2ServiceAuthorizeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceAuthorizeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1AuthorizeResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceListClientsResponse parses an HTTP response from a OAuth2ServiceListClientsWithResponse call -func ParseOAuth2ServiceListClientsResponse(rsp *http.Response) (*OAuth2ServiceListClientsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceListClientsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListOAuth2ClientsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceCreateClientResponse parses an HTTP response from a OAuth2ServiceCreateClientWithResponse call -func ParseOAuth2ServiceCreateClientResponse(rsp *http.Response) (*OAuth2ServiceCreateClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceCreateClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateOAuth2ClientResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceDeleteClientResponse parses an HTTP response from a OAuth2ServiceDeleteClientWithResponse call -func ParseOAuth2ServiceDeleteClientResponse(rsp *http.Response) (*OAuth2ServiceDeleteClientResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceDeleteClientResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceRefreshTokenResponse parses an HTTP response from a OAuth2ServiceRefreshTokenWithResponse call -func ParseOAuth2ServiceRefreshTokenResponse(rsp *http.Response) (*OAuth2ServiceRefreshTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceRefreshTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TokenResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceRevokeTokenResponse parses an HTTP response from a OAuth2ServiceRevokeTokenWithResponse call -func ParseOAuth2ServiceRevokeTokenResponse(rsp *http.Response) (*OAuth2ServiceRevokeTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceRevokeTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOAuth2ServiceTokenResponse parses an HTTP response from a OAuth2ServiceTokenWithResponse call -func ParseOAuth2ServiceTokenResponse(rsp *http.Response) (*OAuth2ServiceTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OAuth2ServiceTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TokenResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOrganizationServiceGetOrganizationResponse parses an HTTP response from a OrganizationServiceGetOrganizationWithResponse call -func ParseOrganizationServiceGetOrganizationResponse(rsp *http.Response) (*OrganizationServiceGetOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OrganizationServiceGetOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetOrganizationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOrganizationServiceDeleteOrganizationResponse parses an HTTP response from a OrganizationServiceDeleteOrganizationWithResponse call -func ParseOrganizationServiceDeleteOrganizationResponse(rsp *http.Response) (*OrganizationServiceDeleteOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OrganizationServiceDeleteOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOrganizationServiceListOrganizationsResponse parses an HTTP response from a OrganizationServiceListOrganizationsWithResponse call -func ParseOrganizationServiceListOrganizationsResponse(rsp *http.Response) (*OrganizationServiceListOrganizationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OrganizationServiceListOrganizationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListOrganizationsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOrganizationServiceUpdateOrganizationResponse parses an HTTP response from a OrganizationServiceUpdateOrganizationWithResponse call -func ParseOrganizationServiceUpdateOrganizationResponse(rsp *http.Response) (*OrganizationServiceUpdateOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OrganizationServiceUpdateOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateOrganizationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseOrganizationServiceCreateOrganizationResponse parses an HTTP response from a OrganizationServiceCreateOrganizationWithResponse call -func ParseOrganizationServiceCreateOrganizationResponse(rsp *http.Response) (*OrganizationServiceCreateOrganizationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &OrganizationServiceCreateOrganizationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentMethodServiceListPaymentMethodsResponse parses an HTTP response from a PaymentMethodServiceListPaymentMethodsWithResponse call -func ParsePaymentMethodServiceListPaymentMethodsResponse(rsp *http.Response) (*PaymentMethodServiceListPaymentMethodsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentMethodServiceListPaymentMethodsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPaymentMethodsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentMethodServiceAttachPaymentMethodResponse parses an HTTP response from a PaymentMethodServiceAttachPaymentMethodWithResponse call -func ParsePaymentMethodServiceAttachPaymentMethodResponse(rsp *http.Response) (*PaymentMethodServiceAttachPaymentMethodResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentMethodServiceAttachPaymentMethodResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1AttachPaymentMethodResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentMethodServiceRemovePaymentMethodResponse parses an HTTP response from a PaymentMethodServiceRemovePaymentMethodWithResponse call -func ParsePaymentMethodServiceRemovePaymentMethodResponse(rsp *http.Response) (*PaymentMethodServiceRemovePaymentMethodResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentMethodServiceRemovePaymentMethodResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1RemovePaymentMethodResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentMethodServiceSetDefaultPaymentMethodResponse parses an HTTP response from a PaymentMethodServiceSetDefaultPaymentMethodWithResponse call -func ParsePaymentMethodServiceSetDefaultPaymentMethodResponse(rsp *http.Response) (*PaymentMethodServiceSetDefaultPaymentMethodResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentMethodServiceSetDefaultPaymentMethodResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SetDefaultPaymentMethodResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentServiceListPaymentsResponse parses an HTTP response from a PaymentServiceListPaymentsWithResponse call -func ParsePaymentServiceListPaymentsResponse(rsp *http.Response) (*PaymentServiceListPaymentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentServiceListPaymentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPaymentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePaymentServiceGetPaymentResponse parses an HTTP response from a PaymentServiceGetPaymentWithResponse call -func ParsePaymentServiceGetPaymentResponse(rsp *http.Response) (*PaymentServiceGetPaymentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PaymentServiceGetPaymentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPaymentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePermissionServiceListPermissionsResponse parses an HTTP response from a PermissionServiceListPermissionsWithResponse call -func ParsePermissionServiceListPermissionsResponse(rsp *http.Response) (*PermissionServiceListPermissionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PermissionServiceListPermissionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPermissionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePermissionServiceAssignPermissionToRoleResponse parses an HTTP response from a PermissionServiceAssignPermissionToRoleWithResponse call -func ParsePermissionServiceAssignPermissionToRoleResponse(rsp *http.Response) (*PermissionServiceAssignPermissionToRoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PermissionServiceAssignPermissionToRoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePermissionServiceListEffectivePermissionsResponse parses an HTTP response from a PermissionServiceListEffectivePermissionsWithResponse call -func ParsePermissionServiceListEffectivePermissionsResponse(rsp *http.Response) (*PermissionServiceListEffectivePermissionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PermissionServiceListEffectivePermissionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListEffectivePermissionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePermissionServiceRemovePermissionFromRoleResponse parses an HTTP response from a PermissionServiceRemovePermissionFromRoleWithResponse call -func ParsePermissionServiceRemovePermissionFromRoleResponse(rsp *http.Response) (*PermissionServiceRemovePermissionFromRoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PermissionServiceRemovePermissionFromRoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlanServiceListPlansResponse parses an HTTP response from a PlanServiceListPlansWithResponse call -func ParsePlanServiceListPlansResponse(rsp *http.Response) (*PlanServiceListPlansResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlanServiceListPlansResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPlansResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderPlanServiceCreatePlanResponse parses an HTTP response from a ProviderPlanServiceCreatePlanWithResponse call -func ParseProviderPlanServiceCreatePlanResponse(rsp *http.Response) (*ProviderPlanServiceCreatePlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderPlanServiceCreatePlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderPlanServiceDeletePlanResponse parses an HTTP response from a ProviderPlanServiceDeletePlanWithResponse call -func ParseProviderPlanServiceDeletePlanResponse(rsp *http.Response) (*ProviderPlanServiceDeletePlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderPlanServiceDeletePlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderPlanServiceUpdatePlanResponse parses an HTTP response from a ProviderPlanServiceUpdatePlanWithResponse call -func ParseProviderPlanServiceUpdatePlanResponse(rsp *http.Response) (*ProviderPlanServiceUpdatePlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderPlanServiceUpdatePlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlanServiceSubscribeResponse parses an HTTP response from a PlanServiceSubscribeWithResponse call -func ParsePlanServiceSubscribeResponse(rsp *http.Response) (*PlanServiceSubscribeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlanServiceSubscribeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SubscribeResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderPlanServiceCalculatePlanPricingResponse parses an HTTP response from a ProviderPlanServiceCalculatePlanPricingWithResponse call -func ParseProviderPlanServiceCalculatePlanPricingResponse(rsp *http.Response) (*ProviderPlanServiceCalculatePlanPricingResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderPlanServiceCalculatePlanPricingResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CalculatePlanPricingResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceCreatePlatformResponse parses an HTTP response from a PlatformServiceCreatePlatformWithResponse call -func ParsePlatformServiceCreatePlatformResponse(rsp *http.Response) (*PlatformServiceCreatePlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceCreatePlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseMetadataServiceGetPlatformVersionsResponse parses an HTTP response from a MetadataServiceGetPlatformVersionsWithResponse call -func ParseMetadataServiceGetPlatformVersionsResponse(rsp *http.Response) (*MetadataServiceGetPlatformVersionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &MetadataServiceGetPlatformVersionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1PlatformVersions - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceDeletePlatformResponse parses an HTTP response from a PlatformServiceDeletePlatformWithResponse call -func ParsePlatformServiceDeletePlatformResponse(rsp *http.Response) (*PlatformServiceDeletePlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceDeletePlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceGetPlatformResponse parses an HTTP response from a PlatformServiceGetPlatformWithResponse call -func ParsePlatformServiceGetPlatformResponse(rsp *http.Response) (*PlatformServiceGetPlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceGetPlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPlatformResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceUpdatePlatformResponse parses an HTTP response from a PlatformServiceUpdatePlatformWithResponse call -func ParsePlatformServiceUpdatePlatformResponse(rsp *http.Response) (*PlatformServiceUpdatePlatformResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceUpdatePlatformResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdatePlatformResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceListPlatformsResponse parses an HTTP response from a PlatformServiceListPlatformsWithResponse call -func ParsePlatformServiceListPlatformsResponse(rsp *http.Response) (*PlatformServiceListPlatformsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceListPlatformsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPlatformsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceAssignAgentResponse parses an HTTP response from a PlatformServiceAssignAgentWithResponse call -func ParsePlatformServiceAssignAgentResponse(rsp *http.Response) (*PlatformServiceAssignAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceAssignAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParsePlatformServiceUnassignAgentResponse parses an HTTP response from a PlatformServiceUnassignAgentWithResponse call -func ParsePlatformServiceUnassignAgentResponse(rsp *http.Response) (*PlatformServiceUnassignAgentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PlatformServiceUnassignAgentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderReviewServiceListProviderReviewsResponse parses an HTTP response from a ProviderReviewServiceListProviderReviewsWithResponse call -func ParseProviderReviewServiceListProviderReviewsResponse(rsp *http.Response) (*ProviderReviewServiceListProviderReviewsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderReviewServiceListProviderReviewsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListProviderReviewsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientProviderReviewServiceCreateClientReviewResponse parses an HTTP response from a ClientProviderReviewServiceCreateClientReviewWithResponse call -func ParseClientProviderReviewServiceCreateClientReviewResponse(rsp *http.Response) (*ClientProviderReviewServiceCreateClientReviewResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientProviderReviewServiceCreateClientReviewResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateClientReviewResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientProviderReviewServiceGetClientReviewForVirtualMachineResponse parses an HTTP response from a ClientProviderReviewServiceGetClientReviewForVirtualMachineWithResponse call -func ParseClientProviderReviewServiceGetClientReviewForVirtualMachineResponse(rsp *http.Response) (*ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientProviderReviewServiceGetClientReviewForVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetClientReviewForVirtualMachineResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientProviderReviewServiceDeleteClientReviewResponse parses an HTTP response from a ClientProviderReviewServiceDeleteClientReviewWithResponse call -func ParseClientProviderReviewServiceDeleteClientReviewResponse(rsp *http.Response) (*ClientProviderReviewServiceDeleteClientReviewResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientProviderReviewServiceDeleteClientReviewResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseClientProviderReviewServiceUpdateClientReviewResponse parses an HTTP response from a ClientProviderReviewServiceUpdateClientReviewWithResponse call -func ParseClientProviderReviewServiceUpdateClientReviewResponse(rsp *http.Response) (*ClientProviderReviewServiceUpdateClientReviewResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ClientProviderReviewServiceUpdateClientReviewResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateClientReviewResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderReviewServiceDeleteProviderReviewReplyResponse parses an HTTP response from a ProviderReviewServiceDeleteProviderReviewReplyWithResponse call -func ParseProviderReviewServiceDeleteProviderReviewReplyResponse(rsp *http.Response) (*ProviderReviewServiceDeleteProviderReviewReplyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderReviewServiceDeleteProviderReviewReplyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1DeleteProviderReviewReplyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderReviewServiceUpdateProviderReviewReplyResponse parses an HTTP response from a ProviderReviewServiceUpdateProviderReviewReplyWithResponse call -func ParseProviderReviewServiceUpdateProviderReviewReplyResponse(rsp *http.Response) (*ProviderReviewServiceUpdateProviderReviewReplyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderReviewServiceUpdateProviderReviewReplyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateProviderReviewReplyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderReviewServiceCreateProviderReviewReplyResponse parses an HTTP response from a ProviderReviewServiceCreateProviderReviewReplyWithResponse call -func ParseProviderReviewServiceCreateProviderReviewReplyResponse(rsp *http.Response) (*ProviderReviewServiceCreateProviderReviewReplyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ProviderReviewServiceCreateProviderReviewReplyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateProviderReviewReplyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderConnectServiceDisconnectConnectAccountResponse parses an HTTP response from a ProviderConnectServiceDisconnectConnectAccountWithResponse call -func ParseProviderConnectServiceDisconnectConnectAccountResponse(rsp *http.Response) (*ProviderConnectServiceDisconnectConnectAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GroupServiceAddServiceAccountToGroupWithBody performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, +// with any type of body and a specified content type. +func (c *Client) GroupServiceAddServiceAccountToGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGroupServiceAddServiceAccountToGroupRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - response := &ProviderConnectServiceDisconnectConnectAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil -} - -// ParseProviderConnectServiceGetConnectAccountResponse parses an HTTP response from a ProviderConnectServiceGetConnectAccountWithResponse call -func ParseProviderConnectServiceGetConnectAccountResponse(rsp *http.Response) (*ProviderConnectServiceGetConnectAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - - response := &ProviderConnectServiceGetConnectAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetConnectAccountResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil + return c.Client.Do(req) } -// ParseProviderConnectServiceCreateConnectAccountResponse parses an HTTP response from a ProviderConnectServiceCreateConnectAccountWithResponse call -func ParseProviderConnectServiceCreateConnectAccountResponse(rsp *http.Response) (*ProviderConnectServiceCreateConnectAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GroupServiceAddServiceAccountToGroup performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) GroupServiceAddServiceAccountToGroup(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGroupServiceAddServiceAccountToGroupRequest(c.Server, body) if err != nil { return nil, err } - - response := &ProviderConnectServiceCreateConnectAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateConnectAccountResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderConnectServiceCreateConnectTaxSessionResponse parses an HTTP response from a ProviderConnectServiceCreateConnectTaxSessionWithResponse call -func ParseProviderConnectServiceCreateConnectTaxSessionResponse(rsp *http.Response) (*ProviderConnectServiceCreateConnectTaxSessionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GroupServiceRemoveServiceAccountFromGroup performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. +func (c *Client) GroupServiceRemoveServiceAccountFromGroup(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGroupServiceRemoveServiceAccountFromGroupRequest(c.Server, params) if err != nil { return nil, err } - - response := &ProviderConnectServiceCreateConnectTaxSessionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateConnectTaxSessionResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceGetProviderCustomerStatsResponse parses an HTTP response from a ProviderCustomerServiceGetProviderCustomerStatsWithResponse call -func ParseProviderCustomerServiceGetProviderCustomerStatsResponse(rsp *http.Response) (*ProviderCustomerServiceGetProviderCustomerStatsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceListMetricsWriteCredentials performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. +func (c *Client) MetricsCredentialServiceListMetricsWriteCredentials(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsCredentialServiceListMetricsWriteCredentialsRequest(c.Server, params) if err != nil { return nil, err } - - response := &ProviderCustomerServiceGetProviderCustomerStatsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetProviderCustomerStatsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceListProviderCustomersResponse parses an HTTP response from a ProviderCustomerServiceListProviderCustomersWithResponse call -func ParseProviderCustomerServiceListProviderCustomersResponse(rsp *http.Response) (*ProviderCustomerServiceListProviderCustomersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceCreateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, +// with any type of body and a specified content type. +func (c *Client) MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - response := &ProviderCustomerServiceListProviderCustomersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListProviderCustomersResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceGetProviderCustomerResponse parses an HTTP response from a ProviderCustomerServiceGetProviderCustomerWithResponse call -func ParseProviderCustomerServiceGetProviderCustomerResponse(rsp *http.Response) (*ProviderCustomerServiceGetProviderCustomerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceCreateMetricsWriteCredential performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) MetricsCredentialServiceCreateMetricsWriteCredential(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest(c.Server, body) if err != nil { return nil, err } - - response := &ProviderCustomerServiceGetProviderCustomerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetProviderCustomerResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceListProviderCustomerAssetsResponse parses an HTTP response from a ProviderCustomerServiceListProviderCustomerAssetsWithResponse call -func ParseProviderCustomerServiceListProviderCustomerAssetsResponse(rsp *http.Response) (*ProviderCustomerServiceListProviderCustomerAssetsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceRotateMetricsWriteCredentialWithBody performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, +// with any type of body and a specified content type. +func (c *Client) MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } - - response := &ProviderCustomerServiceListProviderCustomerAssetsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListProviderCustomerAssetsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse parses an HTTP response from a ProviderCustomerServiceRestartProviderCustomerVirtualMachineWithResponse call -func ParseProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse(rsp *http.Response) (*ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceRotateMetricsWriteCredential performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) MetricsCredentialServiceRotateMetricsWriteCredential(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest(c.Server, id, body) if err != nil { return nil, err } - - response := &ProviderCustomerServiceRestartProviderCustomerVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceStartProviderCustomerVirtualMachineResponse parses an HTTP response from a ProviderCustomerServiceStartProviderCustomerVirtualMachineWithResponse call -func ParseProviderCustomerServiceStartProviderCustomerVirtualMachineResponse(rsp *http.Response) (*ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// OrganizationServiceGetOrganization performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. +func (c *Client) OrganizationServiceGetOrganization(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOrganizationServiceGetOrganizationRequest(c.Server) if err != nil { return nil, err } - - response := &ProviderCustomerServiceStartProviderCustomerVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderCustomerServiceStopProviderCustomerVirtualMachineResponse parses an HTTP response from a ProviderCustomerServiceStopProviderCustomerVirtualMachineWithResponse call -func ParseProviderCustomerServiceStopProviderCustomerVirtualMachineResponse(rsp *http.Response) (*ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// OrganizationServiceListOrganizations performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. +func (c *Client) OrganizationServiceListOrganizations(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOrganizationServiceListOrganizationsRequest(c.Server, params) if err != nil { return nil, err } - - response := &ProviderCustomerServiceStopProviderCustomerVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardAddonCatalogStatsResponse parses an HTTP response from a ProviderDashboardServiceListDashboardAddonCatalogStatsWithResponse call -func ParseProviderDashboardServiceListDashboardAddonCatalogStatsResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardAddonCatalogStatsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetadataServiceGetPlatformVersions performs a GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId) request. +func (c *Client) MetadataServiceGetPlatformVersions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMetadataServiceGetPlatformVersionsRequest(c.Server) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardAddonCatalogStatsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardAddonCatalogStatsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// RoleServiceReplaceRoleForServiceAccountWithBody performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, +// with any type of body and a specified content type. +func (c *Client) RoleServiceReplaceRoleForServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err } - - return response, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// ParseProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse parses an HTTP response from a ProviderDashboardServiceGetDashboardAssetSalesTimeseriesWithResponse call -func ParseProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse(rsp *http.Response) (*ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// RoleServiceReplaceRoleForServiceAccount performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) RoleServiceReplaceRoleForServiceAccount(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRoleServiceReplaceRoleForServiceAccountRequest(c.Server, body) if err != nil { return nil, err } - - response := &ProviderDashboardServiceGetDashboardAssetSalesTimeseriesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetDashboardAssetSalesTimeseriesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceListServiceAccounts performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. +func (c *Client) ServiceAccountServiceListServiceAccounts(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceListServiceAccountsRequest(c.Server, params) + if err != nil { + return nil, err } - - return response, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// ParseProviderDashboardServiceGetDashboardBillingSalesResponse parses an HTTP response from a ProviderDashboardServiceGetDashboardBillingSalesWithResponse call -func ParseProviderDashboardServiceGetDashboardBillingSalesResponse(rsp *http.Response) (*ProviderDashboardServiceGetDashboardBillingSalesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceCreateServiceAccountWithBody performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, +// with any type of body and a specified content type. +func (c *Client) ServiceAccountServiceCreateServiceAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceCreateServiceAccountRequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } - - response := &ProviderDashboardServiceGetDashboardBillingSalesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetDashboardBillingSalesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse parses an HTTP response from a ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesWithResponse call -func ParseProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse(rsp *http.Response) (*ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceCreateServiceAccount performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) ServiceAccountServiceCreateServiceAccount(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceCreateServiceAccountRequest(c.Server, body) if err != nil { return nil, err } - - response := &ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetDashboardCustomerAcquisitionTimeseriesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardInfrastructureResponse parses an HTTP response from a ProviderDashboardServiceListDashboardInfrastructureWithResponse call -func ParseProviderDashboardServiceListDashboardInfrastructureResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardInfrastructureResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceRevokeToken performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. +func (c *Client) ServiceAccountServiceRevokeToken(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceRevokeTokenRequest(c.Server, tokenId) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardInfrastructureResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardInfrastructureResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardIpamResponse parses an HTTP response from a ProviderDashboardServiceListDashboardIpamWithResponse call -func ParseProviderDashboardServiceListDashboardIpamResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardIpamResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceDeleteServiceAccount performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. +func (c *Client) ServiceAccountServiceDeleteServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceDeleteServiceAccountRequest(c.Server, id) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardIpamResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardIpamResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardIpamAssignmentsResponse parses an HTTP response from a ProviderDashboardServiceListDashboardIpamAssignmentsWithResponse call -func ParseProviderDashboardServiceListDashboardIpamAssignmentsResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardIpamAssignmentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceGetServiceAccount performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. +func (c *Client) ServiceAccountServiceGetServiceAccount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceGetServiceAccountRequest(c.Server, id) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardIpamAssignmentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardIpamAssignmentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse parses an HTTP response from a ProviderDashboardServiceListDashboardPlanSubscriptionStatsWithResponse call -func ParseProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceUpdateServiceAccountWithBody performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, +// with any type of body and a specified content type. +func (c *Client) ServiceAccountServiceUpdateServiceAccountWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceUpdateServiceAccountRequestWithBody(c.Server, id, contentType, body) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardPlanSubscriptionStatsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardPlanSubscriptionStatsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse parses an HTTP response from a ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsWithResponse call -func ParseProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse(rsp *http.Response) (*ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceUpdateServiceAccount performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) ServiceAccountServiceUpdateServiceAccount(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceUpdateServiceAccountRequest(c.Server, id, body) if err != nil { return nil, err } - - response := &ProviderDashboardPlansTabServiceGetDashboardPlansTabStatsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ProviderDashboardPlansTabStats - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } - - return response, nil + return c.Client.Do(req) } -// ParseProviderDashboardServiceGetDashboardSummaryResponse parses an HTTP response from a ProviderDashboardServiceGetDashboardSummaryWithResponse call -func ParseProviderDashboardServiceGetDashboardSummaryResponse(rsp *http.Response) (*ProviderDashboardServiceGetDashboardSummaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceListTokens performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. +func (c *Client) ServiceAccountServiceListTokens(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceListTokensRequest(c.Server, serviceAccountId, params) if err != nil { return nil, err } - - response := &ProviderDashboardServiceGetDashboardSummaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetDashboardSummaryResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceGenerateTokenWithBody performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, +// with any type of body and a specified content type. +func (c *Client) ServiceAccountServiceGenerateTokenWithBody(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceGenerateTokenRequestWithBody(c.Server, serviceAccountId, contentType, body) + if err != nil { + return nil, err } - - return response, nil + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) } -// ParseProviderDashboardServiceListDashboardTicketStatisticsResponse parses an HTTP response from a ProviderDashboardServiceListDashboardTicketStatisticsWithResponse call -func ParseProviderDashboardServiceListDashboardTicketStatisticsResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardTicketStatisticsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceGenerateToken performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. +// Takes a body of the `application/json` content type. +func (c *Client) ServiceAccountServiceGenerateToken(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewServiceAccountServiceGenerateTokenRequest(c.Server, serviceAccountId, body) if err != nil { return nil, err } - - response := &ProviderDashboardServiceListDashboardTicketStatisticsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err } + return c.Client.Do(req) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardTicketStatisticsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// NewAgentServiceListAgentsRequest constructs an http.Request for the AgentServiceListAgents method +func NewAgentServiceListAgentsRequest(server string, params *AgentServiceListAgentsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseProviderDashboardServiceListDashboardVirtualMachinesResponse parses an HTTP response from a ProviderDashboardServiceListDashboardVirtualMachinesWithResponse call -func ParseProviderDashboardServiceListDashboardVirtualMachinesResponse(rsp *http.Response) (*ProviderDashboardServiceListDashboardVirtualMachinesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &ProviderDashboardServiceListDashboardVirtualMachinesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListDashboardVirtualMachinesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + if params.Page != nil { - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - return response, nil -} + } -// ParseLiveValidationServiceListPlanLiveValidationsResponse parses an HTTP response from a LiveValidationServiceListPlanLiveValidationsWithResponse call -func ParseLiveValidationServiceListPlanLiveValidationsResponse(rsp *http.Response) (*LiveValidationServiceListPlanLiveValidationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + if params.PageSize != nil { - response := &LiveValidationServiceListPlanLiveValidationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPlanLiveValidationsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest - } + if params.GatewayRegion != nil { - return response, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "gatewayRegion", *params.GatewayRegion, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// ParseManualPayoutServiceDeleteManualPayoutResponse parses an HTTP response from a ManualPayoutServiceDeleteManualPayoutWithResponse call -func ParseManualPayoutServiceDeleteManualPayoutResponse(rsp *http.Response) (*ManualPayoutServiceDeleteManualPayoutResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + } - response := &ManualPayoutServiceDeleteManualPayoutResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - return response, nil -} - -// ParseManualPayoutServiceGetManualPayoutResponse parses an HTTP response from a ManualPayoutServiceGetManualPayoutWithResponse call -func ParseManualPayoutServiceGetManualPayoutResponse(rsp *http.Response) (*ManualPayoutServiceGetManualPayoutResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - response := &ManualPayoutServiceGetManualPayoutResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetManualPayoutResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} +// NewAgentServiceCreateAgentRequest calls the generic AgentServiceCreateAgent builder with application/json body +func NewAgentServiceCreateAgentRequest(server string, body AgentServiceCreateAgentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return response, nil + bodyReader = bytes.NewReader(buf) + return NewAgentServiceCreateAgentRequestWithBody(server, "application/json", bodyReader) } -// ParseManualPayoutServiceCreateManualPayoutResponse parses an HTTP response from a ManualPayoutServiceCreateManualPayoutWithResponse call -func ParseManualPayoutServiceCreateManualPayoutResponse(rsp *http.Response) (*ManualPayoutServiceCreateManualPayoutResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewAgentServiceCreateAgentRequestWithBody constructs an http.Request for the AgentServiceCreateAgent method, with any body, and a specified content type +func NewAgentServiceCreateAgentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &ManualPayoutServiceCreateManualPayoutResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateManualPayoutResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse parses an HTTP response from a ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesWithResponse call -func ParseProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse(rsp *http.Response) (*ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - response := &ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + req.Header.Add("Content-Type", contentType) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListVirtualMachineSmtpOutboundPoliciesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} - } +// NewAgentServiceDeleteAgentRequest constructs an http.Request for the AgentServiceDeleteAgent method +func NewAgentServiceDeleteAgentRequest(server string, id string) (*http.Request, error) { + var err error - return response, nil -} + var pathParam0 string -// ParseProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse parses an HTTP response from a ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyWithResponse call -func ParseProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse(rsp *http.Response) (*ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachineSmtpOutboundPolicyView - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse parses an HTTP response from a ProviderNetworkServiceGetSmtpOutboundProviderPolicyWithResponse call -func ParseProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse(rsp *http.Response) (*ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &ProviderNetworkServiceGetSmtpOutboundProviderPolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSmtpOutboundProviderPolicyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} - } +// NewAgentServiceGetAgentRequest constructs an http.Request for the AgentServiceGetAgent method +func NewAgentServiceGetAgentRequest(server string, id string) (*http.Request, error) { + var err error - return response, nil -} + var pathParam0 string -// ParseProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse parses an HTTP response from a ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyWithResponse call -func ParseProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse(rsp *http.Response) (*ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSmtpOutboundProviderPolicyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseProviderOnboardingServiceGetProviderOnboardingChecklistResponse parses an HTTP response from a ProviderOnboardingServiceGetProviderOnboardingChecklistWithResponse call -func ParseProviderOnboardingServiceGetProviderOnboardingChecklistResponse(rsp *http.Response) (*ProviderOnboardingServiceGetProviderOnboardingChecklistResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &ProviderOnboardingServiceGetProviderOnboardingChecklistResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetProviderOnboardingChecklistResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err } - return response, nil + return req, nil } -// ParsePayoutConfigurationServiceGetPayoutConfigurationResponse parses an HTTP response from a PayoutConfigurationServiceGetPayoutConfigurationWithResponse call -func ParsePayoutConfigurationServiceGetPayoutConfigurationResponse(rsp *http.Response) (*PayoutConfigurationServiceGetPayoutConfigurationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewAgentServiceUpdateAgentRequest calls the generic AgentServiceUpdateAgent builder with application/json body +func NewAgentServiceUpdateAgentRequest(server string, id string, body AgentServiceUpdateAgentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewAgentServiceUpdateAgentRequestWithBody(server, id, "application/json", bodyReader) +} - response := &PayoutConfigurationServiceGetPayoutConfigurationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewAgentServiceUpdateAgentRequestWithBody constructs an http.Request for the AgentServiceUpdateAgent method, with any body, and a specified content type +func NewAgentServiceUpdateAgentRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPayoutConfigurationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParsePayoutConfigurationServiceUpdatePayoutConfigurationResponse parses an HTTP response from a PayoutConfigurationServiceUpdatePayoutConfigurationWithResponse call -func ParsePayoutConfigurationServiceUpdatePayoutConfigurationResponse(rsp *http.Response) (*PayoutConfigurationServiceUpdatePayoutConfigurationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &PayoutConfigurationServiceUpdatePayoutConfigurationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPayoutConfigurationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + if err != nil { + return nil, err } - return response, nil + req.Header.Add("Content-Type", contentType) + + return req, nil } -// ParsePayoutInvoiceServiceListPayoutInvoicesResponse parses an HTTP response from a PayoutInvoiceServiceListPayoutInvoicesWithResponse call -func ParsePayoutInvoiceServiceListPayoutInvoicesResponse(rsp *http.Response) (*PayoutInvoiceServiceListPayoutInvoicesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewAgentServiceGeneratePeeringConfigRequest calls the generic AgentServiceGeneratePeeringConfig builder with application/json body +func NewAgentServiceGeneratePeeringConfigRequest(server string, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewAgentServiceGeneratePeeringConfigRequestWithBody(server, id, "application/json", bodyReader) +} - response := &PayoutInvoiceServiceListPayoutInvoicesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewAgentServiceGeneratePeeringConfigRequestWithBody constructs an http.Request for the AgentServiceGeneratePeeringConfig method, with any body, and a specified content type +func NewAgentServiceGeneratePeeringConfigRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPayoutInvoicesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParsePayoutInvoiceServiceGetPayoutInvoiceResponse parses an HTTP response from a PayoutInvoiceServiceGetPayoutInvoiceWithResponse call -func ParsePayoutInvoiceServiceGetPayoutInvoiceResponse(rsp *http.Response) (*PayoutInvoiceServiceGetPayoutInvoiceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &PayoutInvoiceServiceGetPayoutInvoiceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/agents/%s:generatePeeringConfig", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPayoutInvoiceResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err } - return response, nil + req.Header.Add("Content-Type", contentType) + + return req, nil } -// ParseProviderPlanServiceListAssignableNodesForPlanResponse parses an HTTP response from a ProviderPlanServiceListAssignableNodesForPlanWithResponse call -func ParseProviderPlanServiceListAssignableNodesForPlanResponse(rsp *http.Response) (*ProviderPlanServiceListAssignableNodesForPlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewAgentServiceUploadInboundPeeringConfigRequest calls the generic AgentServiceUploadInboundPeeringConfig builder with application/json body +func NewAgentServiceUploadInboundPeeringConfigRequest(server string, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewAgentServiceUploadInboundPeeringConfigRequestWithBody(server, id, "application/json", bodyReader) +} - response := &ProviderPlanServiceListAssignableNodesForPlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewAgentServiceUploadInboundPeeringConfigRequestWithBody constructs an http.Request for the AgentServiceUploadInboundPeeringConfig method, with any body, and a specified content type +func NewAgentServiceUploadInboundPeeringConfigRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAssignableNodesForPlanResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParseLiveValidationServiceDeletePlanLiveValidationResponse parses an HTTP response from a LiveValidationServiceDeletePlanLiveValidationWithResponse call -func ParseLiveValidationServiceDeletePlanLiveValidationResponse(rsp *http.Response) (*LiveValidationServiceDeletePlanLiveValidationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &LiveValidationServiceDeletePlanLiveValidationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/agents/%s:uploadInboundPeeringConfig", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseLiveValidationServiceGetPlanLiveValidationResponse parses an HTTP response from a LiveValidationServiceGetPlanLiveValidationWithResponse call -func ParseLiveValidationServiceGetPlanLiveValidationResponse(rsp *http.Response) (*LiveValidationServiceGetPlanLiveValidationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - response := &LiveValidationServiceGetPlanLiveValidationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + req.Header.Add("Content-Type", contentType) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetPlanLiveValidationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} +// NewGroupServiceAddServiceAccountToGroupRequest calls the generic GroupServiceAddServiceAccountToGroup builder with application/json body +func NewGroupServiceAddServiceAccountToGroupRequest(server string, body GroupServiceAddServiceAccountToGroupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return response, nil + bodyReader = bytes.NewReader(buf) + return NewGroupServiceAddServiceAccountToGroupRequestWithBody(server, "application/json", bodyReader) } -// ParseLiveValidationServiceStartPlanLiveValidationResponse parses an HTTP response from a LiveValidationServiceStartPlanLiveValidationWithResponse call -func ParseLiveValidationServiceStartPlanLiveValidationResponse(rsp *http.Response) (*LiveValidationServiceStartPlanLiveValidationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewGroupServiceAddServiceAccountToGroupRequestWithBody constructs an http.Request for the GroupServiceAddServiceAccountToGroup method, with any body, and a specified content type +func NewGroupServiceAddServiceAccountToGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &LiveValidationServiceStartPlanLiveValidationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/groups/add-service-account") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1StartPlanLiveValidationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseLiveValidationServiceListPlanLiveValidationBenchmarksResponse parses an HTTP response from a LiveValidationServiceListPlanLiveValidationBenchmarksWithResponse call -func ParseLiveValidationServiceListPlanLiveValidationBenchmarksResponse(rsp *http.Response) (*LiveValidationServiceListPlanLiveValidationBenchmarksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - response := &LiveValidationServiceListPlanLiveValidationBenchmarksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + req.Header.Add("Content-Type", contentType) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPlanLiveValidationBenchmarksResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} + +// NewGroupServiceRemoveServiceAccountFromGroupRequest constructs an http.Request for the GroupServiceRemoveServiceAccountFromGroup method +func NewGroupServiceRemoveServiceAccountFromGroupRequest(server string, params *GroupServiceRemoveServiceAccountFromGroupParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/groups/remove-service-account") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseLiveValidationServiceListEligibleNodesForPlanResponse parses an HTTP response from a LiveValidationServiceListEligibleNodesForPlanWithResponse call -func ParseLiveValidationServiceListEligibleNodesForPlanResponse(rsp *http.Response) (*LiveValidationServiceListEligibleNodesForPlanResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &LiveValidationServiceListEligibleNodesForPlanResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListEligibleNodesForPlanResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + if params.GroupId != nil { - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "groupId", *params.GroupId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - return response, nil -} + } -// ParsePreflightServiceListPreflightChecksResponse parses an HTTP response from a PreflightServiceListPreflightChecksWithResponse call -func ParsePreflightServiceListPreflightChecksResponse(rsp *http.Response) (*PreflightServiceListPreflightChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + if params.ServiceAccountIds != nil { - response := &PreflightServiceListPreflightChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "serviceAccountIds", *params.ServiceAccountIds, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListPreflightChecksResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - return response, nil -} - -// ParsePayoutInvoiceServiceGetProviderRevenueResponse parses an HTTP response from a PayoutInvoiceServiceGetProviderRevenueWithResponse call -func ParsePayoutInvoiceServiceGetProviderRevenueResponse(rsp *http.Response) (*PayoutInvoiceServiceGetProviderRevenueResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - response := &PayoutInvoiceServiceGetProviderRevenueResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + return req, nil +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetProviderRevenueResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// NewMetricsCredentialServiceListMetricsWriteCredentialsRequest constructs an http.Request for the MetricsCredentialServiceListMetricsWriteCredentials method +func NewMetricsCredentialServiceListMetricsWriteCredentialsRequest(server string, params *MetricsCredentialServiceListMetricsWriteCredentialsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/metrics-write-credentials") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseRefundServiceListRefundsResponse parses an HTTP response from a RefundServiceListRefundsWithResponse call -func ParseRefundServiceListRefundsResponse(rsp *http.Response) (*RefundServiceListRefundsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RefundServiceListRefundsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRefundsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + if params.AgentId != nil { - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "agentId", *params.AgentId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - return response, nil -} + } -// ParseRefundServiceGetRefundResponse parses an HTTP response from a RefundServiceGetRefundWithResponse call -func ParseRefundServiceGetRefundResponse(rsp *http.Response) (*RefundServiceGetRefundResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + if params.IncludeRevoked != nil { - response := &RefundServiceGetRefundResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeRevoked", *params.IncludeRevoked, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetRefundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest - } + if params.Page != nil { - return response, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// ParseRegionServiceListRegionsResponse parses an HTTP response from a RegionServiceListRegionsWithResponse call -func ParseRegionServiceListRegionsResponse(rsp *http.Response) (*RegionServiceListRegionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + } - response := &RegionServiceListRegionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRegionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - return response, nil -} - -// ParseRegionServiceCreateRegionResponse parses an HTTP response from a RegionServiceCreateRegionWithResponse call -func ParseRegionServiceCreateRegionResponse(rsp *http.Response) (*RegionServiceCreateRegionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - response := &RegionServiceCreateRegionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1Region - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } - - return response, nil + return req, nil } -// ParseRegionServiceDeleteRegionResponse parses an HTTP response from a RegionServiceDeleteRegionWithResponse call -func ParseRegionServiceDeleteRegionResponse(rsp *http.Response) (*RegionServiceDeleteRegionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest calls the generic MetricsCredentialServiceCreateMetricsWriteCredential builder with application/json body +func NewMetricsCredentialServiceCreateMetricsWriteCredentialRequest(server string, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(server, "application/json", bodyReader) +} - response := &RegionServiceDeleteRegionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody constructs an http.Request for the MetricsCredentialServiceCreateMetricsWriteCredential method, with any body, and a specified content type +func NewMetricsCredentialServiceCreateMetricsWriteCredentialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/metrics-write-credentials") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseRegionServiceGetRegionResponse parses an HTTP response from a RegionServiceGetRegionWithResponse call -func ParseRegionServiceGetRegionResponse(rsp *http.Response) (*RegionServiceGetRegionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RegionServiceGetRegionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1Region - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - } + req.Header.Add("Content-Type", contentType) - return response, nil + return req, nil } -// ParseRoadmapServiceDeleteRoadmapFeatureRequestCommentResponse parses an HTTP response from a RoadmapServiceDeleteRoadmapFeatureRequestCommentWithResponse call -func ParseRoadmapServiceDeleteRoadmapFeatureRequestCommentResponse(rsp *http.Response) (*RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest calls the generic MetricsCredentialServiceRotateMetricsWriteCredential builder with application/json body +func NewMetricsCredentialServiceRotateMetricsWriteCredentialRequest(server string, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(server, id, "application/json", bodyReader) +} - response := &RoadmapServiceDeleteRoadmapFeatureRequestCommentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody constructs an http.Request for the MetricsCredentialServiceRotateMetricsWriteCredential method, with any body, and a specified content type +func NewMetricsCredentialServiceRotateMetricsWriteCredentialRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1DeleteRoadmapFeatureRequestCommentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParseRoadmapServiceUpdateRoadmapFeatureRequestCommentResponse parses an HTTP response from a RoadmapServiceUpdateRoadmapFeatureRequestCommentWithResponse call -func ParseRoadmapServiceUpdateRoadmapFeatureRequestCommentResponse(rsp *http.Response) (*RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &RoadmapServiceUpdateRoadmapFeatureRequestCommentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/metrics-write-credentials/%s:rotate", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateRoadmapFeatureRequestCommentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err } - return response, nil + req.Header.Add("Content-Type", contentType) + + return req, nil } -// ParseRoadmapServiceListRoadmapProductCategoriesResponse parses an HTTP response from a RoadmapServiceListRoadmapProductCategoriesWithResponse call -func ParseRoadmapServiceListRoadmapProductCategoriesResponse(rsp *http.Response) (*RoadmapServiceListRoadmapProductCategoriesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewOrganizationServiceGetOrganizationRequest constructs an http.Request for the OrganizationServiceGetOrganization method +func NewOrganizationServiceGetOrganizationRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &RoadmapServiceListRoadmapProductCategoriesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/organization") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRoadmapProductCategoriesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseRoadmapServiceListRoadmapFeatureRequestsResponse parses an HTTP response from a RoadmapServiceListRoadmapFeatureRequestsWithResponse call -func ParseRoadmapServiceListRoadmapFeatureRequestsResponse(rsp *http.Response) (*RoadmapServiceListRoadmapFeatureRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - response := &RoadmapServiceListRoadmapFeatureRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + return req, nil +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRoadmapFeatureRequestsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// NewOrganizationServiceListOrganizationsRequest constructs an http.Request for the OrganizationServiceListOrganizations method +func NewOrganizationServiceListOrganizationsRequest(server string, params *OrganizationServiceListOrganizationsParams) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/organizations") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseRoadmapServiceGetRoadmapFeatureRequestResponse parses an HTTP response from a RoadmapServiceGetRoadmapFeatureRequestWithResponse call -func ParseRoadmapServiceGetRoadmapFeatureRequestResponse(rsp *http.Response) (*RoadmapServiceGetRoadmapFeatureRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RoadmapServiceGetRoadmapFeatureRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetRoadmapFeatureRequestResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest - } + if params.PageSize != nil { - return response, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// ParseRoadmapServiceListRoadmapFeatureRequestCommentsResponse parses an HTTP response from a RoadmapServiceListRoadmapFeatureRequestCommentsWithResponse call -func ParseRoadmapServiceListRoadmapFeatureRequestCommentsResponse(rsp *http.Response) (*RoadmapServiceListRoadmapFeatureRequestCommentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + } + + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - response := &RoadmapServiceListRoadmapFeatureRequestCommentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + return req, nil +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRoadmapFeatureRequestCommentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// NewMetadataServiceGetPlatformVersionsRequest constructs an http.Request for the MetadataServiceGetPlatformVersions method +func NewMetadataServiceGetPlatformVersionsRequest(server string) (*http.Request, error) { + var err error + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - return response, nil -} + operationPath := fmt.Sprintf("/v1/platform-versions") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } -// ParseRoadmapServiceCreateRoadmapFeatureRequestCommentResponse parses an HTTP response from a RoadmapServiceCreateRoadmapFeatureRequestCommentWithResponse call -func ParseRoadmapServiceCreateRoadmapFeatureRequestCommentResponse(rsp *http.Response) (*RoadmapServiceCreateRoadmapFeatureRequestCommentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RoadmapServiceCreateRoadmapFeatureRequestCommentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateRoadmapFeatureRequestCommentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} +// NewRoleServiceReplaceRoleForServiceAccountRequest calls the generic RoleServiceReplaceRoleForServiceAccount builder with application/json body +func NewRoleServiceReplaceRoleForServiceAccountRequest(server string, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return response, nil + bodyReader = bytes.NewReader(buf) + return NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(server, "application/json", bodyReader) } -// ParseRoadmapServiceRemoveRoadmapFeatureRequestVoteResponse parses an HTTP response from a RoadmapServiceRemoveRoadmapFeatureRequestVoteWithResponse call -func ParseRoadmapServiceRemoveRoadmapFeatureRequestVoteResponse(rsp *http.Response) (*RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewRoleServiceReplaceRoleForServiceAccountRequestWithBody constructs an http.Request for the RoleServiceReplaceRoleForServiceAccount method, with any body, and a specified content type +func NewRoleServiceReplaceRoleForServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &RoadmapServiceRemoveRoadmapFeatureRequestVoteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/roles/replace-for-service-account") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VoteRoadmapFeatureRequestResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + if err != nil { + return nil, err } - return response, nil + req.Header.Add("Content-Type", contentType) + + return req, nil } -// ParseRoadmapServiceVoteRoadmapFeatureRequestResponse parses an HTTP response from a RoadmapServiceVoteRoadmapFeatureRequestWithResponse call -func ParseRoadmapServiceVoteRoadmapFeatureRequestResponse(rsp *http.Response) (*RoadmapServiceVoteRoadmapFeatureRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewServiceAccountServiceListServiceAccountsRequest constructs an http.Request for the ServiceAccountServiceListServiceAccounts method +func NewServiceAccountServiceListServiceAccountsRequest(server string, params *ServiceAccountServiceListServiceAccountsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &RoadmapServiceVoteRoadmapFeatureRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/service-accounts") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VoteRoadmapFeatureRequestResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if params.IncludeInactive != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeInactive", *params.IncludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + } - response.JSON200 = &dest - } + if params.Page != nil { - return response, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// ParseRoadmapServiceGetRoadmapStatsResponse parses an HTTP response from a RoadmapServiceGetRoadmapStatsWithResponse call -func ParseRoadmapServiceGetRoadmapStatsResponse(rsp *http.Response) (*RoadmapServiceGetRoadmapStatsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + } - response := &RoadmapServiceGetRoadmapStatsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetRoadmapStatsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - return response, nil -} - -// ParseRoadmapServiceSubmitRoadmapFeatureRequestResponse parses an HTTP response from a RoadmapServiceSubmitRoadmapFeatureRequestWithResponse call -func ParseRoadmapServiceSubmitRoadmapFeatureRequestResponse(rsp *http.Response) (*RoadmapServiceSubmitRoadmapFeatureRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - response := &RoadmapServiceSubmitRoadmapFeatureRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SubmitRoadmapFeatureRequestResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} +// NewServiceAccountServiceCreateServiceAccountRequest calls the generic ServiceAccountServiceCreateServiceAccount builder with application/json body +func NewServiceAccountServiceCreateServiceAccountRequest(server string, body ServiceAccountServiceCreateServiceAccountJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return response, nil + bodyReader = bytes.NewReader(buf) + return NewServiceAccountServiceCreateServiceAccountRequestWithBody(server, "application/json", bodyReader) } -// ParseRoleServiceListRolesResponse parses an HTTP response from a RoleServiceListRolesWithResponse call -func ParseRoleServiceListRolesResponse(rsp *http.Response) (*RoleServiceListRolesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewServiceAccountServiceCreateServiceAccountRequestWithBody constructs an http.Request for the ServiceAccountServiceCreateServiceAccount method, with any body, and a specified content type +func NewServiceAccountServiceCreateServiceAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &RoleServiceListRolesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/service-accounts") + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListRolesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseRoleServiceCreateRoleResponse parses an HTTP response from a RoleServiceCreateRoleWithResponse call -func ParseRoleServiceCreateRoleResponse(rsp *http.Response) (*RoleServiceCreateRoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - response := &RoleServiceCreateRoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + req.Header.Add("Content-Type", contentType) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} - } +// NewServiceAccountServiceRevokeTokenRequest constructs an http.Request for the ServiceAccountServiceRevokeToken method +func NewServiceAccountServiceRevokeTokenRequest(server string, tokenId string) (*http.Request, error) { + var err error - return response, nil -} + var pathParam0 string -// ParseRoleServiceReplaceRoleForGroupResponse parses an HTTP response from a RoleServiceReplaceRoleForGroupWithResponse call -func ParseRoleServiceReplaceRoleForGroupResponse(rsp *http.Response) (*RoleServiceReplaceRoleForGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "tokenId", tokenId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &RoleServiceReplaceRoleForGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/service-accounts/tokens/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseRoleServiceReplaceRoleForServiceAccountResponse parses an HTTP response from a RoleServiceReplaceRoleForServiceAccountWithResponse call -func ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp *http.Response) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RoleServiceReplaceRoleForServiceAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} - } +// NewServiceAccountServiceDeleteServiceAccountRequest constructs an http.Request for the ServiceAccountServiceDeleteServiceAccount method +func NewServiceAccountServiceDeleteServiceAccountRequest(server string, id string) (*http.Request, error) { + var err error - return response, nil -} + var pathParam0 string -// ParseRoleServiceReplaceRoleForUserResponse parses an HTTP response from a RoleServiceReplaceRoleForUserWithResponse call -func ParseRoleServiceReplaceRoleForUserResponse(rsp *http.Response) (*RoleServiceReplaceRoleForUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &RoleServiceReplaceRoleForUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseRoleServiceDeleteRoleResponse parses an HTTP response from a RoleServiceDeleteRoleWithResponse call -func ParseRoleServiceDeleteRoleResponse(rsp *http.Response) (*RoleServiceDeleteRoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &RoleServiceDeleteRoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} - } +// NewServiceAccountServiceGetServiceAccountRequest constructs an http.Request for the ServiceAccountServiceGetServiceAccount method +func NewServiceAccountServiceGetServiceAccountRequest(server string, id string) (*http.Request, error) { + var err error - return response, nil -} + var pathParam0 string -// ParseRoleServiceUpdateRoleResponse parses an HTTP response from a RoleServiceUpdateRoleWithResponse call -func ParseRoleServiceUpdateRoleResponse(rsp *http.Response) (*RoleServiceUpdateRoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &RoleServiceUpdateRoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateRoleResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseSecretServiceListSecretsResponse parses an HTTP response from a SecretServiceListSecretsWithResponse call -func ParseSecretServiceListSecretsResponse(rsp *http.Response) (*SecretServiceListSecretsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &SecretServiceListSecretsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListSecretsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err } - return response, nil + return req, nil } -// ParseSecretServiceCreateSecretResponse parses an HTTP response from a SecretServiceCreateSecretWithResponse call -func ParseSecretServiceCreateSecretResponse(rsp *http.Response) (*SecretServiceCreateSecretResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewServiceAccountServiceUpdateServiceAccountRequest calls the generic ServiceAccountServiceUpdateServiceAccount builder with application/json body +func NewServiceAccountServiceUpdateServiceAccountRequest(server string, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewServiceAccountServiceUpdateServiceAccountRequestWithBody(server, id, "application/json", bodyReader) +} - response := &SecretServiceCreateSecretResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewServiceAccountServiceUpdateServiceAccountRequestWithBody constructs an http.Request for the ServiceAccountServiceUpdateServiceAccount method, with any body, and a specified content type +func NewServiceAccountServiceUpdateServiceAccountRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateSecretResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParseSecretServiceDeleteSecretResponse parses an HTTP response from a SecretServiceDeleteSecretWithResponse call -func ParseSecretServiceDeleteSecretResponse(rsp *http.Response) (*SecretServiceDeleteSecretResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &SecretServiceDeleteSecretResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/service-accounts/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + if err != nil { + return nil, err } - return response, nil + req.Header.Add("Content-Type", contentType) + + return req, nil } -// ParseSecretServiceGetSecretResponse parses an HTTP response from a SecretServiceGetSecretWithResponse call -func ParseSecretServiceGetSecretResponse(rsp *http.Response) (*SecretServiceGetSecretResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewServiceAccountServiceListTokensRequest constructs an http.Request for the ServiceAccountServiceListTokens method +func NewServiceAccountServiceListTokensRequest(server string, serviceAccountId string, params *ServiceAccountServiceListTokensParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - response := &SecretServiceGetSecretResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + serverURL, err := url.Parse(server) + if err != nil { + return nil, err } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSecretResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + operationPath := fmt.Sprintf("/v1/service-accounts/%s/tokens", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - return response, nil -} - -// ParseSecretServiceUpdateSecretResponse parses an HTTP response from a SecretServiceUpdateSecretWithResponse call -func ParseSecretServiceUpdateSecretResponse(rsp *http.Response) (*SecretServiceUpdateSecretResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - response := &SecretServiceUpdateSecretResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if params.IncludeInactive != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeInactive", *params.IncludeInactive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest - } + if params.Page != nil { - return response, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// ParseServiceAccountServiceListServiceAccountsResponse parses an HTTP response from a ServiceAccountServiceListServiceAccountsWithResponse call -func ParseServiceAccountServiceListServiceAccountsResponse(rsp *http.Response) (*ServiceAccountServiceListServiceAccountsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + } - response := &ServiceAccountServiceListServiceAccountsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListServiceAccountsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err } - response.JSON200 = &dest + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } + + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err } - return response, nil + return req, nil } -// ParseServiceAccountServiceCreateServiceAccountResponse parses an HTTP response from a ServiceAccountServiceCreateServiceAccountWithResponse call -func ParseServiceAccountServiceCreateServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceCreateServiceAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewServiceAccountServiceGenerateTokenRequest calls the generic ServiceAccountServiceGenerateToken builder with application/json body +func NewServiceAccountServiceGenerateTokenRequest(server string, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewServiceAccountServiceGenerateTokenRequestWithBody(server, serviceAccountId, "application/json", bodyReader) +} - response := &ServiceAccountServiceCreateServiceAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// NewServiceAccountServiceGenerateTokenRequestWithBody constructs an http.Request for the ServiceAccountServiceGenerateToken method, with any body, and a specified content type +func NewServiceAccountServiceGenerateTokenRequestWithBody(server string, serviceAccountId string, contentType string, body io.Reader) (*http.Request, error) { + var err error - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ServiceAccountResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + var pathParam0 string + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err } - return response, nil -} - -// ParseServiceAccountServiceRevokeTokenResponse parses an HTTP response from a ServiceAccountServiceRevokeTokenWithResponse call -func ParseServiceAccountServiceRevokeTokenResponse(rsp *http.Response) (*ServiceAccountServiceRevokeTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + serverURL, err := url.Parse(server) if err != nil { return nil, err } - response := &ServiceAccountServiceRevokeTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, + operationPath := fmt.Sprintf("/v1/service-accounts/%s/tokens", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath } - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - return response, nil -} - -// ParseServiceAccountServiceDeleteServiceAccountResponse parses an HTTP response from a ServiceAccountServiceDeleteServiceAccountWithResponse call -func ParseServiceAccountServiceDeleteServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceDeleteServiceAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - response := &ServiceAccountServiceDeleteServiceAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + req.Header.Add("Content-Type", contentType) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest map[string]interface{} - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + return req, nil +} +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } + } + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } } + return nil +} - return response, nil +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface } -// ParseServiceAccountServiceGetServiceAccountResponse parses an HTTP response from a ServiceAccountServiceGetServiceAccountWithResponse call -func ParseServiceAccountServiceGetServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceGetServiceAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) if err != nil { return nil, err } + return &ClientWithResponses{client}, nil +} - response := &ServiceAccountServiceGetServiceAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil } +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ServiceAccountResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { - } + // AgentServiceListAgentsWithResponse performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceListAgentsWithResponse(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*AgentServiceListAgentsResponse, error) + + // AgentServiceCreateAgentWithBodyWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceCreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) + + // AgentServiceCreateAgentWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + AgentServiceCreateAgentWithResponse(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) + + // AgentServiceDeleteAgentWithResponse performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceDeleteAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceDeleteAgentResponse, error) - return response, nil -} + // AgentServiceGetAgentWithResponse performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceGetAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceGetAgentResponse, error) -// ParseServiceAccountServiceUpdateServiceAccountResponse parses an HTTP response from a ServiceAccountServiceUpdateServiceAccountWithResponse call -func ParseServiceAccountServiceUpdateServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // AgentServiceUpdateAgentWithBodyWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceUpdateAgentWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) - response := &ServiceAccountServiceUpdateServiceAccountResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // AgentServiceUpdateAgentWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + AgentServiceUpdateAgentWithResponse(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ServiceAccountResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // AgentServiceGeneratePeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceGeneratePeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) - } + // AgentServiceGeneratePeeringConfigWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + AgentServiceGeneratePeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) - return response, nil -} + // AgentServiceUploadInboundPeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + AgentServiceUploadInboundPeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) -// ParseServiceAccountServiceListTokensResponse parses an HTTP response from a ServiceAccountServiceListTokensWithResponse call -func ParseServiceAccountServiceListTokensResponse(rsp *http.Response) (*ServiceAccountServiceListTokensResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // AgentServiceUploadInboundPeeringConfigWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + AgentServiceUploadInboundPeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) - response := &ServiceAccountServiceListTokensResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // GroupServiceAddServiceAccountToGroupWithBodyWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + GroupServiceAddServiceAccountToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListServiceAccountTokensResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // GroupServiceAddServiceAccountToGroupWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + GroupServiceAddServiceAccountToGroupWithResponse(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) - } + // GroupServiceRemoveServiceAccountFromGroupWithResponse performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + GroupServiceRemoveServiceAccountFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) - return response, nil -} + // MetricsCredentialServiceListMetricsWriteCredentialsWithResponse performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + MetricsCredentialServiceListMetricsWriteCredentialsWithResponse(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) -// ParseServiceAccountServiceGenerateTokenResponse parses an HTTP response from a ServiceAccountServiceGenerateTokenWithResponse call -func ParseServiceAccountServiceGenerateTokenResponse(rsp *http.Response) (*ServiceAccountServiceGenerateTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) - response := &ServiceAccountServiceGenerateTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GenerateServiceAccountTokenResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) - } + // MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) - return response, nil -} + // OrganizationServiceGetOrganizationWithResponse performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + OrganizationServiceGetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceGetOrganizationResponse, error) -// ParseSSHKeyServiceListSSHKeysResponse parses an HTTP response from a SSHKeyServiceListSSHKeysWithResponse call -func ParseSSHKeyServiceListSSHKeysResponse(rsp *http.Response) (*SSHKeyServiceListSSHKeysResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // OrganizationServiceListOrganizationsWithResponse performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + OrganizationServiceListOrganizationsWithResponse(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*OrganizationServiceListOrganizationsResponse, error) - response := &SSHKeyServiceListSSHKeysResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // MetadataServiceGetPlatformVersionsWithResponse performs a GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + MetadataServiceGetPlatformVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetPlatformVersionsResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListSSHKeysResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) - } + // RoleServiceReplaceRoleForServiceAccountWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + RoleServiceReplaceRoleForServiceAccountWithResponse(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) - return response, nil -} + // ServiceAccountServiceListServiceAccountsWithResponse performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceListServiceAccountsWithResponse(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListServiceAccountsResponse, error) -// ParseSSHKeyServiceCreateSSHKeyResponse parses an HTTP response from a SSHKeyServiceCreateSSHKeyWithResponse call -func ParseSSHKeyServiceCreateSSHKeyResponse(rsp *http.Response) (*SSHKeyServiceCreateSSHKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // ServiceAccountServiceCreateServiceAccountWithBodyWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceCreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) - response := &SSHKeyServiceCreateSSHKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // ServiceAccountServiceCreateServiceAccountWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + ServiceAccountServiceCreateServiceAccountWithResponse(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateSSHKeyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // ServiceAccountServiceRevokeTokenWithResponse performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceRevokeTokenWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceRevokeTokenResponse, error) - } + // ServiceAccountServiceDeleteServiceAccountWithResponse performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceDeleteServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceDeleteServiceAccountResponse, error) - return response, nil -} + // ServiceAccountServiceGetServiceAccountWithResponse performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceGetServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGetServiceAccountResponse, error) -// ParseSSHKeyServiceDeleteSSHKeyResponse parses an HTTP response from a SSHKeyServiceDeleteSSHKeyWithResponse call -func ParseSSHKeyServiceDeleteSSHKeyResponse(rsp *http.Response) (*SSHKeyServiceDeleteSSHKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + // ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) - response := &SSHKeyServiceDeleteSSHKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // ServiceAccountServiceUpdateServiceAccountWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + ServiceAccountServiceUpdateServiceAccountWithResponse(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + // ServiceAccountServiceListTokensWithResponse performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceListTokensWithResponse(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListTokensResponse, error) - } + // ServiceAccountServiceGenerateTokenWithBodyWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, + // with any type of body and a specified content type. + // + // Returns a wrapper object for the known response body format(s). + ServiceAccountServiceGenerateTokenWithBodyWithResponse(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) - return response, nil + // ServiceAccountServiceGenerateTokenWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + ServiceAccountServiceGenerateTokenWithResponse(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) } -// ParseSSHKeyServiceGetSSHKeyResponse parses an HTTP response from a SSHKeyServiceGetSSHKeyWithResponse call -func ParseSSHKeyServiceGetSSHKeyResponse(rsp *http.Response) (*SSHKeyServiceGetSSHKeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type AgentServiceListAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ListAgentsResponse +} - response := &SSHKeyServiceGetSSHKeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceListAgentsResponse) GetJSON200() *V1ListAgentsResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSSHKeyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r AgentServiceListAgentsResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r AgentServiceListAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseSubscriptionServiceListSubscriptionsResponse parses an HTTP response from a SubscriptionServiceListSubscriptionsWithResponse call -func ParseSubscriptionServiceListSubscriptionsResponse(rsp *http.Response) (*SubscriptionServiceListSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceListAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &SubscriptionServiceListSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceListAgentsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListSubscriptionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type AgentServiceCreateAgentResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1GetAgentResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceCreateAgentResponse) GetJSON200() *V1GetAgentResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r AgentServiceCreateAgentResponse) GetBody() []byte { + return r.Body } -// ParseAddonServiceListAddonSubscriptionsResponse parses an HTTP response from a AddonServiceListAddonSubscriptionsWithResponse call -func ParseAddonServiceListAddonSubscriptionsResponse(rsp *http.Response) (*AddonServiceListAddonSubscriptionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AgentServiceCreateAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &AddonServiceListAddonSubscriptionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceCreateAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListAddonSubscriptionsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceCreateAgentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseAddonServiceAddAddonToSubscriptionResponse parses an HTTP response from a AddonServiceAddAddonToSubscriptionWithResponse call -func ParseAddonServiceAddAddonToSubscriptionResponse(rsp *http.Response) (*AddonServiceAddAddonToSubscriptionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type AgentServiceDeleteAgentResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1SuccessResponse +} - response := &AddonServiceAddAddonToSubscriptionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceDeleteAgentResponse) GetJSON200() *V1SuccessResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1AddAddonToSubscriptionResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r AgentServiceDeleteAgentResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r AgentServiceDeleteAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseSubscriptionServiceCancelResponse parses an HTTP response from a SubscriptionServiceCancelWithResponse call -func ParseSubscriptionServiceCancelResponse(rsp *http.Response) (*SubscriptionServiceCancelResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceDeleteAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &SubscriptionServiceCancelResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceDeleteAgentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CancelResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type AgentServiceGetAgentResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1GetAgentResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceGetAgentResponse) GetJSON200() *V1GetAgentResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r AgentServiceGetAgentResponse) GetBody() []byte { + return r.Body } -// ParseSubscriptionServiceCancelRenewalResponse parses an HTTP response from a SubscriptionServiceCancelRenewalWithResponse call -func ParseSubscriptionServiceCancelRenewalResponse(rsp *http.Response) (*SubscriptionServiceCancelRenewalResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AgentServiceGetAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &SubscriptionServiceCancelRenewalResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceGetAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CancelResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceGetAgentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseSubscriptionServiceRetryPaymentResponse parses an HTTP response from a SubscriptionServiceRetryPaymentWithResponse call -func ParseSubscriptionServiceRetryPaymentResponse(rsp *http.Response) (*SubscriptionServiceRetryPaymentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type AgentServiceUpdateAgentResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1UpdateAgentResponse +} - response := &SubscriptionServiceRetryPaymentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceUpdateAgentResponse) GetJSON200() *V1UpdateAgentResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1RetryPaymentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r AgentServiceUpdateAgentResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r AgentServiceUpdateAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseSubscriptionServiceGetSubscriptionStatusResponse parses an HTTP response from a SubscriptionServiceGetSubscriptionStatusWithResponse call -func ParseSubscriptionServiceGetSubscriptionStatusResponse(rsp *http.Response) (*SubscriptionServiceGetSubscriptionStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceUpdateAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &SubscriptionServiceGetSubscriptionStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceUpdateAgentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSubscriptionStatusResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type AgentServiceGeneratePeeringConfigResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1GeneratePeeringConfigResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceGeneratePeeringConfigResponse) GetJSON200() *V1GeneratePeeringConfigResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r AgentServiceGeneratePeeringConfigResponse) GetBody() []byte { + return r.Body } -// ParseSubscriptionServiceUndoCancelRenewalResponse parses an HTTP response from a SubscriptionServiceUndoCancelRenewalWithResponse call -func ParseSubscriptionServiceUndoCancelRenewalResponse(rsp *http.Response) (*SubscriptionServiceUndoCancelRenewalResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r AgentServiceGeneratePeeringConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &SubscriptionServiceUndoCancelRenewalResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceGeneratePeeringConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CancelResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceGeneratePeeringConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseTicketServiceListTicketTemplatesResponse parses an HTTP response from a TicketServiceListTicketTemplatesWithResponse call -func ParseTicketServiceListTicketTemplatesResponse(rsp *http.Response) (*TicketServiceListTicketTemplatesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type AgentServiceUploadInboundPeeringConfigResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1UploadInboundPeeringConfigResponse +} - response := &TicketServiceListTicketTemplatesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r AgentServiceUploadInboundPeeringConfigResponse) GetJSON200() *V1UploadInboundPeeringConfigResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListTicketTemplatesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r AgentServiceUploadInboundPeeringConfigResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r AgentServiceUploadInboundPeeringConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseTicketServiceCreateTicketTemplateResponse parses an HTTP response from a TicketServiceCreateTicketTemplateWithResponse call -func ParseTicketServiceCreateTicketTemplateResponse(rsp *http.Response) (*TicketServiceCreateTicketTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r AgentServiceUploadInboundPeeringConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceCreateTicketTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AgentServiceUploadInboundPeeringConfigResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TicketTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type GroupServiceAddServiceAccountToGroupResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1SuccessResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GroupServiceAddServiceAccountToGroupResponse) GetJSON200() *V1SuccessResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r GroupServiceAddServiceAccountToGroupResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceDeleteTicketTemplateResponse parses an HTTP response from a TicketServiceDeleteTicketTemplateWithResponse call -func ParseTicketServiceDeleteTicketTemplateResponse(rsp *http.Response) (*TicketServiceDeleteTicketTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GroupServiceAddServiceAccountToGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceDeleteTicketTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r GroupServiceAddServiceAccountToGroupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GroupServiceAddServiceAccountToGroupResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseTicketServiceGetTicketTemplateResponse parses an HTTP response from a TicketServiceGetTicketTemplateWithResponse call -func ParseTicketServiceGetTicketTemplateResponse(rsp *http.Response) (*TicketServiceGetTicketTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type GroupServiceRemoveServiceAccountFromGroupResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1SuccessResponse +} - response := &TicketServiceGetTicketTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GroupServiceRemoveServiceAccountFromGroupResponse) GetJSON200() *V1SuccessResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TicketTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r GroupServiceRemoveServiceAccountFromGroupResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r GroupServiceRemoveServiceAccountFromGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseTicketServiceUpdateTicketTemplateResponse parses an HTTP response from a TicketServiceUpdateTicketTemplateWithResponse call -func ParseTicketServiceUpdateTicketTemplateResponse(rsp *http.Response) (*TicketServiceUpdateTicketTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GroupServiceRemoveServiceAccountFromGroupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceUpdateTicketTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GroupServiceRemoveServiceAccountFromGroupResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TicketTemplate - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type MetricsCredentialServiceListMetricsWriteCredentialsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ListMetricsWriteCredentialsResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) GetJSON200() *V1ListMetricsWriteCredentialsResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceListTicketsResponse parses an HTTP response from a TicketServiceListTicketsWithResponse call -func ParseTicketServiceListTicketsResponse(rsp *http.Response) (*TicketServiceListTicketsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceListTicketsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListTicketsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r MetricsCredentialServiceListMetricsWriteCredentialsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} - } +type MetricsCredentialServiceCreateMetricsWriteCredentialResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1CreateMetricsWriteCredentialResponse +} - return response, nil +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) GetJSON200() *V1CreateMetricsWriteCredentialResponse { + return r.JSON200 } -// ParseTicketServiceCreateTicketResponse parses an HTTP response from a TicketServiceCreateTicketWithResponse call -func ParseTicketServiceCreateTicketResponse(rsp *http.Response) (*TicketServiceCreateTicketResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +// GetBody returns the raw response body bytes +func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) GetBody() []byte { + return r.Body +} - response := &TicketServiceCreateTicketResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// Status returns HTTPResponse.Status +func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateTicketResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return response, nil + return 0 } -// ParseTicketServiceDeleteTicketAttachmentResponse parses an HTTP response from a TicketServiceDeleteTicketAttachmentWithResponse call -func ParseTicketServiceDeleteTicketAttachmentResponse(rsp *http.Response) (*TicketServiceDeleteTicketAttachmentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r MetricsCredentialServiceCreateMetricsWriteCredentialResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - response := &TicketServiceDeleteTicketAttachmentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +type MetricsCredentialServiceRotateMetricsWriteCredentialResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1CreateMetricsWriteCredentialResponse +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) GetJSON200() *V1CreateMetricsWriteCredentialResponse { + return r.JSON200 +} - } +// GetBody returns the raw response body bytes +func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) GetBody() []byte { + return r.Body +} - return response, nil +// Status returns HTTPResponse.Status +func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// ParseTicketServiceDownloadTicketAttachmentResponse parses an HTTP response from a TicketServiceDownloadTicketAttachmentWithResponse call -func ParseTicketServiceDownloadTicketAttachmentResponse(rsp *http.Response) (*TicketServiceDownloadTicketAttachmentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceDownloadTicketAttachmentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r MetricsCredentialServiceRotateMetricsWriteCredentialResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1DownloadTicketAttachmentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type OrganizationServiceGetOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1GetOrganizationResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r OrganizationServiceGetOrganizationResponse) GetJSON200() *V1GetOrganizationResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r OrganizationServiceGetOrganizationResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceConfirmTicketAttachmentUploadResponse parses an HTTP response from a TicketServiceConfirmTicketAttachmentUploadWithResponse call -func ParseTicketServiceConfirmTicketAttachmentUploadResponse(rsp *http.Response) (*TicketServiceConfirmTicketAttachmentUploadResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r OrganizationServiceGetOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceConfirmTicketAttachmentUploadResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r OrganizationServiceGetOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TicketAttachment - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r OrganizationServiceGetOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseTicketServiceUploadTicketAttachmentContentResponse parses an HTTP response from a TicketServiceUploadTicketAttachmentContentWithResponse call -func ParseTicketServiceUploadTicketAttachmentContentResponse(rsp *http.Response) (*TicketServiceUploadTicketAttachmentContentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type OrganizationServiceListOrganizationsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ListOrganizationsResponse +} - response := &TicketServiceUploadTicketAttachmentContentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r OrganizationServiceListOrganizationsResponse) GetJSON200() *V1ListOrganizationsResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1TicketAttachment - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r OrganizationServiceListOrganizationsResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r OrganizationServiceListOrganizationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseTicketServiceDeleteTicketResponse parses an HTTP response from a TicketServiceDeleteTicketWithResponse call -func ParseTicketServiceDeleteTicketResponse(rsp *http.Response) (*TicketServiceDeleteTicketResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r OrganizationServiceListOrganizationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceDeleteTicketResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r OrganizationServiceListOrganizationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type MetadataServiceGetPlatformVersionsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1PlatformVersions +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r MetadataServiceGetPlatformVersionsResponse) GetJSON200() *V1PlatformVersions { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r MetadataServiceGetPlatformVersionsResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceGetTicketResponse parses an HTTP response from a TicketServiceGetTicketWithResponse call -func ParseTicketServiceGetTicketResponse(rsp *http.Response) (*TicketServiceGetTicketResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r MetadataServiceGetPlatformVersionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceGetTicketResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r MetadataServiceGetPlatformVersionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetTicketResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r MetadataServiceGetPlatformVersionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseTicketServiceListTicketAttachmentsResponse parses an HTTP response from a TicketServiceListTicketAttachmentsWithResponse call -func ParseTicketServiceListTicketAttachmentsResponse(rsp *http.Response) (*TicketServiceListTicketAttachmentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type RoleServiceReplaceRoleForServiceAccountResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1SuccessResponse +} - response := &TicketServiceListTicketAttachmentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r RoleServiceReplaceRoleForServiceAccountResponse) GetJSON200() *V1SuccessResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListTicketAttachmentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r RoleServiceReplaceRoleForServiceAccountResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r RoleServiceReplaceRoleForServiceAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseTicketServiceCreateTicketAttachmentUploadResponse parses an HTTP response from a TicketServiceCreateTicketAttachmentUploadWithResponse call -func ParseTicketServiceCreateTicketAttachmentUploadResponse(rsp *http.Response) (*TicketServiceCreateTicketAttachmentUploadResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r RoleServiceReplaceRoleForServiceAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceCreateTicketAttachmentUploadResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RoleServiceReplaceRoleForServiceAccountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1CreateTicketAttachmentUploadResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ServiceAccountServiceListServiceAccountsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ListServiceAccountsResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceListServiceAccountsResponse) GetJSON200() *V1ListServiceAccountsResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceListServiceAccountsResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceListInternalCommentsResponse parses an HTTP response from a TicketServiceListInternalCommentsWithResponse call -func ParseTicketServiceListInternalCommentsResponse(rsp *http.Response) (*TicketServiceListInternalCommentsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceListServiceAccountsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceListInternalCommentsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceListServiceAccountsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListInternalCommentsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceListServiceAccountsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseTicketServiceAddReplyToTicketResponse parses an HTTP response from a TicketServiceAddReplyToTicketWithResponse call -func ParseTicketServiceAddReplyToTicketResponse(rsp *http.Response) (*TicketServiceAddReplyToTicketResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type ServiceAccountServiceCreateServiceAccountResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ServiceAccountResponse +} - response := &TicketServiceAddReplyToTicketResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceCreateServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceCreateServiceAccountResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceCreateServiceAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseTicketServiceAddInternalCommentResponse parses an HTTP response from a TicketServiceAddInternalCommentWithResponse call -func ParseTicketServiceAddInternalCommentResponse(rsp *http.Response) (*TicketServiceAddInternalCommentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceCreateServiceAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &TicketServiceAddInternalCommentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceCreateServiceAccountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1AddInternalCommentResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ServiceAccountServiceRevokeTokenResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *map[string]interface{} +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceRevokeTokenResponse) GetJSON200() *map[string]interface{} { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceRevokeTokenResponse) GetBody() []byte { + return r.Body } -// ParseTicketServiceSetTicketPriorityResponse parses an HTTP response from a TicketServiceSetTicketPriorityWithResponse call -func ParseTicketServiceSetTicketPriorityResponse(rsp *http.Response) (*TicketServiceSetTicketPriorityResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceRevokeTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &TicketServiceSetTicketPriorityResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceRevokeTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceRevokeTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - return response, nil +type ServiceAccountServiceDeleteServiceAccountResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *map[string]interface{} } -// ParseTicketServiceSetTicketStatusResponse parses an HTTP response from a TicketServiceSetTicketStatusWithResponse call -func ParseTicketServiceSetTicketStatusResponse(rsp *http.Response) (*TicketServiceSetTicketStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceDeleteServiceAccountResponse) GetJSON200() *map[string]interface{} { + return r.JSON200 +} - response := &TicketServiceSetTicketStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceDeleteServiceAccountResponse) GetBody() []byte { + return r.Body +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceDeleteServiceAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceDeleteServiceAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - - return response, nil + return 0 } -// ParseTicketServiceSearchTicketsResponse parses an HTTP response from a TicketServiceSearchTicketsWithResponse call -func ParseTicketServiceSearchTicketsResponse(rsp *http.Response) (*TicketServiceSearchTicketsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceDeleteServiceAccountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - response := &TicketServiceSearchTicketsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +type ServiceAccountServiceGetServiceAccountResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ServiceAccountResponse +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SearchTicketsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceGetServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { + return r.JSON200 +} - } +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceGetServiceAccountResponse) GetBody() []byte { + return r.Body +} - return response, nil +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceGetServiceAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// ParseUsageReportServiceRecordUsageResponse parses an HTTP response from a UsageReportServiceRecordUsageWithResponse call -func ParseUsageReportServiceRecordUsageResponse(rsp *http.Response) (*UsageReportServiceRecordUsageResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceGetServiceAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &UsageReportServiceRecordUsageResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceGetServiceAccountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1RecordUsageResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ServiceAccountServiceUpdateServiceAccountResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ServiceAccountResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceUpdateServiceAccountResponse) GetJSON200() *V1ServiceAccountResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceUpdateServiceAccountResponse) GetBody() []byte { + return r.Body } -// ParseUsageReportServiceBatchRecordUsageResponse parses an HTTP response from a UsageReportServiceBatchRecordUsageWithResponse call -func ParseUsageReportServiceBatchRecordUsageResponse(rsp *http.Response) (*UsageReportServiceBatchRecordUsageResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceUpdateServiceAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UsageReportServiceBatchRecordUsageResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceUpdateServiceAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1BatchRecordUsageResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceUpdateServiceAccountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseUsageReportServiceListUsageRecordsResponse parses an HTTP response from a UsageReportServiceListUsageRecordsWithResponse call -func ParseUsageReportServiceListUsageRecordsResponse(rsp *http.Response) (*UsageReportServiceListUsageRecordsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } +type ServiceAccountServiceListTokensResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1ListServiceAccountTokensResponse +} - response := &UsageReportServiceListUsageRecordsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceListTokensResponse) GetJSON200() *V1ListServiceAccountTokensResponse { + return r.JSON200 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListUsageRecordsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceListTokensResponse) GetBody() []byte { + return r.Body +} +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceListTokensResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - - return response, nil + return http.StatusText(0) } -// ParseUsageReportServiceGetUsageRecordResponse parses an HTTP response from a UsageReportServiceGetUsageRecordWithResponse call -func ParseUsageReportServiceGetUsageRecordResponse(rsp *http.Response) (*UsageReportServiceGetUsageRecordResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceListTokensResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - response := &UsageReportServiceGetUsageRecordResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceListTokensResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } + return "" +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetUsageRecordResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest +type ServiceAccountServiceGenerateTokenResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *V1GenerateServiceAccountTokenResponse +} - } +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ServiceAccountServiceGenerateTokenResponse) GetJSON200() *V1GenerateServiceAccountTokenResponse { + return r.JSON200 +} - return response, nil +// GetBody returns the raw response body bytes +func (r ServiceAccountServiceGenerateTokenResponse) GetBody() []byte { + return r.Body } -// ParseUsageReportServiceGetUsageReportResponse parses an HTTP response from a UsageReportServiceGetUsageReportWithResponse call -func ParseUsageReportServiceGetUsageReportResponse(rsp *http.Response) (*UsageReportServiceGetUsageReportResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r ServiceAccountServiceGenerateTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } + return http.StatusText(0) +} - response := &UsageReportServiceGetUsageReportResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// StatusCode returns HTTPResponse.StatusCode +func (r ServiceAccountServiceGenerateTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } + return 0 +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetUsageReportResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ServiceAccountServiceGenerateTokenResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - - return response, nil + return "" } -// ParseUserServiceListUsersResponse parses an HTTP response from a UserServiceListUsersWithResponse call -func ParseUserServiceListUsersResponse(rsp *http.Response) (*UserServiceListUsersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AgentServiceListAgentsWithResponse performs a GET /v1/agents (the `AgentServiceListAgents` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceListAgentsWithResponse(ctx context.Context, params *AgentServiceListAgentsParams, reqEditors ...RequestEditorFn) (*AgentServiceListAgentsResponse, error) { + rsp, err := c.AgentServiceListAgents(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseAgentServiceListAgentsResponse(rsp) +} - response := &UserServiceListUsersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListUsersResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// AgentServiceCreateAgentWithBodyWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceCreateAgentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) { + rsp, err := c.AgentServiceCreateAgentWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAgentServiceCreateAgentResponse(rsp) } -// ParseUserServiceDeleteUserResponse parses an HTTP response from a UserServiceDeleteUserWithResponse call -func ParseUserServiceDeleteUserResponse(rsp *http.Response) (*UserServiceDeleteUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AgentServiceCreateAgentWithResponse performs a POST /v1/agents (the `AgentServiceCreateAgent` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceCreateAgentWithResponse(ctx context.Context, body AgentServiceCreateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceCreateAgentResponse, error) { + rsp, err := c.AgentServiceCreateAgent(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseAgentServiceCreateAgentResponse(rsp) +} - response := &UserServiceDeleteUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// AgentServiceDeleteAgentWithResponse performs a DELETE /v1/agents/{id} (the `AgentServiceDeleteAgent` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceDeleteAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceDeleteAgentResponse, error) { + rsp, err := c.AgentServiceDeleteAgent(ctx, id, reqEditors...) + if err != nil { + return nil, err } + return ParseAgentServiceDeleteAgentResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// AgentServiceGetAgentWithResponse performs a GET /v1/agents/{id} (the `AgentServiceGetAgent` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceGetAgentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*AgentServiceGetAgentResponse, error) { + rsp, err := c.AgentServiceGetAgent(ctx, id, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAgentServiceGetAgentResponse(rsp) } -// ParseUserServiceGetUserResponse parses an HTTP response from a UserServiceGetUserWithResponse call -func ParseUserServiceGetUserResponse(rsp *http.Response) (*UserServiceGetUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AgentServiceUpdateAgentWithBodyWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceUpdateAgentWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) { + rsp, err := c.AgentServiceUpdateAgentWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseAgentServiceUpdateAgentResponse(rsp) +} - response := &UserServiceGetUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// AgentServiceUpdateAgentWithResponse performs a PATCH /v1/agents/{id} (the `AgentServiceUpdateAgent` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceUpdateAgentWithResponse(ctx context.Context, id string, body AgentServiceUpdateAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUpdateAgentResponse, error) { + rsp, err := c.AgentServiceUpdateAgent(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } + return ParseAgentServiceUpdateAgentResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetUserResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// AgentServiceGeneratePeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceGeneratePeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) { + rsp, err := c.AgentServiceGeneratePeeringConfigWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAgentServiceGeneratePeeringConfigResponse(rsp) } -// ParseUserServiceUpdateUserResponse parses an HTTP response from a UserServiceUpdateUserWithResponse call -func ParseUserServiceUpdateUserResponse(rsp *http.Response) (*UserServiceUpdateUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// AgentServiceGeneratePeeringConfigWithResponse performs a POST /v1/agents/{id}:generatePeeringConfig (the `AgentServiceGeneratePeeringConfig` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceGeneratePeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceGeneratePeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceGeneratePeeringConfigResponse, error) { + rsp, err := c.AgentServiceGeneratePeeringConfig(ctx, id, body, reqEditors...) if err != nil { return nil, err } + return ParseAgentServiceGeneratePeeringConfigResponse(rsp) +} - response := &UserServiceUpdateUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// AgentServiceUploadInboundPeeringConfigWithBodyWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceUploadInboundPeeringConfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) { + rsp, err := c.AgentServiceUploadInboundPeeringConfigWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseAgentServiceUploadInboundPeeringConfigResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateUserResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// AgentServiceUploadInboundPeeringConfigWithResponse performs a POST /v1/agents/{id}:uploadInboundPeeringConfig (the `AgentServiceUploadInboundPeeringConfig` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) AgentServiceUploadInboundPeeringConfigWithResponse(ctx context.Context, id string, body AgentServiceUploadInboundPeeringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*AgentServiceUploadInboundPeeringConfigResponse, error) { + rsp, err := c.AgentServiceUploadInboundPeeringConfig(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseAgentServiceUploadInboundPeeringConfigResponse(rsp) } -// ParseMetadataServiceGetVersionResponse parses an HTTP response from a MetadataServiceGetVersionWithResponse call -func ParseMetadataServiceGetVersionResponse(rsp *http.Response) (*MetadataServiceGetVersionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// GroupServiceAddServiceAccountToGroupWithBodyWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) GroupServiceAddServiceAccountToGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) { + rsp, err := c.GroupServiceAddServiceAccountToGroupWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseGroupServiceAddServiceAccountToGroupResponse(rsp) +} - response := &MetadataServiceGetVersionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// GroupServiceAddServiceAccountToGroupWithResponse performs a POST /v1/groups/add-service-account (the `GroupServiceAddServiceAccountToGroup` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) GroupServiceAddServiceAccountToGroupWithResponse(ctx context.Context, body GroupServiceAddServiceAccountToGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*GroupServiceAddServiceAccountToGroupResponse, error) { + rsp, err := c.GroupServiceAddServiceAccountToGroup(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseGroupServiceAddServiceAccountToGroupResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1Metadata - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// GroupServiceRemoveServiceAccountFromGroupWithResponse performs a DELETE /v1/groups/remove-service-account (the `GroupServiceRemoveServiceAccountFromGroup` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) GroupServiceRemoveServiceAccountFromGroupWithResponse(ctx context.Context, params *GroupServiceRemoveServiceAccountFromGroupParams, reqEditors ...RequestEditorFn) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) { + rsp, err := c.GroupServiceRemoveServiceAccountFromGroup(ctx, params, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseGroupServiceRemoveServiceAccountFromGroupResponse(rsp) } -// ParseVirtualMachineServiceListVirtualMachinesResponse parses an HTTP response from a VirtualMachineServiceListVirtualMachinesWithResponse call -func ParseVirtualMachineServiceListVirtualMachinesResponse(rsp *http.Response) (*VirtualMachineServiceListVirtualMachinesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceListMetricsWriteCredentialsWithResponse performs a GET /v1/metrics-write-credentials (the `MetricsCredentialServiceListMetricsWriteCredentials` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetricsCredentialServiceListMetricsWriteCredentialsWithResponse(ctx context.Context, params *MetricsCredentialServiceListMetricsWriteCredentialsParams, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) { + rsp, err := c.MetricsCredentialServiceListMetricsWriteCredentials(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse(rsp) +} - response := &VirtualMachineServiceListVirtualMachinesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetricsCredentialServiceCreateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { + rsp, err := c.MetricsCredentialServiceCreateMetricsWriteCredentialWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListVirtualMachinesResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials (the `MetricsCredentialServiceCreateMetricsWriteCredential` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse(ctx context.Context, body MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { + rsp, err := c.MetricsCredentialServiceCreateMetricsWriteCredential(ctx, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp) } -// ParseVirtualMachineServiceCreateVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceCreateVirtualMachineWithResponse call -func ParseVirtualMachineServiceCreateVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceCreateVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetricsCredentialServiceRotateMetricsWriteCredentialWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { + rsp, err := c.MetricsCredentialServiceRotateMetricsWriteCredentialWithBody(ctx, id, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp) +} - response := &VirtualMachineServiceCreateVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse performs a POST /v1/metrics-write-credentials/{id}:rotate (the `MetricsCredentialServiceRotateMetricsWriteCredential` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse(ctx context.Context, id string, body MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { + rsp, err := c.MetricsCredentialServiceRotateMetricsWriteCredential(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } + return ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// OrganizationServiceGetOrganizationWithResponse performs a GET /v1/organization (the `OrganizationServiceGetOrganization` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) OrganizationServiceGetOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OrganizationServiceGetOrganizationResponse, error) { + rsp, err := c.OrganizationServiceGetOrganization(ctx, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseOrganizationServiceGetOrganizationResponse(rsp) } -// ParseVirtualMachineServiceListVMTagsResponse parses an HTTP response from a VirtualMachineServiceListVMTagsWithResponse call -func ParseVirtualMachineServiceListVMTagsResponse(rsp *http.Response) (*VirtualMachineServiceListVMTagsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// OrganizationServiceListOrganizationsWithResponse performs a GET /v1/organizations (the `OrganizationServiceListOrganizations` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) OrganizationServiceListOrganizationsWithResponse(ctx context.Context, params *OrganizationServiceListOrganizationsParams, reqEditors ...RequestEditorFn) (*OrganizationServiceListOrganizationsResponse, error) { + rsp, err := c.OrganizationServiceListOrganizations(ctx, params, reqEditors...) if err != nil { return nil, err } + return ParseOrganizationServiceListOrganizationsResponse(rsp) +} - response := &VirtualMachineServiceListVMTagsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// MetadataServiceGetPlatformVersionsWithResponse performs a GET /v1/platform-versions (the `MetadataServiceGetPlatformVersions` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) MetadataServiceGetPlatformVersionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataServiceGetPlatformVersionsResponse, error) { + rsp, err := c.MetadataServiceGetPlatformVersions(ctx, reqEditors...) + if err != nil { + return nil, err } + return ParseMetadataServiceGetPlatformVersionsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListVMTagsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) RoleServiceReplaceRoleForServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { + rsp, err := c.RoleServiceReplaceRoleForServiceAccountWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp) } -// ParseVirtualMachineServiceDeleteVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceDeleteVirtualMachineWithResponse call -func ParseVirtualMachineServiceDeleteVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceDeleteVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// RoleServiceReplaceRoleForServiceAccountWithResponse performs a PUT /v1/roles/replace-for-service-account (the `RoleServiceReplaceRoleForServiceAccount` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) RoleServiceReplaceRoleForServiceAccountWithResponse(ctx context.Context, body RoleServiceReplaceRoleForServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { + rsp, err := c.RoleServiceReplaceRoleForServiceAccount(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp) +} - response := &VirtualMachineServiceDeleteVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ServiceAccountServiceListServiceAccountsWithResponse performs a GET /v1/service-accounts (the `ServiceAccountServiceListServiceAccounts` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceListServiceAccountsWithResponse(ctx context.Context, params *ServiceAccountServiceListServiceAccountsParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListServiceAccountsResponse, error) { + rsp, err := c.ServiceAccountServiceListServiceAccounts(ctx, params, reqEditors...) + if err != nil { + return nil, err } + return ParseServiceAccountServiceListServiceAccountsResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceCreateServiceAccountWithBodyWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceCreateServiceAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceCreateServiceAccountWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseServiceAccountServiceCreateServiceAccountResponse(rsp) } -// ParseVirtualMachineServiceGetVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceGetVirtualMachineWithResponse call -func ParseVirtualMachineServiceGetVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceGetVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceCreateServiceAccountWithResponse performs a POST /v1/service-accounts (the `ServiceAccountServiceCreateServiceAccount` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceCreateServiceAccountWithResponse(ctx context.Context, body ServiceAccountServiceCreateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceCreateServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceCreateServiceAccount(ctx, body, reqEditors...) if err != nil { return nil, err } + return ParseServiceAccountServiceCreateServiceAccountResponse(rsp) +} - response := &VirtualMachineServiceGetVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ServiceAccountServiceRevokeTokenWithResponse performs a DELETE /v1/service-accounts/tokens/{tokenId} (the `ServiceAccountServiceRevokeToken` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceRevokeTokenWithResponse(ctx context.Context, tokenId string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceRevokeTokenResponse, error) { + rsp, err := c.ServiceAccountServiceRevokeToken(ctx, tokenId, reqEditors...) + if err != nil { + return nil, err } + return ParseServiceAccountServiceRevokeTokenResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceDeleteServiceAccountWithResponse performs a DELETE /v1/service-accounts/{id} (the `ServiceAccountServiceDeleteServiceAccount` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceDeleteServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceDeleteServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceDeleteServiceAccount(ctx, id, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseServiceAccountServiceDeleteServiceAccountResponse(rsp) } -// ParseVirtualMachineServiceUpdateVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceUpdateVirtualMachineWithResponse call -func ParseVirtualMachineServiceUpdateVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceUpdateVirtualMachineResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceGetServiceAccountWithResponse performs a GET /v1/service-accounts/{id} (the `ServiceAccountServiceGetServiceAccount` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceGetServiceAccountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGetServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceGetServiceAccount(ctx, id, reqEditors...) if err != nil { return nil, err } + return ParseServiceAccountServiceGetServiceAccountResponse(rsp) +} - response := &VirtualMachineServiceUpdateVirtualMachineResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceUpdateServiceAccountWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceUpdateServiceAccountWithBody(ctx, id, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseServiceAccountServiceUpdateServiceAccountResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceUpdateServiceAccountWithResponse performs a PATCH /v1/service-accounts/{id} (the `ServiceAccountServiceUpdateServiceAccount` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceUpdateServiceAccountWithResponse(ctx context.Context, id string, body ServiceAccountServiceUpdateServiceAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { + rsp, err := c.ServiceAccountServiceUpdateServiceAccount(ctx, id, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseServiceAccountServiceUpdateServiceAccountResponse(rsp) } -// ParseVirtualMachineServiceGetVNCConsoleResponse parses an HTTP response from a VirtualMachineServiceGetVNCConsoleWithResponse call -func ParseVirtualMachineServiceGetVNCConsoleResponse(rsp *http.Response) (*VirtualMachineServiceGetVNCConsoleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// ServiceAccountServiceListTokensWithResponse performs a GET /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceListTokens` operationId) request. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceListTokensWithResponse(ctx context.Context, serviceAccountId string, params *ServiceAccountServiceListTokensParams, reqEditors ...RequestEditorFn) (*ServiceAccountServiceListTokensResponse, error) { + rsp, err := c.ServiceAccountServiceListTokens(ctx, serviceAccountId, params, reqEditors...) if err != nil { return nil, err } + return ParseServiceAccountServiceListTokensResponse(rsp) +} - response := &VirtualMachineServiceGetVNCConsoleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// ServiceAccountServiceGenerateTokenWithBodyWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request, +// with any type of body and a specified content type. +// +// Returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceGenerateTokenWithBodyWithResponse(ctx context.Context, serviceAccountId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) { + rsp, err := c.ServiceAccountServiceGenerateTokenWithBody(ctx, serviceAccountId, contentType, body, reqEditors...) + if err != nil { + return nil, err } + return ParseServiceAccountServiceGenerateTokenResponse(rsp) +} - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetVNCConsoleResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - +// ServiceAccountServiceGenerateTokenWithResponse performs a POST /v1/service-accounts/{serviceAccountId}/tokens (the `ServiceAccountServiceGenerateToken` operationId) request. +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +func (c *ClientWithResponses) ServiceAccountServiceGenerateTokenWithResponse(ctx context.Context, serviceAccountId string, body ServiceAccountServiceGenerateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*ServiceAccountServiceGenerateTokenResponse, error) { + rsp, err := c.ServiceAccountServiceGenerateToken(ctx, serviceAccountId, body, reqEditors...) + if err != nil { + return nil, err } - - return response, nil + return ParseServiceAccountServiceGenerateTokenResponse(rsp) } -// ParseVirtualMachineServiceAttachVMFirewallResponse parses an HTTP response from a VirtualMachineServiceAttachVMFirewallWithResponse call -func ParseVirtualMachineServiceAttachVMFirewallResponse(rsp *http.Response) (*VirtualMachineServiceAttachVMFirewallResponse, error) { +// ParseAgentServiceListAgentsResponse parses an HTTP response from a AgentServiceListAgentsWithResponse call +func ParseAgentServiceListAgentsResponse(rsp *http.Response) (*AgentServiceListAgentsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceAttachVMFirewallResponse{ + response := &AgentServiceListAgentsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1ListAgentsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58822,22 +3491,22 @@ func ParseVirtualMachineServiceAttachVMFirewallResponse(rsp *http.Response) (*Vi return response, nil } -// ParseVirtualMachineServiceDetachVMFirewallResponse parses an HTTP response from a VirtualMachineServiceDetachVMFirewallWithResponse call -func ParseVirtualMachineServiceDetachVMFirewallResponse(rsp *http.Response) (*VirtualMachineServiceDetachVMFirewallResponse, error) { +// ParseAgentServiceCreateAgentResponse parses an HTTP response from a AgentServiceCreateAgentWithResponse call +func ParseAgentServiceCreateAgentResponse(rsp *http.Response) (*AgentServiceCreateAgentResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceDetachVMFirewallResponse{ + response := &AgentServiceCreateAgentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1GetAgentResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58848,22 +3517,22 @@ func ParseVirtualMachineServiceDetachVMFirewallResponse(rsp *http.Response) (*Vi return response, nil } -// ParseVirtualMachineServiceReinstallVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceReinstallVirtualMachineWithResponse call -func ParseVirtualMachineServiceReinstallVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceReinstallVirtualMachineResponse, error) { +// ParseAgentServiceDeleteAgentResponse parses an HTTP response from a AgentServiceDeleteAgentWithResponse call +func ParseAgentServiceDeleteAgentResponse(rsp *http.Response) (*AgentServiceDeleteAgentResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceReinstallVirtualMachineResponse{ + response := &AgentServiceDeleteAgentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine + var dest V1SuccessResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58874,22 +3543,22 @@ func ParseVirtualMachineServiceReinstallVirtualMachineResponse(rsp *http.Respons return response, nil } -// ParseVirtualMachineServiceRestartVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceRestartVirtualMachineWithResponse call -func ParseVirtualMachineServiceRestartVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceRestartVirtualMachineResponse, error) { +// ParseAgentServiceGetAgentResponse parses an HTTP response from a AgentServiceGetAgentWithResponse call +func ParseAgentServiceGetAgentResponse(rsp *http.Response) (*AgentServiceGetAgentResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceRestartVirtualMachineResponse{ + response := &AgentServiceGetAgentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine + var dest V1GetAgentResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58900,22 +3569,22 @@ func ParseVirtualMachineServiceRestartVirtualMachineResponse(rsp *http.Response) return response, nil } -// ParseVirtualMachineServiceStartVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceStartVirtualMachineWithResponse call -func ParseVirtualMachineServiceStartVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceStartVirtualMachineResponse, error) { +// ParseAgentServiceUpdateAgentResponse parses an HTTP response from a AgentServiceUpdateAgentWithResponse call +func ParseAgentServiceUpdateAgentResponse(rsp *http.Response) (*AgentServiceUpdateAgentResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceStartVirtualMachineResponse{ + response := &AgentServiceUpdateAgentResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine + var dest V1UpdateAgentResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58926,22 +3595,22 @@ func ParseVirtualMachineServiceStartVirtualMachineResponse(rsp *http.Response) ( return response, nil } -// ParseVirtualMachineServiceStopVirtualMachineResponse parses an HTTP response from a VirtualMachineServiceStopVirtualMachineWithResponse call -func ParseVirtualMachineServiceStopVirtualMachineResponse(rsp *http.Response) (*VirtualMachineServiceStopVirtualMachineResponse, error) { +// ParseAgentServiceGeneratePeeringConfigResponse parses an HTTP response from a AgentServiceGeneratePeeringConfigWithResponse call +func ParseAgentServiceGeneratePeeringConfigResponse(rsp *http.Response) (*AgentServiceGeneratePeeringConfigResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceStopVirtualMachineResponse{ + response := &AgentServiceGeneratePeeringConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1VirtualMachine + var dest V1GeneratePeeringConfigResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58952,22 +3621,22 @@ func ParseVirtualMachineServiceStopVirtualMachineResponse(rsp *http.Response) (* return response, nil } -// ParseBackupServiceListBackupsResponse parses an HTTP response from a BackupServiceListBackupsWithResponse call -func ParseBackupServiceListBackupsResponse(rsp *http.Response) (*BackupServiceListBackupsResponse, error) { +// ParseAgentServiceUploadInboundPeeringConfigResponse parses an HTTP response from a AgentServiceUploadInboundPeeringConfigWithResponse call +func ParseAgentServiceUploadInboundPeeringConfigResponse(rsp *http.Response) (*AgentServiceUploadInboundPeeringConfigResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BackupServiceListBackupsResponse{ + response := &AgentServiceUploadInboundPeeringConfigResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListBackupsResponse + var dest V1UploadInboundPeeringConfigResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -58978,15 +3647,15 @@ func ParseBackupServiceListBackupsResponse(rsp *http.Response) (*BackupServiceLi return response, nil } -// ParseBackupServiceDeleteBackupResponse parses an HTTP response from a BackupServiceDeleteBackupWithResponse call -func ParseBackupServiceDeleteBackupResponse(rsp *http.Response) (*BackupServiceDeleteBackupResponse, error) { +// ParseGroupServiceAddServiceAccountToGroupResponse parses an HTTP response from a GroupServiceAddServiceAccountToGroupWithResponse call +func ParseGroupServiceAddServiceAccountToGroupResponse(rsp *http.Response) (*GroupServiceAddServiceAccountToGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BackupServiceDeleteBackupResponse{ + response := &GroupServiceAddServiceAccountToGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -59004,22 +3673,22 @@ func ParseBackupServiceDeleteBackupResponse(rsp *http.Response) (*BackupServiceD return response, nil } -// ParseBackupServiceGetBackupResponse parses an HTTP response from a BackupServiceGetBackupWithResponse call -func ParseBackupServiceGetBackupResponse(rsp *http.Response) (*BackupServiceGetBackupResponse, error) { +// ParseGroupServiceRemoveServiceAccountFromGroupResponse parses an HTTP response from a GroupServiceRemoveServiceAccountFromGroupWithResponse call +func ParseGroupServiceRemoveServiceAccountFromGroupResponse(rsp *http.Response) (*GroupServiceRemoveServiceAccountFromGroupResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BackupServiceGetBackupResponse{ + response := &GroupServiceRemoveServiceAccountFromGroupResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetBackupResponse + var dest V1SuccessResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59030,22 +3699,22 @@ func ParseBackupServiceGetBackupResponse(rsp *http.Response) (*BackupServiceGetB return response, nil } -// ParseBackupServiceRestoreBackupResponse parses an HTTP response from a BackupServiceRestoreBackupWithResponse call -func ParseBackupServiceRestoreBackupResponse(rsp *http.Response) (*BackupServiceRestoreBackupResponse, error) { +// ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse parses an HTTP response from a MetricsCredentialServiceListMetricsWriteCredentialsWithResponse call +func ParseMetricsCredentialServiceListMetricsWriteCredentialsResponse(rsp *http.Response) (*MetricsCredentialServiceListMetricsWriteCredentialsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &BackupServiceRestoreBackupResponse{ + response := &MetricsCredentialServiceListMetricsWriteCredentialsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1ListMetricsWriteCredentialsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59056,22 +3725,22 @@ func ParseBackupServiceRestoreBackupResponse(rsp *http.Response) (*BackupService return response, nil } -// ParseSnapshotServiceListSnapshotsResponse parses an HTTP response from a SnapshotServiceListSnapshotsWithResponse call -func ParseSnapshotServiceListSnapshotsResponse(rsp *http.Response) (*SnapshotServiceListSnapshotsResponse, error) { +// ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse parses an HTTP response from a MetricsCredentialServiceCreateMetricsWriteCredentialWithResponse call +func ParseMetricsCredentialServiceCreateMetricsWriteCredentialResponse(rsp *http.Response) (*MetricsCredentialServiceCreateMetricsWriteCredentialResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SnapshotServiceListSnapshotsResponse{ + response := &MetricsCredentialServiceCreateMetricsWriteCredentialResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListSnapshotsResponse + var dest V1CreateMetricsWriteCredentialResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59082,22 +3751,22 @@ func ParseSnapshotServiceListSnapshotsResponse(rsp *http.Response) (*SnapshotSer return response, nil } -// ParseSnapshotServiceCreateSnapshotResponse parses an HTTP response from a SnapshotServiceCreateSnapshotWithResponse call -func ParseSnapshotServiceCreateSnapshotResponse(rsp *http.Response) (*SnapshotServiceCreateSnapshotResponse, error) { +// ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse parses an HTTP response from a MetricsCredentialServiceRotateMetricsWriteCredentialWithResponse call +func ParseMetricsCredentialServiceRotateMetricsWriteCredentialResponse(rsp *http.Response) (*MetricsCredentialServiceRotateMetricsWriteCredentialResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SnapshotServiceCreateSnapshotResponse{ + response := &MetricsCredentialServiceRotateMetricsWriteCredentialResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1CreateMetricsWriteCredentialResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59108,22 +3777,22 @@ func ParseSnapshotServiceCreateSnapshotResponse(rsp *http.Response) (*SnapshotSe return response, nil } -// ParseSnapshotServiceDeleteSnapshotResponse parses an HTTP response from a SnapshotServiceDeleteSnapshotWithResponse call -func ParseSnapshotServiceDeleteSnapshotResponse(rsp *http.Response) (*SnapshotServiceDeleteSnapshotResponse, error) { +// ParseOrganizationServiceGetOrganizationResponse parses an HTTP response from a OrganizationServiceGetOrganizationWithResponse call +func ParseOrganizationServiceGetOrganizationResponse(rsp *http.Response) (*OrganizationServiceGetOrganizationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SnapshotServiceDeleteSnapshotResponse{ + response := &OrganizationServiceGetOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1GetOrganizationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59134,22 +3803,22 @@ func ParseSnapshotServiceDeleteSnapshotResponse(rsp *http.Response) (*SnapshotSe return response, nil } -// ParseSnapshotServiceGetSnapshotResponse parses an HTTP response from a SnapshotServiceGetSnapshotWithResponse call -func ParseSnapshotServiceGetSnapshotResponse(rsp *http.Response) (*SnapshotServiceGetSnapshotResponse, error) { +// ParseOrganizationServiceListOrganizationsResponse parses an HTTP response from a OrganizationServiceListOrganizationsWithResponse call +func ParseOrganizationServiceListOrganizationsResponse(rsp *http.Response) (*OrganizationServiceListOrganizationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SnapshotServiceGetSnapshotResponse{ + response := &OrganizationServiceListOrganizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetSnapshotResponse + var dest V1ListOrganizationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59160,22 +3829,22 @@ func ParseSnapshotServiceGetSnapshotResponse(rsp *http.Response) (*SnapshotServi return response, nil } -// ParseSnapshotServiceRestoreSnapshotResponse parses an HTTP response from a SnapshotServiceRestoreSnapshotWithResponse call -func ParseSnapshotServiceRestoreSnapshotResponse(rsp *http.Response) (*SnapshotServiceRestoreSnapshotResponse, error) { +// ParseMetadataServiceGetPlatformVersionsResponse parses an HTTP response from a MetadataServiceGetPlatformVersionsWithResponse call +func ParseMetadataServiceGetPlatformVersionsResponse(rsp *http.Response) (*MetadataServiceGetPlatformVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SnapshotServiceRestoreSnapshotResponse{ + response := &MetadataServiceGetPlatformVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1PlatformVersions if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59186,15 +3855,15 @@ func ParseSnapshotServiceRestoreSnapshotResponse(rsp *http.Response) (*SnapshotS return response, nil } -// ParseVirtualMachineServiceDisableAdditionalIPResponse parses an HTTP response from a VirtualMachineServiceDisableAdditionalIPWithResponse call -func ParseVirtualMachineServiceDisableAdditionalIPResponse(rsp *http.Response) (*VirtualMachineServiceDisableAdditionalIPResponse, error) { +// ParseRoleServiceReplaceRoleForServiceAccountResponse parses an HTTP response from a RoleServiceReplaceRoleForServiceAccountWithResponse call +func ParseRoleServiceReplaceRoleForServiceAccountResponse(rsp *http.Response) (*RoleServiceReplaceRoleForServiceAccountResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceDisableAdditionalIPResponse{ + response := &RoleServiceReplaceRoleForServiceAccountResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -59212,22 +3881,22 @@ func ParseVirtualMachineServiceDisableAdditionalIPResponse(rsp *http.Response) ( return response, nil } -// ParseVirtualMachineServiceDisableBackupResponse parses an HTTP response from a VirtualMachineServiceDisableBackupWithResponse call -func ParseVirtualMachineServiceDisableBackupResponse(rsp *http.Response) (*VirtualMachineServiceDisableBackupResponse, error) { +// ParseServiceAccountServiceListServiceAccountsResponse parses an HTTP response from a ServiceAccountServiceListServiceAccountsWithResponse call +func ParseServiceAccountServiceListServiceAccountsResponse(rsp *http.Response) (*ServiceAccountServiceListServiceAccountsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceDisableBackupResponse{ + response := &ServiceAccountServiceListServiceAccountsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1ListServiceAccountsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59238,22 +3907,22 @@ func ParseVirtualMachineServiceDisableBackupResponse(rsp *http.Response) (*Virtu return response, nil } -// ParseVirtualMachineServiceEnableAdditionalIPResponse parses an HTTP response from a VirtualMachineServiceEnableAdditionalIPWithResponse call -func ParseVirtualMachineServiceEnableAdditionalIPResponse(rsp *http.Response) (*VirtualMachineServiceEnableAdditionalIPResponse, error) { +// ParseServiceAccountServiceCreateServiceAccountResponse parses an HTTP response from a ServiceAccountServiceCreateServiceAccountWithResponse call +func ParseServiceAccountServiceCreateServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceCreateServiceAccountResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceEnableAdditionalIPResponse{ + response := &ServiceAccountServiceCreateServiceAccountResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1EnableAdditionalIPResponse + var dest V1ServiceAccountResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59264,22 +3933,22 @@ func ParseVirtualMachineServiceEnableAdditionalIPResponse(rsp *http.Response) (* return response, nil } -// ParseVirtualMachineServiceEnableBackupResponse parses an HTTP response from a VirtualMachineServiceEnableBackupWithResponse call -func ParseVirtualMachineServiceEnableBackupResponse(rsp *http.Response) (*VirtualMachineServiceEnableBackupResponse, error) { +// ParseServiceAccountServiceRevokeTokenResponse parses an HTTP response from a ServiceAccountServiceRevokeTokenWithResponse call +func ParseServiceAccountServiceRevokeTokenResponse(rsp *http.Response) (*ServiceAccountServiceRevokeTokenResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VirtualMachineServiceEnableBackupResponse{ + response := &ServiceAccountServiceRevokeTokenResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59290,22 +3959,22 @@ func ParseVirtualMachineServiceEnableBackupResponse(rsp *http.Response) (*Virtua return response, nil } -// ParseVMTemplateServiceCreateVMTemplateResponse parses an HTTP response from a VMTemplateServiceCreateVMTemplateWithResponse call -func ParseVMTemplateServiceCreateVMTemplateResponse(rsp *http.Response) (*VMTemplateServiceCreateVMTemplateResponse, error) { +// ParseServiceAccountServiceDeleteServiceAccountResponse parses an HTTP response from a ServiceAccountServiceDeleteServiceAccountWithResponse call +func ParseServiceAccountServiceDeleteServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceDeleteServiceAccountResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VMTemplateServiceCreateVMTemplateResponse{ + response := &ServiceAccountServiceDeleteServiceAccountResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest map[string]interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59316,22 +3985,22 @@ func ParseVMTemplateServiceCreateVMTemplateResponse(rsp *http.Response) (*VMTemp return response, nil } -// ParseVMTemplateServiceDeleteVMTemplateResponse parses an HTTP response from a VMTemplateServiceDeleteVMTemplateWithResponse call -func ParseVMTemplateServiceDeleteVMTemplateResponse(rsp *http.Response) (*VMTemplateServiceDeleteVMTemplateResponse, error) { +// ParseServiceAccountServiceGetServiceAccountResponse parses an HTTP response from a ServiceAccountServiceGetServiceAccountWithResponse call +func ParseServiceAccountServiceGetServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceGetServiceAccountResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VMTemplateServiceDeleteVMTemplateResponse{ + response := &ServiceAccountServiceGetServiceAccountResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1SuccessResponse + var dest V1ServiceAccountResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59342,22 +4011,22 @@ func ParseVMTemplateServiceDeleteVMTemplateResponse(rsp *http.Response) (*VMTemp return response, nil } -// ParseVMTemplateServiceGetVMTemplateResponse parses an HTTP response from a VMTemplateServiceGetVMTemplateWithResponse call -func ParseVMTemplateServiceGetVMTemplateResponse(rsp *http.Response) (*VMTemplateServiceGetVMTemplateResponse, error) { +// ParseServiceAccountServiceUpdateServiceAccountResponse parses an HTTP response from a ServiceAccountServiceUpdateServiceAccountWithResponse call +func ParseServiceAccountServiceUpdateServiceAccountResponse(rsp *http.Response) (*ServiceAccountServiceUpdateServiceAccountResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VMTemplateServiceGetVMTemplateResponse{ + response := &ServiceAccountServiceUpdateServiceAccountResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1GetVMTemplateResponse + var dest V1ServiceAccountResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59368,22 +4037,22 @@ func ParseVMTemplateServiceGetVMTemplateResponse(rsp *http.Response) (*VMTemplat return response, nil } -// ParseVMTemplateServiceUpdateVMTemplateResponse parses an HTTP response from a VMTemplateServiceUpdateVMTemplateWithResponse call -func ParseVMTemplateServiceUpdateVMTemplateResponse(rsp *http.Response) (*VMTemplateServiceUpdateVMTemplateResponse, error) { +// ParseServiceAccountServiceListTokensResponse parses an HTTP response from a ServiceAccountServiceListTokensWithResponse call +func ParseServiceAccountServiceListTokensResponse(rsp *http.Response) (*ServiceAccountServiceListTokensResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VMTemplateServiceUpdateVMTemplateResponse{ + response := &ServiceAccountServiceListTokensResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1UpdateVMTemplateResponse + var dest V1ListServiceAccountTokensResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -59394,22 +4063,22 @@ func ParseVMTemplateServiceUpdateVMTemplateResponse(rsp *http.Response) (*VMTemp return response, nil } -// ParseVMTemplateServiceListVMTemplatesResponse parses an HTTP response from a VMTemplateServiceListVMTemplatesWithResponse call -func ParseVMTemplateServiceListVMTemplatesResponse(rsp *http.Response) (*VMTemplateServiceListVMTemplatesResponse, error) { +// ParseServiceAccountServiceGenerateTokenResponse parses an HTTP response from a ServiceAccountServiceGenerateTokenWithResponse call +func ParseServiceAccountServiceGenerateTokenResponse(rsp *http.Response) (*ServiceAccountServiceGenerateTokenResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &VMTemplateServiceListVMTemplatesResponse{ + response := &ServiceAccountServiceGenerateTokenResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest V1ListVMTemplatesResponse + var dest V1GenerateServiceAccountTokenResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } diff --git a/internal/api/generated/openapi3.yaml b/internal/api/generated/openapi3.yaml index 337d7a3..c6d7dd0 100644 --- a/internal/api/generated/openapi3.yaml +++ b/internal/api/generated/openapi3.yaml @@ -1,18111 +1,1029 @@ openapi: 3.0.0 info: - title: NodeRings API - version: "1.0" + version: '1.0' contact: name: NodeRings url: https://noderings.com + title: NodeRings API +servers: +- url: https://api.noderings.com tags: - - name: OrganizationService - - name: UserService - - name: GroupService - - name: RoleService - - name: PermissionService - - name: InviteService - - name: SecretService - - name: EnvironmentVariableService - - name: SSHKeyService - - name: ServiceAccountService - - name: OAuth2Service - - name: VirtualMachineService - - name: TicketService - - name: MarketplaceService - - name: FirewallService - - name: ChatService - - name: BackupService - - name: SnapshotService - - name: ClientDashboardService - - name: ClientProviderReviewService - - name: CloudInitUserDataService - - name: InstantAppService - - name: MetadataService - - name: NotificationTemplateService - - name: NotificationSettingService - - name: DomainService - - name: AgentService - - name: MetricsCredentialService - - name: PlatformService - - name: NodeService - - name: RegionService - - name: NodePlacementService - - name: VMTemplateService - - name: CloudInitTemplateService - - name: ProviderPlanService - - name: ProviderConnectService - - name: ProviderOnboardingService - - name: ManualPayoutService - - name: PayoutInvoiceService - - name: PayoutConfigurationService - - name: IPAMService - - name: ProviderDashboardService - - name: ProviderDashboardPlansTabService - - name: ProviderCustomerService - - name: PreflightService - - name: LiveValidationService - - name: ProviderReviewService - - name: ProviderNetworkService - - name: RoadmapService - - name: SubscriptionService - - name: PlanService - - name: UsageReportService - - name: MetricService - - name: AddonService - - name: WebhookService - - name: PaymentMethodService - - name: InvoiceService - - name: PaymentService - - name: RefundService - - name: CreditService - - name: ExchangeRateService +- name: OrganizationService +- name: GroupService +- name: RoleService +- name: ServiceAccountService +- name: MetadataService +- name: AgentService +- name: MetricsCredentialService paths: - "/api/v1/webhooks/{provider}": - post: - summary: >- - Handle webhook events from payment providers (Stripe, PayPal, etc.) - - This endpoint receives webhook payloads and processes payment/subscription - - events Note: The actual implementation will read raw HTTP body and headers - - directly to support webhook signature verification - operationId: WebhookService_HandleWebhook - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1HandleWebhookResponse" - parameters: - - name: provider - description: |- - Payment provider identifier (e.g., "stripe", "paypal") - Validated in implementation to ensure supported providers - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/WebhookServiceHandleWebhookBody" - required: true - tags: - - WebhookService - "/v1/addon-subscriptions/{addonSubscriptionId}": - delete: - summary: Remove an addon from a subscription - operationId: AddonService_RemoveAddon - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1RemoveAddonResponse" - parameters: - - name: addonSubscriptionId - in: path - required: true - schema: - type: string - - name: cancelImmediately - description: If false, cancels at period end - in: query - required: false - schema: - type: boolean - tags: - - AddonService - /v1/addons: - get: - summary: List available addons - operationId: AddonService_ListAddons - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAddonsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: subscriptionId - description: Filter by compatible with subscription - in: query - required: false - schema: - type: string - - name: addonType - description: Filter by type - in: query - required: false - schema: - type: string - enum: - - ADDON_TYPE_UNSPECIFIED - - ADDON_TYPE_BACKUP - - ADDON_TYPE_SNAPSHOT - - ADDON_TYPE_ADDITIONAL_IP - default: ADDON_TYPE_UNSPECIFIED - - name: isTemplate - description: Filter by template status - in: query - required: false - schema: - type: boolean - - name: billingType - description: >- - Filter by billing type (usage-based or fixed/subscription) - - - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - in: query - required: false - schema: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - - name: search - description: Search filter for addon name, code, or description - in: query - required: false - schema: - type: string - tags: - - AddonService - post: - summary: Create an addon from a template addon - operationId: AddonService_CreateAddon - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateAddonRequest" - required: true - tags: - - AddonService - "/v1/addons/{id}": - get: - summary: Get a specific addon with its prices - operationId: AddonService_GetAddon - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetAddonResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - AddonService - delete: - summary: Delete an addon (soft delete) - operationId: AddonService_DeleteAddon - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - AddonService - patch: - summary: Update an addon (allows changing price and currency) - operationId: AddonService_UpdateAddon - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AddonServiceUpdateAddonBody" - required: true - tags: - - AddonService /v1/agents: get: operationId: AgentService_ListAgents responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1ListAgentsResponse" + $ref: '#/components/schemas/v1ListAgentsResponse' + description: '' parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: gatewayRegion - in: query - required: false - schema: - type: string - enum: - - AGENT_GATEWAY_REGION_UNSPECIFIED - - AGENT_GATEWAY_REGION_AMS01 - default: AGENT_GATEWAY_REGION_UNSPECIFIED - - name: search - in: query - required: false - schema: - type: string + - name: page + in: query + required: false + schema: + type: integer + format: int32 + - name: pageSize + in: query + required: false + schema: + type: integer + format: int32 + - name: gatewayRegion + in: query + required: false + schema: + type: string + enum: + - AGENT_GATEWAY_REGION_UNSPECIFIED + - AGENT_GATEWAY_REGION_AMS01 + default: AGENT_GATEWAY_REGION_UNSPECIFIED + - name: search + in: query + required: false + schema: + type: string tags: - - AgentService + - AgentService post: operationId: AgentService_CreateAgent responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1GetAgentResponse" + $ref: '#/components/schemas/v1GetAgentResponse' + description: '' requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1CreateAgentRequest" + $ref: '#/components/schemas/v1CreateAgentRequest' required: true tags: - - AgentService - "/v1/agents/{id}": + - AgentService + /v1/agents/{id}: get: operationId: AgentService_GetAgent responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1GetAgentResponse" + $ref: '#/components/schemas/v1GetAgentResponse' + description: '' parameters: - - name: id - in: path - required: true - schema: - type: string + - name: id + in: path + required: true + schema: + type: string tags: - - AgentService + - AgentService delete: operationId: AgentService_DeleteAgent responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" + $ref: '#/components/schemas/v1SuccessResponse' + description: '' parameters: - - name: id - in: path - required: true - schema: - type: string + - name: id + in: path + required: true + schema: + type: string tags: - - AgentService + - AgentService patch: operationId: AgentService_UpdateAgent responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1UpdateAgentResponse" + $ref: '#/components/schemas/v1UpdateAgentResponse' + description: '' parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AgentServiceUpdateAgentBody" + - name: id + in: path required: true - tags: - - AgentService - "/v1/agents/{id}:generateInstallCommand": - post: - operationId: AgentService_GenerateInstallCommand - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GenerateInstallCommandResponse" - parameters: - - name: id - description: The ID of the agent to generate the install command for - in: path - required: true - schema: - type: string + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/AgentServiceGenerateInstallCommandBody" + $ref: '#/components/schemas/AgentServiceUpdateAgentBody' required: true tags: - - AgentService - "/v1/agents/{id}:generatePeeringConfig": + - AgentService + /v1/agents/{id}:generatePeeringConfig: post: operationId: AgentService_GeneratePeeringConfig responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1GeneratePeeringConfigResponse" + $ref: '#/components/schemas/v1GeneratePeeringConfigResponse' + description: '' parameters: - - name: id - in: path - required: true - schema: - type: string + - name: id + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/AgentServiceGeneratePeeringConfigBody" + $ref: '#/components/schemas/AgentServiceGeneratePeeringConfigBody' required: true tags: - - AgentService - "/v1/agents/{id}:uploadInboundPeeringConfig": + - AgentService + /v1/agents/{id}:uploadInboundPeeringConfig: post: operationId: AgentService_UploadInboundPeeringConfig responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1UploadInboundPeeringConfigResponse" + $ref: '#/components/schemas/v1UploadInboundPeeringConfigResponse' + description: '' parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AgentServiceUploadInboundPeeringConfigBody" + - name: id + in: path required: true - tags: - - AgentService - /v1/auth/change-password: - post: - operationId: UserService_ChangePassword - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1ChangePasswordRequest" + $ref: '#/components/schemas/AgentServiceUploadInboundPeeringConfigBody' required: true tags: - - UserService - /v1/auth/forgot-password: + - AgentService + /v1/groups/add-service-account: post: - operationId: UserService_ForgotPassword + operationId: GroupService_AddServiceAccountToGroup responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" + $ref: '#/components/schemas/v1SuccessResponse' + description: '' requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1ForgotPasswordRequest" + $ref: '#/components/schemas/v1AddServiceAccountToGroupRequest' required: true tags: - - UserService - /v1/auth/identities: - get: - operationId: UserService_ListLinkedIdentities + - GroupService + /v1/groups/remove-service-account: + delete: + operationId: GroupService_RemoveServiceAccountFromGroup responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1ListLinkedIdentitiesResponse" + $ref: '#/components/schemas/v1SuccessResponse' + description: '' + parameters: + - name: groupId + in: query + required: false + schema: + type: string + - name: serviceAccountIds + in: query + required: false + explode: true + schema: + type: array + items: + type: string tags: - - UserService - "/v1/auth/identities/{provider}": - delete: - operationId: UserService_UnlinkIdentity + - GroupService + /v1/metrics-write-credentials: + get: + operationId: MetricsCredentialService_ListMetricsWriteCredentials responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" + $ref: '#/components/schemas/v1ListMetricsWriteCredentialsResponse' + description: '' parameters: - - name: provider - in: path - required: true - schema: - type: string + - name: agentId + in: query + required: false + schema: + type: string + - name: includeRevoked + in: query + required: false + schema: + type: boolean + - name: page + in: query + required: false + schema: + type: integer + format: int32 + - name: pageSize + in: query + required: false + schema: + type: integer + format: int32 tags: - - UserService - /v1/auth/login: + - MetricsCredentialService post: - operationId: UserService_Login + operationId: MetricsCredentialService_CreateMetricsWriteCredential responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1LoginResponse" + $ref: '#/components/schemas/v1CreateMetricsWriteCredentialResponse' + description: '' requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1LoginRequest" + $ref: '#/components/schemas/v1CreateMetricsWriteCredentialRequest' required: true tags: - - UserService - /v1/auth/login/mfa: + - MetricsCredentialService + /v1/metrics-write-credentials/{id}:rotate: post: - operationId: UserService_LoginMfaVerify + operationId: MetricsCredentialService_RotateMetricsWriteCredential responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1LoginResponse" + $ref: '#/components/schemas/v1CreateMetricsWriteCredentialResponse' + description: '' + parameters: + - name: id + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1LoginMfaVerifyRequest" + $ref: '#/components/schemas/MetricsCredentialServiceRotateMetricsWriteCredentialBody' required: true tags: - - UserService - /v1/auth/logout: - post: - operationId: UserService_Logout + - MetricsCredentialService + /v1/organization: + get: + operationId: OrganizationService_GetOrganization responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1LogoutRequest" - required: true + $ref: '#/components/schemas/v1GetOrganizationResponse' + description: '' tags: - - UserService - /v1/auth/mfa/backup-codes/regenerate: - post: - operationId: UserService_RegenerateMfaBackupCodes + - OrganizationService + /v1/organizations: + get: + operationId: OrganizationService_ListOrganizations responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1RegenerateMfaBackupCodesResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RegenerateMfaBackupCodesRequest" - required: true + $ref: '#/components/schemas/v1ListOrganizationsResponse' + description: '' + parameters: + - name: page + in: query + required: false + schema: + type: integer + format: int32 + - name: pageSize + in: query + required: false + schema: + type: integer + format: int32 tags: - - UserService - /v1/auth/mfa/disable: - post: - operationId: UserService_DisableMfa + - OrganizationService + /v1/platform-versions: + get: + operationId: MetadataService_GetPlatformVersions responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1DisableMfaRequest" - required: true + $ref: '#/components/schemas/v1PlatformVersions' + description: '' tags: - - UserService - /v1/auth/mfa/enroll: - post: - operationId: UserService_EnrollMfaTotp + - MetadataService + /v1/roles/replace-for-service-account: + put: + operationId: RoleService_ReplaceRoleForServiceAccount responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1EnrollMfaTotpResponse" + $ref: '#/components/schemas/v1SuccessResponse' + description: '' requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1EnrollMfaTotpRequest" + $ref: '#/components/schemas/v1ReplaceRoleForServiceAccountRequest' required: true tags: - - UserService - /v1/auth/mfa/status: + - RoleService + /v1/service-accounts: get: - operationId: UserService_GetMfaStatus + operationId: ServiceAccountService_ListServiceAccounts responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1GetMfaStatusResponse" + $ref: '#/components/schemas/v1ListServiceAccountsResponse' + description: '' + parameters: + - name: includeInactive + in: query + required: false + schema: + type: boolean + - name: page + in: query + required: false + schema: + type: integer + format: int32 + - name: pageSize + in: query + required: false + schema: + type: integer + format: int32 tags: - - UserService - /v1/auth/mfa/verify-enrollment: + - ServiceAccountService post: - operationId: UserService_VerifyMfaEnrollment + operationId: ServiceAccountService_CreateServiceAccount responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1VerifyMfaEnrollmentResponse" + $ref: '#/components/schemas/v1ServiceAccountResponse' + description: '' requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1VerifyMfaEnrollmentRequest" + $ref: '#/components/schemas/v1CreateServiceAccountRequest' required: true tags: - - UserService - /v1/auth/register: - post: - operationId: UserService_RegisterUser + - ServiceAccountService + /v1/service-accounts/tokens/{tokenId}: + delete: + operationId: ServiceAccountService_RevokeToken responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RegisterUserRequest" + type: object + properties: {} + description: '' + parameters: + - name: tokenId + in: path required: true + schema: + type: string tags: - - UserService - /v1/auth/resend-verification-email: - post: - operationId: UserService_ResendVerificationEmail + - ServiceAccountService + /v1/service-accounts/{id}: + get: + operationId: ServiceAccountService_GetServiceAccount responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ResendVerificationEmailRequest" + $ref: '#/components/schemas/v1ServiceAccountResponse' + description: '' + parameters: + - name: id + in: path required: true + schema: + type: string tags: - - UserService - /v1/auth/reset-password: - post: - operationId: UserService_ResetPassword + - ServiceAccountService + delete: + operationId: ServiceAccountService_DeleteServiceAccount responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ResetPasswordRequest" + type: object + properties: {} + description: '' + parameters: + - name: id + in: path required: true + schema: + type: string tags: - - UserService - /v1/auth/sessions: - get: - operationId: UserService_GetActiveSessions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetActiveSessionsResponse" - tags: - - UserService - /v1/auth/set-password: - post: - operationId: UserService_SetPassword + - ServiceAccountService + patch: + operationId: ServiceAccountService_UpdateServiceAccount responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1SuccessResponse" + $ref: '#/components/schemas/v1ServiceAccountResponse' + description: '' + parameters: + - name: id + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1SetPasswordRequest" - description: SetPassword is for passwordless (SSO-only) accounts that have never - set a local password. + $ref: '#/components/schemas/ServiceAccountServiceUpdateServiceAccountBody' required: true tags: - - UserService - /v1/auth/sso/exchange: - post: - operationId: UserService_ExchangeSSOCode + - ServiceAccountService + /v1/service-accounts/{serviceAccountId}/tokens: + get: + operationId: ServiceAccountService_ListTokens responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1LoginResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ExchangeSSOCodeRequest" + $ref: '#/components/schemas/v1ListServiceAccountTokensResponse' + description: '' + parameters: + - name: serviceAccountId + in: path required: true + schema: + type: string + - name: includeInactive + in: query + required: false + schema: + type: boolean + - name: page + in: query + required: false + schema: + type: integer + format: int32 + - name: pageSize + in: query + required: false + schema: + type: integer + format: int32 tags: - - UserService - /v1/auth/sso/link: + - ServiceAccountService post: - operationId: UserService_CompleteSSOLink + operationId: ServiceAccountService_GenerateToken responses: - "200": - description: A successful response. + '200': content: application/json: schema: - $ref: "#/components/schemas/v1LoginResponse" + $ref: '#/components/schemas/v1GenerateServiceAccountTokenResponse' + description: '' + parameters: + - name: serviceAccountId + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1CompleteSSOLinkRequest" + $ref: '#/components/schemas/ServiceAccountServiceGenerateTokenBody' required: true tags: - - UserService - /v1/auth/verify-email: - get: - operationId: UserService_VerifyEmail - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: userId - in: query - required: false - schema: - type: string - - name: code - in: query - required: false - schema: - type: string - tags: - - UserService - /v1/chat: - post: - summary: Chat provides a non-streaming chat endpoint - operationId: ChatService_Chat - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ChatResponse" - requestBody: - $ref: "#/components/requestBodies/v1ChatRequest" - tags: - - ChatService - /v1/chat/anonymous: - post: - summary: |- - ChatAnonymous provides a non-streaming chat endpoint for anonymous users - Session ID is extracted from the cookie header (managed by the frontend) - operationId: ChatService_ChatAnonymous - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ChatResponse" - requestBody: - $ref: "#/components/requestBodies/v1ChatRequest" - tags: - - ChatService - /v1/chat/conversations: - get: - summary: ListConversations returns all conversation IDs for the authenticated user - operationId: ChatService_ListConversations - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListConversationsResponse" - tags: - - ChatService - "/v1/chat/conversations/{conversationId}": - delete: - summary: DeleteConversation marks a conversation as deleted (soft delete) - operationId: ChatService_DeleteConversation - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: conversationId - description: Conversation ID - in: path - required: true - schema: - type: string - tags: - - ChatService - "/v1/chat/conversations/{conversationId}/history": - get: - summary: GetConversationHistory returns the full message history for a - conversation - operationId: ChatService_GetConversationHistory - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetConversationHistoryResponse" - parameters: - - name: conversationId - description: Conversation ID - in: path - required: true - schema: - type: string - tags: - - ChatService - /v1/client/dashboard/billing: - get: - operationId: ClientDashboardService_GetClientDashboardBilling - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetClientDashboardBillingResponse" - tags: - - ClientDashboardService - /v1/client/dashboard/summary: - get: - operationId: ClientDashboardService_GetClientDashboardSummary - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetClientDashboardSummaryResponse" - tags: - - ClientDashboardService - /v1/client/provider-review-assets: - get: - operationId: ClientProviderReviewService_ListClientProviderReviewAssets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListClientProviderReviewAssetsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: search - description: Optional filter (hostname / provider name), case-insensitive - substring. - in: query - required: false - schema: - type: string - tags: - - ClientProviderReviewService - /v1/cloudinittemplate: - post: - operationId: CloudInitTemplateService_CreateCloudInitTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateCloudInitTemplateRequest" - required: true - tags: - - CloudInitTemplateService - "/v1/cloudinittemplate/{id}": - get: - operationId: CloudInitTemplateService_GetCloudInitTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetCloudInitTemplateResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - CloudInitTemplateService - delete: - operationId: CloudInitTemplateService_DeleteCloudInitTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - CloudInitTemplateService - patch: - operationId: CloudInitTemplateService_UpdateCloudInitTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateCloudInitTemplateResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CloudInitTemplateServiceUpdateCloudInitTemplateBody" - required: true - tags: - - CloudInitTemplateService - /v1/cloudinittemplates: - get: - operationId: CloudInitTemplateService_ListCloudInitTemplates - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListCloudInitTemplatesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterIsTemplate - description: If not set, returns both template and non-template. If true, - returns only templates. If false, returns only non-templates. - in: query - required: false - schema: - type: boolean - tags: - - CloudInitTemplateService - /v1/cloudinituserdata: - get: - operationId: CloudInitUserDataService_ListCloudInitUserData - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListCloudInitUserDataResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - CloudInitUserDataService - post: - operationId: CloudInitUserDataService_CreateCloudInitUserData - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CloudInitUserData" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateCloudInitUserDataRequest" - required: true - tags: - - CloudInitUserDataService - "/v1/cloudinituserdata/{id}": - get: - operationId: CloudInitUserDataService_GetCloudInitUserData - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CloudInitUserData" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - CloudInitUserDataService - delete: - operationId: CloudInitUserDataService_DeleteCloudInitUserData - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - CloudInitUserDataService - patch: - operationId: CloudInitUserDataService_UpdateCloudInitUserData - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CloudInitUserData" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/CloudInitUserDataServiceUpdateCloudInitUserDataBody" - required: true - tags: - - CloudInitUserDataService - /v1/countries-cities: - get: - operationId: RegionService_ListCountriesCities - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListCountriesCitiesResponse" - parameters: - - name: query - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - RegionService - /v1/credits/balance: - get: - operationId: CreditService_GetCreditBalance - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetCreditBalanceResponse" - tags: - - CreditService - /v1/credits/ledger: - get: - operationId: CreditService_ListCreditLedgerEntries - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListCreditLedgerEntriesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: entryType - in: query - required: false - schema: - type: string - enum: - - CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED - - CREDIT_LEDGER_ENTRY_TYPE_PURCHASE - - CREDIT_LEDGER_ENTRY_TYPE_PROMOTIONAL - - CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RESERVE - - CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RELEASE - - CREDIT_LEDGER_ENTRY_TYPE_USAGE_HOLD - - CREDIT_LEDGER_ENTRY_TYPE_HOLD_RELEASE - - CREDIT_LEDGER_ENTRY_TYPE_INVOICE_SETTLEMENT - - CREDIT_LEDGER_ENTRY_TYPE_CHARGEBACK_REVERSAL - - CREDIT_LEDGER_ENTRY_TYPE_EXPIRY - - CREDIT_LEDGER_ENTRY_TYPE_FORFEITURE - - CREDIT_LEDGER_ENTRY_TYPE_MANUAL_ADJUSTMENT - default: CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED - tags: - - CreditService - /v1/credits:purchase: - post: - operationId: CreditService_PurchaseCredits - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1PurchaseCreditsResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1PurchaseCreditsRequest" - required: true - tags: - - CreditService - /v1/datacenters: - get: - operationId: RegionService_ListDatacenters - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDatacentersResponse" - parameters: - - name: query - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - RegionService - /v1/domain: - get: - operationId: DomainService_GetDomain - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetDomainResponse" - tags: - - DomainService - post: - operationId: DomainService_CreateDomain - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateDomainRequest" - required: true - tags: - - DomainService - "/v1/domain/verify/{id}": - get: - operationId: DomainService_VerifyDomain - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - DomainService - "/v1/domain/{id}": - delete: - operationId: DomainService_DeleteDomain - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - DomainService - /v1/environment-variables: - get: - operationId: EnvironmentVariableService_ListEnvironmentVariables - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListEnvironmentVariablesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterKey - in: query - required: false - schema: - type: string - tags: - - EnvironmentVariableService - post: - operationId: EnvironmentVariableService_CreateEnvironmentVariable - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateEnvironmentVariableRequest" - required: true - tags: - - EnvironmentVariableService - "/v1/environment-variables/{id}": - get: - operationId: EnvironmentVariableService_GetEnvironmentVariable - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetEnvironmentVariableResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - EnvironmentVariableService - delete: - operationId: EnvironmentVariableService_DeleteEnvironmentVariable - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - EnvironmentVariableService - patch: - operationId: EnvironmentVariableService_UpdateEnvironmentVariable - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/EnvironmentVariableServiceUpdateEnvironmentVariable\ - Body" - required: true - tags: - - EnvironmentVariableService - /v1/exchange-rate/convert: - post: - summary: Convert an amount from USD to a target currency - operationId: ExchangeRateService_ConvertCurrency - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ConvertCurrencyResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ConvertCurrencyRequest" - required: true - tags: - - ExchangeRateService - /v1/exchange-rate/currencies: - get: - summary: List all supported currency codes - operationId: ExchangeRateService_ListSupportedCurrencies - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListSupportedCurrenciesResponse" - tags: - - ExchangeRateService - "/v1/exchange-rate/rate/{currencyCode}": - get: - summary: Get the current exchange rate for a specific currency (from USD) - operationId: ExchangeRateService_GetExchangeRate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetExchangeRateResponse" - parameters: - - name: currencyCode - description: Currency code to get exchange rate for (from USD) - in: path - required: true - schema: - type: string - tags: - - ExchangeRateService - /v1/exchange-rate/rates: - get: - summary: Get all exchange rates at once (returns map of currency codes to rates) - operationId: ExchangeRateService_GetAllExchangeRates - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetAllExchangeRatesResponse" - tags: - - ExchangeRateService - /v1/firewall/address-groups: - get: - operationId: FirewallService_ListFirewallAddressGroups - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListFirewallAddressGroupsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: name - description: "Note: family filter removed as address groups can now contain - mixed IPv4/IPv6" - in: query - required: false - schema: - type: string - tags: - - FirewallService - post: - operationId: FirewallService_CreateFirewallAddressGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateFirewallAddressGroupRequest" - required: true - tags: - - FirewallService - "/v1/firewall/address-groups/{id}": - get: - operationId: FirewallService_GetFirewallAddressGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallAddressGroup" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - FirewallService - delete: - operationId: FirewallService_DeleteFirewallAddressGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - FirewallService - patch: - operationId: FirewallService_UpdateFirewallAddressGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallAddressGroup" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FirewallServiceUpdateFirewallAddressGroupBody" - required: true - tags: - - FirewallService - "/v1/firewall/rules/{id}": - get: - operationId: FirewallService_GetFirewallRule - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallRuleResource" - parameters: - - name: id - in: path - required: true - schema: - type: string - - name: direction - description: "Optional: Filter by direction. If not specified, returns the rule - regardless of direction." - in: query - required: false - schema: - type: string - enum: - - FIREWALL_DIRECTION_UNSPECIFIED - - FIREWALL_DIRECTION_INGRESS - - FIREWALL_DIRECTION_EGRESS - default: FIREWALL_DIRECTION_UNSPECIFIED - tags: - - FirewallService - delete: - operationId: FirewallService_DeleteFirewallRule - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - FirewallService - patch: - operationId: FirewallService_UpdateFirewallRule - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallRuleResource" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FirewallServiceUpdateFirewallRuleBody" - required: true - tags: - - FirewallService - "/v1/firewall/rules/{id}/move": - post: - operationId: FirewallService_MoveFirewallRule - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallRuleResource" - parameters: - - name: id - description: ID of the rule to move - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FirewallServiceMoveFirewallRuleBody" - required: true - tags: - - FirewallService - /v1/firewall/rulesets: - get: - operationId: FirewallService_ListFirewallRuleSets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListFirewallRuleSetsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: name - in: query - required: false - schema: - type: string - - name: filterAttachment - description: >- - Optional: Filter by whether any virtual machine is attached to the - ruleset. - - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets - - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached - in: query - required: false - schema: - type: string - enum: - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED - - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED - default: FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED - tags: - - FirewallService - post: - operationId: FirewallService_CreateFirewallRuleSet - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateFirewallRuleSetRequest" - required: true - tags: - - FirewallService - "/v1/firewall/rulesets/{id}": - get: - operationId: FirewallService_GetFirewallRuleSet - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallRuleSet" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - FirewallService - delete: - operationId: FirewallService_DeleteFirewallRuleSet - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - - name: force - in: query - required: false - schema: - type: boolean - tags: - - FirewallService - patch: - operationId: FirewallService_UpdateFirewallRuleSet - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1FirewallRuleSet" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FirewallServiceUpdateFirewallRuleSetBody" - required: true - tags: - - FirewallService - "/v1/firewall/rulesets/{rulesetId}/rules": - get: - operationId: FirewallService_ListFirewallRules - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListFirewallRulesResponse" - parameters: - - name: rulesetId - in: path - required: true - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: direction - description: "Optional: Filter by direction. If not specified, returns all rules - regardless of direction." - in: query - required: false - schema: - type: string - enum: - - FIREWALL_DIRECTION_UNSPECIFIED - - FIREWALL_DIRECTION_INGRESS - - FIREWALL_DIRECTION_EGRESS - default: FIREWALL_DIRECTION_UNSPECIFIED - tags: - - FirewallService - post: - operationId: FirewallService_CreateFirewallRule - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: rulesetId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/FirewallServiceCreateFirewallRuleBody" - required: true - tags: - - FirewallService - /v1/groups: - get: - operationId: GroupService_ListGroups - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListGroupsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterName - in: query - required: false - schema: - type: string - - name: filterStatus - in: query - required: false - schema: - type: string - enum: - - STATUS_UNSPECIFIED - - STATUS_ACTIVE - - STATUS_INACTIVE - - STATUS_BANNED - - STATUS_SOFT_DELETED - default: STATUS_UNSPECIFIED - - name: search - in: query - required: false - schema: - type: string - tags: - - GroupService - post: - operationId: GroupService_CreateGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateGroupRequest" - required: true - tags: - - GroupService - /v1/groups/add-service-account: - post: - operationId: GroupService_AddServiceAccountToGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1AddServiceAccountToGroupRequest" - required: true - tags: - - GroupService - /v1/groups/add-user: - post: - operationId: GroupService_AddUserToGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1AddUserToGroupRequest" - required: true - tags: - - GroupService - /v1/groups/remove-service-account: - delete: - operationId: GroupService_RemoveServiceAccountFromGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: groupId - in: query - required: false - schema: - type: string - - name: serviceAccountIds - in: query - required: false - explode: true - schema: - type: array - items: - type: string - tags: - - GroupService - /v1/groups/remove-user: - delete: - operationId: GroupService_RemoveUserFromGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: groupId - in: query - required: false - schema: - type: string - - name: userIds - in: query - required: false - explode: true - schema: - type: array - items: - type: string - tags: - - GroupService - "/v1/groups/{id}": - get: - operationId: GroupService_GetGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetGroupResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - GroupService - delete: - operationId: GroupService_DeleteGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - GroupService - patch: - operationId: GroupService_UpdateGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateGroupResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/GroupServiceUpdateGroupBody" - required: true - tags: - - GroupService - /v1/healthz: - get: - operationId: MetadataService_HealthCheck - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1HealthCheckResponse" - tags: - - MetadataService - /v1/instantapps: - get: - operationId: InstantAppService_ListInstantApps - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListInstantAppsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - description: -1 returns all apps (create/reinstall picker); otherwise 1..100. - in: query - required: false - schema: - type: integer - format: int32 - - name: query - description: Case-insensitive match on name or slug. - in: query - required: false - schema: - type: string - - name: categories - description: "Filter: app must include all listed categories when non-empty." - in: query - required: false - explode: true - schema: - type: array - items: - type: string - - name: distro - description: |-2 - - DISTRO_UBUNTU_22_04: Ubuntu distributions - - DISTRO_FEDORA_43: Fedora distributions - - DISTRO_DEBIAN_12: Debian distributions - - DISTRO_CENTOS_9: CentOS distributions - - DISTRO_ROCKY_9: Rocky Linux distributions - - DISTRO_ALMALINUX_9: AlmaLinux distributions - in: query - required: false - schema: - type: string - enum: - - DISTRO_UNSPECIFIED - - DISTRO_UBUNTU_22_04 - - DISTRO_UBUNTU_24_04 - - DISTRO_UBUNTU_26_04 - - DISTRO_FEDORA_43 - - DISTRO_FEDORA_44 - - DISTRO_DEBIAN_12 - - DISTRO_DEBIAN_13 - - DISTRO_CENTOS_9 - - DISTRO_CENTOS_10 - - DISTRO_ROCKY_9 - - DISTRO_ROCKY_10 - - DISTRO_ALMALINUX_9 - - DISTRO_ALMALINUX_10 - default: DISTRO_UNSPECIFIED - tags: - - InstantAppService - "/v1/instantapps/slug/{slug}": - get: - operationId: InstantAppService_GetInstantApp2 - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1InstantApp" - parameters: - - name: slug - in: path - required: true - schema: - type: string - - name: id - description: Exactly one of id or slug must be set. - in: query - required: false - schema: - type: string - tags: - - InstantAppService - "/v1/instantapps/{id}": - get: - operationId: InstantAppService_GetInstantApp - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1InstantApp" - parameters: - - name: id - description: Exactly one of id or slug must be set. - in: path - required: true - schema: - type: string - - name: slug - in: query - required: false - schema: - type: string - tags: - - InstantAppService - /v1/invites: - get: - operationId: InviteService_ListInvites - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListInvitesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterEmail - in: query - required: false - schema: - type: string - - name: search - in: query - required: false - schema: - type: string - tags: - - InviteService - post: - operationId: InviteService_CreateInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateInviteRequest" - required: true - tags: - - InviteService - patch: - operationId: InviteService_UpdateInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateInviteRequest" - required: true - tags: - - InviteService - /v1/invites/accept: - get: - operationId: InviteService_AcceptInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: inviteId - in: query - required: false - schema: - type: string - tags: - - InviteService - /v1/invites/decline: - get: - operationId: InviteService_DeclineInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: inviteId - in: query - required: false - schema: - type: string - tags: - - InviteService - /v1/invites/me: - get: - operationId: InviteService_ListMyInvites - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListMyInvitesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - InviteService - "/v1/invites/resend/{inviteId}": - post: - operationId: InviteService_ResendInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: inviteId - in: path - required: true - schema: - type: string - tags: - - InviteService - "/v1/invites/{id}": - delete: - operationId: InviteService_DeleteInvite - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - InviteService - /v1/invoices: - get: - summary: ListInvoices lists invoices for a subscription or organization - operationId: InvoiceService_ListInvoices - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListInvoicesResponse" - parameters: - - name: subscriptionId - in: query - required: false - schema: - type: string - - name: status - in: query - required: false - schema: - type: string - enum: - - INVOICE_STATUS_UNSPECIFIED - - INVOICE_STATUS_DRAFT - - INVOICE_STATUS_OPEN - - INVOICE_STATUS_PAID - - INVOICE_STATUS_PAST_DUE - - INVOICE_STATUS_VOID - - INVOICE_STATUS_UNCOLLECTIBLE - default: INVOICE_STATUS_UNSPECIFIED - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: orderBy - in: query - required: false - schema: - type: string - tags: - - InvoiceService - "/v1/invoices/{invoiceId}": - get: - summary: GetInvoice retrieves a single invoice with line items - operationId: InvoiceService_GetInvoice - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetInvoiceResponse" - parameters: - - name: invoiceId - in: path - required: true - schema: - type: string - tags: - - InvoiceService - /v1/ipam/allocations: - get: - summary: IP Allocation (read-only - allocations are managed automatically) - operationId: IPAMService_ListAllocations - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAllocationsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: prefixId - description: Filter by prefix ID (required for filtering allocations) - in: query - required: false - schema: - type: string - tags: - - IPAMService - /v1/ipam/networks: - get: - operationId: IPAMService_ListNetworks - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListNetworksResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - IPAMService - post: - summary: IPAM Network management - operationId: IPAMService_CreateNetwork - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateNetworkRequest" - required: true - tags: - - IPAMService - "/v1/ipam/networks/{id}": - get: - operationId: IPAMService_GetNetwork - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetNetworkResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - IPAMService - delete: - operationId: IPAMService_DeleteNetwork - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - IPAMService - patch: - operationId: IPAMService_UpdateNetwork - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateNetworkResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceUpdateNetworkBody" - required: true - tags: - - IPAMService - "/v1/ipam/networks/{networkId}/assign-node": - post: - summary: Node-Network assignment - operationId: IPAMService_AssignNetworkToNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: networkId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceAssignNetworkToNodeBody" - required: true - tags: - - IPAMService - "/v1/ipam/networks/{networkId}/nodes": - get: - operationId: IPAMService_ListNetworkNodes - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListNetworkNodesResponse" - parameters: - - name: networkId - in: path - required: true - schema: - type: string - tags: - - IPAMService - "/v1/ipam/nodes/{nodeId}/network": - get: - operationId: IPAMService_GetNodeNetwork - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetNodeNetworkResponse" - parameters: - - name: nodeId - in: path - required: true - schema: - type: string - tags: - - IPAMService - "/v1/ipam/nodes/{nodeId}/unassign-network": - post: - operationId: IPAMService_UnassignNetworkFromNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: nodeId - in: path - required: true - schema: - type: string - tags: - - IPAMService - /v1/ipam/prefixes: - get: - operationId: IPAMService_ListPrefixes - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPrefixesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterNetworkId - in: query - required: false - schema: - type: string - tags: - - IPAMService - post: - summary: Prefix management - operationId: IPAMService_CreatePrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreatePrefixRequest" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{id}": - get: - operationId: IPAMService_GetPrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPrefixResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - IPAMService - delete: - operationId: IPAMService_DeletePrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - IPAMService - patch: - operationId: IPAMService_UpdatePrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdatePrefixResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceUpdatePrefixBody" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/available-ips": - get: - operationId: IPAMService_ListAvailableIPs - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAvailableIPsResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - - name: limit - description: "Limit number of IPs returned (default: 100)" - in: query - required: false - schema: - type: integer - format: int32 - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/reserved-ips": - post: - summary: IP Reservation (manage reserved_ips array in prefix) - operationId: IPAMService_AddReservedIP - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceAddReservedIPBody" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all": - post: - operationId: IPAMService_ClearAllPrefixReservedIPs - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceClearAllPrefixReservedIPsBody" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all": - post: - operationId: IPAMService_ReserveAllPrefixIPs - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceReserveAllPrefixIPsBody" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress}": - delete: - operationId: IPAMService_RemoveReservedIP - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - - name: ipAddress - in: path - required: true - schema: - type: string - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/reserved-prefixes": - delete: - operationId: IPAMService_RemoveReservedPrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - - name: cidr - in: query - required: false - schema: - type: string - tags: - - IPAMService - post: - operationId: IPAMService_AddReservedPrefix - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/IPAMServiceAddReservedPrefixBody" - required: true - tags: - - IPAMService - "/v1/ipam/prefixes/{prefixId}/utilization": - get: - summary: Utility - operationId: IPAMService_GetPrefixUtilization - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPrefixUtilizationResponse" - parameters: - - name: prefixId - in: path - required: true - schema: - type: string - tags: - - IPAMService - /v1/marketplace/addons: - get: - operationId: MarketplaceService_ListAvailableAddons - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAvailableAddonsResponse" - parameters: - - name: filterProviderId - in: query - required: false - schema: - type: string - - name: vmId - in: query - required: false - schema: - type: string - - name: filterAddonType - in: query - required: false - schema: - type: string - enum: - - ADDON_TYPE_UNSPECIFIED - - ADDON_TYPE_BACKUP - - ADDON_TYPE_SNAPSHOT - - ADDON_TYPE_ADDITIONAL_IP - default: ADDON_TYPE_UNSPECIFIED - - name: filterBillingType - description: " - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of - parent plan)" - in: query - required: false - schema: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - - name: search - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - MarketplaceService - /v1/marketplace/plans: - get: - operationId: MarketplaceService_ListAvailablePlans - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAvailablePlansResponse" - parameters: - - name: filterCountry - description: |- - Optional filters - - Filter by country name (case-insensitive) - in: query - required: false - schema: - type: string - - name: filterCity - description: Filter by city name (case-insensitive) - in: query - required: false - schema: - type: string - - name: filterBillingType - description: >- - Filter by billing type - - - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - in: query - required: false - schema: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - - name: filterComputeType - description: >- - Filter by compute type - - - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) - - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - in: query - required: false - schema: - type: string - enum: - - COMPUTE_TYPE_UNSPECIFIED - - COMPUTE_TYPE_GENERAL_COMPUTE - - COMPUTE_TYPE_HIGH_FREQUENCY - - COMPUTE_TYPE_HIGH_PERFORMANCE - - COMPUTE_TYPE_GENERAL_PURPOSE - - COMPUTE_TYPE_CPU_OPTIMIZED - - COMPUTE_TYPE_MEMORY_OPTIMIZED - - COMPUTE_TYPE_STORAGE_OPTIMIZED - - COMPUTE_TYPE_VERY_HIGH_FREQUENCY - - COMPUTE_TYPE_GAME_SERVER - default: COMPUTE_TYPE_UNSPECIFIED - - name: filterComputeCategory - description: >- - Filter by compute category - - - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) - - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - in: query - required: false - schema: - type: string - enum: - - COMPUTE_CATEGORY_UNSPECIFIED - - COMPUTE_CATEGORY_SHARED_COMPUTE - - COMPUTE_CATEGORY_DEDICATED_COMPUTE - default: COMPUTE_CATEGORY_UNSPECIFIED - tags: - - MarketplaceService - "/v1/marketplace/plans/{planId}": - get: - operationId: MarketplaceService_GetMarketplacePlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetMarketplacePlanResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - tags: - - MarketplaceService - /v1/marketplace/provider-directory: - get: - operationId: MarketplaceService_ListMarketplaceProviderDirectory - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListMarketplaceProviderDirectoryResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: search - in: query - required: false - schema: - type: string - tags: - - MarketplaceService - /v1/marketplace/providers: - get: - operationId: MarketplaceService_ListProviders - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListProvidersResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterPlanCode - description: Filter providers that offer this plan code (required) - in: query - required: false - schema: - type: string - - name: filterCountry - description: Filter by country name (required, case-insensitive) - in: query - required: false - schema: - type: string - - name: filterCity - description: Filter by city name (required, case-insensitive) - in: query - required: false - schema: - type: string - - name: filterBillingType - description: >- - Filter by billing type (subscription/fixed or usage-based) - - - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - in: query - required: false - schema: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - - name: search - description: Search by organization name or description - in: query - required: false - schema: - type: string - - name: filterIpv6AvailableOnly - in: query - required: false - schema: - type: boolean - - name: planPriceSort - description: >- - How to order providers: default is newest first; plan_price_sort can - order by the - - displayed list price (same basis as the UI) for the selected plan and billing type. - - - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST: Ascending: lowest list price first (usage: hourly, subscription: fixed monthly, free: 0) - - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST: Descending: highest list price first - in: query - required: false - schema: - type: string - enum: - - PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED - - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST - - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST - default: PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED - - name: filterUnlimitedBandwidthOnly - description: >- - Only include providers where bandwidth egress is effectively - unlimited for the selected plan - - (same basis as UI badge: overage_price if > 0 else unit_amount; unlimited when effective $/GB == 0). - in: query - required: false - schema: - type: boolean - - name: filterDdosProviders - description: >- - When set, only organizations whose ddos_provider is one of these - slugs are included. - - When empty, do not filter by DDoS. Mirrored by marketplace UI: all slugs "selected" = omit this. - in: query - required: false - explode: true - schema: - type: array - items: - type: string - tags: - - MarketplaceService - "/v1/marketplace/providers/{providerId}": - get: - operationId: MarketplaceService_GetProvider - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetProviderResponse" - parameters: - - name: providerId - in: path - required: true - schema: - type: string - tags: - - MarketplaceService - /v1/marketplace/regions: - get: - operationId: MarketplaceService_ListAvailableRegions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAvailableRegionsResponse" - tags: - - MarketplaceService - /v1/marketplace/search: - post: - operationId: MarketplaceService_SearchMarketplace - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SearchMarketplaceResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1SearchMarketplaceRequest" - description: Natural-language marketplace search (anonymous landing page). - required: true - tags: - - MarketplaceService - /v1/metrics: - get: - summary: List all available metrics - operationId: MetricService_ListMetrics - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListMetricsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: billableOnly - in: query - required: false - schema: - type: boolean - tags: - - MetricService - /v1/metrics-write-credentials: - get: - operationId: MetricsCredentialService_ListMetricsWriteCredentials - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListMetricsWriteCredentialsResponse" - parameters: - - name: agentId - description: "Optional: omit or leave empty to list credentials for the whole - organization." - in: query - required: false - schema: - type: string - - name: includeRevoked - in: query - required: false - schema: - type: boolean - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - description: -1 means fetch all; otherwise 1..100. - in: query - required: false - schema: - type: integer - format: int32 - tags: - - MetricsCredentialService - post: - operationId: MetricsCredentialService_CreateMetricsWriteCredential - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateMetricsWriteCredentialResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateMetricsWriteCredentialRequest" - required: true - tags: - - MetricsCredentialService - "/v1/metrics-write-credentials/{id}:revoke": - post: - operationId: MetricsCredentialService_RevokeMetricsWriteCredential - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetricsCredentialServiceRevokeMetricsWriteCredentia\ - lBody" - required: true - tags: - - MetricsCredentialService - "/v1/metrics-write-credentials/{id}:rotate": - post: - operationId: MetricsCredentialService_RotateMetricsWriteCredential - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateMetricsWriteCredentialResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/MetricsCredentialServiceRotateMetricsWriteCredentia\ - lBody" - required: true - tags: - - MetricsCredentialService - "/v1/metrics/{id}": - get: - summary: Get a specific metric by ID or code - operationId: MetricService_GetMetric - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetMetricResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - - name: code - description: Alternative to id - in: query - required: false - schema: - type: string - tags: - - MetricService - /v1/node: - post: - operationId: NodeService_CreateNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateNodeRequest" - required: true - tags: - - NodeService - /v1/node-placement-policy: - get: - operationId: NodePlacementService_GetNodePlacementPolicy - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetNodePlacementPolicyResponse" - tags: - - NodePlacementService - put: - operationId: NodePlacementService_UpdateNodePlacementPolicy - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateNodePlacementPolicyResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateNodePlacementPolicyRequest" - required: true - tags: - - NodePlacementService - /v1/node/topology/validate: - post: - summary: "Dedicated CPU cores: parse-preview of a topology paste without - persisting." - operationId: NodeService_ValidateNodeTopology - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ValidateNodeTopologyResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ValidateNodeTopologyRequest" - required: true - tags: - - NodeService - "/v1/node/{id}": - get: - operationId: NodeService_GetNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetNodeResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - NodeService - delete: - operationId: NodeService_DeleteNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - NodeService - patch: - operationId: NodeService_UpdateNode - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateNodeResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/NodeServiceUpdateNodeBody" - required: true - tags: - - NodeService - "/v1/node/{id}/cpu-map": - get: - summary: |- - Dedicated CPU cores: full topology + per-CPU occupancy for the node - topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3). - operationId: NodeService_GetNodeCPUMap - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetNodeCPUMapResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - NodeService - /v1/nodes: - get: - operationId: NodeService_ListNodes - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListNodesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: platformId - description: Optional filter; UUID format validated in ListNodes when set. - in: query - required: false - schema: - type: string - - name: serviceStatus - in: query - required: false - schema: - type: string - enum: - - SERVICE_STATUS_UNSPECIFIED - - SERVICE_STATUS_ONLINE - - SERVICE_STATUS_OFFLINE - - SERVICE_STATUS_MAINTENANCE - default: SERVICE_STATUS_UNSPECIFIED - - name: expand - in: query - required: false - explode: true - schema: - type: array - items: - type: string - - name: search - in: query - required: false - schema: - type: string - - name: regionId - in: query - required: false - schema: - type: string - tags: - - NodeService - /v1/oauth2/authorize: - get: - summary: Authorize initiates the OAuth2 authorization flow - operationId: OAuth2Service_Authorize - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1AuthorizeResponse" - parameters: - - name: clientId - in: query - required: false - schema: - type: string - - name: responseType - in: query - required: false - schema: - type: string - - name: redirectUri - in: query - required: false - schema: - type: string - - name: scope - in: query - required: false - schema: - type: string - - name: state - description: CSRF protection - in: query - required: false - schema: - type: string - - name: codeChallenge - description: PKCE challenge - in: query - required: false - schema: - type: string - - name: codeChallengeMethod - description: Only S256, not plain - in: query - required: false - schema: - type: string - tags: - - OAuth2Service - /v1/oauth2/clients: - get: - summary: ListClients lists OAuth2 clients for the organization - operationId: OAuth2Service_ListClients - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListOAuth2ClientsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - OAuth2Service - post: - summary: CreateClient creates a new OAuth2 client - operationId: OAuth2Service_CreateClient - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateOAuth2ClientResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateOAuth2ClientRequest" - required: true - tags: - - OAuth2Service - "/v1/oauth2/clients/{clientId}": - delete: - summary: DeleteClient deletes an OAuth2 client - operationId: OAuth2Service_DeleteClient - responses: - "200": - description: A successful response. - content: - application/json: - schema: - type: object - properties: {} - parameters: - - name: clientId - in: path - required: true - schema: - type: string - tags: - - OAuth2Service - /v1/oauth2/refresh: - post: - summary: RefreshToken exchanges refresh token for new access token - operationId: OAuth2Service_RefreshToken - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TokenResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RefreshTokenRequest" - required: true - tags: - - OAuth2Service - /v1/oauth2/revoke: - post: - summary: RevokeToken revokes an access or refresh token - operationId: OAuth2Service_RevokeToken - responses: - "200": - description: A successful response. - content: - application/json: - schema: - type: object - properties: {} - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RevokeTokenRequest" - required: true - tags: - - OAuth2Service - /v1/oauth2/token: - post: - summary: Token exchanges authorization code for access token - operationId: OAuth2Service_Token - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TokenResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1TokenRequest" - required: true - tags: - - OAuth2Service - /v1/organization: - get: - operationId: OrganizationService_GetOrganization - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetOrganizationResponse" - tags: - - OrganizationService - /v1/organizations: - get: - operationId: OrganizationService_ListOrganizations - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListOrganizationsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - OrganizationService - delete: - operationId: OrganizationService_DeleteOrganization - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - tags: - - OrganizationService - post: - operationId: OrganizationService_CreateOrganization - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateOrganizationRequest" - required: true - tags: - - OrganizationService - patch: - operationId: OrganizationService_UpdateOrganization - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateOrganizationResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateOrganizationRequest" - required: true - tags: - - OrganizationService - /v1/payment-methods: - get: - summary: |- - List payment methods for an organization/subscription - Returns payment method details (type, last4, brand, expiry, is_default) - operationId: PaymentMethodService_ListPaymentMethods - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPaymentMethodsResponse" - parameters: - - name: subscriptionId - description: |- - Filters - - Filter by subscription - in: query - required: false - schema: - type: string - - name: onlyDefault - description: Only return default payment method - in: query - required: false - schema: - type: boolean - - name: page - description: Pagination - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - PaymentMethodService - post: - summary: >- - Attach a payment method to a subscription/organization - - Works for both providers (platform subscriptions) and clients (provider - - plan subscriptions) Authorization: Check organization type and rule engine - - (subscription.payment_method.manage.enabled) - operationId: PaymentMethodService_AttachPaymentMethod - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1AttachPaymentMethodResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1AttachPaymentMethodRequest" - required: true - tags: - - PaymentMethodService - "/v1/payment-methods/{paymentMethodId}": - delete: - summary: >- - Remove a payment method - - Validation: - - - Providers: Cannot remove if only one method exists (except on free plan) - - - Clients: Cannot remove if only one method exists - - - Cannot remove if payment method is currently in use for active - - subscriptions - operationId: PaymentMethodService_RemovePaymentMethod - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1RemovePaymentMethodResponse" - parameters: - - name: paymentMethodId - in: path - required: true - schema: - type: string - tags: - - PaymentMethodService - "/v1/payment-methods/{paymentMethodId}:set-default": - post: - summary: |- - Set a payment method as the default payment method - Validates payment method belongs to organization/subscription - operationId: PaymentMethodService_SetDefaultPaymentMethod - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SetDefaultPaymentMethodResponse" - parameters: - - name: paymentMethodId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PaymentMethodServiceSetDefaultPaymentMethodBody" - required: true - tags: - - PaymentMethodService - /v1/payments: - get: - summary: ListPayments lists payments for an invoice or organization - operationId: PaymentService_ListPayments - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPaymentsResponse" - parameters: - - name: invoiceId - in: query - required: false - schema: - type: string - - name: status - in: query - required: false - schema: - type: string - enum: - - PAYMENT_STATUS_UNSPECIFIED - - PAYMENT_STATUS_PENDING - - PAYMENT_STATUS_PROCESSING - - PAYMENT_STATUS_SUCCEEDED - - PAYMENT_STATUS_FAILED - - PAYMENT_STATUS_CANCELED - - PAYMENT_STATUS_REFUNDED - - PAYMENT_STATUS_PARTIALLY_REFUNDED - default: PAYMENT_STATUS_UNSPECIFIED - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - PaymentService - "/v1/payments/{paymentId}": - get: - summary: GetPayment retrieves a single payment with refunds - operationId: PaymentService_GetPayment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPaymentResponse" - parameters: - - name: paymentId - in: path - required: true - schema: - type: string - tags: - - PaymentService - /v1/permissions: - get: - operationId: PermissionService_ListPermissions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPermissionsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterName - in: query - required: false - schema: - type: string - tags: - - PermissionService - /v1/permissions/assign-to-role: - post: - operationId: PermissionService_AssignPermissionToRole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1AssignPermissionToRoleRequest" - required: true - tags: - - PermissionService - /v1/permissions/effective: - get: - operationId: PermissionService_ListEffectivePermissions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListEffectivePermissionsResponse" - parameters: - - name: userIds - in: query - required: false - explode: true - schema: - type: array - items: - type: string - tags: - - PermissionService - /v1/permissions/remove-from-role: - delete: - operationId: PermissionService_RemovePermissionFromRole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: permissionIds - in: query - required: false - explode: true - schema: - type: array - items: - type: string - - name: roleId - in: query - required: false - schema: - type: string - tags: - - PermissionService - /v1/plans: - get: - operationId: PlanService_ListPlans - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPlansResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: isTemplate - description: |- - Filter to show only template plans (true) or only non-template plans - (false) If not specified, shows both template and non-template plans - in: query - required: false - schema: - type: boolean - - name: endUser - description: >- - Filter by end user type (client, provider, or all) - - If not specified, shows plans for all end user types based on organization - - permissions - in: query - required: false - schema: - type: string - enum: - - END_USER_UNSPECIFIED - - END_USER_CLIENT - - END_USER_PROVIDER - - END_USER_ALL - - END_USER_USER - default: END_USER_UNSPECIFIED - - name: search - description: Search filter for plan name, code, or description - in: query - required: false - schema: - type: string - - name: assetType - description: Filter by asset type (vm, gameserver, etc.) - in: query - required: false - schema: - type: string - enum: - - ASSET_TYPE_UNSPECIFIED - - ASSET_TYPE_VM - - ASSET_TYPE_CONTAINER - - ASSET_TYPE_STORAGE - - ASSET_TYPE_GAMESERVER - - ASSET_TYPE_CDN - - ASSET_TYPE_IP_ADDRESS - - ASSET_TYPE_DNS - - ASSET_TYPE_GPU - - ASSET_TYPE_GENERIC - default: ASSET_TYPE_UNSPECIFIED - - name: billingType - description: >- - Filter by billing type (subscription, usage, etc.) - - If not specified, shows plans for all billing types - - - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - in: query - required: false - schema: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - - name: filterComputeType - description: >- - Filter by compute type (optional). If provided, only plans with - matching compute type in their name are returned. - - Examples: "high performance", "high frequency", "general compute", "general purpose", "cpu optimized", "memory optimized", "storage optimized" - - Filtering is case-insensitive. - in: query - required: false - schema: - type: string - - name: filterCode - description: >- - Filter by plan code (optional). If provided, only plans with - matching code are returned. - - Filtering is case-insensitive. - - Examples: "SC-GC-1C-1G-20", "DC-HF-4C-8G-160" - - Filtering is case-insensitive. - in: query - required: false - schema: - type: string - tags: - - PlanService - post: - operationId: ProviderPlanService_CreatePlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreatePlanRequest" - required: true - tags: - - ProviderPlanService - "/v1/plans/{id}": - delete: - operationId: ProviderPlanService_DeletePlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - ProviderPlanService - patch: - operationId: ProviderPlanService_UpdatePlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - description: Plan ID to update (required) - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderPlanServiceUpdatePlanBody" - required: true - tags: - - ProviderPlanService - "/v1/plans/{planId}:subscribe": - post: - operationId: PlanService_Subscribe - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SubscribeResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - - name: billingPeriod - description: >- - Optional billing period. If not provided, uses the plan's default - billing - - period. If provided, validates that a PlanPrice exists for this billing - - period. If not available, returns a FailedPrecondition error. - in: query - required: false - schema: - type: string - enum: - - BILLING_PERIOD_UNSPECIFIED - - BILLING_PERIOD_HOUR - - BILLING_PERIOD_DAY - - BILLING_PERIOD_WEEK - - BILLING_PERIOD_MONTH - - BILLING_PERIOD_QUARTER - - BILLING_PERIOD_YEAR - default: BILLING_PERIOD_UNSPECIFIED - tags: - - PlanService - /v1/plans:calculate: - post: - operationId: ProviderPlanService_CalculatePlanPricing - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CalculatePlanPricingResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CalculatePlanPricingRequest" - required: true - tags: - - ProviderPlanService - /v1/platform: - post: - operationId: PlatformService_CreatePlatform - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreatePlatformRequest" - required: true - tags: - - PlatformService - /v1/platform-versions: - get: - summary: GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, - liqoctl, and helm. - operationId: MetadataService_GetPlatformVersions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1PlatformVersions" - tags: - - MetadataService - "/v1/platform/{id}": - get: - operationId: PlatformService_GetPlatform - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPlatformResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - PlatformService - delete: - operationId: PlatformService_DeletePlatform - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - PlatformService - patch: - operationId: PlatformService_UpdatePlatform - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdatePlatformResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlatformServiceUpdatePlatformBody" - required: true - tags: - - PlatformService - /v1/platforms: - get: - operationId: PlatformService_ListPlatforms - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPlatformsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: serviceStatus - in: query - required: false - schema: - type: string - enum: - - SERVICE_STATUS_UNSPECIFIED - - SERVICE_STATUS_ONLINE - - SERVICE_STATUS_OFFLINE - - SERVICE_STATUS_MAINTENANCE - default: SERVICE_STATUS_UNSPECIFIED - - name: search - in: query - required: false - schema: - type: string - tags: - - PlatformService - "/v1/platforms/{platformId}:AssignAgent": - post: - operationId: PlatformService_AssignAgent - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: platformId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlatformServiceAssignAgentBody" - required: true - tags: - - PlatformService - "/v1/platforms/{platformId}:UnassignAgent": - post: - operationId: PlatformService_UnassignAgent - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: platformId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/PlatformServiceUnassignAgentBody" - required: true - tags: - - PlatformService - /v1/provider-reviews: - get: - operationId: ProviderReviewService_ListProviderReviews - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListProviderReviewsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: starRatings - description: Multi-select star filter (e.g. [5,4]); empty means any stars. - in: query - required: false - explode: true - schema: - type: array - items: - type: integer - format: int32 - - name: search - description: Case-insensitive substring match on review comment or provider - reply; empty means no text filter. - in: query - required: false - schema: - type: string - - name: replyFilter - description: "Inbox: 0 = awaiting provider reply / empty reply (default), 1 = - replied only, 2 = all reviews." - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderReviewService - post: - operationId: ClientProviderReviewService_CreateClientReview - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateClientReviewResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateClientReviewRequest" - required: true - tags: - - ClientProviderReviewService - "/v1/provider-reviews/virtual-machines/{virtualMachineId}": - get: - operationId: ClientProviderReviewService_GetClientReviewForVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetClientReviewForVirtualMachineResponse" - parameters: - - name: virtualMachineId - in: path - required: true - schema: - type: string - tags: - - ClientProviderReviewService - "/v1/provider-reviews/{reviewId}": - delete: - operationId: ClientProviderReviewService_DeleteClientReview - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: reviewId - in: path - required: true - schema: - type: string - tags: - - ClientProviderReviewService - patch: - operationId: ClientProviderReviewService_UpdateClientReview - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateClientReviewResponse" - parameters: - - name: reviewId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ClientProviderReviewServiceUpdateClientReviewBody" - required: true - tags: - - ClientProviderReviewService - "/v1/provider-reviews/{reviewId}/reply": - delete: - operationId: ProviderReviewService_DeleteProviderReviewReply - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1DeleteProviderReviewReplyResponse" - parameters: - - name: reviewId - in: path - required: true - schema: - type: string - tags: - - ProviderReviewService - post: - operationId: ProviderReviewService_CreateProviderReviewReply - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateProviderReviewReplyResponse" - parameters: - - name: reviewId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderReviewServiceCreateProviderReviewReplyBody" - required: true - tags: - - ProviderReviewService - patch: - operationId: ProviderReviewService_UpdateProviderReviewReply - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateProviderReviewReplyResponse" - parameters: - - name: reviewId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderReviewServiceUpdateProviderReviewReplyBody" - required: true - tags: - - ProviderReviewService - /v1/provider/connect/account: - get: - operationId: ProviderConnectService_GetConnectAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetConnectAccountResponse" - tags: - - ProviderConnectService - delete: - operationId: ProviderConnectService_DisconnectConnectAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - tags: - - ProviderConnectService - post: - operationId: ProviderConnectService_CreateConnectAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateConnectAccountResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateConnectAccountRequest" - required: true - tags: - - ProviderConnectService - /v1/provider/connect/tax-session: - post: - summary: |- - Creates a Stripe AccountSession client secret for Connect tax_settings / - tax_registrations embedded components. - operationId: ProviderConnectService_CreateConnectTaxSession - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateConnectTaxSessionResponse" - requestBody: - content: - application/json: - schema: - type: object - properties: {} - required: true - tags: - - ProviderConnectService - /v1/provider/customer-stats: - get: - summary: 'Path must not be `/customers/stats`: some gateways match - `/customers/{client_organization_id}` first and treat "stats" as a UUID - field (validation error).' - operationId: ProviderCustomerService_GetProviderCustomerStats - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetProviderCustomerStatsResponse" - tags: - - ProviderCustomerService - /v1/provider/customers: - get: - operationId: ProviderCustomerService_ListProviderCustomers - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListProviderCustomersResponse" - parameters: - - name: page - description: 0-based page (default 0). - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - description: -1 = all matches (no server row cap; prefer paginated 1..100 for - large data sets). Otherwise 1..100 per page (see - ListVirtualMachinesRequest). - in: query - required: false - schema: - type: integer - format: int32 - - name: search - description: Case-insensitive match on client organization name or any member - email (owners/members via roles & groups). - in: query - required: false - schema: - type: string - - name: activityFilter - description: >- - Default / UNSPECIFIED means ALL (same as - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL). - - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL: All customers (any VM history with this provider, including when every VM is soft-deleted). - in: query - required: false - schema: - type: string - enum: - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ACTIVE - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_INACTIVE - default: PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED - tags: - - ProviderCustomerService - "/v1/provider/customers/{clientOrganizationId}": - get: - operationId: ProviderCustomerService_GetProviderCustomer - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetProviderCustomerResponse" - parameters: - - name: clientOrganizationId - in: path - required: true - schema: - type: string - tags: - - ProviderCustomerService - "/v1/provider/customers/{clientOrganizationId}/assets": - get: - operationId: ProviderCustomerService_ListProviderCustomerAssets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListProviderCustomerAssetsResponse" - parameters: - - name: clientOrganizationId - in: path - required: true - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - description: Same rules as ListProviderCustomers.page_size. - in: query - required: false - schema: - type: integer - format: int32 - - name: search - in: query - required: false - schema: - type: string - - name: assetType - in: query - required: false - schema: - type: string - enum: - - PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED - - PROVIDER_CUSTOMER_ASSET_TYPE_ALL - - PROVIDER_CUSTOMER_ASSET_TYPE_VIRTUAL_MACHINE - - PROVIDER_CUSTOMER_ASSET_TYPE_DEDICATED_SERVER - - PROVIDER_CUSTOMER_ASSET_TYPE_GAME_SERVER - default: PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED - - name: activityStatus - description: When set (not UNSPECIFIED), only assets matching this activity - status are returned. - in: query - required: false - schema: - type: string - enum: - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_ACTIVE - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_INACTIVE - default: PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED - - name: regionId - description: When set to a non-empty UUID, only assets whose VM node is in this - region are returned. - in: query - required: false - schema: - type: string - tags: - - ProviderCustomerService - "/v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart": - post: - operationId: ProviderCustomerService_RestartProviderCustomerVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: clientOrganizationId - in: path - required: true - schema: - type: string - - name: virtualMachineId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderCustomerServiceRestartProviderCustomerVirtu\ - alMachineBody" - required: true - tags: - - ProviderCustomerService - "/v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start": - post: - operationId: ProviderCustomerService_StartProviderCustomerVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: clientOrganizationId - in: path - required: true - schema: - type: string - - name: virtualMachineId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderCustomerServiceStartProviderCustomerVirtual\ - MachineBody" - required: true - tags: - - ProviderCustomerService - "/v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop": - post: - operationId: ProviderCustomerService_StopProviderCustomerVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: clientOrganizationId - in: path - required: true - schema: - type: string - - name: virtualMachineId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderCustomerServiceStopProviderCustomerVirtualM\ - achineBody" - required: true - tags: - - ProviderCustomerService - /v1/provider/dashboard/addon-catalog-stats: - get: - operationId: ProviderDashboardService_ListDashboardAddonCatalogStats - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardAddonCatalogStatsResponse" - parameters: - - name: addonSearch - in: query - required: false - schema: - type: string - - name: addonTypeFilter - in: query - required: false - schema: - type: string - - name: addonBillingTypeFilter - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/asset-sales-timeseries: - get: - operationId: ProviderDashboardService_GetDashboardAssetSalesTimeseries - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetDashboardAssetSalesTimeseriesResponse" - parameters: - - name: rangeDays - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/billing-sales: - get: - operationId: ProviderDashboardService_GetDashboardBillingSales - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetDashboardBillingSalesResponse" - parameters: - - name: rangeDays - in: query - required: false - schema: - type: integer - format: int32 - - name: includePriorPeriod - in: query - required: false - schema: - type: boolean - - name: revenueByCustomerPage - description: Revenue-by-customer table (1-based page). Omit for defaults (page - 1, page size 25). - in: query - required: false - schema: - type: integer - format: int32 - - name: revenueByCustomerPageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: revenueByCustomerEmailFilter - description: Case-insensitive substring match on contact email, organization id, - or organization name. - in: query - required: false - schema: - type: string - tags: - - ProviderDashboardService - /v1/provider/dashboard/customer-acquisition-timeseries: - get: - operationId: ProviderDashboardService_GetDashboardCustomerAcquisitionTimeseries - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetDashboardCustomerAcquisitionTimeseriesResponse" - parameters: - - name: rangeDays - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/infrastructure: - get: - operationId: ProviderDashboardService_ListDashboardInfrastructure - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardInfrastructureResponse" - parameters: - - name: platformId - in: query - required: false - schema: - type: string - - name: regionId - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/ipam: - get: - operationId: ProviderDashboardService_ListDashboardIpam - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardIpamResponse" - parameters: - - name: networkId - in: query - required: false - schema: - type: string - - name: allocatedSampleIpsPage - in: query - required: false - schema: - type: integer - format: int32 - - name: allocatedSampleIpsPageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/ipam/assignments: - get: - operationId: ProviderDashboardService_ListDashboardIpamAssignments - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardIpamAssignmentsResponse" - parameters: - - name: networkId - in: query - required: false - schema: - type: string - - name: search - in: query - required: false - schema: - type: string - - name: platformId - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: ipFamily - in: query - required: false - schema: - type: string - enum: - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV4 - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV6 - default: DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED - tags: - - ProviderDashboardService - /v1/provider/dashboard/plan-subscription-stats: - get: - operationId: ProviderDashboardService_ListDashboardPlanSubscriptionStats - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardPlanSubscriptionStatsResponse" - parameters: - - name: planSearch - in: query - required: false - schema: - type: string - - name: planBillingTypeFilter - in: query - required: false - schema: - type: string - - name: planAssetFilter - in: query - required: false - schema: - type: string - - name: plansPage - in: query - required: false - schema: - type: integer - format: int32 - - name: plansPageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ProviderDashboardService - /v1/provider/dashboard/plans-tab-stats: - get: - operationId: ProviderDashboardPlansTabService_GetDashboardPlansTabStats - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ProviderDashboardPlansTabStats" - tags: - - ProviderDashboardPlansTabService - /v1/provider/dashboard/summary: - get: - operationId: ProviderDashboardService_GetDashboardSummary - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetDashboardSummaryResponse" - tags: - - ProviderDashboardService - /v1/provider/dashboard/tickets/statistics: - get: - operationId: ProviderDashboardService_ListDashboardTicketStatistics - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardTicketStatisticsResponse" - parameters: - - name: fromTime - in: query - required: false - schema: - type: string - format: date-time - - name: toTime - in: query - required: false - schema: - type: string - format: date-time - tags: - - ProviderDashboardService - /v1/provider/dashboard/virtual-machines: - get: - operationId: ProviderDashboardService_ListDashboardVirtualMachines - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListDashboardVirtualMachinesResponse" - parameters: - - name: platformId - in: query - required: false - schema: - type: string - - name: regionId - in: query - required: false - schema: - type: string - - name: nodeId - in: query - required: false - schema: - type: string - - name: customerEmailContains - in: query - required: false - schema: - type: string - - name: vmPage - in: query - required: false - schema: - type: integer - format: int32 - - name: vmPageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: vmtemplateId - in: query - required: false - schema: - type: string - tags: - - ProviderDashboardService - /v1/provider/live-validations: - get: - operationId: LiveValidationService_ListPlanLiveValidations - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPlanLiveValidationsResponse" - parameters: - - name: planId - in: query - required: false - schema: - type: string - - name: search - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - LiveValidationService - /v1/provider/manual-payout: - get: - operationId: ManualPayoutService_GetManualPayout - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetManualPayoutResponse" - tags: - - ManualPayoutService - delete: - operationId: ManualPayoutService_DeleteManualPayout - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - tags: - - ManualPayoutService - post: - operationId: ManualPayoutService_CreateManualPayout - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateManualPayoutResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateManualPayoutRequest" - required: true - tags: - - ManualPayoutService - /v1/provider/network/smtp-outbound-policies: - get: - operationId: ProviderNetworkService_ListVirtualMachineSmtpOutboundPolicies - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListVirtualMachineSmtpOutboundPoliciesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: search - description: Case-insensitive substring match on hostname, customer contact - email, or exact virtual machine UUID. - in: query - required: false - schema: - type: string - tags: - - ProviderNetworkService - "/v1/provider/network/smtp-outbound-policies/{virtualMachineId}": - put: - operationId: ProviderNetworkService_UpdateVirtualMachineSmtpOutboundPolicy - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachineSmtpOutboundPolicyView" - parameters: - - name: virtualMachineId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ProviderNetworkServiceUpdateVirtualMachineSmtpOutbo\ - undPolicyBody" - required: true - tags: - - ProviderNetworkService - /v1/provider/network/smtp-outbound-policy: - get: - operationId: ProviderNetworkService_GetSmtpOutboundProviderPolicy - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSmtpOutboundProviderPolicyResponse" - tags: - - ProviderNetworkService - put: - operationId: ProviderNetworkService_UpdateSmtpOutboundProviderPolicy - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSmtpOutboundProviderPolicyResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateSmtpOutboundProviderPolicyRequest" - required: true - tags: - - ProviderNetworkService - /v1/provider/onboarding/checklist: - get: - operationId: ProviderOnboardingService_GetProviderOnboardingChecklist - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetProviderOnboardingChecklistResponse" - tags: - - ProviderOnboardingService - /v1/provider/payout-configuration: - get: - operationId: PayoutConfigurationService_GetPayoutConfiguration - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPayoutConfigurationResponse" - tags: - - PayoutConfigurationService - put: - operationId: PayoutConfigurationService_UpdatePayoutConfiguration - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPayoutConfigurationResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdatePayoutConfigurationRequest" - required: true - tags: - - PayoutConfigurationService - /v1/provider/payout-invoices: - get: - operationId: PayoutInvoiceService_ListPayoutInvoices - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPayoutInvoicesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: status - description: Filter by payout status - in: query - required: false - schema: - type: string - enum: - - PAYOUT_STATUS_UNSPECIFIED - - PAYOUT_STATUS_PENDING - - PAYOUT_STATUS_PROCESSING - - PAYOUT_STATUS_COMPLETED - - PAYOUT_STATUS_FAILED - - PAYOUT_STATUS_CANCELED - default: PAYOUT_STATUS_UNSPECIFIED - tags: - - PayoutInvoiceService - "/v1/provider/payout-invoices/{id}": - get: - operationId: PayoutInvoiceService_GetPayoutInvoice - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPayoutInvoiceResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - PayoutInvoiceService - /v1/provider/plans/assignable-nodes: - get: - summary: Nodes the provider may assign to a plan (catalog-eligible for - tier/category). - operationId: ProviderPlanService_ListAssignableNodesForPlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAssignableNodesForPlanResponse" - parameters: - - name: templatePlanId - description: "Optional: set for create-from-template. Empty when plan_id is used." - in: query - required: false - schema: - type: string - - name: planId - description: "Optional: set for edit existing plan. Empty when template_plan_id - is used." - in: query - required: false - schema: - type: string - - name: regionId - in: query - required: false - schema: - type: string - tags: - - ProviderPlanService - "/v1/provider/plans/{planId}/live-validation": - get: - operationId: LiveValidationService_GetPlanLiveValidation - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetPlanLiveValidationResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - - name: nodeId - in: query - required: false - schema: - type: string - tags: - - LiveValidationService - delete: - operationId: LiveValidationService_DeletePlanLiveValidation - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - - name: nodeId - in: query - required: false - schema: - type: string - tags: - - LiveValidationService - post: - operationId: LiveValidationService_StartPlanLiveValidation - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1StartPlanLiveValidationResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/LiveValidationServiceStartPlanLiveValidationBody" - required: true - tags: - - LiveValidationService - "/v1/provider/plans/{planId}/live-validation/benchmarks": - get: - operationId: LiveValidationService_ListPlanLiveValidationBenchmarks - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPlanLiveValidationBenchmarksResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - - name: nodeId - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - LiveValidationService - "/v1/provider/plans/{planId}/live-validation/nodes": - get: - operationId: LiveValidationService_ListEligibleNodesForPlan - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListEligibleNodesForPlanResponse" - parameters: - - name: planId - in: path - required: true - schema: - type: string - tags: - - LiveValidationService - /v1/provider/preflight-checks: - get: - operationId: PreflightService_ListPreflightChecks - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListPreflightChecksResponse" - parameters: - - name: planCode - in: query - required: false - schema: - type: string - - name: planId - in: query - required: false - schema: - type: string - - name: issuesOnly - in: query - required: false - schema: - type: boolean - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - PreflightService - /v1/provider/revenue: - get: - operationId: PayoutInvoiceService_GetProviderRevenue - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetProviderRevenueResponse" - parameters: - - name: startDate - description: Start date for revenue calculation (inclusive) - in: query - required: false - schema: - type: string - format: date-time - - name: endDate - description: End date for revenue calculation (inclusive) - in: query - required: false - schema: - type: string - format: date-time - - name: planId - description: Filter by plan ID (optional) - in: query - required: false - schema: - type: string - - name: clientOrganizationId - description: Filter by client organization ID (optional) - in: query - required: false - schema: - type: string - - name: includePending - description: "Include pending/processing payouts in calculations (default: true)" - in: query - required: false - schema: - type: boolean - tags: - - PayoutInvoiceService - /v1/refunds: - get: - summary: ListRefunds lists refunds for a payment, invoice, or organization - operationId: RefundService_ListRefunds - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRefundsResponse" - parameters: - - name: paymentId - in: query - required: false - schema: - type: string - - name: invoiceId - in: query - required: false - schema: - type: string - - name: status - in: query - required: false - schema: - type: string - enum: - - REFUND_STATUS_UNSPECIFIED - - REFUND_STATUS_PENDING - - REFUND_STATUS_PROCESSING - - REFUND_STATUS_SUCCEEDED - - REFUND_STATUS_FAILED - - REFUND_STATUS_CANCELED - default: REFUND_STATUS_UNSPECIFIED - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - RefundService - "/v1/refunds/{refundId}": - get: - summary: GetRefund retrieves a single refund with payment and invoice details - operationId: RefundService_GetRefund - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetRefundResponse" - parameters: - - name: refundId - in: path - required: true - schema: - type: string - tags: - - RefundService - /v1/regions: - get: - operationId: RegionService_ListRegions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRegionsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: search - in: query - required: false - schema: - type: string - - name: platformId - in: query - required: false - schema: - type: string - tags: - - RegionService - post: - operationId: RegionService_CreateRegion - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1Region" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateRegionRequest" - required: true - tags: - - RegionService - "/v1/regions/{id}": - get: - operationId: RegionService_GetRegion - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1Region" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - RegionService - delete: - operationId: RegionService_DeleteRegion - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - RegionService - "/v1/roadmap/comments/{commentId}": - delete: - operationId: RoadmapService_DeleteRoadmapFeatureRequestComment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1DeleteRoadmapFeatureRequestCommentResponse" - parameters: - - name: commentId - in: path - required: true - schema: - type: string - tags: - - RoadmapService - patch: - operationId: RoadmapService_UpdateRoadmapFeatureRequestComment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateRoadmapFeatureRequestCommentResponse" - parameters: - - name: commentId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoadmapServiceUpdateRoadmapFeatureRequestCommentBod\ - y" - required: true - tags: - - RoadmapService - /v1/roadmap/products: - get: - operationId: RoadmapService_ListRoadmapProductCategories - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRoadmapProductCategoriesResponse" - tags: - - RoadmapService - /v1/roadmap/requests: - get: - operationId: RoadmapService_ListRoadmapFeatureRequests - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRoadmapFeatureRequestsResponse" - parameters: - - name: status - in: query - required: false - schema: - type: string - enum: - - ROADMAP_REQUEST_STATUS_UNSPECIFIED - - ROADMAP_REQUEST_STATUS_IN_REVIEW - - ROADMAP_REQUEST_STATUS_PLANNED - - ROADMAP_REQUEST_STATUS_IN_PROGRESS - - ROADMAP_REQUEST_STATUS_COMPLETED - - ROADMAP_REQUEST_STATUS_DECLINED - default: ROADMAP_REQUEST_STATUS_UNSPECIFIED - - name: productSlug - in: query - required: false - schema: - type: string - - name: search - in: query - required: false - schema: - type: string - - name: sort - in: query - required: false - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: limit - in: query - required: false - schema: - type: integer - format: int32 - tags: - - RoadmapService - "/v1/roadmap/requests/{slug}": - get: - operationId: RoadmapService_GetRoadmapFeatureRequest - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetRoadmapFeatureRequestResponse" - parameters: - - name: slug - in: path - required: true - schema: - type: string - tags: - - RoadmapService - "/v1/roadmap/requests/{slug}/comments": - get: - operationId: RoadmapService_ListRoadmapFeatureRequestComments - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRoadmapFeatureRequestCommentsResponse" - parameters: - - name: slug - in: path - required: true - schema: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: limit - in: query - required: false - schema: - type: integer - format: int32 - tags: - - RoadmapService - post: - operationId: RoadmapService_CreateRoadmapFeatureRequestComment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateRoadmapFeatureRequestCommentResponse" - parameters: - - name: slug - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoadmapServiceCreateRoadmapFeatureRequestCommentBod\ - y" - required: true - tags: - - RoadmapService - "/v1/roadmap/requests/{slug}/vote": - delete: - operationId: RoadmapService_RemoveRoadmapFeatureRequestVote - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VoteRoadmapFeatureRequestResponse" - parameters: - - name: slug - in: path - required: true - schema: - type: string - tags: - - RoadmapService - post: - operationId: RoadmapService_VoteRoadmapFeatureRequest - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VoteRoadmapFeatureRequestResponse" - parameters: - - name: slug - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoadmapServiceVoteRoadmapFeatureRequestBody" - required: true - tags: - - RoadmapService - /v1/roadmap/stats: - get: - operationId: RoadmapService_GetRoadmapStats - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetRoadmapStatsResponse" - tags: - - RoadmapService - /v1/roadmap/submit: - post: - operationId: RoadmapService_SubmitRoadmapFeatureRequest - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SubmitRoadmapFeatureRequestResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1SubmitRoadmapFeatureRequestRequest" - required: true - tags: - - RoadmapService - /v1/roles: - get: - operationId: RoleService_ListRoles - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListRolesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterName - in: query - required: false - schema: - type: string - - name: search - in: query - required: false - schema: - type: string - tags: - - RoleService - post: - operationId: RoleService_CreateRole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateRoleRequest" - required: true - tags: - - RoleService - /v1/roles/replace-for-group: - put: - operationId: RoleService_ReplaceRoleForGroup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ReplaceRoleForGroupRequest" - required: true - tags: - - RoleService - /v1/roles/replace-for-service-account: - put: - operationId: RoleService_ReplaceRoleForServiceAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ReplaceRoleForServiceAccountRequest" - required: true - tags: - - RoleService - /v1/roles/replace-for-user: - put: - operationId: RoleService_ReplaceRoleForUser - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ReplaceRoleForUserRequest" - required: true - tags: - - RoleService - "/v1/roles/{id}": - delete: - operationId: RoleService_DeleteRole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - RoleService - patch: - operationId: RoleService_UpdateRole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateRoleResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/RoleServiceUpdateRoleBody" - required: true - tags: - - RoleService - /v1/secrets: - get: - operationId: SecretService_ListSecrets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListSecretsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - SecretService - post: - operationId: SecretService_CreateSecret - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateSecretResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateSecretRequest" - required: true - tags: - - SecretService - "/v1/secrets/{id}": - get: - operationId: SecretService_GetSecret - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSecretResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - SecretService - delete: - operationId: SecretService_DeleteSecret - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - SecretService - patch: - operationId: SecretService_UpdateSecret - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SecretServiceUpdateSecretBody" - required: true - tags: - - SecretService - /v1/service-accounts: - get: - operationId: ServiceAccountService_ListServiceAccounts - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListServiceAccountsResponse" - parameters: - - name: includeInactive - in: query - required: false - schema: - type: boolean - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ServiceAccountService - post: - operationId: ServiceAccountService_CreateServiceAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ServiceAccountResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateServiceAccountRequest" - required: true - tags: - - ServiceAccountService - "/v1/service-accounts/tokens/{tokenId}": - delete: - operationId: ServiceAccountService_RevokeToken - responses: - "200": - description: A successful response. - content: - application/json: - schema: - type: object - properties: {} - parameters: - - name: tokenId - in: path - required: true - schema: - type: string - tags: - - ServiceAccountService - "/v1/service-accounts/{id}": - get: - operationId: ServiceAccountService_GetServiceAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ServiceAccountResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - ServiceAccountService - delete: - operationId: ServiceAccountService_DeleteServiceAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - type: object - properties: {} - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - ServiceAccountService - patch: - operationId: ServiceAccountService_UpdateServiceAccount - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ServiceAccountResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ServiceAccountServiceUpdateServiceAccountBody" - required: true - tags: - - ServiceAccountService - "/v1/service-accounts/{serviceAccountId}/tokens": - get: - operationId: ServiceAccountService_ListTokens - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListServiceAccountTokensResponse" - parameters: - - name: serviceAccountId - in: path - required: true - schema: - type: string - - name: includeInactive - in: query - required: false - schema: - type: boolean - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - ServiceAccountService - post: - operationId: ServiceAccountService_GenerateToken - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GenerateServiceAccountTokenResponse" - parameters: - - name: serviceAccountId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/ServiceAccountServiceGenerateTokenBody" - required: true - tags: - - ServiceAccountService - /v1/ssh-keys: - get: - operationId: SSHKeyService_ListSSHKeys - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListSSHKeysResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - SSHKeyService - post: - operationId: SSHKeyService_CreateSSHKey - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateSSHKeyResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateSSHKeyRequest" - required: true - tags: - - SSHKeyService - "/v1/ssh-keys/{id}": - get: - operationId: SSHKeyService_GetSSHKey - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSSHKeyResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - SSHKeyService - delete: - operationId: SSHKeyService_DeleteSSHKey - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - SSHKeyService - /v1/subscriptions: - get: - operationId: SubscriptionService_ListSubscriptions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListSubscriptionsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: onlyActive - in: query - required: false - schema: - type: boolean - tags: - - SubscriptionService - "/v1/subscriptions/{subscriptionId}/addons": - get: - summary: List addon subscriptions for a subscription - operationId: AddonService_ListAddonSubscriptions - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListAddonSubscriptionsResponse" - parameters: - - name: subscriptionId - in: path - required: true - schema: - type: string - - name: addonStatus - description: Filter by status - in: query - required: false - schema: - type: string - enum: - - ADDON_STATUS_UNSPECIFIED - - ADDON_STATUS_ACTIVE - - ADDON_STATUS_CANCELED - - ADDON_STATUS_PAUSED - - ADDON_STATUS_PENDING_ACTIVATION - default: ADDON_STATUS_UNSPECIFIED - tags: - - AddonService - post: - summary: Add an addon to a subscription - operationId: AddonService_AddAddonToSubscription - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1AddAddonToSubscriptionResponse" - parameters: - - name: subscriptionId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/AddonServiceAddAddonToSubscriptionBody" - required: true - tags: - - AddonService - /v1/subscriptions:cancel: - post: - operationId: SubscriptionService_Cancel - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CancelResponse" - tags: - - SubscriptionService - /v1/subscriptions:cancel-renewal: - post: - summary: >- - CancelRenewal schedules an asset/VM-linked subscription to stop renewing - at - - current_period_end. The VM remains usable until then; no refund of the current period. - operationId: SubscriptionService_CancelRenewal - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CancelResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CancelRenewalRequest" - required: true - tags: - - SubscriptionService - /v1/subscriptions:retry-payment: - post: - operationId: SubscriptionService_RetryPayment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1RetryPaymentResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RetryPaymentRequest" - required: true - tags: - - SubscriptionService - /v1/subscriptions:status: - get: - operationId: SubscriptionService_GetSubscriptionStatus - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSubscriptionStatusResponse" - tags: - - SubscriptionService - /v1/subscriptions:undo-cancel-renewal: - post: - summary: UndoCancelRenewal clears cancel_at_period_end so the asset subscription - renews again. - operationId: SubscriptionService_UndoCancelRenewal - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CancelResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UndoCancelRenewalRequest" - required: true - tags: - - SubscriptionService - /v1/ticket-templates: - get: - operationId: TicketService_ListTicketTemplates - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListTicketTemplatesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - TicketService - post: - operationId: TicketService_CreateTicketTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TicketTemplate" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateTicketTemplateRequest" - required: true - tags: - - TicketService - "/v1/ticket-templates/{id}": - get: - operationId: TicketService_GetTicketTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TicketTemplate" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - TicketService - delete: - operationId: TicketService_DeleteTicketTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - TicketService - patch: - operationId: TicketService_UpdateTicketTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TicketTemplate" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceUpdateTicketTemplateBody" - required: true - tags: - - TicketService - /v1/tickets: - get: - operationId: TicketService_ListTickets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListTicketsResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterTicketStatus - in: query - required: false - schema: - type: string - enum: - - TICKET_STATUS_UNSPECIFIED - - TICKET_STATUS_IN_PROGRESS - - TICKET_STATUS_ESCALATED - - TICKET_STATUS_PENDING - - TICKET_STATUS_AWAITING_REPLY - - TICKET_STATUS_RESOLVED - - TICKET_STATUS_WONT_FIX - - TICKET_STATUS_DUPLICATE - - TICKET_STATUS_NOT_REPRODUCIBLE - default: TICKET_STATUS_UNSPECIFIED - - name: filterCaseType - in: query - required: false - schema: - type: string - enum: - - CASE_TYPE_UNSPECIFIED - - CASE_TYPE_BILLING - - CASE_TYPE_GENERAL - - CASE_TYPE_TROUBLESHOOTING - - CASE_TYPE_OUTAGE - - CASE_TYPE_ABUSE - - CASE_TYPE_CONFIGURATION_CHANGE - default: CASE_TYPE_UNSPECIFIED - - name: filterPriority - in: query - required: false - schema: - type: string - enum: - - TICKET_PRIORITY_UNSPECIFIED - - TICKET_PRIORITY_LOW - - TICKET_PRIORITY_NORMAL - - TICKET_PRIORITY_HIGH - - TICKET_PRIORITY_URGENT - - TICKET_PRIORITY_CRITICAL - default: TICKET_PRIORITY_UNSPECIFIED - tags: - - TicketService - post: - operationId: TicketService_CreateTicket - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateTicketResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateTicketRequest" - required: true - tags: - - TicketService - "/v1/tickets/attachments/{attachmentId}": - delete: - operationId: TicketService_DeleteTicketAttachment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: attachmentId - in: path - required: true - schema: - type: string - tags: - - TicketService - "/v1/tickets/attachments/{attachmentId}:download": - get: - operationId: TicketService_DownloadTicketAttachment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1DownloadTicketAttachmentResponse" - parameters: - - name: attachmentId - in: path - required: true - schema: - type: string - tags: - - TicketService - /v1/tickets/attachments:confirm-upload: - post: - operationId: TicketService_ConfirmTicketAttachmentUpload - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TicketAttachment" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ConfirmTicketAttachmentUploadRequest" - required: true - tags: - - TicketService - /v1/tickets/attachments:upload-content: - post: - operationId: TicketService_UploadTicketAttachmentContent - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1TicketAttachment" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1UploadTicketAttachmentContentRequest" - required: true - tags: - - TicketService - "/v1/tickets/{id}": - get: - operationId: TicketService_GetTicket - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetTicketResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - TicketService - delete: - operationId: TicketService_DeleteTicket - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - TicketService - "/v1/tickets/{ticketId}/attachments": - get: - operationId: TicketService_ListTicketAttachments - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListTicketAttachmentsResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - tags: - - TicketService - "/v1/tickets/{ticketId}/attachments:upload": - post: - operationId: TicketService_CreateTicketAttachmentUpload - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateTicketAttachmentUploadResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceCreateTicketAttachmentUploadBody" - required: true - tags: - - TicketService - "/v1/tickets/{ticketId}/internal-comments": - get: - operationId: TicketService_ListInternalComments - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListInternalCommentsResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - tags: - - TicketService - "/v1/tickets/{ticketId}:add-reply": - post: - operationId: TicketService_AddReplyToTicket - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceAddReplyToTicketBody" - required: true - tags: - - TicketService - "/v1/tickets/{ticketId}:internal-comment": - post: - operationId: TicketService_AddInternalComment - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1AddInternalCommentResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceAddInternalCommentBody" - required: true - tags: - - TicketService - "/v1/tickets/{ticketId}:set-priority": - post: - operationId: TicketService_SetTicketPriority - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceSetTicketPriorityBody" - required: true - tags: - - TicketService - "/v1/tickets/{ticketId}:set-status": - post: - operationId: TicketService_SetTicketStatus - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: ticketId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/TicketServiceSetTicketStatusBody" - required: true - tags: - - TicketService - /v1/tickets:search: - post: - operationId: TicketService_SearchTickets - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SearchTicketsResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1SearchTicketsRequest" - required: true - tags: - - TicketService - /v1/usage/record: - post: - summary: Record a single usage event (from Prometheus or other monitoring systems) - operationId: UsageReportService_RecordUsage - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1RecordUsageResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1RecordUsageRequest" - required: true - tags: - - UsageReportService - /v1/usage/record:batch: - post: - summary: Batch record multiple usage events (for bulk ingestion) - operationId: UsageReportService_BatchRecordUsage - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1BatchRecordUsageResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1BatchRecordUsageRequest" - required: true - tags: - - UsageReportService - /v1/usage/records: - get: - summary: List usage records with filters - operationId: UsageReportService_ListUsageRecords - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListUsageRecordsResponse" - parameters: - - name: subscriptionId - description: Filters - in: query - required: false - schema: - type: string - - name: metricId - in: query - required: false - schema: - type: string - - name: usageRecordStatus - in: query - required: false - schema: - type: string - enum: - - USAGE_RECORD_STATUS_UNSPECIFIED - - USAGE_RECORD_STATUS_PENDING - - USAGE_RECORD_STATUS_PROCESSED - - USAGE_RECORD_STATUS_BILLED - - USAGE_RECORD_STATUS_FAILED - default: USAGE_RECORD_STATUS_UNSPECIFIED - - name: startTime - description: Time range - in: query - required: false - schema: - type: string - format: date-time - - name: endTime - in: query - required: false - schema: - type: string - format: date-time - - name: page - description: Pagination - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - UsageReportService - "/v1/usage/records/{id}": - get: - summary: Get a specific usage record by ID - operationId: UsageReportService_GetUsageRecord - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetUsageRecordResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - UsageReportService - /v1/usage/report: - get: - summary: Get aggregated usage report for a billing period - operationId: UsageReportService_GetUsageReport - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetUsageReportResponse" - parameters: - - name: subscriptionId - description: Required filters - in: query - required: false - schema: - type: string - - name: metricId - description: Optional filters - in: query - required: false - schema: - type: string - - name: billingPeriodStart - description: Billing period (if not provided, uses current billing period) - in: query - required: false - schema: - type: string - format: date-time - - name: billingPeriodEnd - in: query - required: false - schema: - type: string - format: date-time - - name: includeBilled - description: |- - Options - - Include already billed records - in: query - required: false - schema: - type: boolean - tags: - - UsageReportService - /v1/users: - get: - operationId: UserService_ListUsers - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListUsersResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterEmail - in: query - required: false - schema: - type: string - - name: filterStatus - in: query - required: false - schema: - type: string - enum: - - STATUS_UNSPECIFIED - - STATUS_ACTIVE - - STATUS_INACTIVE - - STATUS_BANNED - - STATUS_SOFT_DELETED - default: STATUS_UNSPECIFIED - - name: search - in: query - required: false - schema: - type: string - tags: - - UserService - "/v1/users/{id}": - get: - operationId: UserService_GetUser - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetUserResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - UserService - delete: - operationId: UserService_DeleteUser - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - UserService - patch: - operationId: UserService_UpdateUser - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateUserResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UserServiceUpdateUserBody" - required: true - tags: - - UserService - /v1/version: - get: - operationId: MetadataService_GetVersion - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1Metadata" - tags: - - MetadataService - /v1/virtual-machines: - get: - operationId: VirtualMachineService_ListVirtualMachines - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListVirtualMachinesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: filterOperationStatus - in: query - required: false - schema: - type: string - enum: - - OPERATION_STATUS_UNSPECIFIED - - OPERATION_STATUS_CREATED - - OPERATION_STATUS_STARTED - - OPERATION_STATUS_STOPPED - - OPERATION_STATUS_DELETED - - OPERATION_STATUS_RESTARTED - - OPERATION_STATUS_REINSTALLING - default: OPERATION_STATUS_UNSPECIFIED - tags: - - VirtualMachineService - post: - operationId: VirtualMachineService_CreateVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateVirtualMachineRequest" - required: true - tags: - - VirtualMachineService - /v1/virtual-machines/tags: - get: - summary: ListVMTags returns all unique tags from virtual machines belonging to - the organization - operationId: VirtualMachineService_ListVMTags - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListVMTagsResponse" - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}": - get: - operationId: VirtualMachineService_GetVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - VirtualMachineService - delete: - operationId: VirtualMachineService_DeleteVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - VirtualMachineService - patch: - operationId: VirtualMachineService_UpdateVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceUpdateVirtualMachineBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}/console": - get: - summary: GetVNCConsole returns WebSocket URL for VNC console access. - operationId: VirtualMachineService_GetVNCConsole - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetVNCConsoleResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:attach-firewall": - post: - operationId: VirtualMachineService_AttachVMFirewall - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceAttachVMFirewallBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:detach-firewall": - post: - operationId: VirtualMachineService_DetachVMFirewall - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceDetachVMFirewallBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:reinstall": - post: - operationId: VirtualMachineService_ReinstallVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceReinstallVirtualMachineBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:restart": - post: - operationId: VirtualMachineService_RestartVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceRestartVirtualMachineBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:start": - post: - operationId: VirtualMachineService_StartVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceStartVirtualMachineBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{id}:stop": - post: - operationId: VirtualMachineService_StopVirtualMachine - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1VirtualMachine" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceStopVirtualMachineBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{vmId}/backups": - get: - operationId: BackupService_ListBackups - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListBackupsResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: status - in: query - required: false - schema: - type: string - enum: - - BACKUP_STATUS_UNSPECIFIED - - BACKUP_STATUS_ACTIVE - - BACKUP_STATUS_DELETED - - BACKUP_STATUS_EXPIRED - - BACKUP_STATUS_UNKNOWN - default: BACKUP_STATUS_UNSPECIFIED - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - BackupService - "/v1/virtual-machines/{vmId}/backups/{backupId}": - get: - operationId: BackupService_GetBackup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetBackupResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: backupId - in: path - required: true - schema: - type: string - tags: - - BackupService - delete: - operationId: BackupService_DeleteBackup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: backupId - in: path - required: true - schema: - type: string - tags: - - BackupService - "/v1/virtual-machines/{vmId}/backups/{backupId}/restore": - post: - operationId: BackupService_RestoreBackup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: backupId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/BackupServiceRestoreBackupBody" - required: true - tags: - - BackupService - "/v1/virtual-machines/{vmId}/snapshots": - get: - operationId: SnapshotService_ListSnapshots - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListSnapshotsResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: status - in: query - required: false - schema: - type: string - enum: - - SNAPSHOT_STATUS_UNSPECIFIED - - SNAPSHOT_STATUS_ACTIVE - - SNAPSHOT_STATUS_DELETED - - SNAPSHOT_STATUS_EXPIRED - - SNAPSHOT_STATUS_UNKNOWN - default: SNAPSHOT_STATUS_UNSPECIFIED - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - tags: - - SnapshotService - post: - operationId: SnapshotService_CreateSnapshot - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SnapshotServiceCreateSnapshotBody" - required: true - tags: - - SnapshotService - "/v1/virtual-machines/{vmId}/snapshots/{snapshotId}": - get: - operationId: SnapshotService_GetSnapshot - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetSnapshotResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: snapshotId - in: path - required: true - schema: - type: string - tags: - - SnapshotService - delete: - operationId: SnapshotService_DeleteSnapshot - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: snapshotId - in: path - required: true - schema: - type: string - tags: - - SnapshotService - "/v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore": - post: - operationId: SnapshotService_RestoreSnapshot - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - - name: snapshotId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/SnapshotServiceRestoreSnapshotBody" - required: true - tags: - - SnapshotService - "/v1/virtual-machines/{vmId}:disable-additional-ip": - post: - summary: DisableAdditionalIP releases one additional IPv4 and updates - ADDITIONAL-IP addon quantity. - operationId: VirtualMachineService_DisableAdditionalIP - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceDisableAdditionalIPBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{vmId}:disable-backup": - post: - summary: DisableBackup disables backup addon for a virtual machine - operationId: VirtualMachineService_DisableBackup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceDisableBackupBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{vmId}:enable-additional-ip": - post: - summary: EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix - and subscribes to ADDITIONAL-IP billing. - operationId: VirtualMachineService_EnableAdditionalIP - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1EnableAdditionalIPResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceEnableAdditionalIPBody" - required: true - tags: - - VirtualMachineService - "/v1/virtual-machines/{vmId}:enable-backup": - post: - summary: EnableBackup enables backup addon for a virtual machine - operationId: VirtualMachineService_EnableBackup - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: vmId - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VirtualMachineServiceEnableBackupBody" - required: true - tags: - - VirtualMachineService - /v1/vmtemplate: - post: - operationId: VMTemplateService_CreateVMTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1CreateVMTemplateRequest" - required: true - tags: - - VMTemplateService - "/v1/vmtemplate/{id}": - get: - operationId: VMTemplateService_GetVMTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1GetVMTemplateResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - VMTemplateService - delete: - operationId: VMTemplateService_DeleteVMTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1SuccessResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - tags: - - VMTemplateService - patch: - operationId: VMTemplateService_UpdateVMTemplate - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1UpdateVMTemplateResponse" - parameters: - - name: id - in: path - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/VMTemplateServiceUpdateVMTemplateBody" - required: true - tags: - - VMTemplateService - /v1/vmtemplates: - get: - operationId: VMTemplateService_ListVMTemplates - responses: - "200": - description: A successful response. - content: - application/json: - schema: - $ref: "#/components/schemas/v1ListVMTemplatesResponse" - parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - - name: pageSize - in: query - required: false - schema: - type: integer - format: int32 - - name: search - in: query - required: false - schema: - type: string - - name: nodeId - in: query - required: false - schema: - type: string - - name: platformId - in: query - required: false - schema: - type: string - - name: distro - in: query - required: false - schema: - type: string - tags: - - VMTemplateService -security: - - BearerAuth: [] - OrgIDHeader: [] -components: - requestBodies: - v1ChatRequest: - content: - application/json: - schema: - $ref: "#/components/schemas/v1ChatRequest" - required: true - securitySchemes: - BearerAuth: - type: apiKey - description: Bearer token - name: Authorization - in: header - OrgIDHeader: - type: apiKey - description: Tenant or organization identifier - name: X-Organization-ID - in: header - schemas: - AddonServiceAddAddonToSubscriptionBody: - type: object - properties: - addonId: - type: string - addonPriceId: - type: string - quantity: - type: integer - format: int32 - AddonServiceUpdateAddonBody: - type: object - properties: - currency: - type: string - title: Currency for the addon price (optional, must be 3 characters if provided) - unitAmount: - type: string - description: Decimal string with 6 decimal places precision - title: Override unit_amount_minor for the addon price (optional) - percentageValue: - type: number - format: double - title: >- - Override percentage value for percentage-based pricing formula - (optional, - - 0-100) - zeroBaseFallbackAmount: - type: string - description: Decimal string with 6 decimal places precision - title: >- - Optional: Fixed amount to use when base plan price is zero (for free - plans) - - Only used for percentage-based pricing formulas when parent_plan.base_price - - is 0 - AgentServiceGenerateInstallCommandBody: - type: object - AgentServiceGeneratePeeringConfigBody: - type: object - AgentServiceUpdateAgentBody: - type: object - properties: - name: - type: string - description: - type: string - hypervisorDriver: - $ref: "#/components/schemas/v1PlatformDriver" - description: >- - Set when registering an existing (console-created) agent via CLI. - Must match the organization driver after the first registered agent. - AgentServiceUploadInboundPeeringConfigBody: - type: object - properties: - kubeconfig: - type: string - description: Provider-generated peering-user kubeconfig YAML for neo as consumer. - BackupServiceRestoreBackupBody: - type: object - properties: - startAfterRestore: - type: boolean - ClientProviderReviewServiceUpdateClientReviewBody: - type: object - properties: - starRating: - type: integer - format: int32 - comment: - type: string - CloudInitTemplateServiceUpdateCloudInitTemplateBody: - type: object - properties: - name: - type: string - userData: - type: string - vendorData: - type: string - networkData: - type: string - storage: - type: string - CloudInitUserDataServiceUpdateCloudInitUserDataBody: - type: object - properties: - name: - type: string - userData: - type: string - description: - type: string - EnvironmentVariableServiceUpdateEnvironmentVariableBody: - type: object - properties: - value: - type: string - FirewallServiceCreateFirewallRuleBody: - type: object - properties: - rule: - $ref: "#/components/schemas/v1FirewallRuleInput" - FirewallServiceMoveFirewallRuleBody: - type: object - properties: - targetRuleId: - type: string - title: ID of the target rule to move relative to - position: - $ref: "#/components/schemas/v1FirewallRulePosition" - description: >- - MoveFirewallRuleRequest is used to reorder firewall rules via - drag-and-drop. - - The rule specified by `id` will be moved to a position relative to `target_rule_id`. - - Rules can only be moved within the same direction (ingress/egress). - FirewallServiceUpdateFirewallAddressGroupBody: - type: object - properties: - group: - $ref: "#/components/schemas/v1FirewallAddressGroupInput" - FirewallServiceUpdateFirewallRuleBody: - type: object - properties: - rule: - $ref: "#/components/schemas/v1FirewallRuleInput" - FirewallServiceUpdateFirewallRuleSetBody: - type: object - properties: - ruleset: - $ref: "#/components/schemas/v1FirewallRuleSetInput" - GroupServiceUpdateGroupBody: - type: object - properties: - name: - type: string - description: - type: string - groupRoles: - type: array - items: - type: string - IPAMServiceAddReservedIPBody: - type: object - properties: - ipAddress: - type: string - title: Must be within prefix CIDR - title: IP Reservation - IPAMServiceAddReservedPrefixBody: - type: object - properties: - cidr: - type: string - title: Must match prefix vm_assignment_prefix_length exactly - IPAMServiceAssignNetworkToNodeBody: - type: object - properties: - nodeIds: - type: array - items: - type: string - title: One or more node IDs to assign to this network - title: Node-Network assignment - IPAMServiceClearAllPrefixReservedIPsBody: - type: object - IPAMServiceReserveAllPrefixIPsBody: - type: object - IPAMServiceUpdateNetworkBody: - type: object - properties: - dnsServers: - type: array - items: - type: string - name: - type: string - description: - type: string - macAddressPrefix: - type: string - description: First 3 octets for MAC allocation within this network. Empty = - leave unchanged on update. - IPAMServiceUpdatePrefixBody: - type: object - properties: - networkId: - type: string - gateway: - type: string - reservedIps: - type: array - items: - type: string - allocationStrategy: - $ref: "#/components/schemas/v1AllocationStrategy" - description: - type: string - LiveValidationServiceStartPlanLiveValidationBody: - type: object - properties: - nodeId: - type: string - includeBenchmarking: - type: boolean - MetricsCredentialServiceRevokeMetricsWriteCredentialBody: - type: object - MetricsCredentialServiceRotateMetricsWriteCredentialBody: - type: object - NodeServiceUpdateNodeBody: - type: object - properties: - regionId: - type: string - cpuOverallocatePercent: - type: integer - format: int32 - memoryOverallocatePercent: - type: integer - format: int32 - storageOverallocatePercent: - type: integer - format: int32 - vmidSeed: - type: integer - format: int32 - maintenanceMode: - type: boolean - vmStorageDestination: - type: string - backupStorageDestination: - type: string - backupStorageCompression: - $ref: "#/components/schemas/v1BackupStorageCompression" - networkBridge: - type: string - title: Node provisioning settings (empty string / absent = leave unchanged) - networkName: - type: string - networkVlanId: - type: integer - format: int32 - description: Omit to leave unchanged; 0 = untagged. - networkModel: - type: string - computeType: - $ref: "#/components/schemas/v1NodeComputeType" - topologyPaste: - type: string - description: |- - Topology re-paste for dedicated nodes. Rejected if it would orphan a - currently allocated CPU. Empty = leave stored topology unchanged. - PaymentMethodServiceSetDefaultPaymentMethodBody: - type: object - PlatformServiceAssignAgentBody: - type: object - properties: - agentId: - type: string - PlatformServiceUnassignAgentBody: - type: object - properties: - agentId: - type: string - PlatformServiceUpdatePlatformBody: - type: object - properties: - name: - type: string - endpointUrl: - type: string - ProviderCustomerServiceRestartProviderCustomerVirtualMachineBody: - type: object - description: >- - Shared request body for Start/Stop/Restart customer VM RPCs (same - fields; operation is the RPC). - - The server must verify the VM belongs to this provider and client org. - ProviderCustomerServiceStartProviderCustomerVirtualMachineBody: - type: object - description: >- - Shared request body for Start/Stop/Restart customer VM RPCs (same - fields; operation is the RPC). - - The server must verify the VM belongs to this provider and client org. - ProviderCustomerServiceStopProviderCustomerVirtualMachineBody: - type: object - description: >- - Shared request body for Start/Stop/Restart customer VM RPCs (same - fields; operation is the RPC). - - The server must verify the VM belongs to this provider and client org. - ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody: - type: object - properties: - action: - $ref: "#/components/schemas/v1SmtpOutboundVmAction" - ProviderPlanServiceUpdatePlanBody: - type: object - properties: - currency: - type: string - title: |- - Plan fields to update (name, description, and trial_days come from - template, not updatable) - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPriceOverride" - title: >- - Plan prices with overrides (unit_amount_minor, currency, free_units - per - - metric) - addonPriceOverrides: - type: array - items: - $ref: "#/components/schemas/v1AddonPriceOverride" - title: "Optional: Override prices for addons when updating plan" - regionId: - type: string - description: Region for this plan offer (optional on update). - cpuLimit: - type: integer - format: int32 - description: >- - Plan CPU/network scheduling overrides written into - metadata.specifications. - - Only affects VMs created after the update (VMs snapshot plan values at create). - cpuUnits: - type: integer - format: int32 - networkRateLimitMbs: - type: number - format: double - nodeIds: - type: array - items: - type: string - description: >- - When non-empty, replaces the plan's assigned nodes (same rules as - create). - - Omitted / empty leaves existing assignments unchanged. - onCreditExhaustion: - type: string - description: |- - Provider choice when client prepaid credits are exhausted. - Values: "suspend" (default), "continue_with_dunning". - ProviderReviewServiceCreateProviderReviewReplyBody: - type: object - properties: - replyMessage: - type: string - description: Create first public provider reply to a client review. - ProviderReviewServiceUpdateProviderReviewReplyBody: - type: object - properties: - replyMessage: - type: string - description: Update existing provider reply text. - RoadmapServiceCreateRoadmapFeatureRequestCommentBody: - type: object - properties: - body: - type: string - RoadmapServiceUpdateRoadmapFeatureRequestCommentBody: - type: object - properties: - body: - type: string - RoadmapServiceVoteRoadmapFeatureRequestBody: - type: object - properties: - type: - $ref: "#/components/schemas/v1RoadmapVoteType" - RoleServiceUpdateRoleBody: - type: object - properties: - name: - type: string - description: - type: string - permissions: - type: array - items: - type: string - groupIds: - type: array - items: - type: string - SecretServiceUpdateSecretBody: - type: object - properties: - value: - type: string - ServiceAccountServiceGenerateTokenBody: - type: object - properties: - name: - type: string - expiresInDays: - type: integer - format: int32 - ServiceAccountServiceUpdateServiceAccountBody: - type: object - properties: - name: - type: string - description: - type: string - isActive: - type: boolean - allowedIps: - type: array - items: - type: string - SnapshotServiceCreateSnapshotBody: - type: object - properties: - description: - type: string - SnapshotServiceRestoreSnapshotBody: - type: object - properties: - snapshotName: - type: string - stopVm: - type: boolean - TicketServiceAddInternalCommentBody: - type: object - properties: - comment: - type: string - TicketServiceAddReplyToTicketBody: - type: object - properties: - replyMessage: - type: string - TicketServiceCreateTicketAttachmentUploadBody: - type: object - properties: - fileName: - type: string - fileSize: - type: string - format: int64 - mimeType: - type: string - TicketServiceSetTicketPriorityBody: - type: object - properties: - priority: - $ref: "#/components/schemas/v1TicketPriority" - TicketServiceSetTicketStatusBody: - type: object - properties: - ticketStatus: - $ref: "#/components/schemas/v1TicketStatus" - TicketServiceUpdateTicketTemplateBody: - type: object - properties: - ticketTemplate: - $ref: "#/components/schemas/v1TicketTemplateInput" - UserServiceUpdateUserBody: - type: object - properties: - email: - type: string - firstName: - type: string - lastName: - type: string - allowOrgInvites: - type: boolean - userRoles: - type: array - items: - type: string - groupIds: - type: array - items: - type: string - VMTemplateServiceUpdateVMTemplateBody: - type: object - properties: - name: - type: string - distro: - $ref: "#/components/schemas/v1Distro" - templateId: - type: integer - format: int32 - nodeId: - type: string - cloudInitTemplateId: - type: string - proxmoxCpuType: - type: string - description: Proxmox cpu= guest CPU model. Empty = leave unchanged on update. - VirtualMachineServiceAttachVMFirewallBody: - type: object - properties: - rulesetId: - type: string - VirtualMachineServiceDetachVMFirewallBody: - type: object - properties: - rulesetId: - type: string - VirtualMachineServiceDisableAdditionalIPBody: - type: object - properties: - cancelImmediately: - type: boolean - ipAddress: - type: string - description: Specific additional IPv4 to release. When empty, the most recently - added address is removed. - description: DisableAdditionalIPRequest removes one additional IPv4 and updates - billing quantity. - VirtualMachineServiceDisableBackupBody: - type: object - properties: - addonId: - type: string - cancelImmediately: - type: boolean - title: DisableBackupRequest disables backup addon for a virtual machine - VirtualMachineServiceEnableAdditionalIPBody: - type: object - description: EnableAdditionalIPRequest adds one additional IPv4 (same prefix as - VM primary) and bills via ADDITIONAL-IP addon. - VirtualMachineServiceEnableBackupBody: - type: object - properties: - addonId: - type: string - title: EnableBackupRequest enables backup addon for a virtual machine - VirtualMachineServiceReinstallVirtualMachineBody: - type: object - properties: - distro: - $ref: "#/components/schemas/v1Distro" - userData: - type: string - sshKeyIds: - type: array - items: - type: string - password: - type: string - cloudInitUserDataId: - type: string - hostname: - type: string - instantAppId: - type: string - description: Platform Instant App. Same exclusivity rules as - CreateVirtualMachineRequest. - VirtualMachineServiceRestartVirtualMachineBody: - type: object - description: >- - UpdateVMOperationStatusRequest is a unified request message for - - all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. - VirtualMachineServiceStartVirtualMachineBody: - type: object - description: >- - UpdateVMOperationStatusRequest is a unified request message for - - all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. - VirtualMachineServiceStopVirtualMachineBody: - type: object - description: >- - UpdateVMOperationStatusRequest is a unified request message for - - all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. - VirtualMachineServiceUpdateVirtualMachineBody: - type: object - properties: - addTags: - type: array - items: - type: string - title: Tags to add to the virtual machine - removeTags: - type: array - items: - type: string - title: Tags to remove from the virtual machine - description: |- - UpdateVirtualMachineRequest is used to update virtual machine tags. - Only tags can be modified through this endpoint. - WebhookServiceHandleWebhookBody: - type: object - properties: - payload: - type: string - format: byte - title: >- - Raw webhook payload (will be handled as bytes in implementation) - - Note: This field is for proto definition only; actual webhook payload - - is read directly from HTTP request body in the gateway handler - title: Webhook messages - protobufNullValue: - type: string - enum: - - NULL_VALUE - default: NULL_VALUE - description: >- - `NullValue` is a singleton enumeration to represent the null value for - the - - `Value` type union. - - - The JSON representation for `NullValue` is JSON `null`. - - - NULL_VALUE: Null value. - protov1Status: - type: string - enum: - - STATUS_UNSPECIFIED - - STATUS_ACTIVE - - STATUS_INACTIVE - - STATUS_BANNED - - STATUS_SOFT_DELETED - default: STATUS_UNSPECIFIED - title: Status of the object - v1AddAddonToSubscriptionResponse: - type: object - properties: - addonSubscription: - $ref: "#/components/schemas/v1AddonSubscription" - v1AddInternalCommentResponse: - type: object - properties: - comment: - $ref: "#/components/schemas/v1TicketInternalComment" - v1AddServiceAccountToGroupRequest: - type: object - properties: - groupId: - type: string - serviceAccountIds: - type: array - items: - type: string - v1AddUserToGroupRequest: - type: object - properties: - groupId: - type: string - userIds: - type: array - items: - type: string - v1AdditionalIPAddress: - type: object - properties: - ipAddress: - type: string - readOnly: true - gateway: - type: string - readOnly: true - prefixLength: - type: string - readOnly: true - description: AdditionalIPAddress is an extra IPv4 allocated from the VM's - primary prefix. - v1Addon: - type: object - properties: - id: - type: string - title: Fields - code: - type: string - title: Basic information - name: - type: string - description: - type: string - addonType: - $ref: "#/components/schemas/v1AddonType" - addonCategory: - $ref: "#/components/schemas/v1AssetCategory" - isTemplate: - type: boolean - title: Configuration - isPublic: - type: boolean - requiresApproval: - type: boolean - autoAttach: - type: boolean - compatiblePlanCodes: - type: array - items: - type: string - title: Compatibility - compatibleAssetTypes: - type: array - items: - type: string - tenantId: - type: string - title: Owner organization (for tenant-specific add-ons) - externalId: - type: string - title: External integration - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - addonPrices: - type: array - items: - $ref: "#/components/schemas/v1AddonPrice" - title: Prices for non-template addons (populated in ListAddons response) - v1AddonInput: - type: object - properties: - code: - type: string - usage: - type: object - additionalProperties: - type: number - format: double - title: 'Usage for this addon (e.g., {"GB": 100}, {"count": 2})' - v1AddonPrice: - type: object - properties: - id: - type: string - title: Fields - addonId: - type: string - kind: - $ref: "#/components/schemas/v1AddonPriceKind" - currency: - type: string - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - unitName: - type: string - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - billingInterval: - type: integer - format: int32 - metricName: - type: string - title: Usage-based pricing - metricAggregation: - $ref: "#/components/schemas/v1MetricAggregation" - minQuantity: - type: integer - format: int32 - title: Constraints - maxQuantity: - type: integer - format: int32 - prorate: - type: boolean - minimumCharge: - type: string - description: Decimal string with 6 decimal places precision - title: Minimum and maximum charges (for usage-based pricing) - maximumCharge: - type: string - title: Decimal string with 6 decimal places precision - pricingFormula: - type: object - title: |- - Pricing formula for percentage-based or complex pricing - Example: {"type": "percentage", "value": 30.0, "base": - "parent_plan.base_price"} - pricingModel: - $ref: "#/components/schemas/v1PricingModel" - chargeTiming: - $ref: "#/components/schemas/v1ChargeTiming" - effectiveFrom: - type: string - format: date-time - title: Lifecycle - effectiveUntil: - type: string - format: date-time - externalId: - type: string - title: External integration - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - description: >- - DEPRECATED: AddonPrice is deprecated. Use PlanPrice with - - product_type=PRODUCT_TYPE_ADDON instead. This message is kept for backward - - compatibility but should not be used for new code. - v1AddonPriceKind: - type: string - enum: - - ADDON_PRICE_KIND_UNSPECIFIED - - ADDON_PRICE_KIND_ONE_TIME - - ADDON_PRICE_KIND_SUBSCRIPTION - - ADDON_PRICE_KIND_USAGE_BASED - default: ADDON_PRICE_KIND_UNSPECIFIED - v1AddonPriceOverride: - type: object - properties: - addonCode: - type: string - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - description: >- - AddonPriceOverride allows providers to set custom prices for addons when - - creating plans. If an addon_code is specified here, the override price will - - be used instead of copying from template. Only accepts unit_amount_minor - - (price). Currency comes from plan level. - v1AddonStatus: - type: string - enum: - - ADDON_STATUS_UNSPECIFIED - - ADDON_STATUS_ACTIVE - - ADDON_STATUS_CANCELED - - ADDON_STATUS_PAUSED - - ADDON_STATUS_PENDING_ACTIVATION - default: ADDON_STATUS_UNSPECIFIED - v1AddonSubscription: - type: object - properties: - id: - type: string - title: Fields - quantity: - type: integer - format: int32 - title: Quantity - startDate: - type: string - format: date-time - title: Lifecycle dates - endDate: - type: string - format: date-time - addonStatus: - $ref: "#/components/schemas/v1AddonStatus" - cancelAtPeriodEnd: - type: boolean - canceledAt: - type: string - format: date-time - externalId: - type: string - title: External integration - subscriptionId: - type: string - title: Relations - addonId: - type: string - addonPriceId: - type: string - subscriptionName: - type: string - title: Relation details (populated in responses) - addonName: - type: string - addonCode: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1AddonType: - type: string - enum: - - ADDON_TYPE_UNSPECIFIED - - ADDON_TYPE_BACKUP - - ADDON_TYPE_SNAPSHOT - - ADDON_TYPE_ADDITIONAL_IP - default: ADDON_TYPE_UNSPECIFIED - v1Agent: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - gatewayRegion: - $ref: "#/components/schemas/v1AgentGatewayRegion" - agentPublicIp: - type: string - gwServerServicePort: - type: integer - format: int32 - organizationId: - type: string - title: Relations - metadata: - type: object - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - provisioned: - type: boolean - inboundPeeringState: - $ref: "#/components/schemas/v1InboundPeeringState" - inboundPeeringError: - type: string - serviceStatus: - $ref: "#/components/schemas/v1ServiceStatus" - hypervisorDriver: - $ref: "#/components/schemas/v1PlatformDriver" - description: Set when this agent is registered via CLI. Empty/UNSPECIFIED until then. - v1AgentGatewayRegion: - type: string - enum: - - AGENT_GATEWAY_REGION_UNSPECIFIED - - AGENT_GATEWAY_REGION_AMS01 - default: AGENT_GATEWAY_REGION_UNSPECIFIED - v1AggregationType: - type: string - enum: - - AGGREGATION_TYPE_UNSPECIFIED - - AGGREGATION_TYPE_SUM - - AGGREGATION_TYPE_MAX - - AGGREGATION_TYPE_MIN - - AGGREGATION_TYPE_AVG - - AGGREGATION_TYPE_COUNT - - AGGREGATION_TYPE_LAST_DURING_PERIOD - default: AGGREGATION_TYPE_UNSPECIFIED - v1AllocationStrategy: - type: string - enum: - - ALLOCATION_STRATEGY_UNSPECIFIED - - ALLOCATION_STRATEGY_SEQUENTIAL - - ALLOCATION_STRATEGY_RANDOM - - ALLOCATION_STRATEGY_FIRST_AVAILABLE - - ALLOCATION_STRATEGY_LAST_AVAILABLE - default: ALLOCATION_STRATEGY_UNSPECIFIED - v1AssetCategory: - type: string - enum: - - ASSET_CATEGORY_UNSPECIFIED - - ASSET_CATEGORY_COMPUTE - - ASSET_CATEGORY_STORAGE - - ASSET_CATEGORY_NETWORK - - ASSET_CATEGORY_SECURITY - - ASSET_CATEGORY_MANAGEMENT - - ASSET_CATEGORY_MONITORING - - ASSET_CATEGORY_SUPPORT - - ASSET_CATEGORY_OTHER - default: ASSET_CATEGORY_UNSPECIFIED - v1AssetType: - type: string - enum: - - ASSET_TYPE_UNSPECIFIED - - ASSET_TYPE_VM - - ASSET_TYPE_CONTAINER - - ASSET_TYPE_STORAGE - - ASSET_TYPE_GAMESERVER - - ASSET_TYPE_CDN - - ASSET_TYPE_IP_ADDRESS - - ASSET_TYPE_DNS - - ASSET_TYPE_GPU - - ASSET_TYPE_GENERIC - default: ASSET_TYPE_UNSPECIFIED - v1AssignPermissionToRoleRequest: - type: object - properties: - permissionIds: - type: array - items: - type: string - roleId: - type: string - v1AssignableNodeView: - type: object - properties: - id: - type: string - name: - type: string - regionId: - type: string - computeType: - $ref: "#/components/schemas/v1NodeComputeType" - cpuModel: - type: string - catalogBrand: - type: string - catalogModel: - type: string - v1AttachPaymentMethodRequest: - type: object - properties: - subscriptionId: - type: string - title: >- - Subscription reference (required for client subscriptions to - provider - - plans) For provider platform subscriptions, subscription_id is required - paymentMethodId: - type: string - description: "Optional: Payment method ID (if using existing)" - title: |- - Payment method details - Either payment_method_id or payment_method_token must be provided - paymentMethodToken: - type: string - title: "Optional: Payment method token from frontend (Stripe.js, PayPal SDK)" - setAsDefault: - type: boolean - description: Whether to set as default payment method - title: Options - metadata: - type: object - description: "Optional: custom metadata" - title: Metadata - title: Payment method messages - v1AttachPaymentMethodResponse: - type: object - properties: - paymentMethod: - $ref: "#/components/schemas/v1PaymentMethod" - v1AuthorizeResponse: - type: object - properties: - authorizationUrl: - type: string - code: - type: string - title: Returned if user already authorized - state: - type: string - v1AvailablePlanCode: - type: object - properties: - planCode: - type: string - title: Plan code (e.g., "SC-GC-1C-1G-20") - billingType: - $ref: "#/components/schemas/v1BillingType" - computeType: - $ref: "#/components/schemas/v1ComputeType" - computeCategory: - $ref: "#/components/schemas/v1ComputeCategory" - title: Available plan code information (deduplicated) - v1Backup: - type: object - properties: - id: - type: string - readOnly: true - name: - type: string - readOnly: true - backupId: - type: string - readOnly: true - virtualMachineId: - type: string - readOnly: true - addonId: - type: string - readOnly: true - createdAt: - type: string - format: date-time - readOnly: true - sizeBytes: - type: string - format: int64 - readOnly: true - backupStatus: - $ref: "#/components/schemas/v1BackupStatus" - restoreStatus: - $ref: "#/components/schemas/v1RestoreStatus" - restoredAt: - type: string - format: date-time - readOnly: true - operationStatus: - $ref: "#/components/schemas/v1BackupOperationStatus" - metadata: - type: object - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: Backup represents a backup of a virtual machine - v1BackupOperationStatus: - type: string - enum: - - BACKUP_OPERATION_STATUS_UNSPECIFIED - - BACKUP_OPERATION_STATUS_PENDING - - BACKUP_OPERATION_STATUS_PROCESSING - - BACKUP_OPERATION_STATUS_COMPLETED - - BACKUP_OPERATION_STATUS_FAILED - default: BACKUP_OPERATION_STATUS_UNSPECIFIED - title: BackupOperationStatus represents the status of backup run (same structure - as SnapshotOperationStatus) - v1BackupStatus: - type: string - enum: - - BACKUP_STATUS_UNSPECIFIED - - BACKUP_STATUS_ACTIVE - - BACKUP_STATUS_DELETED - - BACKUP_STATUS_EXPIRED - - BACKUP_STATUS_UNKNOWN - default: BACKUP_STATUS_UNSPECIFIED - title: BackupStatus represents the status of a backup - v1BackupStorageCompression: - type: string - enum: - - BACKUP_STORAGE_COMPRESSION_UNSPECIFIED - - BACKUP_STORAGE_COMPRESSION_NONE - - BACKUP_STORAGE_COMPRESSION_LZO - - BACKUP_STORAGE_COMPRESSION_GZIP - - BACKUP_STORAGE_COMPRESSION_ZSTD - default: BACKUP_STORAGE_COMPRESSION_UNSPECIFIED - description: Proxmox vzdump --compress (must not be UNSPECIFIED on create/update - node). - v1BatchRecordUsageRequest: - type: object - properties: - records: - type: array - items: - $ref: "#/components/schemas/v1RecordUsageRequest" - v1BatchRecordUsageResponse: - type: object - properties: - usageRecords: - type: array - items: - $ref: "#/components/schemas/v1UsageRecord" - createdCount: - type: integer - format: int32 - duplicateCount: - type: integer - format: int32 - failedCount: - type: integer - format: int32 - errorMessages: - type: array - items: - type: string - v1BillingPeriod: - type: string - enum: - - BILLING_PERIOD_UNSPECIFIED - - BILLING_PERIOD_HOUR - - BILLING_PERIOD_DAY - - BILLING_PERIOD_WEEK - - BILLING_PERIOD_MONTH - - BILLING_PERIOD_QUARTER - - BILLING_PERIOD_YEAR - default: BILLING_PERIOD_UNSPECIFIED - v1BillingType: - type: string - enum: - - BILLING_TYPE_UNSPECIFIED - - BILLING_TYPE_SUBSCRIPTION - - BILLING_TYPE_USAGE - - BILLING_TYPE_FREE - - BILLING_TYPE_PERCENTAGE - default: BILLING_TYPE_UNSPECIFIED - title: "- BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent - plan)" - v1CPUType: - type: string - enum: - - CPU_TYPE_UNSPECIFIED - - CPU_TYPE_INTEL - - CPU_TYPE_AMD - - CPU_TYPE_ARM - default: CPU_TYPE_UNSPECIFIED - v1CalculatePlanPricingRequest: - type: object - properties: - planConfig: - $ref: "#/components/schemas/v1PlanPricingConfig" - instances: - type: array - items: - $ref: "#/components/schemas/v1ResourceInstanceInput" - title: Resource instances to calculate pricing for - calcConfig: - $ref: "#/components/schemas/v1PricingCalculationConfig" - v1CalculatePlanPricingResponse: - type: object - properties: - lineItems: - type: array - items: - $ref: "#/components/schemas/v1PricingLineItem" - title: Line items per instance - pooledAllowances: - type: object - additionalProperties: - type: number - format: double - title: Pooled allowances & usage - pooledUsage: - type: object - additionalProperties: - type: number - format: double - subtotal: - type: string - description: Decimal string with 6 decimal places precision - title: Costs breakdown - overageCost: - type: string - title: Decimal string with 6 decimal places precision - discounted: - type: string - title: Decimal string with 6 decimal places precision - tax: - type: string - title: Decimal string with 6 decimal places precision - total: - type: string - title: Decimal string with 6 decimal places precision - currency: - type: string - discountPercent: - type: number - format: double - title: Applied discounts - couponValue: - type: string - title: Decimal string with 6 decimal places precision - debug: - type: object - title: >- - Debug information showing all inputs received by the price - calculator - - This is useful for troubleshooting pricing calculations - v1CancelRenewalRequest: - type: object - properties: - subscriptionId: - type: string - v1CancelResponse: - type: object - properties: - subscription: - $ref: "#/components/schemas/v1Subscription" - v1CaseType: - type: string - enum: - - CASE_TYPE_UNSPECIFIED - - CASE_TYPE_BILLING - - CASE_TYPE_GENERAL - - CASE_TYPE_TROUBLESHOOTING - - CASE_TYPE_OUTAGE - - CASE_TYPE_ABUSE - - CASE_TYPE_CONFIGURATION_CHANGE - default: CASE_TYPE_UNSPECIFIED - v1ChangePasswordRequest: - type: object - properties: - oldPassword: - type: string - newPassword: - type: string - v1ChargeTiming: - type: string - enum: - - CHARGE_TIMING_UNSPECIFIED - - CHARGE_TIMING_IN_ADVANCE - - CHARGE_TIMING_IN_ARREARS - default: CHARGE_TIMING_UNSPECIFIED - v1ChatMessage: - type: object - properties: - role: - type: string - title: 'Role: "user", "assistant", "system", "function"' - content: - type: string - title: Message content - functionCalls: - type: array - items: - $ref: "#/components/schemas/v1FunctionCall" - title: Function calls made in this message (for assistant messages) - functionCallId: - type: string - title: Function call ID (for function messages) - v1ChatRequest: - type: object - properties: - message: - type: string - title: User's message - conversationId: - type: string - title: Conversation ID for maintaining context (optional, generated if not - provided) - title: |- - Firewall rule definitions (address-book only) - ChatService messages - v1ChatResponse: - type: object - properties: - message: - type: string - title: Complete response message - conversationId: - type: string - title: Conversation ID - title: - type: string - title: Conversation title (returns "Untitled" if not set) - functionCalls: - type: array - items: - $ref: "#/components/schemas/v1FunctionCall" - title: Function calls executed during the conversation - functionResults: - type: array - items: - $ref: "#/components/schemas/v1FunctionResult" - title: Function results from executed calls - sessionToken: - type: string - title: Signed session token for anonymous chat (returned on every anonymous - response for cookie refresh) - v1City: - type: object - properties: - id: - type: string - name: - type: string - v1CityCountry: - type: object - properties: - id: - type: string - cityName: - type: string - countryName: - type: string - v1ClientDashboardSpendBucket: - type: object - properties: - bucketStart: - type: string - description: '"YYYY-MM-DD" for daily buckets; RFC3339 hour start (UTC) for - hourly buckets.' - fixedAmount: - type: string - description: Fixed-price plan charges (billed in advance). - usageAmount: - type: string - description: Metered plan usage (compute hours etc.), paid or estimated. - bandwidthAmount: - type: string - description: Bandwidth overage beyond the plan's included allowance - (egress/ingress). - addonAmount: - type: string - description: Add-on charges (additional IP, backups, snapshots, ...), fixed or - metered. - hasEstimated: - type: boolean - description: True when any amount in this bucket is an accrual estimate (not yet - invoiced). - items: - type: array - items: - $ref: "#/components/schemas/v1ClientDashboardSpendItem" - description: >- - Categorized spend for one UTC calendar day or one UTC hour. - - Paid invoice lines land in the bucket of their paid_at time; un-invoiced metered - - usage lands in the bucket of its usage timestamp as an estimate. - v1ClientDashboardSpendItem: - type: object - properties: - label: - type: string - description: "Display label: plan code, add-on name, or bandwidth metric label." - detail: - type: string - description: 'Secondary detail: "hostname · provider", metered quantity ("12.50 - GB"), etc.' - amount: - type: string - billingType: - type: string - description: '"fixed" | "usage": how this product is billed.' - category: - type: string - description: '"fixed" | "usage" | "bandwidth" | "addon": chart stacking category.' - estimated: - type: boolean - description: True for accrued metered usage priced from plan/addon prices but - not yet invoiced. - description: One product-level line inside a spend bucket (used for chart - tooltips / detail). - v1ClientDashboardSpendingWindow: - type: object - properties: - windowDays: - type: integer - format: int32 - currency: - type: string - totalPlanSpend: - type: string - totalAddonSpend: - type: string - totalSpend: - type: string - description: Rolling spend for the authenticated client org (paid invoices where - this org is tenant). UTC calendar windows. - v1ClientDashboardUsageRollup: - type: object - properties: - subscriptionId: - type: string - planName: - type: string - metricName: - type: string - metricUnit: - type: string - quantityTotal: - type: string - periodEnd: - type: string - estimatedAmount: - type: string - description: >- - Estimated charge for quantity_total priced with the subscription's - plan/addon price - - (free units and block overage applied). Empty when no price could be resolved. - description: Aggregated metered usage for the billing period overlapping "now" - (compute, bandwidth overage, add-ons). - v1ClientDashboardVirtualMachinesSummary: - type: object - properties: - totalCount: - type: integer - format: int32 - description: Active + inactive VMs for this client org (not soft-deleted / not - expired). - v1ClientProviderReview: - type: object - properties: - id: - type: string - virtualMachineId: - type: string - starRating: - type: integer - format: int32 - comment: - type: string - providerReply: - type: string - createTime: - type: string - format: date-time - updateTime: - type: string - format: date-time - providerRepliedAt: - type: string - format: date-time - providerOrganizationId: - type: string - title: Client-side provider reviews (client org rates provider after a VM - purchase; one per VM) - v1ClientProviderReviewAssetItem: - type: object - properties: - virtualMachineId: - type: string - hostname: - type: string - virtualMachineDeleted: - type: boolean - providerOrganizationId: - type: string - providerOrganizationName: - type: string - hasSubmitted: - type: boolean - review: - $ref: "#/components/schemas/v1ClientProviderReview" - canSubmitReview: - type: boolean - reviewBlockedReason: - type: string - description: Set when can_submit_review is false and has_submitted is false - (e.g. usage-based 24h window). - reviewAvailableAt: - type: string - format: date-time - v1CloudInitTemplate: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - userData: - type: string - vendorData: - type: string - networkData: - type: string - storage: - type: string - title: 'Default: "local"' - organizationId: - type: string - title: Relations - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - isTemplate: - type: boolean - title: If true, this is a template cloudinit that users can copy from but cannot - use directly - v1CloudInitUserData: - type: object - properties: - id: - type: string - readOnly: true - name: - type: string - userData: - type: string - description: - type: string - validationWarnings: - type: array - items: - $ref: "#/components/schemas/v1CloudInitValidationWarning" - readOnly: true - organizationId: - type: string - readOnly: true - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - description: CloudInitUserData is a client-scoped saved cloud-init user_data - Jinja profile. - v1CloudInitValidationWarning: - type: object - properties: - code: - type: string - message: - type: string - line: - type: integer - format: int32 - key: - type: string - description: CloudInitValidationWarning is a non-blocking issue found when - saving a user_data profile. - v1CompleteSSOLinkRequest: - type: object - properties: - ticket: - type: string - password: - type: string - v1ComponentVersion: - type: object - properties: - name: - type: string - title: "Component name: k3s | k3d | calico | liqo | liqoctl | helm" - version: - type: string - description: Exact version / tag to install (e.g. "v1.31.5+k3s1", "v3.30.2"). - minVersion: - type: string - description: Optional minimum acceptable local version for skip-install checks. - downloadUrl: - type: string - description: Optional download URL override; CLI derives GitHub URLs when empty. - checksumSha256: - type: string - description: Optional SHA-256 hex digest of the download artifact. - description: ComponentVersion describes a pinned installable platform component. - v1ComputeCategory: - type: string - enum: - - COMPUTE_CATEGORY_UNSPECIFIED - - COMPUTE_CATEGORY_SHARED_COMPUTE - - COMPUTE_CATEGORY_DEDICATED_COMPUTE - default: COMPUTE_CATEGORY_UNSPECIFIED - description: >- - - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, - cost-effective) - - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - title: Compute category enum for plan classification - v1ComputeType: - type: string - enum: - - COMPUTE_TYPE_UNSPECIFIED - - COMPUTE_TYPE_GENERAL_COMPUTE - - COMPUTE_TYPE_HIGH_FREQUENCY - - COMPUTE_TYPE_HIGH_PERFORMANCE - - COMPUTE_TYPE_GENERAL_PURPOSE - - COMPUTE_TYPE_CPU_OPTIMIZED - - COMPUTE_TYPE_MEMORY_OPTIMIZED - - COMPUTE_TYPE_STORAGE_OPTIMIZED - - COMPUTE_TYPE_VERY_HIGH_FREQUENCY - - COMPUTE_TYPE_GAME_SERVER - default: COMPUTE_TYPE_UNSPECIFIED - description: >- - - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced - performance) - - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - title: >- - Compute type enum for plan classification - - Based on plan code category values: GC, HF, VHF, HP, GP, CPU, MEM, STO, GS - v1ConfirmTicketAttachmentUploadRequest: - type: object - properties: - uploadToken: - type: string - v1ConnectAccount: - type: object - properties: - id: - type: string - title: Connected account ID - email: - type: string - title: Provider email - country: - type: string - title: ISO country code - type: - type: string - title: Account type - status: - type: string - description: 'Account status: "active", "pending", "restricted", etc.' - onboardingUrl: - type: string - title: URL for provider to complete onboarding (if pending) - chargesEnabled: - type: boolean - title: Whether account can receive charges - payoutsEnabled: - type: boolean - title: Whether account can receive payouts - metadata: - type: object - title: Account metadata - createdAt: - type: string - format: date-time - title: Account creation timestamp - taxSettingsStatus: - type: string - description: Stripe Tax Settings status for the connected account - (active|pending|unknown). - taxSettingsMissingFields: - type: array - items: - type: string - description: Missing fields when tax settings are pending (e.g. head_office). - v1ConversationInfo: - type: object - properties: - conversationId: - type: string - title: Conversation ID - title: - type: string - title: Conversation title - v1ConvertCurrencyRequest: - type: object - properties: - usdAmount: - type: string - title: Amount in USD to convert - targetCurrency: - type: string - title: Target currency code (e.g., "EUR", "GBP", "JPY") - v1ConvertCurrencyResponse: - type: object - properties: - convertedAmount: - type: string - title: Converted amount in target currency - exchangeRate: - type: string - title: Exchange rate used for conversion (from USD to target currency) - sourceCurrency: - type: string - title: Source currency (always USD) - targetCurrency: - type: string - title: Target currency - v1Country: - type: object - properties: - name: - type: string - cities: - type: array - items: - $ref: "#/components/schemas/v1City" - title: Country, City, Datacenter hierarchy messages - v1CreateAddonRequest: - type: object - properties: - addonId: - type: string - title: Template addon ID to clone from (required) - currency: - type: string - title: Currency for the addon price (required) - unitAmount: - type: string - description: Decimal string with 6 decimal places precision - title: >- - Override unit_amount_minor for all addon prices - - Required for non-percentage-based addons, optional (can be "0" or omitted) - - for percentage-based addons For percentage-based addons, this field is - - ignored and should be "0" - minimumCharge: - type: string - description: Decimal string with 6 decimal places precision - title: "Optional: Override minimum_charge_minor for usage-based pricing" - maximumCharge: - type: string - description: Decimal string with 6 decimal places precision - title: "Optional: Override maximum_charge_minor for usage-based pricing" - percentageValue: - type: number - format: double - title: >- - Optional: Override percentage value for percentage-based pricing - formulas - - Only used when template addon has pricing_formula with type "percentage" - - Example: If template has 30% and you provide 25.0, the new addon will use - - 25% - zeroBaseFallbackAmount: - type: string - description: Decimal string with 6 decimal places precision - title: >- - Optional: Fixed amount to use when base plan price is zero (for free - plans) - - Only used for percentage-based pricing formulas when parent_plan.base_price - - is 0 Example: If base plan is free ($0), use this fixed amount instead of - - percentage calculation - v1CreateAgentRequest: - type: object - properties: - name: - type: string - description: - type: string - agentPublicIp: - type: string - gatewayRegion: - $ref: "#/components/schemas/v1AgentGatewayRegion" - hypervisorDriver: - $ref: "#/components/schemas/v1PlatformDriver" - v1CreateClientReviewRequest: - type: object - properties: - virtualMachineId: - type: string - starRating: - type: integer - format: int32 - comment: - type: string - v1CreateClientReviewResponse: - type: object - properties: - review: - $ref: "#/components/schemas/v1ClientProviderReview" - v1CreateCloudInitTemplateRequest: - type: object - properties: - name: - type: string - userData: - type: string - vendorData: - type: string - networkData: - type: string - storage: - type: string - v1CreateCloudInitUserDataRequest: - type: object - properties: - name: - type: string - userData: - type: string - description: - type: string - v1CreateConnectAccountRequest: - type: object - properties: - email: - type: string - country: - type: string - title: ISO country code (e.g., "US") - type: - type: string - title: 'Account type: "standard", "express", "custom" (Stripe) or "merchant" - (PayPal). Always "standard" for dispute resolution' - metadata: - type: object - title: "Optional: custom metadata" - title: Connect Account messages - v1CreateConnectAccountResponse: - type: object - properties: - account: - $ref: "#/components/schemas/v1ConnectAccount" - onboardingUrl: - type: string - title: URL for provider to complete setup (if required) - requiresOnboarding: - type: boolean - title: Whether provider needs to complete onboarding - v1CreateConnectTaxSessionResponse: - type: object - properties: - clientSecret: - type: string - description: Stripe AccountSession client_secret for Connect.js embedded tax - components. - taxSettingsStatus: - type: string - title: "Snapshot of tax/settings status: active | pending | unknown" - taxSettingsMissingFields: - type: array - items: - type: string - v1CreateDomainRequest: - type: object - properties: - name: - type: string - verificationType: - $ref: "#/components/schemas/v1VerificationType" - v1CreateEnvironmentVariableRequest: - type: object - properties: - key: - type: string - value: - type: string - v1CreateFirewallAddressGroupRequest: - type: object - properties: - group: - $ref: "#/components/schemas/v1FirewallAddressGroupInput" - v1CreateFirewallRuleSetRequest: - type: object - properties: - ruleset: - $ref: "#/components/schemas/v1FirewallRuleSetInput" - v1CreateGroupRequest: - type: object - properties: - name: - type: string - description: - type: string - groupRoles: - type: array - items: - type: string - v1CreateInviteRequest: - type: object - properties: - inviteeEmails: - type: array - items: - type: string - groupId: - type: string - roleId: - type: string - v1CreateManualPayoutRequest: - type: object - properties: - country: - type: string - title: ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "DE") - iban: - type: string - title: International Bank Account Number (for SEPA countries) - bic: - type: string - title: Bank Identifier Code / SWIFT code (for SEPA countries) - accountNumber: - type: string - title: Bank account number (for non-SEPA countries) - routingNumber: - type: string - title: Routing number (for US accounts) or sort code (for UK accounts) - accountHolderName: - type: string - title: Name of the account holder - bankName: - type: string - title: Name of the bank - notes: - type: string - title: User-provided notes about the payout account - title: Manual Payout messages - v1CreateManualPayoutResponse: - type: object - properties: - payout: - $ref: "#/components/schemas/v1ManualPayout" - v1CreateMetricsWriteCredentialRequest: - type: object - properties: - name: - type: string - agentId: - type: string - description: "Optional: omit or leave empty when the credential is not tied to - an agent." - expiresAt: - type: string - format: date-time - description: Optional expiry; omit for non-expiring machine tokens. - v1CreateMetricsWriteCredentialResponse: - type: object - properties: - credential: - $ref: "#/components/schemas/v1MetricsWriteCredential" - token: - type: string - description: Plaintext token returned only on create/rotate. Store securely; it - is not retrievable again. - v1CreateNetworkRequest: - type: object - properties: - dnsServers: - type: array - items: - type: string - title: e.g., ["8.8.8.8", "8.8.4.4"] (can be any IPs) - name: - type: string - description: - type: string - macAddressPrefix: - type: string - description: "First 3 octets for MAC allocation within this network (e.g. - BC:24:11). Default: BC:24:11." - title: Network management - v1CreateNodeRequest: - type: object - properties: - name: - type: string - platformId: - type: string - regionId: - type: string - cpuOverallocatePercent: - type: integer - format: int32 - memoryOverallocatePercent: - type: integer - format: int32 - storageOverallocatePercent: - type: integer - format: int32 - vmidSeed: - type: integer - format: int32 - maintenanceMode: - type: boolean - vmStorageDestination: - type: string - backupStorageDestination: - type: string - backupStorageCompression: - $ref: "#/components/schemas/v1BackupStorageCompression" - networkBridge: - type: string - description: >- - Node provisioning settings (server-side defaults applied when - omitted) - - Proxmox Linux bridge for VM primary NIC. Default: vmbr0. - networkName: - type: string - description: "Proxmox net device key for primary NIC (net0, net1, ...). Default: - net0." - networkVlanId: - type: integer - format: int32 - description: 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged. - networkModel: - type: string - description: "Proxmox NIC model for primary NIC. Default: virtio." - computeType: - $ref: "#/components/schemas/v1NodeComputeType" - topologyPaste: - type: string - description: >- - Raw topology paste (output of the documented lscpu/sysfs command - block). - - Required when compute_type is dedicated; ignored otherwise. - v1CreateNotificationSettingResponse: - type: object - properties: - notificationSetting: - $ref: "#/components/schemas/v1NotificationSetting" - v1CreateNotificationTemplateResponse: - type: object - properties: - notificationTemplate: - $ref: "#/components/schemas/v1NotificationTemplate" - v1CreateOAuth2ClientRequest: - type: object - properties: - name: - type: string - description: - type: string - redirectUris: - type: array - items: - type: string - scopes: - type: array - items: - type: string - clientType: - type: string - requiresPkce: - type: boolean - v1CreateOAuth2ClientResponse: - type: object - properties: - clientId: - type: string - clientSecret: - type: string - title: Only for confidential clients - name: - type: string - redirectUris: - type: array - items: - type: string - scopes: - type: array - items: - type: string - v1CreateOrganizationRequest: - type: object - properties: - name: - type: string - description: - type: string - type: - $ref: "#/components/schemas/v1OrganizationType" - providerLogoUrl: - type: string - asn: - type: string - format: int64 - ddosProvider: - type: string - description: DDoS partner slug (e.g. none, in-house, gcore, akamai, voxility). - Provider orgs only. - providerWebsiteUrl: - type: string - description: "Required for provider organizations (http/https; scheme optional - in input: server normalizes)." - v1CreatePlanRequest: - type: object - properties: - planId: - type: string - title: Template plan ID to clone from (required) - currency: - type: string - title: >- - Plan fields to override from template (name, description, and - trial_days - - come from template) - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPriceOverride" - title: >- - Plan prices with overrides (unit_amount_minor, currency, free_units - per - - metric) - regionId: - type: string - description: Region where this plan is offered (exactly one per plan). - cpuLimit: - type: integer - format: int32 - description: >- - Plan CPU/network scheduling overrides written into - metadata.specifications. - - Proxmox cpulimit= (max CPU time); 0 = unlimited. Omitted = template value / 0. - cpuUnits: - type: integer - format: int32 - description: Proxmox cpuunits= fair-share weight. Omitted = template value / 1024. - networkRateLimitMbs: - type: number - format: double - description: Primary NIC rate limit in MB/s (Proxmox rate=); 0 = unlimited. - nodeIds: - type: array - items: - type: string - description: >- - Nodes this plan may sell on (must be catalog-eligible for the - template). - - Required: at least one node_id (validated in Go). - onCreditExhaustion: - type: string - description: |- - Provider choice when client prepaid credits are exhausted. - Values: "suspend" (default), "continue_with_dunning". - v1CreatePlatformRequest: - type: object - properties: - name: - type: string - endpointUrl: - type: string - driver: - $ref: "#/components/schemas/v1PlatformDriver" - agentId: - type: string - v1CreatePrefixRequest: - type: object - properties: - networkId: - type: string - title: "Optional: network this prefix belongs to (for DNS servers)" - cidr: - type: string - title: e.g., "10.0.0.0/24" - gateway: - type: string - title: e.g., "10.0.0.1" (must be within CIDR) - reservedIps: - type: array - items: - type: string - title: e.g., ["10.0.0.100", "10.0.0.200"] (must be within CIDR) - allocationStrategy: - $ref: "#/components/schemas/v1AllocationStrategy" - description: - type: string - vmAssignmentPrefixLength: - type: integer - format: int32 - title: Required when cidr is IPv6 - title: Prefix management - v1CreateProviderReviewReplyResponse: - type: object - properties: - review: - $ref: "#/components/schemas/v1ProviderReviewListItem" - v1CreateRegionRequest: - type: object - properties: - cityCountryId: - type: string - datacenterId: - type: string - v1CreateRoadmapFeatureRequestCommentResponse: - type: object - properties: - comment: - $ref: "#/components/schemas/v1RoadmapFeatureRequestComment" - v1CreateRoleRequest: - type: object - properties: - name: - type: string - description: - type: string - permissions: - type: array - items: - type: string - groupIds: - type: array - items: - type: string - v1CreateSSHKeyRequest: - type: object - properties: - publicKey: - type: string - name: - type: string - v1CreateSSHKeyResponse: - type: object - properties: - sshKey: - $ref: "#/components/schemas/v1SSHKey" - v1CreateSecretRequest: - type: object - properties: - key: - type: string - value: - type: string - v1CreateSecretResponse: - type: object - properties: - secret: - $ref: "#/components/schemas/v1Secret" - v1CreateServiceAccountRequest: - type: object - properties: - name: - type: string - description: - type: string - allowedIps: - type: array - items: - type: string - title: Service Account messages - v1CreateTicketAttachmentUploadResponse: - type: object - properties: - uploadToken: - type: string - attachment: - $ref: "#/components/schemas/v1TicketAttachment" - v1CreateTicketRequest: - type: object - properties: - ticket: - $ref: "#/components/schemas/v1Ticket" - templateId: - type: string - templateVariables: - type: object - additionalProperties: - type: string - v1CreateTicketResponse: - type: object - properties: - ticket: - $ref: "#/components/schemas/v1Ticket" - v1CreateTicketTemplateRequest: - type: object - properties: - ticketTemplate: - $ref: "#/components/schemas/v1TicketTemplateInput" - v1CreateVMTemplateRequest: - type: object - properties: - name: - type: string - distro: - $ref: "#/components/schemas/v1Distro" - templateId: - type: integer - format: int32 - nodeId: - type: string - cloudInitTemplateId: - type: string - proxmoxCpuType: - type: string - description: "Proxmox cpu= guest CPU model for VMs using this template. Default: - host." - v1CreateVirtualMachineRequest: - type: object - properties: - hostname: - type: string - planId: - type: string - regionId: - type: string - title: Required region ID where the VM should be created - distro: - $ref: "#/components/schemas/v1Distro" - tags: - type: array - items: - type: string - title: Tags for categorizing the virtual machine (e.g., "database", "webserver") - sshKeyIds: - type: array - items: - type: string - description: SSH key IDs to use for VM access (one or more). Either user_data, - ssh_key_ids, or password must be provided, but only one. - password: - type: string - description: Password for VM access. Either user_data, ssh_key_ids, or password - must be provided, but only one. - userData: - type: string - description: User data for CloudInit. Either user_data, ssh_key_ids, password, - or cloud_init_user_data_id must be provided, but only one. - cloudInitUserDataId: - type: string - description: Saved client cloud-init user_data profile ID. Replaces provider - user_data at VM create. - instantAppId: - type: string - description: >- - Platform Instant App ID. Replaces provider user_data. Mutually - exclusive with - - user_data and cloud_init_user_data_id. Requires password or ssh_key_ids. - idempotencyKey: - type: string - description: Client-generated UUID for idempotent create retries. Required for - all creates. - v1CreditLedgerEntryProto: - type: object - properties: - id: - type: string - entryType: - type: string - amount: - type: string - title: Decimal string - balanceAfter: - type: string - title: Decimal string - reservedAfter: - type: string - title: Decimal string - currency: - type: string - creditSource: - type: string - idempotencyKey: - type: string - reasonCode: - type: string - createdAt: - type: string - format: date-time - v1CreditLedgerEntryType: - type: string - enum: - - CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED - - CREDIT_LEDGER_ENTRY_TYPE_PURCHASE - - CREDIT_LEDGER_ENTRY_TYPE_PROMOTIONAL - - CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RESERVE - - CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RELEASE - - CREDIT_LEDGER_ENTRY_TYPE_USAGE_HOLD - - CREDIT_LEDGER_ENTRY_TYPE_HOLD_RELEASE - - CREDIT_LEDGER_ENTRY_TYPE_INVOICE_SETTLEMENT - - CREDIT_LEDGER_ENTRY_TYPE_CHARGEBACK_REVERSAL - - CREDIT_LEDGER_ENTRY_TYPE_EXPIRY - - CREDIT_LEDGER_ENTRY_TYPE_FORFEITURE - - CREDIT_LEDGER_ENTRY_TYPE_MANUAL_ADJUSTMENT - default: CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED - description: CreditLedgerEntryType mirrors the ent enum for proto filtering. - v1DashboardAssetSalesDayBucket: - type: object - properties: - day: - type: string - count: - type: integer - format: int32 - description: Total assets sold that day (today equals VM count; available for - future multi-product rollups). - virtualMachineCount: - type: integer - format: int32 - v1DashboardBillingCommercialHealth: - type: object - properties: - distinctPayingTenantCount: - type: integer - format: int32 - paidInvoiceCount: - type: integer - format: int32 - outstandingOpenAmount: - type: string - outstandingPastDueAmount: - type: string - outstandingOpenInvoiceCount: - type: integer - format: int32 - outstandingPastDueInvoiceCount: - type: integer - format: int32 - v1DashboardBillingCustomerRevenue: - type: object - properties: - organizationId: - type: string - organizationName: - type: string - totalAmount: - type: string - contactEmail: - type: string - description: Primary owner contact email for the client org (billing dashboard - display). - v1DashboardBillingProductSlice: - type: object - properties: - productKey: - type: string - productLabel: - type: string - amount: - type: string - description: "Billing dashboard tab: revenue from paid invoices attributed to - this provider's catalog." - v1DashboardBillingSalesDayBucket: - type: object - properties: - day: - type: string - planSlices: - type: array - items: - $ref: "#/components/schemas/v1DashboardBillingProductSlice" - addonSlices: - type: array - items: - $ref: "#/components/schemas/v1DashboardBillingProductSlice" - priorPeriodDay: - type: string - description: "Prior window (same length, ending the day before current window): - parallel day label and total sales." - priorPeriodTotalAmount: - type: string - planSlicesByPlanCode: - type: array - items: - $ref: "#/components/schemas/v1DashboardBillingProductSlice" - description: Same plan revenue as plan_slices, grouped by catalog plan code - (SKU) instead of tier/category family. - v1DashboardCustomerAcquisitionDayBucket: - type: object - properties: - day: - type: string - newCustomers: - type: integer - format: int32 - description: "Per UTC calendar day: distinct client orgs whose first-ever VM - with this provider was created that day (UTC)." - v1DashboardIpamAssignmentIpFamily: - type: string - enum: - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV4 - - DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV6 - default: DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED - v1DashboardIpamAssignmentRow: - type: object - properties: - networkId: - type: string - nodeId: - type: string - ipAddress: - type: string - virtualMachineId: - type: string - virtualMachineHostname: - type: string - clientOrganizationId: - type: string - nodeName: - type: string - platformId: - type: string - v1DashboardIpamNetworkPrefixSummary: - type: object - properties: - prefixId: - type: string - cidr: - type: string - isIpv6: - type: boolean - usableTotal: - type: string - format: int64 - capacityIsOpenEnded: - type: boolean - activeAllocations: - type: string - format: int64 - reservedCount: - type: string - format: int64 - availableEstimate: - type: string - format: int64 - utilizationPercent: - type: number - format: double - reservedIps: - type: array - items: - type: string - gatewayIp: - type: string - allocatedSampleIps: - type: array - items: - type: string - vmAssignmentPrefixLength: - type: integer - format: int32 - capacityUnitLabel: - type: string - reservedPrefixes: - type: array - items: - type: string - description: >- - usable_total: assignable pool (structural hosts minus reserved list and - in-prefix gateway when - - not duplicated in reserved). utilization_percent = active_allocations / usable_total. - - reserved_count is len(reserved_ips) for display only. - v1DashboardIpamNetworkRollup: - type: object - properties: - networkId: - type: string - name: - type: string - description: - type: string - dnsServers: - type: array - items: - type: string - nodeCount: - type: integer - format: int32 - prefixCount: - type: integer - format: int32 - activeAllocationsTotal: - type: string - format: int64 - nodes: - type: array - items: - $ref: "#/components/schemas/v1DashboardIpamNodeRollup" - prefixSummaries: - type: array - items: - $ref: "#/components/schemas/v1DashboardIpamNetworkPrefixSummary" - dashboardVirtualMachineCount: - type: integer - format: int32 - v1DashboardIpamNodeRollup: - type: object - properties: - nodeId: - type: string - nodeName: - type: string - platformId: - type: string - platformName: - type: string - v1DashboardSummaryAddonBreakdown: - type: object - properties: - addonId: - type: string - name: - type: string - activeSubscriptionCount: - type: integer - format: int32 - code: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - v1DashboardSummaryPlanBreakdown: - type: object - properties: - planId: - type: string - name: - type: string - activeSubscriptionCount: - type: integer - format: int32 - code: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - v1DashboardSummaryRegionBreakdown: - type: object - properties: - regionId: - type: string - regionLabel: - type: string - activeVmCount: - type: integer - format: int32 - activeCustomerCount: - type: integer - format: int32 - nodeCount: - type: integer - format: int32 - ipAddressesFreeTotal: - type: string - format: int64 - ipAddressesTakenTotal: - type: string - format: int64 - ipAddressesIpv4FreeTotal: - type: string - format: int64 - ipAddressesIpv4TakenTotal: - type: string - format: int64 - ipAddressesIpv6FreeTotal: - type: string - format: int64 - ipAddressesIpv6TakenTotal: - type: string - format: int64 - v1DashboardSummaryTickets: - type: object - properties: - openLast7d: - type: integer - format: int32 - escalatedLast7d: - type: integer - format: int32 - slaFirstResponseBreaches: - type: integer - format: int32 - slaResolutionBreaches: - type: integer - format: int32 - totalInWindow: - type: integer - format: int32 - openNeedingProviderFirstResponseLast7d: - type: integer - format: int32 - v1DashboardTicketStatisticsByCaseType: - type: object - properties: - caseType: - $ref: "#/components/schemas/v1CaseType" - count: - type: integer - format: int32 - v1DashboardTicketStatisticsByPriority: - type: object - properties: - priority: - $ref: "#/components/schemas/v1TicketPriority" - count: - type: integer - format: int32 - v1DashboardTicketStatisticsByStatus: - type: object - properties: - ticketStatus: - $ref: "#/components/schemas/v1TicketStatus" - count: - type: integer - format: int32 - v1DashboardTicketStatisticsDayBucket: - type: object - properties: - day: - type: string - count: - type: integer - format: int32 - v1DashboardVirtualMachineRow: - type: object - properties: - id: - type: string - hostname: - type: string - cpu: - type: integer - format: int32 - memoryMb: - type: integer - format: int32 - storageMb: - type: integer - format: int32 - distro: - $ref: "#/components/schemas/v1Distro" - clientOrganizationId: - type: string - clientContactEmail: - type: string - ipv4Address: - type: string - ipv6Address: - type: string - macAddress: - type: string - description: Allocated MAC address (provider-only visibility; never exposed on - client VM APIs). - v1Datacenter: - type: object - properties: - id: - type: string - name: - type: string - v1DatacenterInfo: - type: object - properties: - id: - type: string - name: - type: string - v1DeleteProviderReviewReplyResponse: - type: object - properties: - review: - $ref: "#/components/schemas/v1ProviderReviewListItem" - v1DeleteRoadmapFeatureRequestCommentResponse: - type: object - properties: - success: - type: boolean - v1DisableMfaRequest: - type: object - properties: - password: - type: string - description: Required when the user has a local password. - code: - type: string - description: Current TOTP or an unused recovery code. - v1Distro: - type: string - enum: - - DISTRO_UNSPECIFIED - - DISTRO_UBUNTU_22_04 - - DISTRO_UBUNTU_24_04 - - DISTRO_UBUNTU_26_04 - - DISTRO_FEDORA_43 - - DISTRO_FEDORA_44 - - DISTRO_DEBIAN_12 - - DISTRO_DEBIAN_13 - - DISTRO_CENTOS_9 - - DISTRO_CENTOS_10 - - DISTRO_ROCKY_9 - - DISTRO_ROCKY_10 - - DISTRO_ALMALINUX_9 - - DISTRO_ALMALINUX_10 - default: DISTRO_UNSPECIFIED - description: |- - - DISTRO_UBUNTU_22_04: Ubuntu distributions - - DISTRO_FEDORA_43: Fedora distributions - - DISTRO_DEBIAN_12: Debian distributions - - DISTRO_CENTOS_9: CentOS distributions - - DISTRO_ROCKY_9: Rocky Linux distributions - - DISTRO_ALMALINUX_9: AlmaLinux distributions - title: Distribution enum for VM templates - v1Domain: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - isVerified: - type: boolean - verificationType: - $ref: "#/components/schemas/v1VerificationType" - organizationId: - type: string - title: Relations - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1DownloadTicketAttachmentResponse: - type: object - properties: - attachmentId: - type: string - fileName: - type: string - mimeType: - type: string - fileSize: - type: string - format: int64 - fileContent: - type: string - format: byte - v1EffectivePermissions: - type: object - properties: - permissions: - type: array - items: - $ref: "#/components/schemas/v1Permission" - totalCount: - type: integer - format: int32 - v1EnableAdditionalIPResponse: - type: object - properties: - allocation: - $ref: "#/components/schemas/v1AdditionalIPAddress" - totalAdditionalIps: - type: integer - format: int32 - monthlyUnitPrice: - type: string - description: Monthly list price per additional IP (fixed billing). Empty for - usage-based VMs. - proratedChargeAmount: - type: string - description: Prorated amount charged now for the remaining VM billing period - (fixed billing). - currency: - type: string - billingMessage: - type: string - description: Human-readable billing summary for the UI. - description: EnableAdditionalIPResponse returns the newly allocated address. - v1EndUser: - type: string - enum: - - END_USER_UNSPECIFIED - - END_USER_CLIENT - - END_USER_PROVIDER - - END_USER_ALL - - END_USER_USER - default: END_USER_UNSPECIFIED - v1EnrollMfaTotpRequest: - type: object - v1EnrollMfaTotpResponse: - type: object - properties: - otpauthUrl: - type: string - secret: - type: string - description: Base32 TOTP secret for manual entry / backup. Shown once during - enrollment. - v1EnvironmentVariable: - type: object - properties: - id: - type: string - title: Fields - key: - type: string - value: - type: string - user: - type: string - title: Relations - organization: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1ExchangeSSOCodeRequest: - type: object - properties: - code: - type: string - v1FirewallAction: - type: string - enum: - - FIREWALL_ACTION_UNSPECIFIED - - FIREWALL_ACTION_ACCEPT - - FIREWALL_ACTION_DROP - default: FIREWALL_ACTION_UNSPECIFIED - v1FirewallAddressGroup: - type: object - properties: - id: - type: string - readOnly: true - name: - type: string - prefixes: - type: array - items: - $ref: "#/components/schemas/v1FirewallIPPrefix" - description: |- - CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses. - Supports "all IPs" via 0.0.0.0/0 or ::/0. - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1FirewallAddressGroupInput: - type: object - properties: - name: - type: string - prefixes: - type: array - items: - $ref: "#/components/schemas/v1FirewallIPPrefix" - description: |- - CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses. - Supports "all IPs" via 0.0.0.0/0 or ::/0. - description: >- - FirewallAddressGroupInput is the client-provided payload for - create/update. - - Clients must not provide id/timestamps (those are server-controlled). - v1FirewallDirection: - type: string - enum: - - FIREWALL_DIRECTION_UNSPECIFIED - - FIREWALL_DIRECTION_INGRESS - - FIREWALL_DIRECTION_EGRESS - default: FIREWALL_DIRECTION_UNSPECIFIED - v1FirewallIPPrefix: - type: object - properties: - ip: - type: string - description: IPv4 or IPv6 address. May be "0.0.0.0" (v4 default route) or "::" - (v6 default route). - prefix: - type: integer - format: int64 - description: "Prefix length. IPv4: 0-32. IPv6: 0-128. Enforced by backend based - on derived family." - description: >- - FirewallIPPrefix represents a single CIDR prefix as separate fields. - - The backend will normalize/store it as a CIDR string (e.g., "10.0.0.0/24", "0.0.0.0/0", "::/0"). - v1FirewallProtocol: - type: string - enum: - - FIREWALL_PROTOCOL_UNSPECIFIED - - FIREWALL_PROTOCOL_TCP - - FIREWALL_PROTOCOL_UDP - - FIREWALL_PROTOCOL_SCTP - - FIREWALL_PROTOCOL_IPV6 - - FIREWALL_PROTOCOL_ICMP - - FIREWALL_PROTOCOL_ICMPV6 - - FIREWALL_PROTOCOL_ESP - - FIREWALL_PROTOCOL_AH - - FIREWALL_PROTOCOL_IPSEC - - FIREWALL_PROTOCOL_GRE - - FIREWALL_PROTOCOL_IPIP - - FIREWALL_PROTOCOL_VXLAN - - FIREWALL_PROTOCOL_L2TP - - FIREWALL_PROTOCOL_GENEVE - - FIREWALL_PROTOCOL_ANY - - FIREWALL_PROTOCOL_IGMP - - FIREWALL_PROTOCOL_GGP - - FIREWALL_PROTOCOL_IPENCAP - - FIREWALL_PROTOCOL_ST - - FIREWALL_PROTOCOL_EGP - - FIREWALL_PROTOCOL_IGP - - FIREWALL_PROTOCOL_PUP - - FIREWALL_PROTOCOL_HMP - - FIREWALL_PROTOCOL_XNS_IDP - - FIREWALL_PROTOCOL_RDP - - FIREWALL_PROTOCOL_ISO_TP4 - - FIREWALL_PROTOCOL_DCCP - - FIREWALL_PROTOCOL_XTP - - FIREWALL_PROTOCOL_DDP - - FIREWALL_PROTOCOL_IDPR_CMTP - - FIREWALL_PROTOCOL_IPV6_ROUTE - - FIREWALL_PROTOCOL_IPV6_FRAG - - FIREWALL_PROTOCOL_IDRP - - FIREWALL_PROTOCOL_RSVP - - FIREWALL_PROTOCOL_SKIP - - FIREWALL_PROTOCOL_IPV6_ICMP - - FIREWALL_PROTOCOL_IPV6_NONXT - - FIREWALL_PROTOCOL_IPV6_OPTS - - FIREWALL_PROTOCOL_VMTP - - FIREWALL_PROTOCOL_EIGRP - - FIREWALL_PROTOCOL_OSPF - - FIREWALL_PROTOCOL_AX_25 - - FIREWALL_PROTOCOL_ETHERIP - - FIREWALL_PROTOCOL_ENCAP - - FIREWALL_PROTOCOL_PIM - - FIREWALL_PROTOCOL_IPCOMP - - FIREWALL_PROTOCOL_VRRP - - FIREWALL_PROTOCOL_ISIS - - FIREWALL_PROTOCOL_FC - - FIREWALL_PROTOCOL_MOBILITY_HEADER - - FIREWALL_PROTOCOL_UDPLITE - - FIREWALL_PROTOCOL_MPLS_IN_IP - - FIREWALL_PROTOCOL_HIP - - FIREWALL_PROTOCOL_SHIM6 - - FIREWALL_PROTOCOL_WESP - - FIREWALL_PROTOCOL_ROHC - default: FIREWALL_PROTOCOL_UNSPECIFIED - title: >- - - FIREWALL_PROTOCOL_ICMPV6: legacy alias; prefer IPV6_ICMP for new rules - - FIREWALL_PROTOCOL_IPSEC: legacy logical grouping; not a Proxmox /etc/protocols name - - FIREWALL_PROTOCOL_VXLAN: legacy; not in Proxmox protocol selector - - FIREWALL_PROTOCOL_GENEVE: legacy; not in Proxmox protocol selector - - FIREWALL_PROTOCOL_ANY: Match all protocols (Proxmox proto left unset) - - FIREWALL_PROTOCOL_IGMP: Remaining values mirror Proxmox VE IPProtocolSelector (www/manager6/form/IPProtocolSelector.js) - - FIREWALL_PROTOCOL_XNS_IDP: xns-idp - - FIREWALL_PROTOCOL_ISO_TP4: iso-tp4 - - FIREWALL_PROTOCOL_IDPR_CMTP: idpr-cmtp - - FIREWALL_PROTOCOL_IPV6_ROUTE: ipv6-route - - FIREWALL_PROTOCOL_IPV6_FRAG: ipv6-frag - - FIREWALL_PROTOCOL_IPV6_ICMP: ipv6-icmp (Proxmox name for ICMPv6) - - FIREWALL_PROTOCOL_IPV6_NONXT: ipv6-nonxt - - FIREWALL_PROTOCOL_IPV6_OPTS: ipv6-opts - - FIREWALL_PROTOCOL_AX_25: ax.25 - - FIREWALL_PROTOCOL_MOBILITY_HEADER: mobility-header - - FIREWALL_PROTOCOL_MPLS_IN_IP: mpls-in-ip - v1FirewallRuleAddressGroups: - type: object - properties: - addressGroupIds: - type: array - items: - type: string - description: FirewallRuleAddressGroups contains address group UUIDs. Can be one - or more. - v1FirewallRuleDestination: - type: object - properties: - ips: - $ref: "#/components/schemas/v1FirewallRuleIPs" - addressGroupIds: - $ref: "#/components/schemas/v1FirewallRuleAddressGroups" - vmTags: - $ref: "#/components/schemas/v1FirewallRuleVMTags" - description: >- - FirewallRuleDestination defines the destination specification for a - firewall rule. - - All fields are optional, but at least one must be set. Multiple fields can be combined. - v1FirewallRuleIPs: - type: object - properties: - ips: - type: array - items: - type: string - description: FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more. - v1FirewallRuleInput: - type: object - properties: - action: - $ref: "#/components/schemas/v1FirewallAction" - protocol: - $ref: "#/components/schemas/v1FirewallProtocol" - direction: - $ref: "#/components/schemas/v1FirewallDirection" - source: - $ref: "#/components/schemas/v1FirewallRuleSource" - destination: - $ref: "#/components/schemas/v1FirewallRuleDestination" - sourcePorts: - type: string - title: 'Optional: single port or range (e.g., "80" or "8000-9000")' - destinationPorts: - type: string - title: 'Optional: single port or range (e.g., "443" or "5000-5010")' - description: >- - FirewallRuleInput is the client-provided rule payload for create/update. - - Clients must not provide id/ruleset_id/timestamps (those are server-controlled). - v1FirewallRulePosition: - type: string - enum: - - FIREWALL_RULE_POSITION_UNSPECIFIED - - FIREWALL_RULE_POSITION_BEFORE - - FIREWALL_RULE_POSITION_AFTER - default: FIREWALL_RULE_POSITION_UNSPECIFIED - title: >- - - FIREWALL_RULE_POSITION_BEFORE: Move before the target rule (higher - priority) - - FIREWALL_RULE_POSITION_AFTER: Move after the target rule (lower priority) - v1FirewallRuleResource: - type: object - properties: - id: - type: string - readOnly: true - rulesetId: - type: string - readOnly: true - rule: - $ref: "#/components/schemas/v1FirewallRuleInput" - position: - type: integer - format: int64 - description: Position of the rule (0, 1, 2, 3...). Sequential position - indicating order. Auto-assigned by the system. - readOnly: true - timestamps: - $ref: "#/components/schemas/v1Timestamps" - description: FirewallRuleResource is a first-class rule resource that belongs to - a FirewallRuleSet. - v1FirewallRuleSet: - type: object - properties: - id: - type: string - readOnly: true - name: - type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - ruleCount: - type: integer - format: int32 - description: Number of rules in this ruleset (ingress and egress combined). - readOnly: true - attachedVmCount: - type: integer - format: int32 - description: Number of virtual machines currently attached to this ruleset. - readOnly: true - attachedVmHostnames: - type: array - items: - type: string - description: Hostnames of virtual machines attached to this ruleset (sorted). - readOnly: true - v1FirewallRuleSetAttachmentFilter: - type: string - enum: - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED - - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED - default: FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED - description: >- - FirewallRuleSetAttachmentFilter filters rulesets by whether any VM is - attached. - - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets - - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached - - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached - v1FirewallRuleSetInput: - type: object - properties: - name: - type: string - v1FirewallRuleSource: - type: object - properties: - ips: - $ref: "#/components/schemas/v1FirewallRuleIPs" - addressGroupIds: - $ref: "#/components/schemas/v1FirewallRuleAddressGroups" - vmTags: - $ref: "#/components/schemas/v1FirewallRuleVMTags" - description: >- - FirewallRuleSource defines the source specification for a firewall rule. - - All fields are optional, but at least one must be set. Multiple fields can be combined. - v1FirewallRuleVMTags: - type: object - properties: - tags: - type: array - items: - type: string - description: FirewallRuleVMTags contains VM tags. Can be one or more. - v1ForgotPasswordRequest: - type: object - properties: - email: - type: string - turnstileToken: - type: string - description: Cloudflare Turnstile token from the client widget (optional unless - auth.turnstile is enabled). - v1FunctionCall: - type: object - properties: - id: - type: string - title: Unique ID for this function call - name: - type: string - title: Function name (e.g., "list_providers", "list_available_regions") - arguments: - type: string - title: Function arguments as JSON string - v1FunctionResult: - type: object - properties: - functionCallId: - type: string - title: ID of the function call this result corresponds to - content: - type: string - title: Result content as JSON string - isError: - type: boolean - title: Whether this is an error result - v1GenerateInstallCommandResponse: - type: object - properties: - command: - type: string - title: Full curl/bash command that can be executed - token: - type: string - title: One-time token used in the command for authentication - v1GeneratePeeringConfigResponse: - type: object - properties: - config: - type: string - v1GenerateServiceAccountTokenResponse: - type: object - properties: - token: - type: string - tokenId: - type: string - expiresAt: - type: string - format: date-time - createdAt: - type: string - format: date-time - warning: - type: string - v1GetActiveSessionsResponse: - type: object - properties: - sessions: - type: array - items: - $ref: "#/components/schemas/v1SessionInfo" - v1GetAddonResponse: - type: object - properties: - addon: - $ref: "#/components/schemas/v1Addon" - addonPrices: - type: array - items: - $ref: "#/components/schemas/v1AddonPrice" - v1GetAgentResponse: - type: object - properties: - agent: - $ref: "#/components/schemas/v1Agent" - v1GetAllExchangeRatesResponse: - type: object - properties: - rates: - type: object - additionalProperties: - type: string - title: |- - Map of currency codes to exchange rates (from USD) - Key: currency code (e.g., "EUR", "GBP") - Value: exchange rate as decimal string - lastUpdated: - type: string - format: int64 - title: Timestamp when rates were last updated - v1GetBackupResponse: - type: object - properties: - backup: - $ref: "#/components/schemas/v1Backup" - v1GetClientDashboardBillingResponse: - type: object - properties: - currency: - type: string - spendDays: - type: array - items: - $ref: "#/components/schemas/v1ClientDashboardSpendBucket" - description: Daily categorized spend, oldest first (fixed window ending today, - UTC). - spendHours: - type: array - items: - $ref: "#/components/schemas/v1ClientDashboardSpendBucket" - description: Hourly categorized spend for the last 24 hours, oldest first. - usageRollups: - type: array - items: - $ref: "#/components/schemas/v1ClientDashboardUsageRollup" - v1GetClientDashboardSummaryResponse: - type: object - properties: - virtualMachines: - $ref: "#/components/schemas/v1ClientDashboardVirtualMachinesSummary" - spendingWindows: - type: array - items: - $ref: "#/components/schemas/v1ClientDashboardSpendingWindow" - description: "Client dashboard (buyer org): single read for Summary tab widgets." - v1GetClientReviewForVirtualMachineResponse: - type: object - properties: - hasSubmitted: - type: boolean - review: - $ref: "#/components/schemas/v1ClientProviderReview" - canSubmitReview: - type: boolean - reviewBlockedReason: - type: string - description: Set when can_submit_review is false and has_submitted is false - (e.g. usage-based 24h window). - reviewAvailableAt: - type: string - format: date-time - v1GetCloudInitTemplateResponse: - type: object - properties: - cloudInitTemplate: - $ref: "#/components/schemas/v1CloudInitTemplate" - v1GetConnectAccountResponse: - type: object - properties: - account: - $ref: "#/components/schemas/v1ConnectAccount" - onboardingUrl: - type: string - title: URL for provider to complete setup (if required) - requiresOnboarding: - type: boolean - title: Whether provider needs to complete onboarding - v1GetConversationHistoryResponse: - type: object - properties: - conversationId: - type: string - title: Conversation ID - title: - type: string - title: Conversation title - messages: - type: array - items: - $ref: "#/components/schemas/v1ChatMessage" - title: List of messages in the conversation - v1GetCreditBalanceResponse: - type: object - properties: - balance: - type: string - title: "Decimal string: settled wallet balance in USD" - reserved: - type: string - title: "Decimal string: sum of open holds" - available: - type: string - title: "Decimal string: balance - reserved" - frozen: - type: boolean - frozenReason: - type: string - title: Empty when not frozen - currency: - type: string - title: Always "USD" in v1 - v1GetDashboardAssetSalesTimeseriesResponse: - type: object - properties: - assetsSoldPerDay: - type: array - items: - $ref: "#/components/schemas/v1DashboardAssetSalesDayBucket" - v1GetDashboardBillingSalesResponse: - type: object - properties: - currency: - type: string - days: - type: array - items: - $ref: "#/components/schemas/v1DashboardBillingSalesDayBucket" - totalFixedBillingSalesAmount: - type: string - description: Fixed = subscription + free plan lines + all add-ons; usage = - usage-rated plan lines only. - totalUsageBillingSalesAmount: - type: string - revenueByCustomer: - type: array - items: - $ref: "#/components/schemas/v1DashboardBillingCustomerRevenue" - commercialHealth: - $ref: "#/components/schemas/v1DashboardBillingCommercialHealth" - revenueByCustomerTotalCount: - type: integer - format: int32 - description: Rows matching email filter (for pagination). - revenueByCustomerWindowTotal: - type: integer - format: int32 - description: Distinct customer orgs with revenue in the window (before email - filter). - v1GetDashboardCustomerAcquisitionTimeseriesResponse: - type: object - properties: - buckets: - type: array - items: - $ref: "#/components/schemas/v1DashboardCustomerAcquisitionDayBucket" - v1GetDashboardSummaryResponse: - type: object - properties: - tickets: - $ref: "#/components/schemas/v1DashboardSummaryTickets" - byRegion: - type: array - items: - $ref: "#/components/schemas/v1DashboardSummaryRegionBreakdown" - activeVmTotal: - type: integer - format: int32 - activeCustomerTotal: - type: integer - format: int32 - nodeTotal: - type: integer - format: int32 - planBreakdown: - type: array - items: - $ref: "#/components/schemas/v1DashboardSummaryPlanBreakdown" - addonBreakdown: - type: array - items: - $ref: "#/components/schemas/v1DashboardSummaryAddonBreakdown" - v1GetDomainResponse: - type: object - properties: - domain: - $ref: "#/components/schemas/v1Domain" - v1GetEnvironmentVariableResponse: - type: object - properties: - environmentVariable: - $ref: "#/components/schemas/v1EnvironmentVariable" - v1GetExchangeRateResponse: - type: object - properties: - exchangeRate: - type: string - title: Exchange rate from USD to the requested currency - currencyCode: - type: string - title: Currency code - lastUpdated: - type: string - format: int64 - title: Timestamp when the rate was last updated - v1GetGroupResponse: - type: object - properties: - group: - $ref: "#/components/schemas/v1Group" - v1GetInvoiceResponse: - type: object - properties: - invoice: - $ref: "#/components/schemas/v1Invoice" - invoiceLines: - type: array - items: - $ref: "#/components/schemas/v1InvoiceLine" - v1GetManualPayoutResponse: - type: object - properties: - payout: - $ref: "#/components/schemas/v1ManualPayout" - v1GetMarketplacePlanResponse: - type: object - properties: - planId: - type: string - planCode: - type: string - regionId: - type: string - regionCity: - type: string - regionCountry: - type: string - organizationId: - type: string - organizationName: - type: string - providerLogoUrl: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - vcpus: - type: integer - format: int32 - ramGb: - type: integer - format: int32 - diskGb: - type: integer - format: int32 - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPrice" - planRegions: - type: array - items: - $ref: "#/components/schemas/v1PlanRegion" - rating: - type: number - format: float - totalReviews: - type: integer - format: int32 - description: Resolved marketplace offer for VM create prefill (authenticated clients). - v1GetMetricResponse: - type: object - properties: - metric: - $ref: "#/components/schemas/v1Metric" - v1GetMfaStatusResponse: - type: object - properties: - enabled: - type: boolean - factorLabel: - type: string - backupCodesRemaining: - type: integer - format: int32 - v1GetNetworkResponse: - type: object - properties: - network: - $ref: "#/components/schemas/v1Network" - v1GetNodeCPUMapResponse: - type: object - properties: - computeType: - $ref: "#/components/schemas/v1NodeComputeType" - modelName: - type: string - sockets: - type: integer - format: int32 - threadsPerCore: - type: integer - format: int32 - physicalCores: - type: integer - format: int32 - logicalCpus: - type: integer - format: int32 - smtEnabled: - type: boolean - numaNodes: - type: array - items: - $ref: "#/components/schemas/v1NodeCPUMapNUMA" - cpus: - type: array - items: - $ref: "#/components/schemas/v1NodeCPUMapCPU" - topologyCollectedAt: - type: string - description: RFC3339 time the stored topology was collected/pasted. - v1GetNodeNetworkResponse: - type: object - properties: - network: - $ref: "#/components/schemas/v1Network" - v1GetNodePlacementPolicyResponse: - type: object - properties: - policy: - $ref: "#/components/schemas/v1NodePlacementPolicy" - v1GetNodeResponse: - type: object - properties: - node: - $ref: "#/components/schemas/v1Node" - v1GetNotificationSettingResponse: - type: object - properties: - notificationSetting: - $ref: "#/components/schemas/v1NotificationSetting" - v1GetNotificationTemplateResponse: - type: object - properties: - notificationTemplate: - $ref: "#/components/schemas/v1NotificationTemplate" - v1GetOrganizationResponse: - type: object - properties: - organization: - $ref: "#/components/schemas/v1Organization" - v1GetPaymentResponse: - type: object - properties: - payment: - $ref: "#/components/schemas/v1Payment" - refunds: - type: array - items: - $ref: "#/components/schemas/v1Refund" - title: Refunds for this payment - v1GetPayoutConfigurationResponse: - type: object - properties: - configuration: - $ref: "#/components/schemas/v1PayoutConfiguration" - v1GetPayoutInvoiceResponse: - type: object - properties: - payoutInvoice: - $ref: "#/components/schemas/v1PayoutInvoice" - invoices: - type: array - items: - $ref: "#/components/schemas/v1Invoice" - title: Client invoices that contributed to this payout - v1GetPlanLiveValidationResponse: - type: object - properties: - validation: - $ref: "#/components/schemas/v1PlanLiveValidationView" - v1GetPlatformResponse: - type: object - properties: - platform: - $ref: "#/components/schemas/v1Platform" - v1GetPrefixResponse: - type: object - properties: - prefix: - $ref: "#/components/schemas/v1Prefix" - v1GetPrefixUtilizationResponse: - type: object - properties: - totalIps: - type: integer - format: int32 - description: >- - Assignable pool: structurally assignable hosts minus explicit - reserved list and one - - in-prefix gateway slot when the gateway is not already listed as reserved. Out-of-prefix - - gateways are ignored. - allocatedCount: - type: integer - format: int32 - title: Active VM IP allocations - reservedCount: - type: integer - format: int32 - title: Len(reserved list) only; informational, not added to utilization - availableCount: - type: integer - format: int32 - title: total_ips minus allocated_count - utilizationPercent: - type: number - format: double - title: allocated_count / total_ips when total_ips > 0 - vmAssignmentPrefixLength: - type: integer - format: int32 - title: IPv6 assignment length when applicable - capacityUnitLabel: - type: string - title: e.g. "addresses", "/64 blocks" - capacityIsOpenEnded: - type: boolean - title: true when pool size does not fit int64 - v1GetProviderCustomerResponse: - type: object - properties: - customer: - $ref: "#/components/schemas/v1ProviderCustomerRow" - v1GetProviderCustomerStatsResponse: - type: object - properties: - activeCustomers: - type: integer - format: int32 - inactiveCustomers: - type: integer - format: int32 - totalActiveVms: - type: integer - format: int32 - v1GetProviderOnboardingChecklistResponse: - type: object - properties: - onboarded: - type: boolean - description: True when the org has completed every step at least once (persisted - latch). - steps: - type: array - items: - $ref: "#/components/schemas/v1ProviderOnboardingStep" - description: Ordered checklist; empty when onboarded is true. - nextStep: - $ref: "#/components/schemas/v1ProviderOnboardingStepCode" - progressMessage: - type: string - description: 'Short copy for the wizard banner ("You created a region. Next: - create a platform.").' - completedCount: - type: integer - format: int32 - totalCount: - type: integer - format: int32 - v1GetProviderResponse: - type: object - properties: - provider: - $ref: "#/components/schemas/v1ProviderDetails" - v1GetProviderRevenueResponse: - type: object - properties: - totalRevenue: - type: string - title: "Total revenue (gross: payout amount + platform fees) - decimal string" - totalPlatformFees: - type: string - title: Total platform fees deducted - decimal string - totalNetPayouts: - type: string - title: Total net payouts (payout amounts) - decimal string - currency: - type: string - title: Currency code (ISO 4217) - completedPayoutCount: - type: integer - format: int32 - title: Number of completed payouts - pendingPayoutCount: - type: integer - format: int32 - title: Number of pending/processing payouts - failedPayoutCount: - type: integer - format: int32 - title: Number of failed payouts - startDate: - type: string - format: date-time - title: Start date used for calculation - endDate: - type: string - format: date-time - title: End date used for calculation - v1GetRefundResponse: - type: object - properties: - refund: - $ref: "#/components/schemas/v1Refund" - payment: - $ref: "#/components/schemas/v1Payment" - invoice: - $ref: "#/components/schemas/v1Invoice" - v1GetRoadmapFeatureRequestResponse: - type: object - properties: - request: - $ref: "#/components/schemas/v1RoadmapFeatureRequest" - v1GetRoadmapStatsResponse: - type: object - properties: - totalRequests: - type: integer - format: int32 - totalVotes: - type: integer - format: int32 - byProduct: - type: array - items: - $ref: "#/components/schemas/v1RoadmapProductStats" - v1GetSSHKeyResponse: - type: object - properties: - sshKey: - $ref: "#/components/schemas/v1SSHKey" - v1GetSecretResponse: - type: object - properties: - secret: - $ref: "#/components/schemas/v1Secret" - v1GetSmtpOutboundProviderPolicyResponse: - type: object - properties: - policy: - $ref: "#/components/schemas/v1SmtpOutboundProviderPolicy" - v1GetSnapshotResponse: - type: object - properties: - snapshot: - $ref: "#/components/schemas/v1Snapshot" - v1GetSubscriptionStatusResponse: - type: object - properties: - rules: - type: array - items: - $ref: "#/components/schemas/v1Rules" - v1GetTicketResponse: - type: object - properties: - ticket: - $ref: "#/components/schemas/v1Ticket" - thread: - type: array - items: - $ref: "#/components/schemas/v1TicketMessage" - title: All messages in chronological order (original + replies) - userDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1UserDetails" - title: Map of user ID to user details (first_name, last_name) - organizationDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1OrganizationDetails" - title: Map of organization ID to organization name - v1GetUsageRecordResponse: - type: object - properties: - usageRecord: - $ref: "#/components/schemas/v1UsageRecord" - v1GetUsageReportResponse: - type: object - properties: - aggregates: - type: array - items: - $ref: "#/components/schemas/v1UsageAggregate" - billingPeriodStart: - type: string - format: date-time - billingPeriodEnd: - type: string - format: date-time - totalRecords: - type: integer - format: int32 - v1GetUserResponse: - type: object - properties: - user: - $ref: "#/components/schemas/v1User" - v1GetVMTemplateResponse: - type: object - properties: - vmTemplate: - $ref: "#/components/schemas/v1VMTemplate" - v1GetVNCConsoleResponse: - type: object - properties: - websocketUrl: - type: string - title: WebSocket URL for console connection (e.g., - "ws://backend/api/v1/virtual-machines/{vm_id}/console/ws") - sessionId: - type: string - title: Session ID for the console connection - token: - type: string - title: Signed session token; frontend sends this on WS connect - password: - type: string - title: RFB password for noVNC credentials - v1Group: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - groupRoles: - type: array - items: - type: string - title: Relations - userEmails: - type: array - items: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1HandleWebhookResponse: - type: object - properties: - success: - type: boolean - title: Success indicator - eventId: - type: string - title: Webhook event ID (for idempotency tracking) - message: - type: string - title: Optional message - v1HealthCheckResponse: - type: object - properties: - status: - $ref: "#/components/schemas/v1ServingStatus" - v1IPAllocation: - type: object - properties: - id: - type: string - title: Fields - ipAddress: - type: string - title: IP address allocated (e.g., 10.0.0.5, 2001:db8::1) - status: - $ref: "#/components/schemas/v1IPAllocationStatus" - prefixId: - type: string - description: Prefix this IP allocation is from - title: Relations - virtualMachineId: - type: string - title: Virtual machine this IP is allocated to - organizationId: - type: string - title: Organization that owns this allocation - timestamps: - $ref: "#/components/schemas/v1Timestamps" - allocatedCidr: - type: string - title: Allocated CIDR (host or delegated block) - allocationKind: - type: string - title: ipv4_host, ipv6_host, ipv6_prefix - v1IPAllocationStatus: - type: string - enum: - - IP_ALLOCATION_STATUS_UNSPECIFIED - - IP_ALLOCATION_STATUS_ACTIVE - - IP_ALLOCATION_STATUS_RELEASED - default: IP_ALLOCATION_STATUS_UNSPECIFIED - v1InboundPeeringState: - type: string - enum: - - INBOUND_PEERING_STATE_UNSPECIFIED - - INBOUND_PEERING_STATE_PENDING - - INBOUND_PEERING_STATE_PEERING - - INBOUND_PEERING_STATE_READY - - INBOUND_PEERING_STATE_FAILED - default: INBOUND_PEERING_STATE_UNSPECIFIED - v1InstantApp: - type: object - properties: - id: - type: string - readOnly: true - slug: - type: string - readOnly: true - name: - type: string - readOnly: true - description: - type: string - readOnly: true - version: - type: string - readOnly: true - family: - type: string - readOnly: true - distro: - $ref: "#/components/schemas/v1Distro" - iconUrl: - type: string - readOnly: true - categories: - type: array - items: - type: string - readOnly: true - minVcpus: - type: integer - format: int32 - description: Recommended minimums (plan specifications units); not enforced at - create. - readOnly: true - minRamGb: - type: integer - format: int32 - readOnly: true - minDiskGb: - type: integer - format: int32 - readOnly: true - sortOrder: - type: integer - format: int32 - readOnly: true - documentationUrl: - type: string - readOnly: true - metadata: - type: object - description: Includes ports (e.g. [22,80,443]), credentials_path, - estimated_ready_minutes. - readOnly: true - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - userData: - type: string - description: Jinja cloud-init user_data template. Present on Get; omitted on List. - readOnly: true - description: >- - InstantApp is a platform-owned curated app install (Jinja user_data - bound to a Distro). - - user_data is returned on Get for catalog preview; List omits it to keep responses small. - - Create/reinstall always load user_data server-side from storage. - v1Invite: - type: object - properties: - id: - type: string - title: Fields - inviteeEmail: - type: string - inviteStatus: - $ref: "#/components/schemas/v1InviteStatus" - expiresAt: - type: string - format: date-time - joinedTime: - type: string - format: date-time - inviter: - type: string - title: Relations - organization: - type: string - group: - type: string - role: - type: string - inviterEmail: - type: string - title: Display fields - organizationName: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1InviteStatus: - type: string - enum: - - INVITE_STATUS_UNSPECIFIED - - INVITE_STATUS_SENT - - INVITE_STATUS_ACCEPTED - - INVITE_STATUS_DECLINED - - INVITE_STATUS_EXPIRED - default: INVITE_STATUS_UNSPECIFIED - v1Invoice: - type: object - properties: - id: - type: string - invoiceNumber: - type: string - subscriptionId: - type: string - title: "Deprecated: Use subscription_ids instead. Kept" - subscriptionIds: - type: array - items: - type: string - description: |- - for backward compatibility. - - Subscriptions aggregated into this invoice (many-to-many) - periodStart: - type: string - format: date-time - periodEnd: - type: string - format: date-time - dueDate: - type: string - format: date-time - paidAt: - type: string - format: date-time - status: - $ref: "#/components/schemas/v1InvoiceStatus" - currency: - type: string - subtotal: - type: string - title: Decimal string with 6 decimal places precision - taxAmount: - type: string - title: Decimal string with 6 decimal places precision - total: - type: string - title: Decimal string with 6 decimal places precision - amountDue: - type: string - title: Decimal string with 6 decimal places precision - transactionId: - type: string - createdAt: - type: string - format: date-time - metadata: - type: object - title: "Optional: custom metadata (platform fee info for providers, etc.)" - issuer: - $ref: "#/components/schemas/v1InvoiceParty" - customer: - $ref: "#/components/schemas/v1InvoiceParty" - v1InvoiceLine: - type: object - properties: - id: - type: string - invoiceId: - type: string - subscriptionId: - type: string - title: Subscription this invoice line is for - description: - type: string - title: (direct link for better tracking) - quantity: - type: string - title: Decimal as string - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - amount: - type: string - title: Decimal string with 6 decimal places precision - v1InvoiceParty: - type: object - properties: - name: - type: string - title: Display/trading name - legalName: - type: string - title: Registered legal entity name, when different from name - taxId: - type: string - vatId: - type: string - email: - type: string - phone: - type: string - addressLine1: - type: string - addressLine2: - type: string - city: - type: string - region: - type: string - postalCode: - type: string - country: - type: string - title: ISO 3166-1 alpha-2 - address: - type: string - title: Single-line address fallback - website: - type: string - isPlatform: - type: boolean - title: True when the party is the platform itself - description: >- - InvoiceParty is a billing party (seller/issuer or buyer/customer) shown - on an - - invoice. Provider/customer identity is snapshotted at invoice generation; the - - platform issuer is resolved from server config. - v1InvoiceStatus: - type: string - enum: - - INVOICE_STATUS_UNSPECIFIED - - INVOICE_STATUS_DRAFT - - INVOICE_STATUS_OPEN - - INVOICE_STATUS_PAID - - INVOICE_STATUS_PAST_DUE - - INVOICE_STATUS_VOID - - INVOICE_STATUS_UNCOLLECTIBLE - default: INVOICE_STATUS_UNSPECIFIED - title: Invoice messages - v1LastRestore: - type: object - properties: - snapshotName: - type: string - readOnly: true - restoredAt: - type: string - format: date-time - readOnly: true - restoredBy: - type: string - readOnly: true - title: LastRestore represents the last restore operation for a snapshot - v1LinkedIdentity: - type: object - properties: - provider: - type: string - email: - type: string - createTime: - type: string - format: date-time - v1ListAddonSubscriptionsResponse: - type: object - properties: - addonSubscriptions: - type: array - items: - $ref: "#/components/schemas/v1AddonSubscription" - totalCount: - type: integer - format: int32 - v1ListAddonsResponse: - type: object - properties: - addons: - type: array - items: - $ref: "#/components/schemas/v1Addon" - totalCount: - type: integer - format: int32 - v1ListAgentsResponse: - type: object - properties: - agents: - type: array - items: - $ref: "#/components/schemas/v1GetAgentResponse" - totalCount: - type: integer - format: int32 - v1ListAllocationsResponse: - type: object - properties: - allocations: - type: array - items: - $ref: "#/components/schemas/v1IPAllocation" - total: - type: integer - format: int32 - v1ListAssignableNodesForPlanResponse: - type: object - properties: - nodes: - type: array - items: - $ref: "#/components/schemas/v1AssignableNodeView" - v1ListAvailableAddonsResponse: - type: object - properties: - addons: - type: array - items: - $ref: "#/components/schemas/v1Addon" - totalCount: - type: integer - format: int32 - v1ListAvailableIPsResponse: - type: object - properties: - availableIps: - type: array - items: - type: string - title: List of available IP addresses - totalIps: - type: integer - format: int32 - title: Total IPs in prefix - allocatedCount: - type: integer - format: int32 - title: Number of allocated IPs - reservedCount: - type: integer - format: int32 - title: Number of reserved IPs - availableCount: - type: integer - format: int32 - title: Number of available IPs - v1ListAvailablePlansResponse: - type: object - properties: - plans: - type: array - items: - $ref: "#/components/schemas/v1AvailablePlanCode" - title: List of unique plan codes with their details - totalCount: - type: integer - format: int32 - title: Total number of unique plan codes - v1ListAvailableRegionsResponse: - type: object - properties: - regions: - type: array - items: - $ref: "#/components/schemas/v1RegionLocation" - title: List of unique city+country combinations - totalCount: - type: integer - format: int32 - title: Total number of unique regions - v1ListBackupsResponse: - type: object - properties: - backups: - type: array - items: - $ref: "#/components/schemas/v1Backup" - totalCount: - type: integer - format: int32 - v1ListClientProviderReviewAssetsResponse: - type: object - properties: - assets: - type: array - items: - $ref: "#/components/schemas/v1ClientProviderReviewAssetItem" - totalCount: - type: integer - format: int32 - reviewedAssetCount: - type: integer - format: int32 - description: Submitted reviews across all assets (not just this page). - v1ListCloudInitTemplatesResponse: - type: object - properties: - cloudInitTemplates: - type: array - items: - $ref: "#/components/schemas/v1CloudInitTemplate" - totalCount: - type: integer - format: int32 - v1ListCloudInitUserDataResponse: - type: object - properties: - profiles: - type: array - items: - $ref: "#/components/schemas/v1CloudInitUserData" - totalCount: - type: integer - format: int32 - v1ListConversationsResponse: - type: object - properties: - conversations: - type: array - items: - $ref: "#/components/schemas/v1ConversationInfo" - title: List of conversations with IDs and titles - totalCount: - type: integer - format: int32 - title: Total number of conversations - v1ListCountriesCitiesResponse: - type: object - properties: - countries: - type: array - items: - $ref: "#/components/schemas/v1Country" - totalCount: - type: integer - format: int32 - v1ListCreditLedgerEntriesResponse: - type: object - properties: - entries: - type: array - items: - $ref: "#/components/schemas/v1CreditLedgerEntryProto" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListDashboardAddonCatalogStatsResponse: - type: object - properties: - addonCatalog: - type: array - items: - $ref: "#/components/schemas/v1ProviderDashboardAddonCatalogRow" - addonCatalogFilteredTotal: - type: integer - format: int32 - kpiActiveAddonSubscriptionsSum: - type: integer - format: int32 - v1ListDashboardInfrastructureResponse: - type: object - properties: - byNode: - type: array - items: - $ref: "#/components/schemas/v1ProviderDashboardNodeRollup" - nodeTotalCount: - type: integer - format: int32 - v1ListDashboardIpamAssignmentsResponse: - type: object - properties: - assignments: - type: array - items: - $ref: "#/components/schemas/v1DashboardIpamAssignmentRow" - totalCount: - type: integer - format: int32 - v1ListDashboardIpamResponse: - type: object - properties: - networks: - type: array - items: - $ref: "#/components/schemas/v1DashboardIpamNetworkRollup" - allocatedSampleIpsHasMore: - type: boolean - v1ListDashboardPlanSubscriptionStatsResponse: - type: object - properties: - plans: - type: array - items: - $ref: "#/components/schemas/v1ProviderDashboardPlanSubscriptionStat" - kpiPlanCount: - type: integer - format: int32 - kpiActiveSubscriptionsSum: - type: integer - format: int32 - kpiVmAssetsSum: - type: integer - format: int32 - plansFilteredTotal: - type: integer - format: int32 - v1ListDashboardTicketStatisticsResponse: - type: object - properties: - totalTickets: - type: integer - format: int32 - openTickets: - type: integer - format: int32 - closedTickets: - type: integer - format: int32 - byStatus: - type: array - items: - $ref: "#/components/schemas/v1DashboardTicketStatisticsByStatus" - byCaseType: - type: array - items: - $ref: "#/components/schemas/v1DashboardTicketStatisticsByCaseType" - byPriority: - type: array - items: - $ref: "#/components/schemas/v1DashboardTicketStatisticsByPriority" - averageFirstResponseTimeSeconds: - type: string - format: int64 - averageResolutionTimeSeconds: - type: string - format: int64 - slaFirstResponseBreachedTickets: - type: integer - format: int32 - slaResolutionBreachedTickets: - type: integer - format: int32 - slaCompliantTickets: - type: integer - format: int32 - ticketsCreatedPerDay: - type: array - items: - $ref: "#/components/schemas/v1DashboardTicketStatisticsDayBucket" - awaitingReplyTickets: - type: integer - format: int32 - openNeedingProviderFirstResponse: - type: integer - format: int32 - v1ListDashboardVirtualMachinesResponse: - type: object - properties: - dashboardVmCountTotal: - type: integer - format: int32 - virtualMachines: - type: array - items: - $ref: "#/components/schemas/v1DashboardVirtualMachineRow" - vmtemplateIdsWithVirtualMachines: - type: array - items: - type: string - description: Distinct VM template IDs with at least one provider-scoped - dashboard VM (unfiltered facet for sidebar). - v1ListDatacentersResponse: - type: object - properties: - datacenters: - type: array - items: - $ref: "#/components/schemas/v1DatacenterInfo" - totalCount: - type: integer - format: int32 - v1ListEffectivePermissionsResponse: - type: object - properties: - effectivePermissions: - type: object - additionalProperties: - $ref: "#/components/schemas/v1EffectivePermissions" - totalCount: - type: integer - format: int32 - v1ListEligibleNodesForPlanResponse: - type: object - properties: - nodes: - type: array - items: - $ref: "#/components/schemas/v1PlanLiveValidationNodeView" - v1ListEnvironmentVariablesResponse: - type: object - properties: - environmentVariables: - type: array - items: - $ref: "#/components/schemas/v1EnvironmentVariable" - totalCount: - type: integer - format: int32 - v1ListFirewallAddressGroupsResponse: - type: object - properties: - groups: - type: array - items: - $ref: "#/components/schemas/v1FirewallAddressGroup" - totalCount: - type: integer - format: int32 - v1ListFirewallRuleSetsResponse: - type: object - properties: - rulesets: - type: array - items: - $ref: "#/components/schemas/v1FirewallRuleSet" - totalCount: - type: integer - format: int32 - v1ListFirewallRulesResponse: - type: object - properties: - rules: - type: array - items: - $ref: "#/components/schemas/v1FirewallRuleResource" - totalCount: - type: integer - format: int32 - v1ListGroupsResponse: - type: object - properties: - groups: - type: array - items: - $ref: "#/components/schemas/v1Group" - totalCount: - type: integer - format: int32 - v1ListInstantAppsResponse: - type: object - properties: - instantApps: - type: array - items: - $ref: "#/components/schemas/v1InstantApp" - totalCount: - type: integer - format: int32 - v1ListInternalCommentsResponse: - type: object - properties: - comments: - type: array - items: - $ref: "#/components/schemas/v1TicketInternalComment" - v1ListInvitesResponse: - type: object - properties: - invites: - type: array - items: - $ref: "#/components/schemas/v1Invite" - totalCount: - type: integer - format: int32 - v1ListInvoicesResponse: - type: object - properties: - invoices: - type: array - items: - $ref: "#/components/schemas/v1Invoice" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListLinkedIdentitiesResponse: - type: object - properties: - identities: - type: array - items: - $ref: "#/components/schemas/v1LinkedIdentity" - hasPassword: - type: boolean - description: True when the user has a local password (can unlink their last SSO - identity). - v1ListMarketplaceProviderDirectoryResponse: - type: object - properties: - providers: - type: array - items: - $ref: "#/components/schemas/v1ProviderInfo" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListMetricsResponse: - type: object - properties: - metrics: - type: array - items: - $ref: "#/components/schemas/v1Metric" - totalCount: - type: integer - format: int32 - v1ListMetricsWriteCredentialsResponse: - type: object - properties: - credentials: - type: array - items: - $ref: "#/components/schemas/v1MetricsWriteCredential" - totalCount: - type: integer - format: int32 - v1ListMyInvitesResponse: - type: object - properties: - invites: - type: array - items: - $ref: "#/components/schemas/v1Invite" - totalCount: - type: integer - format: int32 - v1ListNetworkNodesResponse: - type: object - properties: - nodes: - type: array - items: - $ref: "#/components/schemas/v1Node" - title: List of nodes assigned to this network - v1ListNetworksResponse: - type: object - properties: - networks: - type: array - items: - $ref: "#/components/schemas/v1Network" - total: - type: integer - format: int32 - v1ListNodesResponse: - type: object - properties: - nodes: - type: array - items: - $ref: "#/components/schemas/v1NodeWithExpandedRegion" - totalCount: - type: integer - format: int32 - v1ListNotificationSettingsResponse: - type: object - properties: - notificationSettings: - type: array - items: - $ref: "#/components/schemas/v1NotificationSetting" - totalCount: - type: integer - format: int32 - v1ListNotificationTemplatesResponse: - type: object - properties: - notificationTemplates: - type: array - items: - $ref: "#/components/schemas/v1NotificationTemplate" - totalCount: - type: integer - format: int32 - v1ListOAuth2ClientsResponse: - type: object - properties: - clients: - type: array - items: - $ref: "#/components/schemas/v1OAuth2Client" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListOrganizationsResponse: - type: object - properties: - organizations: - type: array - items: - $ref: "#/components/schemas/v1Organization" - totalCount: - type: integer - format: int32 - v1ListPaymentMethodsResponse: - type: object - properties: - paymentMethods: - type: array - items: - $ref: "#/components/schemas/v1PaymentMethod" - totalCount: - type: integer - format: int32 - v1ListPaymentsResponse: - type: object - properties: - payments: - type: array - items: - $ref: "#/components/schemas/v1Payment" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListPayoutInvoicesResponse: - type: object - properties: - payoutInvoices: - type: array - items: - $ref: "#/components/schemas/v1PayoutInvoice" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListPermissionsResponse: - type: object - properties: - permissions: - type: array - items: - $ref: "#/components/schemas/v1Permission" - totalCount: - type: integer - format: int32 - v1ListPlanLiveValidationBenchmarksResponse: - type: object - properties: - benchmarks: - type: array - items: - $ref: "#/components/schemas/v1PlanLiveValidationBenchmarkView" - v1ListPlanLiveValidationsResponse: - type: object - properties: - validations: - type: array - items: - $ref: "#/components/schemas/v1PlanLiveValidationView" - totalCount: - type: integer - format: int32 - v1ListPlansResponse: - type: object - properties: - plans: - type: array - items: - $ref: "#/components/schemas/v1Plan" - totalCount: - type: integer - format: int32 - v1ListPlatformsResponse: - type: object - properties: - platforms: - type: array - items: - $ref: "#/components/schemas/v1Platform" - totalCount: - type: integer - format: int32 - v1ListPrefixesResponse: - type: object - properties: - prefixes: - type: array - items: - $ref: "#/components/schemas/v1Prefix" - total: - type: integer - format: int32 - v1ListPreflightChecksResponse: - type: object - properties: - plans: - type: array - items: - $ref: "#/components/schemas/v1PlanPreflightView" - totalCount: - type: integer - format: int32 - marketplaceReadyCheckIntervalSeconds: - type: integer - format: int32 - description: Resolved from preflight.PLAN_MARKETPLACE_READY interval (seconds); - for UI scheduling hints. - marketplaceReadyCheckEnabled: - type: boolean - description: "Explicit presence: false when PLAN_MARKETPLACE_READY is disabled - in config (interval may be omitted as 0)." - v1ListProviderCustomerAssetsResponse: - type: object - properties: - assets: - type: array - items: - $ref: "#/components/schemas/v1ProviderCustomerAssetRow" - totalCount: - type: integer - format: int32 - v1ListProviderCustomersResponse: - type: object - properties: - customers: - type: array - items: - $ref: "#/components/schemas/v1ProviderCustomerRow" - totalCount: - type: integer - format: int32 - v1ListProviderReviewsResponse: - type: object - properties: - reviews: - type: array - items: - $ref: "#/components/schemas/v1ProviderReviewListItem" - totalCount: - type: integer - format: int32 - title: total matching current filters - providerTotalReviews: - type: integer - format: int32 - title: all reviews for this provider - providerAverageStar: - type: number - format: double - title: all reviews for this provider - providerStarSummary: - type: array - items: - $ref: "#/components/schemas/v1ProviderReviewStarSummary" - v1ListProvidersResponse: - type: object - properties: - providers: - type: array - items: - $ref: "#/components/schemas/v1ProviderInfo" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListRefundsResponse: - type: object - properties: - refunds: - type: array - items: - $ref: "#/components/schemas/v1Refund" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListRegionsResponse: - type: object - properties: - regions: - type: array - items: - $ref: "#/components/schemas/v1Region" - totalCount: - type: integer - format: int32 - v1ListRoadmapFeatureRequestCommentsResponse: - type: object - properties: - comments: - type: array - items: - $ref: "#/components/schemas/v1RoadmapFeatureRequestComment" - total: - type: integer - format: int32 - v1ListRoadmapFeatureRequestsResponse: - type: object - properties: - requests: - type: array - items: - $ref: "#/components/schemas/v1RoadmapFeatureRequest" - total: - type: integer - format: int32 - v1ListRoadmapProductCategoriesResponse: - type: object - properties: - products: - type: array - items: - $ref: "#/components/schemas/v1RoadmapProductCategory" - v1ListRolesResponse: - type: object - properties: - roles: - type: array - items: - $ref: "#/components/schemas/v1Role" - totalCount: - type: integer - format: int32 - v1ListSSHKeysResponse: - type: object - properties: - sshKeys: - type: array - items: - $ref: "#/components/schemas/v1SSHKey" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListSecretsResponse: - type: object - properties: - secrets: - type: array - items: - $ref: "#/components/schemas/v1Secret" - totalCount: - type: integer - format: int32 - v1ListServiceAccountTokensResponse: - type: object - properties: - tokens: - type: array - items: - $ref: "#/components/schemas/v1ServiceAccountTokenInfo" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListServiceAccountsResponse: - type: object - properties: - serviceAccounts: - type: array - items: - $ref: "#/components/schemas/v1ServiceAccountResponse" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - v1ListSnapshotsResponse: - type: object - properties: - snapshots: - type: array - items: - $ref: "#/components/schemas/v1Snapshot" - totalCount: - type: integer - format: int32 - v1ListSubscriptionsResponse: - type: object - properties: - subscriptions: - type: array - items: - $ref: "#/components/schemas/v1Subscription" - totalCount: - type: integer - format: int32 - v1ListSupportedCurrenciesResponse: - type: object - properties: - currencies: - type: array - items: - type: string - title: List of supported currency codes - lastUpdated: - type: string - format: int64 - title: Timestamp when rates were last updated - v1ListTicketAttachmentsResponse: - type: object - properties: - attachments: - type: array - items: - $ref: "#/components/schemas/v1TicketAttachment" - v1ListTicketTemplatesResponse: - type: object - properties: - ticketTemplates: - type: array - items: - $ref: "#/components/schemas/v1TicketTemplate" - totalCount: - type: integer - format: int32 - availableVariables: - type: array - items: - $ref: "#/components/schemas/v1TicketTemplateVariableDefinition" - v1ListTicketsResponse: - type: object - properties: - tickets: - type: array - items: - $ref: "#/components/schemas/v1Ticket" - totalCount: - type: integer - format: int32 - userDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1UserDetails" - title: Map of user ID to user details (first_name, last_name) - organizationDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1OrganizationDetails" - title: Map of organization ID to organization name - v1ListUsageRecordsResponse: - type: object - properties: - usageRecords: - type: array - items: - $ref: "#/components/schemas/v1UsageRecord" - totalCount: - type: integer - format: int32 - v1ListUsersResponse: - type: object - properties: - users: - type: array - items: - $ref: "#/components/schemas/v1User" - totalCount: - type: integer - format: int32 - v1ListVMTagsResponse: - type: object - properties: - tags: - type: array - items: - type: string - title: List of unique tags from all VMs belonging to the organization - totalCount: - type: integer - format: int32 - title: Total number of unique tags - v1ListVMTemplatesResponse: - type: object - properties: - vmTemplates: - type: array - items: - $ref: "#/components/schemas/v1VMTemplate" - totalCount: - type: integer - format: int32 - totalPages: - type: integer - format: int32 - description: Page count when pagination packs whole node groups (never splits a - node across pages). - v1ListVirtualMachineSmtpOutboundPoliciesResponse: - type: object - properties: - policies: - type: array - items: - $ref: "#/components/schemas/v1VirtualMachineSmtpOutboundPolicyView" - totalCount: - type: integer - format: int32 - v1ListVirtualMachinesResponse: - type: object - properties: - virtualMachines: - type: array - items: - $ref: "#/components/schemas/v1VirtualMachine" - totalCount: - type: integer - format: int32 - v1LiveValidationCheckView: - type: object - properties: - code: - type: string - passed: - type: boolean - note: - type: string - v1LoginMfaVerifyRequest: - type: object - properties: - loginSessionId: - type: string - code: - type: string - description: Authenticator TOTP code or a one-time recovery code. - v1LoginRequest: - type: object - properties: - email: - type: string - password: - type: string - turnstileToken: - type: string - description: Cloudflare Turnstile token from the client widget (optional unless - auth.turnstile is enabled). - v1LoginResponse: - type: object - properties: - token: - type: string - description: Present when MFA is not required (or after LoginMfaVerify succeeds). - organizationId: - type: string - mfaRequired: - type: boolean - description: When true, token/organization_id are empty and login_session_id - must be used with LoginMfaVerify. - loginSessionId: - type: string - v1LogoutRequest: - type: object - properties: - invalidateAll: - type: boolean - v1ManualPayout: - type: object - properties: - id: - type: string - title: Manual payout account ID - country: - type: string - title: ISO 3166-1 alpha-2 country code - iban: - type: string - title: International Bank Account Number (for SEPA countries) - bic: - type: string - title: Bank Identifier Code / SWIFT code (for SEPA countries) - accountNumber: - type: string - title: Bank account number (for non-SEPA countries) - routingNumber: - type: string - title: Routing number (for US accounts) or sort code (for UK accounts) - accountHolderName: - type: string - title: Name of the account holder - bankName: - type: string - title: Name of the bank - isVerified: - type: boolean - title: Whether the payout account has been verified by admin - verificationNotes: - type: string - title: Admin notes about verification status - notes: - type: string - title: User-provided notes about the payout account - createdAt: - type: string - format: date-time - title: Account creation timestamp - updatedAt: - type: string - format: date-time - title: Last update timestamp - v1MarketplaceSearchParsedQuery: - type: object - properties: - filterCity: - type: string - filterCountry: - type: string - filterPlanCode: - type: string - minVcpus: - type: integer - format: int32 - minRamGb: - type: integer - format: int32 - minDiskGb: - type: integer - format: int32 - filterBillingType: - $ref: "#/components/schemas/v1BillingType" - filterComputeType: - $ref: "#/components/schemas/v1ComputeType" - filterComputeCategory: - $ref: "#/components/schemas/v1ComputeCategory" - matchedTerms: - type: array - items: - type: string - parser: - type: string - description: Parser implementation id, e.g. "word_matcher" or future "llm". - description: Structured filters extracted from the user query (word matcher - today; LLM later). - v1MarketplaceSearchPlanPriceSummary: - type: object - properties: - id: - type: string - currency: - type: string - unitAmount: - type: string - unitName: - type: string - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - pricingModel: - $ref: "#/components/schemas/v1PricingModel" - metricName: - type: string - productType: - $ref: "#/components/schemas/v1ProductType" - metadata: - type: object - freeUnits: - type: integer - format: int32 - description: Included free units (e.g. bandwidth GB). Used for bandwidth - summaries in search. - overagePrice: - type: string - description: Overage unit price as decimal string (same precision as - PlanPrice.overage_price). - pricingFormula: - type: object - description: Percentage / formula pricing for add-ons (e.g. backup = % of VM - price). - v1MarketplaceSearchResult: - type: object - properties: - organizationId: - type: string - organizationName: - type: string - providerLogoUrl: - type: string - planId: - type: string - planCode: - type: string - vcpus: - type: integer - format: int32 - ramGb: - type: integer - format: int32 - diskGb: - type: integer - format: int32 - regionCity: - type: string - regionCountry: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - planPrice: - $ref: "#/components/schemas/v1MarketplaceSearchPlanPriceSummary" - addonPrices: - type: array - items: - $ref: "#/components/schemas/v1MarketplaceSearchPlanPriceSummary" - rating: - type: number - format: float - totalReviews: - type: integer - format: int32 - regionId: - type: string - title: Region UUID for this offer (one plan = one region after plan-model - change) - ddosProvider: - type: string - bandwidthPrices: - type: array - items: - $ref: "#/components/schemas/v1MarketplaceSearchPlanPriceSummary" - description: Bandwidth plan prices (egress/ingress) with free units + overage - for search UI. - v1Metadata: - type: object - properties: - name: - type: string - version: - type: string - versionDetails: - type: string - buildDate: - type: string - buildCommit: - type: string - buildBranch: - type: string - buildTag: - type: string - v1Metric: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - title: Metric identification - code: - type: string - description: - type: string - metricType: - $ref: "#/components/schemas/v1MetricType" - aggregationType: - $ref: "#/components/schemas/v1AggregationType" - unit: - type: string - unitPlural: - type: string - billable: - type: boolean - title: Billing configuration - recurring: - type: boolean - retentionDays: - type: integer - format: int32 - externalId: - type: string - title: External integration - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1MetricAggregation: - type: string - enum: - - METRIC_AGGREGATION_UNSPECIFIED - - METRIC_AGGREGATION_SUM - - METRIC_AGGREGATION_MAX - - METRIC_AGGREGATION_LAST_DURING_PERIOD - - METRIC_AGGREGATION_COUNT - default: METRIC_AGGREGATION_UNSPECIFIED - v1MetricType: - type: string - enum: - - METRIC_TYPE_UNSPECIFIED - - METRIC_TYPE_COUNTER - - METRIC_TYPE_GAUGE - - METRIC_TYPE_HISTOGRAM - - METRIC_TYPE_SUMMARY - default: METRIC_TYPE_UNSPECIFIED - v1MetricsWriteCredential: - type: object - properties: - id: - type: string - publicId: - type: string - name: - type: string - scopes: - type: array - items: - type: string - agentId: - type: string - organizationId: - type: string - createTime: - type: string - format: date-time - expiresAt: - type: string - format: date-time - revokedAt: - type: string - format: date-time - lastUsedAt: - type: string - format: date-time - v1Network: - type: object - properties: - id: - type: string - title: Fields - dnsServers: - type: array - items: - type: string - title: DNS server IP addresses (e.g., ["8.8.8.8", "1.1.1.1"]) - name: - type: string - description: - type: string - organizationId: - type: string - title: Relations - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - nodes: - type: array - items: - $ref: "#/components/schemas/v1NetworkNode" - title: Nodes connected to this network (only populated in ListNetworks response) - macAddressPrefix: - type: string - description: "First 3 octets for MAC allocation within this network (e.g. - BC:24:11). Default: BC:24:11." - v1NetworkNode: - type: object - properties: - id: - type: string - name: - type: string - title: NetworkNode represents a node connected to a network (simplified info) - v1Node: - type: object - properties: - id: - type: string - title: Identification - name: - type: string - serviceStatus: - $ref: "#/components/schemas/v1ServiceStatus" - platform: - type: string - title: Relations - region: - type: string - organizationId: - type: string - inventory: - $ref: "#/components/schemas/v1NodeInventory" - cpuOverallocatePercent: - type: integer - format: int32 - title: Overallocation - memoryOverallocatePercent: - type: integer - format: int32 - storageOverallocatePercent: - type: integer - format: int32 - networkId: - type: string - description: Network ID this node is assigned to (optional) - title: Network assignment (IPAM) - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - maintenanceMode: - type: boolean - title: Maintenance mode - when enabled, reconciliation loop skips Proxmox state - checks - vmidSeed: - type: integer - format: int32 - title: VM ID seed - starting point for VM ID generation on this node - vmStorageDestination: - type: string - description: Proxmox storage ID for new VM root disks (e.g. local-lvm). - backupStorageDestination: - type: string - backupStorageCompression: - $ref: "#/components/schemas/v1BackupStorageCompression" - networkBridge: - type: string - description: >- - Node provisioning settings (copied into ProxmoxVM CR at generation - time) - - Proxmox Linux bridge for VM primary NIC (e.g. vmbr0). Default: vmbr0. - networkName: - type: string - description: "Proxmox net device key for primary NIC (e.g. net0). Default: net0." - networkVlanId: - type: integer - format: int32 - description: 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged. - networkModel: - type: string - description: "Proxmox NIC model for primary NIC (virtio, e1000, ...). Default: - virtio." - computeType: - $ref: "#/components/schemas/v1NodeComputeType" - hasCpuTopology: - type: boolean - description: |- - True when a dedicated node has a parsed CPU topology document stored - (required before dedicated preflight can pass). - cpuCatalogSupported: - type: boolean - description: >- - True when the host CPU model matches a cpu_catalog row with - is_supported. - - False when the model is missing, unmatched, or matched but not supported. - v1NodeCPUMapCPU: - type: object - properties: - cpu: - type: integer - format: int32 - description: Host logical CPU id (the affinity bit). - core: - type: integer - format: int32 - description: Physical core id (unique within a socket). - socket: - type: integer - format: int32 - numa: - type: integer - format: int32 - siblings: - type: array - items: - type: integer - format: int32 - description: Full SMT sibling set including this CPU. - cpuStatus: - $ref: "#/components/schemas/v1NodeCPUStatus" - vmId: - type: string - description: Set when cpu_status is ALLOCATED_NR. - vmHostname: - type: string - v1NodeCPUMapNUMA: - type: object - properties: - id: - type: integer - format: int32 - sockets: - type: array - items: - type: integer - format: int32 - memoryMb: - type: string - format: int64 - memoryReservedMb: - type: string - format: int64 - description: Host reserve withheld from VMs on this NUMA node. - memoryAllocatedMb: - type: string - format: int64 - description: Memory attributed to NodeRings VMs placed on this NUMA node. - memoryFreeMb: - type: string - format: int64 - totalCores: - type: integer - format: int32 - description: Logical CPU (vCPU) counts on this NUMA node — sellable capacity - units. - freeCores: - type: integer - format: int32 - memoryEstimated: - type: boolean - v1NodeCPUStatus: - type: string - enum: - - NODE_CPU_STATUS_UNSPECIFIED - - NODE_CPU_STATUS_AVAILABLE - - NODE_CPU_STATUS_ALLOCATED_NR - - NODE_CPU_STATUS_PINNED_FOREIGN - - NODE_CPU_STATUS_DRIFT - default: NODE_CPU_STATUS_UNSPECIFIED - description: >- - Occupancy status of one host logical CPU (affinity bit). - - - NODE_CPU_STATUS_ALLOCATED_NR: Allocated to a NodeRings VM (vm_id/vm_hostname set). - - NODE_CPU_STATUS_PINNED_FOREIGN: Pinned by a foreign (non-NodeRings) guest per exporter observation. - - NODE_CPU_STATUS_DRIFT: DB expectation and exporter observation disagree for this CPU. - v1NodeComputeType: - type: string - enum: - - NODE_COMPUTE_TYPE_UNSPECIFIED - - NODE_COMPUTE_TYPE_SHARED - - NODE_COMPUTE_TYPE_DEDICATED - default: NODE_COMPUTE_TYPE_UNSPECIFIED - description: >- - Compute product hosted by a node. Exclusive: a node is shared XOR - dedicated - - (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - - - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - v1NodeInventory: - type: object - properties: - cpuType: - $ref: "#/components/schemas/v1CPUType" - cpuCore: - type: integer - format: int32 - cpuCoreAllocated: - type: integer - format: int32 - storagePools: - type: array - items: - $ref: "#/components/schemas/v1StoragePool" - memory: - type: integer - format: int32 - memoryAllocated: - type: integer - format: int32 - v1NodePlacementPolicy: - type: object - properties: - defaultStrategy: - $ref: "#/components/schemas/v1NodePlacementStrategy" - regionOverrides: - type: array - items: - $ref: "#/components/schemas/v1NodePlacementRegionOverride" - v1NodePlacementRegionOverride: - type: object - properties: - regionId: - type: string - strategy: - $ref: "#/components/schemas/v1NodePlacementStrategy" - v1NodePlacementStrategy: - type: string - enum: - - NODE_PLACEMENT_STRATEGY_UNSPECIFIED - - NODE_PLACEMENT_STRATEGY_FIRST_STABLE - - NODE_PLACEMENT_STRATEGY_ROUND_ROBIN - - NODE_PLACEMENT_STRATEGY_LEAST_ASSIGNED_VMS - - NODE_PLACEMENT_STRATEGY_RANDOM - default: NODE_PLACEMENT_STRATEGY_UNSPECIFIED - v1NodeWithExpandedRegion: - type: object - properties: - node: - $ref: "#/components/schemas/v1Node" - expandedRegion: - $ref: "#/components/schemas/v1Region" - v1NotificationSetting: - type: object - properties: - id: - type: string - title: Fields - enabled: - type: boolean - type: - type: string - user: - type: string - title: Relations - organization: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1NotificationTemplate: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - emailSubjectTemplate: - type: string - emailBodyTemplate: - type: string - smsBodyTemplate: - type: string - webhookBodyTemplate: - type: string - pushNotificationTitleTemplate: - type: string - pushNotificationBodyTemplate: - type: string - contentType: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1OAuth2Client: - type: object - properties: - clientId: - type: string - name: - type: string - description: - type: string - redirectUris: - type: array - items: - type: string - scopes: - type: array - items: - type: string - clientType: - type: string - requiresPkce: - type: boolean - isActive: - type: boolean - v1OperationStatus: - type: string - enum: - - OPERATION_STATUS_UNSPECIFIED - - OPERATION_STATUS_CREATED - - OPERATION_STATUS_STARTED - - OPERATION_STATUS_STOPPED - - OPERATION_STATUS_DELETED - - OPERATION_STATUS_RESTARTED - - OPERATION_STATUS_REINSTALLING - default: OPERATION_STATUS_UNSPECIFIED - v1Organization: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - type: - $ref: "#/components/schemas/v1OrganizationType" - enforceMfa: - type: boolean - enforceVerifiedDomain: - type: boolean - enforceSso: - type: boolean - asn: - type: string - format: int64 - owner: - type: string - title: Relations - domains: - type: array - items: - type: string - groups: - type: array - items: - type: string - organizationRoles: - type: array - items: - type: string - subscriptions: - type: array - items: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - providerLogoUrl: - type: string - title: Provider marketplace logo (data URL or https URL); only used for provider - organizations - ddosProvider: - type: string - description: DDoS mitigation partner slug (e.g. "none"). Provider organizations - only. - providerWebsiteUrl: - type: string - description: Public storefront / company website (http or https). Provider - organizations only. - isVerified: - type: boolean - description: Provider marketplace / admin verification (first-class fields; not - part of metadata). - reviewRequested: - type: boolean - onboarded: - type: boolean - description: True after the provider has completed the self-serve onboarding - checklist once. - title: Organization object for providers and clients - v1OrganizationDetails: - type: object - properties: - name: - type: string - orgType: - type: string - title: OrganizationDetails contains organization information - v1OrganizationType: - type: string - enum: - - ORGANIZATION_TYPE_UNSPECIFIED - - ORGANIZATION_TYPE_PROVIDER - - ORGANIZATION_TYPE_CLIENT - default: ORGANIZATION_TYPE_UNSPECIFIED - v1Payment: - type: object - properties: - id: - type: string - invoiceId: - type: string - title: Invoice this payment is for - paymentMethodId: - type: string - title: Payment method used for this payment - paymentStatus: - $ref: "#/components/schemas/v1PaymentStatus" - amount: - type: string - title: Decimal string with 6 decimal places precision - currency: - type: string - title: Currency code (ISO 4217) - transactionId: - type: string - title: Payment provider transaction ID - paymentProvider: - type: string - title: Payment provider name (e.g., 'stripe', 'paypal') - failureReason: - type: string - title: Reason for payment failure (if applicable) - failureCode: - type: string - title: Payment provider failure code (if applicable) - processedAt: - type: string - format: date-time - title: When payment was processed - refundAmount: - type: string - title: Decimal string with 6 decimal places precision - refundReason: - type: string - title: Reason for refund (if applicable) - refundedAt: - type: string - format: date-time - title: When payment was refunded - createdAt: - type: string - format: date-time - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: Payment represents a payment transaction for an invoice - v1PaymentMethod: - type: object - properties: - id: - type: string - customerId: - type: string - title: Payment provider customer ID - paymentProviderPaymentMethodId: - type: string - title: Payment provider payment method ID (e.g., Stripe payment method ID, - type: - type: string - description: 'Payment method type: "card", "paypal", etc.' - title: PayPal billing agreement ID) - last4: - type: string - title: Last 4 digits (for cards) - brand: - type: string - description: 'Card brand (for cards): "visa", "mastercard", etc.' - expiryMonth: - type: integer - format: int32 - title: Expiry month (for cards, 1-12) - expiryYear: - type: integer - format: int32 - title: Expiry year (for cards) - isDefault: - type: boolean - title: Whether this is the default payment method - metadata: - type: object - title: Payment method metadata - createdAt: - type: string - format: date-time - title: When payment method was attached - organizationId: - type: string - description: Organization that owns this payment method - title: Relations - subscriptionId: - type: string - title: "Optional: Subscription this payment method is associated with" - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: PaymentMethod represents a payment method attached to a - customer/organization - v1PaymentStatus: - type: string - enum: - - PAYMENT_STATUS_UNSPECIFIED - - PAYMENT_STATUS_PENDING - - PAYMENT_STATUS_PROCESSING - - PAYMENT_STATUS_SUCCEEDED - - PAYMENT_STATUS_FAILED - - PAYMENT_STATUS_CANCELED - - PAYMENT_STATUS_REFUNDED - - PAYMENT_STATUS_PARTIALLY_REFUNDED - default: PAYMENT_STATUS_UNSPECIFIED - v1PayoutConfiguration: - type: object - properties: - scheduleType: - $ref: "#/components/schemas/v1PayoutScheduleType" - scheduleTime: - type: string - title: Time in HH:MM format (24-hour, UTC) - e.g., "09:00" for 9 AM - scheduleTimezone: - type: string - title: IANA timezone identifier (e.g., "UTC", "America/New_York") - defaults to - "UTC" - enabled: - type: boolean - title: "Whether payout configuration is enabled (default: true)" - v1PayoutInvoice: - type: object - properties: - id: - type: string - title: PayoutInvoice ID - amount: - type: string - title: Payout amount (decimal string with 6 decimal places precision) - platformFeeAmount: - type: string - title: Platform fee deducted from this payout (decimal string with 6 decimal - places precision) - currency: - type: string - title: Currency code (ISO 4217) - payoutStatus: - $ref: "#/components/schemas/v1PayoutStatus" - transferTransactionId: - type: string - title: Payment provider transfer transaction ID - paymentProvider: - type: string - title: Payment provider name (e.g., 'stripe', 'paypal') - connectAccountId: - type: string - title: Provider's Connect account ID - processedAt: - type: string - format: date-time - title: When payout transfer was initiated/processed - completedAt: - type: string - format: date-time - title: When payout transfer was completed - failedAt: - type: string - format: date-time - title: When payout transfer failed - failureReason: - type: string - title: Reason for payout failure (if applicable) - failureCode: - type: string - title: Payment provider failure code (if applicable) - retryCount: - type: integer - format: int32 - title: Number of retry attempts for failed transfers - maxRetries: - type: integer - format: int32 - title: Maximum number of retry attempts - lastRetryAt: - type: string - format: date-time - title: Timestamp of last retry attempt - invoiceIds: - type: array - items: - type: string - title: IDs of client invoices that contributed to this payout - providerOrganizationId: - type: string - title: Provider organization that receives this payout - metadata: - type: object - title: Additional metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1PayoutScheduleType: - type: string - enum: - - PAYOUT_SCHEDULE_TYPE_UNSPECIFIED - - PAYOUT_SCHEDULE_TYPE_IMMEDIATE - - PAYOUT_SCHEDULE_TYPE_DAILY - - PAYOUT_SCHEDULE_TYPE_WEEKLY - - PAYOUT_SCHEDULE_TYPE_MONTHLY - default: PAYOUT_SCHEDULE_TYPE_UNSPECIFIED - description: >- - - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment - succeeds - - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time - - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time - - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time - title: Payout Configuration - v1PayoutStatus: - type: string - enum: - - PAYOUT_STATUS_UNSPECIFIED - - PAYOUT_STATUS_PENDING - - PAYOUT_STATUS_PROCESSING - - PAYOUT_STATUS_COMPLETED - - PAYOUT_STATUS_FAILED - - PAYOUT_STATUS_CANCELED - default: PAYOUT_STATUS_UNSPECIFIED - title: PayoutInvoice messages - v1Permission: - type: object - properties: - id: - type: string - methodName: - type: string - httpMethod: - type: string - serviceName: - type: string - scope: - type: string - v1Plan: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - code: - type: string - endUser: - $ref: "#/components/schemas/v1EndUser" - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - planType: - $ref: "#/components/schemas/v1PlanType" - billingType: - $ref: "#/components/schemas/v1BillingType" - assetCategory: - $ref: "#/components/schemas/v1AssetCategory" - assetType: - $ref: "#/components/schemas/v1AssetType" - planCategory: - $ref: "#/components/schemas/v1PlanCategory" - currency: - type: string - setupFee: - type: string - title: Decimal string with 6 decimal places - trialDays: - type: integer - format: int32 - title: precision (e.g., "10.00" for $10.00) - trialAvailable: - type: boolean - gracePeriodDays: - type: integer - format: int32 - autoRenew: - type: boolean - maxSubscribers: - type: integer - format: int32 - isPublic: - type: boolean - slaHours: - type: integer - format: int32 - requiresManualApproval: - type: boolean - effectiveFrom: - type: string - format: date-time - effectiveUntil: - type: string - format: date-time - externalBillingId: - type: string - templatePlanId: - type: string - rulesetIds: - type: array - items: - type: string - title: Relations - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPrice" - subscriptionIds: - type: array - items: - type: string - regionIds: - type: array - items: - type: string - nodeIds: - type: array - items: - type: string - description: Nodes explicitly assigned to this plan (placement / preflight - candidates). - organizationName: - type: string - description: Name of the organization that owns this plan - title: Organization/tenant information - onCreditExhaustion: - type: string - description: >- - Provider choice when client prepaid credits are exhausted. - - Values: "suspend" (default), "continue_with_dunning". Relevant for usage-based Offerings. - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1PlanCategory: - type: string - enum: - - PLAN_CATEGORY_UNSPECIFIED - - PLAN_CATEGORY_FREE - - PLAN_CATEGORY_STARTER - - PLAN_CATEGORY_PREMIUM - - PLAN_CATEGORY_CUSTOM - default: PLAN_CATEGORY_UNSPECIFIED - v1PlanLiveValidationBenchmarkView: - type: object - properties: - id: - type: string - createTime: - type: string - format: date-time - passed: - type: boolean - cpu: - type: object - memory: - type: object - storage: - type: object - network: - type: object - misc: - type: object - planId: - type: string - nodeId: - type: string - planCode: - type: string - nodeName: - type: string - v1PlanLiveValidationNodeView: - type: object - properties: - nodeId: - type: string - nodeName: - type: string - regionId: - type: string - regionName: - type: string - v1PlanLiveValidationView: - type: object - properties: - planId: - type: string - planCode: - type: string - nodeId: - type: string - passed: - type: boolean - status: - type: string - phase: - type: string - includeBenchmarking: - type: boolean - summaryNote: - type: string - checks: - type: array - items: - $ref: "#/components/schemas/v1LiveValidationCheckView" - marketplaceLiveValidated: - type: boolean - nodeName: - type: string - regionName: - type: string - checkedAt: - type: string - format: date-time - startedAt: - type: string - format: date-time - v1PlanPreflightView: - type: object - properties: - planCode: - type: string - planName: - type: string - marketplaceReady: - type: boolean - summaryNote: - type: string - planChecks: - type: array - items: - $ref: "#/components/schemas/v1PreflightCheckView" - infrastructure: - type: array - items: - $ref: "#/components/schemas/v1PreflightInfrastructureView" - planId: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - summaryIssues: - type: array - items: - type: string - regionLabels: - type: array - items: - type: string - v1PlanPrice: - type: object - properties: - id: - type: string - title: Fields - pricingModel: - $ref: "#/components/schemas/v1PricingModel" - chargeTiming: - $ref: "#/components/schemas/v1ChargeTiming" - tierMode: - $ref: "#/components/schemas/v1TierMode" - currency: - type: string - title: Pricing details - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - unitName: - type: string - unitQuantity: - type: integer - format: int32 - metricName: - type: string - title: Usage-based pricing - metricAggregation: - $ref: "#/components/schemas/v1MetricAggregation" - packageSize: - type: integer - format: int32 - title: Package pricing - packagePrice: - type: string - title: Decimal string with 6 decimal places precision - overagePrice: - type: string - title: Decimal string with 6 decimal places precision - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - billingInterval: - type: integer - format: int32 - minimumCharge: - type: string - description: Decimal string with 6 decimal places precision - title: Minimum and maximum charges - maximumCharge: - type: string - title: Decimal string with 6 decimal places precision - freeUnits: - type: integer - format: int32 - title: Free tier configuration - freeAmount: - type: string - title: Decimal string with 6 decimal places precision - prorate: - type: boolean - title: Proration and billing - metered: - type: boolean - effectiveFrom: - type: string - format: date-time - title: Status and lifecycle - effectiveUntil: - type: string - format: date-time - externalId: - type: string - title: External integration - productType: - $ref: "#/components/schemas/v1ProductType" - parentPlanId: - type: string - title: "For addon prices: reference to parent plan (percentage-based pricing)" - minQuantity: - type: integer - format: int32 - title: Minimum quantity (primarily for addons) - maxQuantity: - type: integer - format: int32 - title: Maximum quantity (primarily for addons) - pricingFormula: - type: object - title: Pricing formula for percentage/complex calculations - planPrices: - type: array - items: - $ref: "#/components/schemas/v1Plan" - title: Relations - pricingTierIds: - type: array - items: - type: string - subscriptionTemplateIds: - type: array - items: - type: string - metricIds: - type: array - items: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1PlanPriceInput: - type: object - properties: - pricingModel: - $ref: "#/components/schemas/v1PricingModel" - chargeTiming: - $ref: "#/components/schemas/v1ChargeTiming" - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - billingInterval: - type: integer - format: int32 - unitAmount: - type: string - description: Decimal string with 6 decimal places precision - title: Fixed & usage-based pricing - unitName: - type: string - unitQuantity: - type: integer - format: int32 - metricName: - type: string - title: Usage-based specific - metricAggregation: - $ref: "#/components/schemas/v1MetricAggregation" - freeUnits: - type: integer - format: int32 - minimumCharge: - type: string - title: Decimal string with 6 decimal places precision - maximumCharge: - type: string - title: Decimal string with 6 decimal places precision - packageSize: - type: integer - format: int32 - title: Package pricing - packagePrice: - type: string - title: Decimal string with 6 decimal places precision - overagePrice: - type: string - title: Decimal string with 6 decimal places precision - tiers: - type: array - items: - $ref: "#/components/schemas/v1PricingTierInput" - title: Tiered pricing - prorate: - type: boolean - title: Proration - productType: - $ref: "#/components/schemas/v1ProductType" - addonCode: - type: string - title: Addon code (required if product_type is PRODUCT_TYPE_ADDON) - pricingFormula: - type: object - title: |- - Pricing formula for percentage-based or complex pricing - Example: {"type": "percentage", "value": 30.0, "base": - "parent_plan.total_price"} - v1PlanPriceOverride: - type: object - properties: - metricId: - type: string - planPriceId: - type: string - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - freeUnits: - type: integer - format: int32 - minimumCharge: - type: string - title: Decimal string with 6 decimal places precision - maximumCharge: - type: string - title: Decimal string with 6 decimal places precision - description: >- - PlanPriceOverride allows overriding specific fields for plan prices when - - cloning. Either metric_id (for usage-based pricing) or plan_price_id (for - - fixed pricing) must be provided to identify which plan price to override. - v1PlanPricingConfig: - type: object - properties: - planName: - type: string - title: Plan metadata - assetCategory: - type: string - assetType: - type: string - currency: - type: string - prices: - type: array - items: - $ref: "#/components/schemas/v1PlanPriceInput" - title: Pricing models (at least one required) - v1PlanRegion: - type: object - properties: - regionId: - type: string - title: Region ID - country: - type: string - title: Country name from CityCountry - city: - type: string - title: City name from CityCountry - latitude: - type: number - format: double - title: Latitude from CityCountry - longitude: - type: number - format: double - title: Longitude from CityCountry - description: >- - Plan region information (simplified for marketplace). - - Used by ListProviders (ProviderInfo.plan_regions), GetProvider (ProviderCatalogPlan.regions), - - and encoded by the same backend helpers as plan-linked region edges. - v1PlanType: - type: string - enum: - - PLAN_TYPE_UNSPECIFIED - - PLAN_TYPE_FREE - - PLAN_TYPE_TRIAL - - PLAN_TYPE_PAID - - PLAN_TYPE_ENTERPRISE - default: PLAN_TYPE_UNSPECIFIED - v1Platform: - type: object - properties: - id: - type: string - title: Fields - driver: - $ref: "#/components/schemas/v1PlatformDriver" - name: - type: string - endpointUrl: - type: string - serviceStatus: - $ref: "#/components/schemas/v1ServiceStatus" - organizationId: - type: string - agentId: - type: string - metadata: - type: object - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1PlatformDriver: - type: string - enum: - - PLATFORM_DRIVER_UNSPECIFIED - - PLATFORM_DRIVER_PROXMOX - default: PLATFORM_DRIVER_UNSPECIFIED - v1PlatformVersions: - type: object - properties: - components: - type: array - items: - $ref: "#/components/schemas/v1ComponentVersion" - schemaVersion: - type: string - description: Schema version for forward-compatible clients (currently "1"). - description: PlatformVersions is the install matrix for provider CLI tooling and - cluster components. - v1Prefix: - type: object - properties: - id: - type: string - title: Fields - cidr: - type: string - title: Network prefix in CIDR notation (e.g., 10.0.0.0/24, 2001:db8::/64) - gateway: - type: string - description: Default gateway IP (e.g., 10.0.0.1). Must be within the prefix CIDR. - reservedIps: - type: array - items: - type: string - title: List of reserved IP addresses (e.g., ["10.0.0.1", "10.0.0.100"]) - allocationStrategy: - $ref: "#/components/schemas/v1AllocationStrategy" - description: - type: string - networkId: - type: string - description: Network this prefix belongs to (for DNS servers). Optional. - title: Relations - organizationId: - type: string - metadata: - type: object - title: Metadata - timestamps: - $ref: "#/components/schemas/v1Timestamps" - vmAssignmentPrefixLength: - type: integer - format: int32 - title: "IPv6 only: VM assignment length (64, 128, …)" - reservedPrefixes: - type: array - items: - type: string - title: Reserved sub-prefix CIDRs at assignment length - v1PreflightAgentView: - type: object - properties: - id: - type: string - name: - type: string - checks: - type: array - items: - $ref: "#/components/schemas/v1PreflightCheckView" - platform: - $ref: "#/components/schemas/v1PreflightPlatformView" - v1PreflightCheckView: - type: object - properties: - code: - type: string - passed: - type: boolean - note: - type: string - subChecks: - type: array - items: - $ref: "#/components/schemas/v1PreflightCheckView" - v1PreflightInfrastructureView: - type: object - properties: - passed: - type: boolean - agent: - $ref: "#/components/schemas/v1PreflightAgentView" - v1PreflightNodeView: - type: object - properties: - id: - type: string - name: - type: string - checks: - type: array - items: - $ref: "#/components/schemas/v1PreflightCheckView" - v1PreflightPlatformView: - type: object - properties: - id: - type: string - name: - type: string - checks: - type: array - items: - $ref: "#/components/schemas/v1PreflightCheckView" - node: - $ref: "#/components/schemas/v1PreflightNodeView" - v1PreviewNotificationTemplateResponse: - type: object - properties: - previewEmailSubject: - type: string - previewEmailBody: - type: string - previewSmsBody: - type: string - previewWebhookBody: - type: string - previewPushNotificationTitle: - type: string - previewPushNotificationBody: - type: string - v1PricingCalculationConfig: - type: object - properties: - capHours: - type: number - format: double - title: Maximum billable hours (default 730 for monthly cap) - taxRate: - type: number - format: double - title: Tax rate (e.g., 0.10 for 10%) - discountPercent: - type: number - format: double - title: Discounts - couponValue: - type: string - title: Decimal string with 6 decimal places precision (e.g., "5.00" for $5.00) - overageRates: - type: object - additionalProperties: - type: number - format: double - title: Overage rates (metric_name -> rate in minor currency units) - v1PricingLineItem: - type: object - properties: - instanceLabel: - type: string - title: Human-readable label - quantity: - type: integer - format: int32 - base: - type: string - title: Decimal string with 6 decimal places precision - addons: - type: string - title: Decimal string with 6 decimal places precision - subtotal: - type: string - title: Decimal string with 6 decimal places precision - currency: - type: string - v1PricingModel: - type: string - enum: - - PRICING_MODEL_UNSPECIFIED - - PRICING_MODEL_FIXED - - PRICING_MODEL_USAGE_BASED - - PRICING_MODEL_TIERED - - PRICING_MODEL_VOLUME - - PRICING_MODEL_GRADUATED - - PRICING_MODEL_PACKAGE - - PRICING_MODEL_HYBRID - default: PRICING_MODEL_UNSPECIFIED - v1PricingTierInput: - type: object - properties: - tierOrder: - type: integer - format: int32 - tierName: - type: string - startInclusive: - type: number - format: double - endExclusive: - type: number - format: double - title: null = unlimited - unitAmount: - type: string - title: Decimal string with 6 decimal places precision - tierType: - $ref: "#/components/schemas/v1TierMode" - flatFee: - type: boolean - flatFeeAmount: - type: string - title: Decimal string with 6 decimal places precision - v1ProductType: - type: string - enum: - - PRODUCT_TYPE_UNSPECIFIED - - PRODUCT_TYPE_PLAN - - PRODUCT_TYPE_ADDON - default: PRODUCT_TYPE_UNSPECIFIED - title: |- - - PRODUCT_TYPE_PLAN: Standalone subscription plan - - PRODUCT_TYPE_ADDON: Addon attached to a subscription - v1ProviderCatalogPlan: - type: object - properties: - planId: - type: string - planCode: - type: string - planName: - type: string - planDescription: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - computeType: - $ref: "#/components/schemas/v1ComputeType" - computeCategory: - $ref: "#/components/schemas/v1ComputeCategory" - regions: - type: array - items: - $ref: "#/components/schemas/v1PlanRegion" - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPrice" - description: >- - One public plan offering for a provider (GetProvider catalog). Reuses - PlanRegion + PlanPrice - - from the same marketplace encoding as ListProviders rows. - v1ProviderCustomerActivityFilter: - type: string - enum: - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ACTIVE - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_INACTIVE - default: PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED - description: >- - Active: at least one non-deleted VM from this provider. Inactive: all - VMs from this provider are soft-deleted (delete_time set). - - - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL: All customers (any VM history with this provider, including when every VM is soft-deleted). - v1ProviderCustomerAssetRow: - type: object - properties: - id: - type: string - assetType: - $ref: "#/components/schemas/v1ProviderCustomerAssetType" - displayName: - type: string - activityStatus: - $ref: "#/components/schemas/v1ProviderCustomerVmActivityStatus" - createdAt: - type: string - format: date-time - deleteTime: - type: string - format: date-time - description: Set when the VM was deleted or terminated (soft-delete). - spec: - type: string - description: Human-readable size, e.g. "2 vCPU · 4096 MB RAM · 80 GB disk". - region: - type: string - description: Region label, e.g. "Frankfurt, DE". - ipv4: - type: string - ipv6: - type: string - os: - type: string - description: OS/distro label from the VM template (e.g. ubuntu-22). - planName: - type: string - planCode: - type: string - description: Plan code (e.g. DC-HF-32C-…) from the subscription plan. - regionId: - type: string - description: UUID of the node's region (same dimension as - ListProviderCustomerAssetsRequest.region_id filter). - v1ProviderCustomerAssetType: - type: string - enum: - - PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED - - PROVIDER_CUSTOMER_ASSET_TYPE_ALL - - PROVIDER_CUSTOMER_ASSET_TYPE_VIRTUAL_MACHINE - - PROVIDER_CUSTOMER_ASSET_TYPE_DEDICATED_SERVER - - PROVIDER_CUSTOMER_ASSET_TYPE_GAME_SERVER - default: PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED - v1ProviderCustomerRow: - type: object - properties: - organizationId: - type: string - firstName: - type: string - lastName: - type: string - email: - type: string - organizationEnforceMfa: - type: boolean - description: When the client organization requires MFA for its members. - lastLoginTime: - type: string - format: date-time - organizationName: - type: string - addressSummary: - type: string - description: Best-effort summary from organization metadata (billing/address - keys). - vmActivityStatus: - $ref: "#/components/schemas/v1ProviderCustomerVmActivityStatus" - v1ProviderCustomerVmActivityStatus: - type: string - enum: - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_ACTIVE - - PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_INACTIVE - default: PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED - v1ProviderDashboardAddonCatalogRow: - type: object - properties: - addonId: - type: string - code: - type: string - name: - type: string - addonType: - $ref: "#/components/schemas/v1AddonType" - billingType: - $ref: "#/components/schemas/v1BillingType" - pricingModel: - $ref: "#/components/schemas/v1PricingModel" - distinctVmCount: - type: integer - format: int32 - distinctCustomerOrgCount: - type: integer - format: int32 - activeSubscriptionCount: - type: integer - format: int32 - v1ProviderDashboardNodeRollup: - type: object - properties: - nodeId: - type: string - nodeName: - type: string - platformId: - type: string - platformName: - type: string - regionId: - type: string - vmCount: - type: integer - format: int32 - soldCpuCores: - type: string - format: int64 - soldMemoryMb: - type: string - format: int64 - soldStorageGb: - type: string - format: int64 - capacityCpuCores: - type: integer - format: int32 - capacityMemoryMb: - type: string - format: int64 - nodeCpuCoreAllocated: - type: integer - format: int32 - nodeMemoryAllocatedMb: - type: string - format: int64 - cpuOverallocatePercent: - type: integer - format: int32 - memoryOverallocatePercent: - type: integer - format: int32 - storageOverallocatePercent: - type: integer - format: int32 - v1ProviderDashboardPlanSubscriptionStat: - type: object - properties: - planId: - type: string - name: - type: string - code: - type: string - billingType: - $ref: "#/components/schemas/v1BillingType" - billingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - assetType: - $ref: "#/components/schemas/v1AssetType" - activeSubscriptionCount: - type: integer - format: int32 - distinctCustomerOrgCount: - type: integer - format: int32 - vmAssetCount: - type: integer - format: int32 - v1ProviderDashboardPlansTabStats: - type: object - properties: - kpiPlanCount: - type: integer - format: int32 - kpiActiveSubscriptionsSum: - type: integer - format: int32 - kpiActiveAddonSubscriptionsSum: - type: integer - format: int32 - kpiVmAssetsSum: - type: integer - format: int32 - v1ProviderDetails: - type: object - properties: - provider: - $ref: "#/components/schemas/v1ProviderInfo" - website: - type: string - availableRegions: - type: array - items: - type: string - ddosSolution: - type: string - avgTicketResponseSeconds: - type: string - format: int64 - reviewBreakdown: - $ref: "#/components/schemas/v1ProviderReviewBreakdown" - availablePlans: - type: array - items: - $ref: "#/components/schemas/v1ProviderCatalogPlan" - hasIpv6: - type: boolean - description: >- - GetProvider payload: nested ProviderInfo shares the same core fields as - list rows; extended - - fields are provider-wide (website, review breakdown, catalog plans, etc.). - v1ProviderInfo: - type: object - properties: - organizationId: - type: string - organizationName: - type: string - description: - type: string - rating: - type: number - format: float - title: Average rating (0-5 stars) - totalReviews: - type: integer - format: int32 - title: Total number of reviews - planPrices: - type: array - items: - $ref: "#/components/schemas/v1PlanPrice" - title: All prices for the requested plan code (includes plan prices and addon - prices, same format as price calculator) - metadata: - type: object - title: Additional provider metadata - planRegions: - type: array - items: - $ref: "#/components/schemas/v1PlanRegion" - title: All regions where the plan is available (region_id, country, city) - planId: - type: string - title: The plan ID for the requested plan code - hasCapacityInFilteredRegion: - type: boolean - title: True if provider has at least one node with capacity in the filtered - region (plan + country + city) - providerLogoUrl: - type: string - ipv6AvailableInFilteredRegion: - type: boolean - description: True when the provider has at least one active IPv6 prefix on a - network attached to a node in the filtered region (country + city). - ddosProvider: - type: string - description: DDoS mitigation partner slug; "none" or empty means no DDoS vendor - icon in marketplace. - title: Provider information for marketplace/discovery - v1ProviderOnboardingStep: - type: object - properties: - code: - $ref: "#/components/schemas/v1ProviderOnboardingStepCode" - title: - type: string - description: - type: string - completed: - type: boolean - actionPath: - type: string - description: Deep-link path in the provider console (e.g. - "/organization/settings"). - hint: - type: string - description: Optional guidance when incomplete (e.g. agent/Proxmox metrics hint). - v1ProviderOnboardingStepCode: - type: string - enum: - - PROVIDER_ONBOARDING_STEP_CODE_UNSPECIFIED - - PROVIDER_ONBOARDING_STEP_CODE_KYC - - PROVIDER_ONBOARDING_STEP_CODE_DOMAIN - - PROVIDER_ONBOARDING_STEP_CODE_STRIPE_CONNECT - - PROVIDER_ONBOARDING_STEP_CODE_REGION - - PROVIDER_ONBOARDING_STEP_CODE_PLATFORM - - PROVIDER_ONBOARDING_STEP_CODE_NODE - - PROVIDER_ONBOARDING_STEP_CODE_NODE_METRICS - - PROVIDER_ONBOARDING_STEP_CODE_CLOUD_INIT - - PROVIDER_ONBOARDING_STEP_CODE_VM_TEMPLATE - - PROVIDER_ONBOARDING_STEP_CODE_NETWORK - - PROVIDER_ONBOARDING_STEP_CODE_NODE_NETWORK - - PROVIDER_ONBOARDING_STEP_CODE_PREFLIGHT - - PROVIDER_ONBOARDING_STEP_CODE_LIVE_VALIDATION - - PROVIDER_ONBOARDING_STEP_CODE_AGENT - - PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV4 - - PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV6 - - PROVIDER_ONBOARDING_STEP_CODE_PLAN - - PROVIDER_ONBOARDING_STEP_CODE_ADDONS - - PROVIDER_ONBOARDING_STEP_CODE_FIXED_PRICE_ADDONS - default: PROVIDER_ONBOARDING_STEP_CODE_UNSPECIFIED - description: Provider self-serve onboarding checklist (provider orgs only). - v1ProviderPlanPriceSort: - type: string - enum: - - PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED - - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST - - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST - default: PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED - description: >- - Order for marketplace provider list by the plan price shown in the row - (aligns with UI). - - - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST: Ascending: lowest list price first (usage: hourly, subscription: fixed monthly, free: 0) - - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST: Descending: highest list price first - v1ProviderReviewBreakdown: - type: object - properties: - oneStar: - type: integer - format: int32 - twoStar: - type: integer - format: int32 - threeStar: - type: integer - format: int32 - fourStar: - type: integer - format: int32 - fiveStar: - type: integer - format: int32 - v1ProviderReviewListItem: - type: object - properties: - id: - type: string - starRating: - type: integer - format: int32 - comment: - type: string - providerReply: - type: string - createTime: - type: string - format: date-time - updateTime: - type: string - format: date-time - providerRepliedAt: - type: string - format: date-time - description: "Provider UI: list and respond to client reviews (no VM - identifiers: anonymous to provider)." - v1ProviderReviewStarSummary: - type: object - properties: - starRating: - type: integer - format: int32 - reviewCount: - type: integer - format: int32 - v1PurchaseCreditsRequest: - type: object - properties: - amount: - type: string - title: "Decimal string: USD amount to top-up" - paymentMethodId: - type: string - description: |- - Optional: payment method ID to charge. If omitted, the org's default - payment method is used. - v1PurchaseCreditsResponse: - type: object - properties: - clientSecret: - type: string - title: Stripe PaymentIntent client_secret for 3DS confirmation - creditPurchaseId: - type: string - title: CreditPurchase row id - paymentIntentId: - type: string - title: Stripe PaymentIntent id - requiresAction: - type: boolean - title: True if 3DS/SCA confirmation is needed client-side - v1RecordUsageRequest: - type: object - properties: - subscriptionId: - type: string - title: Subscription reference - metricId: - type: string - title: Metric reference (either metric_id or metric_code must be provided) - metricCode: - type: string - quantity: - type: string - description: Decimal as string - title: Usage data - timestamp: - type: string - format: date-time - eventId: - type: string - description: For idempotent writes - title: Deduplication and metadata - properties: - type: object - title: Additional metadata (region, instance_id, etc.) - externalId: - type: string - title: External integration - v1RecordUsageResponse: - type: object - properties: - usageRecord: - $ref: "#/components/schemas/v1UsageRecord" - isDuplicate: - type: boolean - title: True if event_id already existed - v1RefreshTokenRequest: - type: object - properties: - refreshToken: - type: string - clientId: - type: string - clientSecret: - type: string - title: Optional for public clients - v1Refund: - type: object - properties: - id: - type: string - paymentId: - type: string - title: Payment this refund is for - refundStatus: - $ref: "#/components/schemas/v1RefundStatus" - amount: - type: string - title: Decimal string with 6 decimal places precision - currency: - type: string - title: Currency code (ISO 4217) - providerRefundId: - type: string - title: Payment provider refund ID (e.g., - paymentProvider: - type: string - description: Payment provider name (e.g., 'stripe', 'paypal') - title: Stripe refund.id, PayPal refund.id) - failureReason: - type: string - title: Reason for refund failure (if applicable) - processedAt: - type: string - format: date-time - title: When refund was processed - createdAt: - type: string - format: date-time - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: Refund represents a refund transaction for a payment - v1RefundStatus: - type: string - enum: - - REFUND_STATUS_UNSPECIFIED - - REFUND_STATUS_PENDING - - REFUND_STATUS_PROCESSING - - REFUND_STATUS_SUCCEEDED - - REFUND_STATUS_FAILED - - REFUND_STATUS_CANCELED - default: REFUND_STATUS_UNSPECIFIED - v1RegenerateMfaBackupCodesRequest: - type: object - properties: - code: - type: string - v1RegenerateMfaBackupCodesResponse: - type: object - properties: - backupCodes: - type: array - items: - type: string - v1Region: - type: object - properties: - id: - type: string - title: Fields - organizationId: - type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - cityCountry: - $ref: "#/components/schemas/v1CityCountry" - datacenter: - $ref: "#/components/schemas/v1Datacenter" - v1RegionLocation: - type: object - properties: - country: - type: string - title: Country name - city: - type: string - title: City name - title: Region location information (deduplicated city+country combinations) - v1RegisterUserRequest: - type: object - properties: - firstName: - type: string - lastName: - type: string - email: - type: string - password: - type: string - turnstileToken: - type: string - description: Cloudflare Turnstile token from the client widget (optional unless - auth.turnstile is enabled). - v1ReinstallStatus: - type: string - enum: - - REINSTALL_STATUS_UNSPECIFIED - - REINSTALL_STATUS_NONE - - REINSTALL_STATUS_REQUESTED - - REINSTALL_STATUS_DELETING - - REINSTALL_STATUS_PROVISIONING - - REINSTALL_STATUS_COMPLETED - - REINSTALL_STATUS_FAILED - default: REINSTALL_STATUS_UNSPECIFIED - v1RemoveAddonResponse: - type: object - properties: - addonSubscription: - $ref: "#/components/schemas/v1AddonSubscription" - v1RemovePaymentMethodResponse: - type: object - properties: - success: - type: boolean - v1ReplaceRoleForGroupRequest: - type: object - properties: - roleId: - type: string - groupId: - type: string - v1ReplaceRoleForServiceAccountRequest: - type: object - properties: - roleId: - type: string - serviceAccountId: - type: string - v1ReplaceRoleForUserRequest: - type: object - properties: - roleId: - type: string - userId: - type: string - v1ResendVerificationEmailRequest: - type: object - properties: - email: - type: string - turnstileToken: - type: string - description: Cloudflare Turnstile token from the client widget (optional unless - auth.turnstile is enabled). - v1ResetPasswordRequest: - type: object - properties: - email: - type: string - resetToken: - type: string - newPassword: - type: string - v1ResourceInstanceInput: - type: object - properties: - quantity: - type: integer - format: int32 - hoursUsed: - type: number - format: double - region: - type: string - usage: - type: object - additionalProperties: - type: number - format: double - title: 'Usage metrics (e.g., {"vCPU": 2, "RAM_GB": 4, "Egress_GB": 1200})' - addons: - type: array - items: - $ref: "#/components/schemas/v1AddonInput" - title: Add-ons - v1RestoreStatus: - type: string - enum: - - RESTORE_STATUS_UNSPECIFIED - - RESTORE_STATUS_NONE - - RESTORE_STATUS_REQUESTED - - RESTORE_STATUS_RESTORING - - RESTORE_STATUS_COMPLETED - - RESTORE_STATUS_FAILED - default: RESTORE_STATUS_UNSPECIFIED - title: RestoreStatus represents the restore status of a backup or snapshot - v1RetryPaymentRequest: - type: object - properties: - subscriptionId: - type: string - title: |- - Optional: subscription ID to retry payment for - If not provided, retries payment for the user's active subscription - paymentMethodId: - type: string - title: |- - Optional: payment method ID to use for retry - If not provided, uses the default payment method - v1RetryPaymentResponse: - type: object - properties: - subscription: - $ref: "#/components/schemas/v1Subscription" - transactionId: - type: string - title: Transaction ID from payment provider (available after task completes) - paymentStatus: - type: string - title: Payment status (available after task completes) - taskId: - type: string - title: Task ID for tracking async payment retry processing - v1RevokeTokenRequest: - type: object - properties: - token: - type: string - tokenTypeHint: - type: string - title: '"access_token" or "refresh_token"' - clientId: - type: string - v1RoadmapFeatureRequest: - type: object - properties: - id: - type: string - slug: - type: string - title: - type: string - description: - type: string - status: - $ref: "#/components/schemas/v1RoadmapRequestStatus" - product: - $ref: "#/components/schemas/v1RoadmapProductCategory" - voteScore: - type: integer - format: int32 - upvoteCount: - type: integer - format: int32 - commentCount: - type: integer - format: int32 - authorDisplayName: - type: string - assigneeName: - type: string - isPinned: - type: boolean - createdAt: - type: string - format: date-time - statusChangedAt: - type: string - format: date-time - userVote: - $ref: "#/components/schemas/v1RoadmapVoteType" - v1RoadmapFeatureRequestComment: - type: object - properties: - id: - type: string - body: - type: string - authorDisplayName: - type: string - isEdited: - type: boolean - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - isOwn: - type: boolean - canEdit: - type: boolean - v1RoadmapProductCategory: - type: object - properties: - id: - type: string - slug: - type: string - name: - type: string - description: - type: string - color: - type: string - icon: - type: string - sortOrder: - type: integer - format: int32 - v1RoadmapProductStats: - type: object - properties: - productSlug: - type: string - productName: - type: string - inReview: - type: integer - format: int32 - planned: - type: integer - format: int32 - inProgress: - type: integer - format: int32 - completed: - type: integer - format: int32 - v1RoadmapRequestStatus: - type: string - enum: - - ROADMAP_REQUEST_STATUS_UNSPECIFIED - - ROADMAP_REQUEST_STATUS_IN_REVIEW - - ROADMAP_REQUEST_STATUS_PLANNED - - ROADMAP_REQUEST_STATUS_IN_PROGRESS - - ROADMAP_REQUEST_STATUS_COMPLETED - - ROADMAP_REQUEST_STATUS_DECLINED - default: ROADMAP_REQUEST_STATUS_UNSPECIFIED - v1RoadmapVoteType: - type: string - enum: - - ROADMAP_VOTE_TYPE_UNSPECIFIED - - ROADMAP_VOTE_TYPE_UP - default: ROADMAP_VOTE_TYPE_UNSPECIFIED - v1Role: - type: object - properties: - id: - type: string - title: Fields - name: - type: string - description: - type: string - isBuiltin: - type: boolean - organizationId: - type: string - title: Relations - permissions: - type: array - items: - type: string - groupIds: - type: array - items: - type: string - users: - type: array - items: - $ref: "#/components/schemas/v1UserSummary" - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1RuleEffect: - type: string - enum: - - RULE_EFFECT_UNSPECIFIED - - RULE_EFFECT_ENABLE - - RULE_EFFECT_ENTITLE - - RULE_EFFECT_LIMIT - default: RULE_EFFECT_UNSPECIFIED - description: |- - - RULE_EFFECT_ENABLE: Feature toggle: true/false (use false to disable) - - RULE_EFFECT_ENTITLE: Entitlement: granted - - RULE_EFFECT_LIMIT: Limit: numeric ceiling - title: RuleEffect represents the effect type of a rule - v1Rules: - type: object - properties: - ruleKey: - type: string - title: Rule key (e.g., "organization.max_members", "secrets.enabled") - effect: - $ref: "#/components/schemas/v1RuleEffect" - boolValue: - type: boolean - title: Boolean value for ENABLE/ENTITLE effects - int64Value: - type: string - format: int64 - title: Numeric value for LIMIT effect - currentUsage: - type: string - format: int64 - title: "Optional: current usage count (only for LIMIT rules)" - title: RuleStatus represents the status of a rule from the ruleset - v1SSHKey: - type: object - properties: - id: - type: string - publicKey: - type: string - keyType: - type: string - description: rsa, ed25519, ecdsa, dsa, etc. - name: - type: string - fingerprint: - type: string - organizationId: - type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: SSH Key messages - v1SearchMarketplaceRequest: - type: object - properties: - query: - type: string - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - filterBillingType: - $ref: "#/components/schemas/v1BillingType" - turnstileToken: - type: string - description: Cloudflare Turnstile token (required for anonymous callers when - auth.turnstile.requireOnAnonymousMarketplaceSearch). - description: Natural-language marketplace search (anonymous landing page). - v1SearchMarketplaceResponse: - type: object - properties: - results: - type: array - items: - $ref: "#/components/schemas/v1MarketplaceSearchResult" - totalCount: - type: integer - format: int32 - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - parsedQuery: - $ref: "#/components/schemas/v1MarketplaceSearchParsedQuery" - appliedBillingType: - $ref: "#/components/schemas/v1BillingType" - v1SearchTicketsRequest: - type: object - properties: - query: - type: string - page: - type: integer - format: int32 - pageSize: - type: integer - format: int32 - filterTicketStatus: - $ref: "#/components/schemas/v1TicketStatus" - filterCaseType: - $ref: "#/components/schemas/v1CaseType" - filterPriority: - $ref: "#/components/schemas/v1TicketPriority" - includeHighlights: - type: boolean - v1SearchTicketsResponse: - type: object - properties: - tickets: - type: array - items: - $ref: "#/components/schemas/v1Ticket" - userDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1UserDetails" - title: Map of user ID to user details (first_name, last_name) - organizationDetails: - type: object - additionalProperties: - $ref: "#/components/schemas/v1OrganizationDetails" - title: Map of organization ID to organization name - totalCount: - type: integer - format: int32 - highlights: - type: object - additionalProperties: - $ref: "#/components/schemas/v1TicketSearchHighlight" - title: Map of ticket ID to highlighted snippets - v1Secret: - type: object - properties: - id: - type: string - title: Fields - key: - type: string - user: - type: string - title: Relations - organization: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1ServiceAccountResponse: - type: object - properties: - id: - type: string - name: - type: string - description: - type: string - isActive: - type: boolean - allowedIps: - type: array - items: - type: string - organizationId: - type: string - createdByUserId: - type: string - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - lastUsedAt: - type: string - format: date-time - activeTokenCount: - type: integer - format: int32 - groupIds: - type: array - items: - type: string - roleIds: - type: array - items: - type: string - v1ServiceAccountTokenInfo: - type: object - properties: - tokenId: - type: string - name: - type: string - createdAt: - type: string - format: date-time - expiresAt: - type: string - format: date-time - lastUsedAt: - type: string - format: date-time - status: - type: string - createdByUserId: - type: string - expiresInDays: - type: integer - format: int32 - v1ServiceStatus: - type: string - enum: - - SERVICE_STATUS_UNSPECIFIED - - SERVICE_STATUS_ONLINE - - SERVICE_STATUS_OFFLINE - - SERVICE_STATUS_MAINTENANCE - default: SERVICE_STATUS_UNSPECIFIED - v1ServingStatus: - type: string - enum: - - UNKNOWN - - SERVING - - NOT_SERVING - default: UNKNOWN - v1SessionInfo: - type: object - properties: - id: - type: string - realIp: - type: string - requestIp: - type: string - browser: - type: string - lastLogin: - type: string - os: - type: string - deviceType: - type: string - country: - type: string - isCurrentSession: - type: boolean - v1SetDefaultPaymentMethodResponse: - type: object - properties: - paymentMethod: - $ref: "#/components/schemas/v1PaymentMethod" - v1SetPasswordRequest: - type: object - properties: - newPassword: - type: string - description: SetPassword is for passwordless (SSO-only) accounts that have never - set a local password. - v1SmtpOutboundProviderPolicy: - type: object - properties: - blockByDefault: - type: boolean - v1SmtpOutboundVmAction: - type: string - enum: - - SMTP_OUTBOUND_VM_ACTION_UNSPECIFIED - - SMTP_OUTBOUND_VM_ACTION_INHERIT - - SMTP_OUTBOUND_VM_ACTION_ALLOW - - SMTP_OUTBOUND_VM_ACTION_BLOCK - default: SMTP_OUTBOUND_VM_ACTION_UNSPECIFIED - v1Snapshot: - type: object - properties: - id: - type: string - readOnly: true - name: - type: string - readOnly: true - snapshotId: - type: string - readOnly: true - virtualMachineId: - type: string - readOnly: true - createdAt: - type: string - format: date-time - readOnly: true - snapshotStatus: - $ref: "#/components/schemas/v1SnapshotStatus" - restoreStatus: - $ref: "#/components/schemas/v1RestoreStatus" - operationStatus: - $ref: "#/components/schemas/v1SnapshotOperationStatus" - restoredAt: - type: string - format: date-time - readOnly: true - description: - type: string - readOnly: true - lastRestore: - $ref: "#/components/schemas/v1LastRestore" - metadata: - type: object - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - title: Snapshot represents a snapshot of a virtual machine - v1SnapshotOperationStatus: - type: string - enum: - - SNAPSHOT_OPERATION_STATUS_UNSPECIFIED - - SNAPSHOT_OPERATION_STATUS_PENDING - - SNAPSHOT_OPERATION_STATUS_PROCESSING - - SNAPSHOT_OPERATION_STATUS_COMPLETED - - SNAPSHOT_OPERATION_STATUS_FAILED - default: SNAPSHOT_OPERATION_STATUS_UNSPECIFIED - title: SnapshotOperationStatus represents the status of snapshot creation - operation - v1SnapshotStatus: - type: string - enum: - - SNAPSHOT_STATUS_UNSPECIFIED - - SNAPSHOT_STATUS_ACTIVE - - SNAPSHOT_STATUS_DELETED - - SNAPSHOT_STATUS_EXPIRED - - SNAPSHOT_STATUS_UNKNOWN - default: SNAPSHOT_STATUS_UNSPECIFIED - title: SnapshotStatus represents the status of a snapshot - v1StartPlanLiveValidationResponse: - type: object - properties: - runId: - type: string - status: - type: string - v1StoragePool: - type: object - properties: - name: - type: string - storage: - type: integer - format: int32 - storageAllocated: - type: integer - format: int32 - v1SubmitRoadmapFeatureRequestRequest: - type: object - properties: - title: - type: string - description: - type: string - productSlug: - type: string - v1SubmitRoadmapFeatureRequestResponse: - type: object - properties: - success: - type: boolean - message: - type: string - v1SubscribeResponse: - type: object - properties: - subscription: - $ref: "#/components/schemas/v1Subscription" - v1Subscription: - type: object - properties: - id: - type: string - title: Fields - startDate: - type: string - format: date-time - trialEndDate: - type: string - format: date-time - currentPeriodStart: - type: string - format: date-time - currentPeriodEnd: - type: string - format: date-time - canceledAt: - type: string - format: date-time - subscriptionStatus: - $ref: "#/components/schemas/v1SubscriptionStatus" - cancelAtPeriodEnd: - type: boolean - quantity: - type: integer - format: int32 - title: Quantity of this subscription item (e.g., number of VMs, - organization: - type: string - title: Relations - organizationName: - type: string - activatedByUser: - type: string - plan: - type: string - planName: - type: string - planCode: - type: string - description: Plan catalog code (e.g. SC-GC-1C-1G-20) for display alongside - plan_name. - resourceHostname: - type: string - description: Primary linked VM hostname for client compute subscriptions (empty - otherwise). - resourceProviderName: - type: string - description: Provider organization name for the linked VM (empty when not - applicable). - resourceVmId: - type: string - description: Linked VM id for navigation (empty when not applicable). - resourceRegionName: - type: string - description: Region label for the linked VM (e.g. city and country, or - datacenter name). - resourceCpu: - type: integer - format: int32 - description: Linked VM resource snapshot for display (0 when not applicable). - resourceMemory: - type: integer - format: int32 - resourceStorage: - type: integer - format: int32 - planBillingPeriod: - $ref: "#/components/schemas/v1BillingPeriod" - platformFeeId: - type: string - description: Platform fee ID if applicable - title: Platform fee (only for provider organizations) - platformFeeType: - type: string - title: Platform fee type (percentage, fixed, etc.) - platformFeePercent: - type: number - format: double - title: Platform fee percentage (e.g., 10.0 for 10%) - platformFeeCurrency: - type: string - title: Currency for platform fee - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1SubscriptionStatus: - type: string - enum: - - SUBSCRIPTION_STATUS_UNSPECIFIED - - SUBSCRIPTION_STATUS_TRIALING - - SUBSCRIPTION_STATUS_ACTIVE - - SUBSCRIPTION_STATUS_PAST_DUE - - SUBSCRIPTION_STATUS_CANCELED - - SUBSCRIPTION_STATUS_PAUSED - default: SUBSCRIPTION_STATUS_UNSPECIFIED - v1SuccessResponse: - type: object - properties: - success: - type: boolean - v1Ticket: - type: object - properties: - id: - type: string - title: Fields - ticketId: - type: string - format: int64 - title: - type: string - message: - type: string - ticketStatus: - $ref: "#/components/schemas/v1TicketStatus" - caseType: - $ref: "#/components/schemas/v1CaseType" - tags: - type: array - items: - type: string - replies: - type: string - title: Relations - fromOrganization: - type: string - fromUser: - type: string - toOrganization: - type: string - toUser: - type: string - virtualMachines: - type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - priority: - $ref: "#/components/schemas/v1TicketPriority" - assignedToUser: - type: string - firstResponseAt: - type: string - format: date-time - firstResponseTimeSeconds: - type: string - format: int64 - resolvedAt: - type: string - format: date-time - resolutionTimeSeconds: - type: string - format: int64 - lastActivityAt: - type: string - format: date-time - lockedByUser: - type: string - lockedAt: - type: string - format: date-time - v1TicketAttachment: + - ServiceAccountService +security: +- BearerAuth: [] + OrgIDHeader: [] +components: + securitySchemes: + BearerAuth: + type: apiKey + name: Authorization + in: header + OrgIDHeader: + type: apiKey + name: X-Organization-ID + in: header + schemas: + AgentServiceGeneratePeeringConfigBody: type: object - properties: - id: - type: string - ticketId: - type: string - fileName: - type: string - fileSize: - type: string - format: int64 - mimeType: - type: string - uploadedByUserId: - type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1TicketInternalComment: + AgentServiceUpdateAgentBody: type: object properties: - id: - type: string - ticketId: - type: string - comment: + name: type: string - createdByUserId: + description: type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1TicketMessage: + hypervisorDriver: + $ref: '#/components/schemas/v1PlatformDriver' + AgentServiceUploadInboundPeeringConfigBody: type: object properties: - id: - type: string - title: Ticket ID (same for original, different for each reply) - sequence: - type: string - format: int64 - title: Order in the thread (0 for original, 1+ for replies, based on creation - time) - message: - type: string - title: The message content - fromUser: - type: string - title: User who sent this message - fromOrganization: - type: string - title: Organization of the user who sent this message - toUser: - type: string - title: User who should receive this message - toOrganization: + kubeconfig: type: string - title: Organization of the recipient - timestamps: - $ref: "#/components/schemas/v1Timestamps" - isReply: - type: boolean - title: True if this is a reply, false if it's the original message - title: |- - TicketMessage represents a single message in a ticket thread - This includes both the original ticket message and all replies - v1TicketPriority: - type: string - enum: - - TICKET_PRIORITY_UNSPECIFIED - - TICKET_PRIORITY_LOW - - TICKET_PRIORITY_NORMAL - - TICKET_PRIORITY_HIGH - - TICKET_PRIORITY_URGENT - - TICKET_PRIORITY_CRITICAL - default: TICKET_PRIORITY_UNSPECIFIED - v1TicketSearchHighlight: + MetricsCredentialServiceRotateMetricsWriteCredentialBody: + type: object + ServiceAccountServiceGenerateTokenBody: type: object properties: - ticketId: - type: string - title: - type: string - message: + name: type: string - v1TicketStatus: - type: string - enum: - - TICKET_STATUS_UNSPECIFIED - - TICKET_STATUS_IN_PROGRESS - - TICKET_STATUS_ESCALATED - - TICKET_STATUS_PENDING - - TICKET_STATUS_AWAITING_REPLY - - TICKET_STATUS_RESOLVED - - TICKET_STATUS_WONT_FIX - - TICKET_STATUS_DUPLICATE - - TICKET_STATUS_NOT_REPRODUCIBLE - default: TICKET_STATUS_UNSPECIFIED - v1TicketTemplate: + expiresInDays: + type: integer + format: int32 + ServiceAccountServiceUpdateServiceAccountBody: type: object properties: - id: - type: string name: type: string - caseType: - $ref: "#/components/schemas/v1CaseType" - titleTemplate: - type: string - messageTemplate: + description: type: string - tags: - type: array - items: - type: string isActive: type: boolean - createdByUserId: - type: string - timestamps: - $ref: "#/components/schemas/v1Timestamps" - variables: + allowedIps: type: array items: type: string - v1TicketTemplateInput: + protov1Status: + type: string + enum: + - STATUS_UNSPECIFIED + - STATUS_ACTIVE + - STATUS_INACTIVE + - STATUS_BANNED + - STATUS_SOFT_DELETED + default: STATUS_UNSPECIFIED + v1AddServiceAccountToGroupRequest: type: object properties: - name: - type: string - caseType: - $ref: "#/components/schemas/v1CaseType" - titleTemplate: - type: string - messageTemplate: + groupId: type: string - tags: + serviceAccountIds: type: array items: type: string - isActive: - type: boolean - v1TicketTemplateVariableDefinition: + v1Agent: type: object properties: + id: + type: string name: type: string description: type: string - required: - type: boolean - source: + gatewayRegion: + $ref: '#/components/schemas/v1AgentGatewayRegion' + agentPublicIp: + type: string + gwServerServicePort: + type: integer + format: int32 + organizationId: type: string - example: + metadata: + type: object + status: + $ref: '#/components/schemas/protov1Status' + timestamps: + $ref: '#/components/schemas/v1Timestamps' + provisioned: + type: boolean + inboundPeeringState: + $ref: '#/components/schemas/v1InboundPeeringState' + inboundPeeringError: type: string - v1TierMode: + serviceStatus: + $ref: '#/components/schemas/v1ServiceStatus' + hypervisorDriver: + $ref: '#/components/schemas/v1PlatformDriver' + v1AgentGatewayRegion: type: string enum: - - TIER_MODE_UNSPECIFIED - - TIER_MODE_NONE - - TIER_MODE_VOLUME - - TIER_MODE_TIERED - - TIER_MODE_GRADUATED - default: TIER_MODE_UNSPECIFIED - v1Timestamps: + - AGENT_GATEWAY_REGION_UNSPECIFIED + - AGENT_GATEWAY_REGION_AMS01 + default: AGENT_GATEWAY_REGION_UNSPECIFIED + v1ComponentVersion: type: object properties: - createTime: - type: string - format: date-time - updateTime: + name: type: string - format: date-time - title: Object details - v1TokenRequest: - type: object - properties: - grantType: + version: type: string - code: + minVersion: type: string - title: Required for authorization_code grant - redirectUri: + downloadUrl: type: string - title: Required for authorization_code grant - clientId: + checksumSha256: type: string - clientSecret: + v1CreateAgentRequest: + type: object + properties: + name: type: string - title: Optional for public clients - codeVerifier: + description: type: string - title: Required for PKCE - refreshToken: + agentPublicIp: type: string - title: Required for refresh_token grant - v1TokenResponse: + gatewayRegion: + $ref: '#/components/schemas/v1AgentGatewayRegion' + hypervisorDriver: + $ref: '#/components/schemas/v1PlatformDriver' + v1CreateMetricsWriteCredentialRequest: type: object properties: - accessToken: - type: string - tokenType: - type: string - title: '"Bearer"' - expiresIn: + name: type: string - format: int64 - title: Seconds until expiry - refreshToken: + agentId: type: string - scope: + expiresAt: type: string - v1UndoCancelRenewalRequest: + format: date-time + v1CreateMetricsWriteCredentialResponse: type: object properties: - subscriptionId: + credential: + $ref: '#/components/schemas/v1MetricsWriteCredential' + token: type: string - v1UpdateAgentResponse: - type: object - properties: - agent: - $ref: "#/components/schemas/v1Agent" - v1UpdateClientReviewResponse: - type: object - properties: - review: - $ref: "#/components/schemas/v1ClientProviderReview" - v1UpdateCloudInitTemplateResponse: - type: object - properties: - cloudInitTemplate: - $ref: "#/components/schemas/v1CloudInitTemplate" - v1UpdateGroupResponse: - type: object - properties: - group: - $ref: "#/components/schemas/v1Group" - v1UpdateInviteRequest: + v1CreateServiceAccountRequest: type: object properties: - inviteId: - type: string - roleId: + name: type: string - groupId: + description: type: string - v1UpdateNetworkResponse: - type: object - properties: - network: - $ref: "#/components/schemas/v1Network" - v1UpdateNodePlacementPolicyRequest: - type: object - properties: - defaultStrategy: - $ref: "#/components/schemas/v1NodePlacementStrategy" - regionOverrides: + allowedIps: type: array items: - $ref: "#/components/schemas/v1NodePlacementRegionOverride" - v1UpdateNodePlacementPolicyResponse: - type: object - properties: - policy: - $ref: "#/components/schemas/v1NodePlacementPolicy" - v1UpdateNodeResponse: - type: object - properties: - node: - $ref: "#/components/schemas/v1Node" - v1UpdateNotificationSettingResponse: - type: object - properties: - notificationSetting: - $ref: "#/components/schemas/v1NotificationSetting" - v1UpdateNotificationTemplateResponse: + type: string + v1GeneratePeeringConfigResponse: type: object properties: - notificationTemplate: - $ref: "#/components/schemas/v1NotificationTemplate" - v1UpdateOrganizationRequest: + config: + type: string + v1GenerateServiceAccountTokenResponse: type: object properties: - name: - type: string - description: - type: string - enforceMfa: - type: boolean - enforceVerifiedDomain: - type: boolean - enforceSso: - type: boolean - asn: - type: string - format: int64 - providerLogoUrl: - type: string - ddosProvider: - type: string - providerWebsiteUrl: - type: string - address: - type: string - taxId: - type: string - accountHolderName: - type: string - supportEmail: - type: string - supportPhone: - type: string - addressLine1: - type: string - addressLine2: - type: string - addressCity: - type: string - addressRegion: - type: string - addressPostcode: - type: string - addressCountry: - type: string - description: ISO 3166-1 alpha-2 (e.g. US, DE). - vatId: + token: type: string - billingEmail: + tokenId: type: string - socialAccountsJson: + expiresAt: type: string - description: >- - JSON array of up to 4 objects: - [{"platform":"x","url":"https://..."}, ...]. - - platform must be one of: x, linkedin, instagram, facebook (Facebook/Meta). - v1UpdateOrganizationResponse: - type: object - properties: - organization: - $ref: "#/components/schemas/v1Organization" - v1UpdatePayoutConfigurationRequest: - type: object - properties: - scheduleType: - $ref: "#/components/schemas/v1PayoutScheduleType" - scheduleTime: + format: date-time + createdAt: type: string - title: "Required for daily/weekly/monthly, ignored for immediate. Format: HH:MM - (24-hour)" - scheduleTimezone: + format: date-time + warning: type: string - title: IANA timezone - defaults to "UTC" - enabled: - type: boolean - title: Whether to enable/disable payout configuration - v1UpdatePlatformResponse: - type: object - properties: - platform: - $ref: "#/components/schemas/v1Platform" - v1UpdatePrefixResponse: - type: object - properties: - prefix: - $ref: "#/components/schemas/v1Prefix" - v1UpdateProviderReviewReplyResponse: - type: object - properties: - review: - $ref: "#/components/schemas/v1ProviderReviewListItem" - v1UpdateRoadmapFeatureRequestCommentResponse: - type: object - properties: - comment: - $ref: "#/components/schemas/v1RoadmapFeatureRequestComment" - v1UpdateRoleResponse: + v1GetAgentResponse: type: object properties: - role: - $ref: "#/components/schemas/v1Role" - v1UpdateSmtpOutboundProviderPolicyRequest: + agent: + $ref: '#/components/schemas/v1Agent' + v1GetOrganizationResponse: type: object properties: - blockByDefault: - type: boolean - v1UpdateUserResponse: + organization: + $ref: '#/components/schemas/v1Organization' + v1InboundPeeringState: + type: string + enum: + - INBOUND_PEERING_STATE_UNSPECIFIED + - INBOUND_PEERING_STATE_PENDING + - INBOUND_PEERING_STATE_PEERING + - INBOUND_PEERING_STATE_READY + - INBOUND_PEERING_STATE_FAILED + default: INBOUND_PEERING_STATE_UNSPECIFIED + v1ListAgentsResponse: type: object properties: - user: - $ref: "#/components/schemas/v1User" - v1UpdateVMTemplateResponse: + agents: + type: array + items: + $ref: '#/components/schemas/v1GetAgentResponse' + totalCount: + type: integer + format: int32 + v1ListMetricsWriteCredentialsResponse: type: object properties: - vmTemplate: - $ref: "#/components/schemas/v1VMTemplate" - v1UploadInboundPeeringConfigResponse: + credentials: + type: array + items: + $ref: '#/components/schemas/v1MetricsWriteCredential' + totalCount: + type: integer + format: int32 + v1ListOrganizationsResponse: type: object properties: - inboundPeeringState: - $ref: "#/components/schemas/v1InboundPeeringState" - v1UploadTicketAttachmentContentRequest: + organizations: + type: array + items: + $ref: '#/components/schemas/v1Organization' + totalCount: + type: integer + format: int32 + v1ListServiceAccountTokensResponse: type: object properties: - uploadToken: - type: string - fileContent: - type: string - format: byte - v1UsageAggregate: + tokens: + type: array + items: + $ref: '#/components/schemas/v1ServiceAccountTokenInfo' + totalCount: + type: integer + format: int32 + page: + type: integer + format: int32 + pageSize: + type: integer + format: int32 + v1ListServiceAccountsResponse: type: object properties: - subscriptionId: - type: string - metricId: - type: string - metricName: - type: string - metricCode: - type: string - aggregationType: - $ref: "#/components/schemas/v1AggregationType" - totalQuantity: - type: string - description: Decimal as string - title: Aggregated values - recordCount: + serviceAccounts: + type: array + items: + $ref: '#/components/schemas/v1ServiceAccountResponse' + totalCount: type: integer format: int32 - firstTimestamp: - type: string - format: date-time - lastTimestamp: - type: string - format: date-time - billingPeriodStart: - type: string - format: date-time - title: Billing period - billingPeriodEnd: - type: string - format: date-time - v1UsageRecord: + page: + type: integer + format: int32 + pageSize: + type: integer + format: int32 + v1MetricsWriteCredential: type: object properties: id: type: string - title: Fields - quantity: - type: string - description: Stored as string for decimal precision - title: Usage data - timestamp: - type: string - format: date-time - billingPeriodStart: + publicId: type: string - format: date-time - billingPeriodEnd: + name: type: string - format: date-time - eventId: + scopes: + type: array + items: + type: string + agentId: type: string - description: For deduplication - title: Usage metadata - properties: - type: object - title: Additional metadata (region, instance_id, etc.) - usageRecordStatus: - $ref: "#/components/schemas/v1UsageRecordStatus" - errorMessage: + organizationId: type: string - processedAt: + createTime: type: string format: date-time - externalId: - type: string - title: External integration - subscriptionId: - type: string - title: Relations - metricId: - type: string - invoiceId: - type: string - invoiceLineId: - type: string - subscriptionName: + expiresAt: type: string - title: Relation details (populated in responses) - metricName: + format: date-time + revokedAt: type: string - metricCode: + format: date-time + lastUsedAt: type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1UsageRecordStatus: - type: string - enum: - - USAGE_RECORD_STATUS_UNSPECIFIED - - USAGE_RECORD_STATUS_PENDING - - USAGE_RECORD_STATUS_PROCESSED - - USAGE_RECORD_STATUS_BILLED - - USAGE_RECORD_STATUS_FAILED - default: USAGE_RECORD_STATUS_UNSPECIFIED - v1User: + format: date-time + v1Organization: type: object properties: id: type: string - title: Fields - email: - type: string - password: - type: string - firstName: + name: type: string - lastName: + description: type: string - isVerified: + type: + $ref: '#/components/schemas/v1OrganizationType' + enforceMfa: type: boolean - allowOrgInvites: + enforceVerifiedDomain: type: boolean - organization: + enforceSso: + type: boolean + asn: + type: string + format: int64 + owner: type: string - title: Relations - userRoles: + domains: type: array items: type: string - groupIds: + groups: + type: array + items: + type: string + organizationRoles: type: array items: type: string - subscriptionIds: + subscriptions: type: array items: type: string metadata: type: object - title: Metadata status: - $ref: "#/components/schemas/protov1Status" + $ref: '#/components/schemas/protov1Status' timestamps: - $ref: "#/components/schemas/v1Timestamps" - v1UserDetails: - type: object - properties: - firstName: + $ref: '#/components/schemas/v1Timestamps' + providerLogoUrl: + type: string + ddosProvider: type: string - lastName: + providerWebsiteUrl: type: string - title: UserDetails contains user information - v1UserSummary: + isVerified: + type: boolean + reviewRequested: + type: boolean + onboarded: + type: boolean + hypervisorDriver: + $ref: '#/components/schemas/v1PlatformDriver' + v1OrganizationType: + type: string + enum: + - ORGANIZATION_TYPE_UNSPECIFIED + - ORGANIZATION_TYPE_PROVIDER + - ORGANIZATION_TYPE_CLIENT + default: ORGANIZATION_TYPE_UNSPECIFIED + v1PlatformDriver: + type: string + enum: + - PLATFORM_DRIVER_UNSPECIFIED + - PLATFORM_DRIVER_PROXMOX + - PLATFORM_DRIVER_VIRTFUSION + - PLATFORM_DRIVER_SOLUSVM + - PLATFORM_DRIVER_PTERODACTYL + default: PLATFORM_DRIVER_UNSPECIFIED + v1PlatformVersions: type: object properties: - id: - type: string - title: Fields - email: + components: + type: array + items: + $ref: '#/components/schemas/v1ComponentVersion' + schemaVersion: type: string - firstName: + v1ReplaceRoleForServiceAccountRequest: + type: object + properties: + roleId: type: string - lastName: + serviceAccountId: type: string - v1VMTemplate: + v1ServiceAccountResponse: type: object properties: id: type: string - title: Fields name: type: string - distro: - $ref: "#/components/schemas/v1Distro" - templateId: - type: integer - format: int32 - nodeId: - type: string - cloudInitTemplateId: - type: string - nodeName: - type: string - cloudInitTemplateName: - type: string - platformName: + description: type: string - metadata: - type: object - title: Metadata - status: - $ref: "#/components/schemas/protov1Status" - timestamps: - $ref: "#/components/schemas/v1Timestamps" - proxmoxCpuType: + isActive: + type: boolean + allowedIps: + type: array + items: + type: string + organizationId: type: string - description: "Proxmox cpu= guest CPU model for VMs cloned from this template. - Default: host." - v1ValidateNodeTopologyRequest: - type: object - properties: - topologyPaste: + createdByUserId: type: string - description: Raw topology paste to validate without persisting. - nodeId: + createdAt: type: string - description: >- - Optional node to cross-check the paste against (edit flow). When - set, the - - parsed totals are compared with the node's Proxmox-reported CPU inventory - - (metadata.proxmox_cpu) and mismatches are returned as warnings. - v1ValidateNodeTopologyResponse: - type: object - properties: - valid: - type: boolean - error: + format: date-time + updatedAt: type: string - description: Parse/validation error when valid is false. - modelName: + format: date-time + lastUsedAt: type: string - sockets: - type: integer - format: int32 - numaNodes: - type: integer - format: int32 - physicalCores: - type: integer - format: int32 - threadsPerCore: - type: integer - format: int32 - logicalCpus: + format: date-time + activeTokenCount: type: integer format: int32 - smtEnabled: - type: boolean - numaSummary: - type: array - items: - $ref: "#/components/schemas/v1NodeCPUMapNUMA" - description: Per-NUMA memory in MB, indexed by NUMA node id order. - warnings: + groupIds: type: array items: - $ref: "#/components/schemas/v1ValidateNodeTopologyWarning" - v1ValidateNodeTopologyWarning: - type: object - properties: - code: - type: string - message: - type: string - v1VerificationType: - type: string - enum: - - VERIFICATION_TYPE_UNSPECIFIED - - VERIFICATION_TYPE_DNS - - VERIFICATION_TYPE_HTTPS - default: VERIFICATION_TYPE_UNSPECIFIED - v1VerifyMfaEnrollmentRequest: - type: object - properties: - code: - type: string - v1VerifyMfaEnrollmentResponse: - type: object - properties: - backupCodes: + type: string + roleIds: type: array items: type: string - v1VirtualMachine: + v1ServiceAccountTokenInfo: type: object properties: - id: - type: string - description: The unique identifier for the virtual machine. This is a read-only - field. - readOnly: true - hostname: - type: string - description: The name of the virtual machine. - operationStatus: - $ref: "#/components/schemas/v1OperationStatus" - cpu: - type: integer - format: int32 - description: The number of CPU cores allocated to the virtual machine. - memory: - type: integer - format: int32 - description: The amount of memory in MB allocated to the virtual machine. - storage: - type: integer - format: int32 - description: Target storage for full clone. - providerOrganizationId: - type: string - description: The ID of the service provider organization for the virtual machine. - ipv4: + tokenId: type: string - description: Primary IPv4 from active IPAM allocations (when available). - readOnly: true - ipv6: + name: type: string - description: Primary IPv6 from active IPAM allocations (when available). - readOnly: true - distro: - $ref: "#/components/schemas/v1Distro" - createTime: + createdAt: type: string format: date-time - description: The creation timestamp of the virtual machine. - readOnly: true - updateTime: + expiresAt: type: string format: date-time - description: The last update timestamp of the virtual machine. - readOnly: true - regionCountry: - type: string - description: The country of the region where the virtual machine is located. - readOnly: true - regionCity: - type: string - description: The city of the region where the virtual machine is located. - readOnly: true - providerName: - type: string - description: The name of the provider organization that owns the node where the - virtual machine is located. - readOnly: true - tags: - type: array - items: - type: string - title: Tags for categorizing the virtual machine (e.g., "database", "webserver") - firewallRulesetId: - type: string - description: >- - Firewall ruleset attached to this VM (contains both ingress and - egress rules). - - Managed via attach/detach firewall endpoints. - readOnly: true - addonSubscriptions: - type: array - items: - $ref: "#/components/schemas/v1AddonSubscription" - title: Active addon subscriptions for this VM (backup, etc.) - readOnly: true - hasActiveBackupSubscription: - type: boolean - description: True when this VM has an active backup-class addon subscription - (derived from subscription add-ons). - readOnly: true - activeBackupSubscriptionName: - type: string - description: Display name of the active backup addon (empty when - has_active_backup_subscription is false). - readOnly: true - planBillingType: - $ref: "#/components/schemas/v1BillingType" - additionalIpv4: - type: array - items: - $ref: "#/components/schemas/v1AdditionalIPAddress" - description: Extra IPv4 addresses purchased via the ADDITIONAL-IP addon (same - prefix as primary). - readOnly: true - bandwidthEgress: - $ref: "#/components/schemas/v1VirtualMachineBandwidthQuota" - bandwidthIngress: - $ref: "#/components/schemas/v1VirtualMachineBandwidthQuota" - reinstallStatus: - $ref: "#/components/schemas/v1ReinstallStatus" - reinstalledAt: + lastUsedAt: type: string format: date-time - readOnly: true - instantAppId: - type: string - description: Platform Instant App used when this VM was created/reinstalled - (empty when OS-only). - readOnly: true - instantAppSlug: - type: string - readOnly: true - instantAppName: - type: string - readOnly: true - instantAppVersion: - type: string - readOnly: true - instantAppFamily: - type: string - description: Family key used for icons under /icons/instant-apps/{family}.svg - (e.g. portainer). - readOnly: true - instantAppIconUrl: + status: type: string - description: Optional override; when empty, clients fall back to the family icon - path. - readOnly: true - planCode: + createdByUserId: type: string - description: Marketplace plan code for this VM's subscription (e.g. - "DC-CPU-4C-4G-160"). - readOnly: true - description: VirtualMachine represents a managed virtual machine resource. - v1VirtualMachineBandwidthQuota: - type: object - properties: - usedGb: - type: number - format: double - description: Total bandwidth used this billing period (decimal GB, 1000^3 bytes). - readOnly: true - freeUnitsGb: - type: integer - format: int32 - description: Included free bandwidth per period (GB). Zero when unlimited or not - configured. - readOnly: true - blockSizeGb: + expiresInDays: type: integer format: int32 - description: Overage block size (GB). Zero when unlimited or linear pricing. - readOnly: true - blockPrice: - type: string - description: Price per overage block (decimal string, e.g. "2.00"). - readOnly: true - currency: - type: string - readOnly: true - unlimited: + v1ServiceStatus: + type: string + enum: + - SERVICE_STATUS_UNSPECIFIED + - SERVICE_STATUS_ONLINE + - SERVICE_STATUS_OFFLINE + - SERVICE_STATUS_MAINTENANCE + default: SERVICE_STATUS_UNSPECIFIED + v1SuccessResponse: + type: object + properties: + success: type: boolean - description: True when bandwidth is effectively unlimited ($0 overage) for this - direction. - readOnly: true - periodStart: + v1Timestamps: + type: object + properties: + createTime: type: string format: date-time - readOnly: true - periodEnd: + updateTime: type: string format: date-time - readOnly: true - overageGb: - type: number - format: double - description: GB above the free allowance (0 when within free tier). - readOnly: true - billableBlocks: - type: integer - format: int32 - description: Whole overage blocks currently billable (ceil(overage_gb / - block_size_gb)). - readOnly: true - nextBlockGb: - type: number - format: double - description: Total usage GB at which the next overage block would begin (0 when - unlimited). - readOnly: true - estimatedOverageAmount: - type: string - description: Estimated overage charge for the current period (decimal string). - readOnly: true - billingEnabled: - type: boolean - description: False when usage is shown for visibility only (e.g. ingress not - billed on this plan). - readOnly: true - description: >- - VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and - metered usage for graphs/billing UX. - - Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine. - v1VirtualMachineSmtpOutboundPolicyView: + v1UpdateAgentResponse: type: object properties: - virtualMachineId: - type: string - hostname: - type: string - action: - $ref: "#/components/schemas/v1SmtpOutboundVmAction" - effectiveBlocked: - type: boolean - clientOrganizationId: - type: string - description: Client organization that owns the VM (grouping key for provider UI). - clientOwnerUserId: - type: string - description: First owner user of that client organization (when resolved). - clientContactEmail: - type: string - description: Contact email of that owner (when resolved). - ipv4: - type: string - description: Primary active IPv4 / IPv6 from IPAM allocations (empty when none). - ipv6: - type: string - v1VoteRoadmapFeatureRequestResponse: + agent: + $ref: '#/components/schemas/v1Agent' + v1UploadInboundPeeringConfigResponse: type: object properties: - request: - $ref: "#/components/schemas/v1RoadmapFeatureRequest" + inboundPeeringState: + $ref: '#/components/schemas/v1InboundPeeringState' diff --git a/internal/api/generated/types.gen.go b/internal/api/generated/types.gen.go index 65858b5..a6307df 100644 --- a/internal/api/generated/types.gen.go +++ b/internal/api/generated/types.gen.go @@ -9,100 +9,25 @@ import ( // Defines values for Protov1Status. const ( - Protov1StatusSTATUSACTIVE Protov1Status = "STATUS_ACTIVE" - Protov1StatusSTATUSBANNED Protov1Status = "STATUS_BANNED" - Protov1StatusSTATUSINACTIVE Protov1Status = "STATUS_INACTIVE" - Protov1StatusSTATUSSOFTDELETED Protov1Status = "STATUS_SOFT_DELETED" - Protov1StatusSTATUSUNSPECIFIED Protov1Status = "STATUS_UNSPECIFIED" + STATUSACTIVE Protov1Status = "STATUS_ACTIVE" + STATUSBANNED Protov1Status = "STATUS_BANNED" + STATUSINACTIVE Protov1Status = "STATUS_INACTIVE" + STATUSSOFTDELETED Protov1Status = "STATUS_SOFT_DELETED" + STATUSUNSPECIFIED Protov1Status = "STATUS_UNSPECIFIED" ) // Valid indicates whether the value is a known member of the Protov1Status enum. func (e Protov1Status) Valid() bool { switch e { - case Protov1StatusSTATUSACTIVE: + case STATUSACTIVE: return true - case Protov1StatusSTATUSBANNED: + case STATUSBANNED: return true - case Protov1StatusSTATUSINACTIVE: + case STATUSINACTIVE: return true - case Protov1StatusSTATUSSOFTDELETED: + case STATUSSOFTDELETED: return true - case Protov1StatusSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1AddonPriceKind. -const ( - ADDONPRICEKINDONETIME V1AddonPriceKind = "ADDON_PRICE_KIND_ONE_TIME" - ADDONPRICEKINDSUBSCRIPTION V1AddonPriceKind = "ADDON_PRICE_KIND_SUBSCRIPTION" - ADDONPRICEKINDUNSPECIFIED V1AddonPriceKind = "ADDON_PRICE_KIND_UNSPECIFIED" - ADDONPRICEKINDUSAGEBASED V1AddonPriceKind = "ADDON_PRICE_KIND_USAGE_BASED" -) - -// Valid indicates whether the value is a known member of the V1AddonPriceKind enum. -func (e V1AddonPriceKind) Valid() bool { - switch e { - case ADDONPRICEKINDONETIME: - return true - case ADDONPRICEKINDSUBSCRIPTION: - return true - case ADDONPRICEKINDUNSPECIFIED: - return true - case ADDONPRICEKINDUSAGEBASED: - return true - default: - return false - } -} - -// Defines values for V1AddonStatus. -const ( - V1AddonStatusADDONSTATUSACTIVE V1AddonStatus = "ADDON_STATUS_ACTIVE" - V1AddonStatusADDONSTATUSCANCELED V1AddonStatus = "ADDON_STATUS_CANCELED" - V1AddonStatusADDONSTATUSPAUSED V1AddonStatus = "ADDON_STATUS_PAUSED" - V1AddonStatusADDONSTATUSPENDINGACTIVATION V1AddonStatus = "ADDON_STATUS_PENDING_ACTIVATION" - V1AddonStatusADDONSTATUSUNSPECIFIED V1AddonStatus = "ADDON_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1AddonStatus enum. -func (e V1AddonStatus) Valid() bool { - switch e { - case V1AddonStatusADDONSTATUSACTIVE: - return true - case V1AddonStatusADDONSTATUSCANCELED: - return true - case V1AddonStatusADDONSTATUSPAUSED: - return true - case V1AddonStatusADDONSTATUSPENDINGACTIVATION: - return true - case V1AddonStatusADDONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1AddonType. -const ( - V1AddonTypeADDONTYPEADDITIONALIP V1AddonType = "ADDON_TYPE_ADDITIONAL_IP" - V1AddonTypeADDONTYPEBACKUP V1AddonType = "ADDON_TYPE_BACKUP" - V1AddonTypeADDONTYPESNAPSHOT V1AddonType = "ADDON_TYPE_SNAPSHOT" - V1AddonTypeADDONTYPEUNSPECIFIED V1AddonType = "ADDON_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1AddonType enum. -func (e V1AddonType) Valid() bool { - switch e { - case V1AddonTypeADDONTYPEADDITIONALIP: - return true - case V1AddonTypeADDONTYPEBACKUP: - return true - case V1AddonTypeADDONTYPESNAPSHOT: - return true - case V1AddonTypeADDONTYPEUNSPECIFIED: + case STATUSUNSPECIFIED: return true default: return false @@ -127,9148 +52,424 @@ func (e V1AgentGatewayRegion) Valid() bool { } } -// Defines values for V1AggregationType. +// Defines values for V1InboundPeeringState. const ( - AGGREGATIONTYPEAVG V1AggregationType = "AGGREGATION_TYPE_AVG" - AGGREGATIONTYPECOUNT V1AggregationType = "AGGREGATION_TYPE_COUNT" - AGGREGATIONTYPELASTDURINGPERIOD V1AggregationType = "AGGREGATION_TYPE_LAST_DURING_PERIOD" - AGGREGATIONTYPEMAX V1AggregationType = "AGGREGATION_TYPE_MAX" - AGGREGATIONTYPEMIN V1AggregationType = "AGGREGATION_TYPE_MIN" - AGGREGATIONTYPESUM V1AggregationType = "AGGREGATION_TYPE_SUM" - AGGREGATIONTYPEUNSPECIFIED V1AggregationType = "AGGREGATION_TYPE_UNSPECIFIED" + INBOUNDPEERINGSTATEFAILED V1InboundPeeringState = "INBOUND_PEERING_STATE_FAILED" + INBOUNDPEERINGSTATEPEERING V1InboundPeeringState = "INBOUND_PEERING_STATE_PEERING" + INBOUNDPEERINGSTATEPENDING V1InboundPeeringState = "INBOUND_PEERING_STATE_PENDING" + INBOUNDPEERINGSTATEREADY V1InboundPeeringState = "INBOUND_PEERING_STATE_READY" + INBOUNDPEERINGSTATEUNSPECIFIED V1InboundPeeringState = "INBOUND_PEERING_STATE_UNSPECIFIED" ) -// Valid indicates whether the value is a known member of the V1AggregationType enum. -func (e V1AggregationType) Valid() bool { +// Valid indicates whether the value is a known member of the V1InboundPeeringState enum. +func (e V1InboundPeeringState) Valid() bool { switch e { - case AGGREGATIONTYPEAVG: - return true - case AGGREGATIONTYPECOUNT: - return true - case AGGREGATIONTYPELASTDURINGPERIOD: + case INBOUNDPEERINGSTATEFAILED: return true - case AGGREGATIONTYPEMAX: + case INBOUNDPEERINGSTATEPEERING: return true - case AGGREGATIONTYPEMIN: + case INBOUNDPEERINGSTATEPENDING: return true - case AGGREGATIONTYPESUM: + case INBOUNDPEERINGSTATEREADY: return true - case AGGREGATIONTYPEUNSPECIFIED: + case INBOUNDPEERINGSTATEUNSPECIFIED: return true default: return false } } -// Defines values for V1AllocationStrategy. +// Defines values for V1OrganizationType. const ( - ALLOCATIONSTRATEGYFIRSTAVAILABLE V1AllocationStrategy = "ALLOCATION_STRATEGY_FIRST_AVAILABLE" - ALLOCATIONSTRATEGYLASTAVAILABLE V1AllocationStrategy = "ALLOCATION_STRATEGY_LAST_AVAILABLE" - ALLOCATIONSTRATEGYRANDOM V1AllocationStrategy = "ALLOCATION_STRATEGY_RANDOM" - ALLOCATIONSTRATEGYSEQUENTIAL V1AllocationStrategy = "ALLOCATION_STRATEGY_SEQUENTIAL" - ALLOCATIONSTRATEGYUNSPECIFIED V1AllocationStrategy = "ALLOCATION_STRATEGY_UNSPECIFIED" + ORGANIZATIONTYPECLIENT V1OrganizationType = "ORGANIZATION_TYPE_CLIENT" + ORGANIZATIONTYPEPROVIDER V1OrganizationType = "ORGANIZATION_TYPE_PROVIDER" + ORGANIZATIONTYPEUNSPECIFIED V1OrganizationType = "ORGANIZATION_TYPE_UNSPECIFIED" ) -// Valid indicates whether the value is a known member of the V1AllocationStrategy enum. -func (e V1AllocationStrategy) Valid() bool { +// Valid indicates whether the value is a known member of the V1OrganizationType enum. +func (e V1OrganizationType) Valid() bool { switch e { - case ALLOCATIONSTRATEGYFIRSTAVAILABLE: - return true - case ALLOCATIONSTRATEGYLASTAVAILABLE: - return true - case ALLOCATIONSTRATEGYRANDOM: + case ORGANIZATIONTYPECLIENT: return true - case ALLOCATIONSTRATEGYSEQUENTIAL: + case ORGANIZATIONTYPEPROVIDER: return true - case ALLOCATIONSTRATEGYUNSPECIFIED: + case ORGANIZATIONTYPEUNSPECIFIED: return true default: return false } } -// Defines values for V1AssetCategory. +// Defines values for V1PlatformDriver. const ( - ASSETCATEGORYCOMPUTE V1AssetCategory = "ASSET_CATEGORY_COMPUTE" - ASSETCATEGORYMANAGEMENT V1AssetCategory = "ASSET_CATEGORY_MANAGEMENT" - ASSETCATEGORYMONITORING V1AssetCategory = "ASSET_CATEGORY_MONITORING" - ASSETCATEGORYNETWORK V1AssetCategory = "ASSET_CATEGORY_NETWORK" - ASSETCATEGORYOTHER V1AssetCategory = "ASSET_CATEGORY_OTHER" - ASSETCATEGORYSECURITY V1AssetCategory = "ASSET_CATEGORY_SECURITY" - ASSETCATEGORYSTORAGE V1AssetCategory = "ASSET_CATEGORY_STORAGE" - ASSETCATEGORYSUPPORT V1AssetCategory = "ASSET_CATEGORY_SUPPORT" - ASSETCATEGORYUNSPECIFIED V1AssetCategory = "ASSET_CATEGORY_UNSPECIFIED" + PLATFORMDRIVERPROXMOX V1PlatformDriver = "PLATFORM_DRIVER_PROXMOX" + PLATFORMDRIVERPTERODACTYL V1PlatformDriver = "PLATFORM_DRIVER_PTERODACTYL" + PLATFORMDRIVERSOLUSVM V1PlatformDriver = "PLATFORM_DRIVER_SOLUSVM" + PLATFORMDRIVERUNSPECIFIED V1PlatformDriver = "PLATFORM_DRIVER_UNSPECIFIED" + PLATFORMDRIVERVIRTFUSION V1PlatformDriver = "PLATFORM_DRIVER_VIRTFUSION" ) -// Valid indicates whether the value is a known member of the V1AssetCategory enum. -func (e V1AssetCategory) Valid() bool { +// Valid indicates whether the value is a known member of the V1PlatformDriver enum. +func (e V1PlatformDriver) Valid() bool { switch e { - case ASSETCATEGORYCOMPUTE: - return true - case ASSETCATEGORYMANAGEMENT: - return true - case ASSETCATEGORYMONITORING: - return true - case ASSETCATEGORYNETWORK: + case PLATFORMDRIVERPROXMOX: return true - case ASSETCATEGORYOTHER: + case PLATFORMDRIVERPTERODACTYL: return true - case ASSETCATEGORYSECURITY: + case PLATFORMDRIVERSOLUSVM: return true - case ASSETCATEGORYSTORAGE: + case PLATFORMDRIVERUNSPECIFIED: return true - case ASSETCATEGORYSUPPORT: - return true - case ASSETCATEGORYUNSPECIFIED: + case PLATFORMDRIVERVIRTFUSION: return true default: return false } } -// Defines values for V1AssetType. +// Defines values for V1ServiceStatus. const ( - V1AssetTypeASSETTYPECDN V1AssetType = "ASSET_TYPE_CDN" - V1AssetTypeASSETTYPECONTAINER V1AssetType = "ASSET_TYPE_CONTAINER" - V1AssetTypeASSETTYPEDNS V1AssetType = "ASSET_TYPE_DNS" - V1AssetTypeASSETTYPEGAMESERVER V1AssetType = "ASSET_TYPE_GAMESERVER" - V1AssetTypeASSETTYPEGENERIC V1AssetType = "ASSET_TYPE_GENERIC" - V1AssetTypeASSETTYPEGPU V1AssetType = "ASSET_TYPE_GPU" - V1AssetTypeASSETTYPEIPADDRESS V1AssetType = "ASSET_TYPE_IP_ADDRESS" - V1AssetTypeASSETTYPESTORAGE V1AssetType = "ASSET_TYPE_STORAGE" - V1AssetTypeASSETTYPEUNSPECIFIED V1AssetType = "ASSET_TYPE_UNSPECIFIED" - V1AssetTypeASSETTYPEVM V1AssetType = "ASSET_TYPE_VM" + SERVICESTATUSMAINTENANCE V1ServiceStatus = "SERVICE_STATUS_MAINTENANCE" + SERVICESTATUSOFFLINE V1ServiceStatus = "SERVICE_STATUS_OFFLINE" + SERVICESTATUSONLINE V1ServiceStatus = "SERVICE_STATUS_ONLINE" + SERVICESTATUSUNSPECIFIED V1ServiceStatus = "SERVICE_STATUS_UNSPECIFIED" ) -// Valid indicates whether the value is a known member of the V1AssetType enum. -func (e V1AssetType) Valid() bool { +// Valid indicates whether the value is a known member of the V1ServiceStatus enum. +func (e V1ServiceStatus) Valid() bool { switch e { - case V1AssetTypeASSETTYPECDN: + case SERVICESTATUSMAINTENANCE: return true - case V1AssetTypeASSETTYPECONTAINER: + case SERVICESTATUSOFFLINE: return true - case V1AssetTypeASSETTYPEDNS: + case SERVICESTATUSONLINE: return true - case V1AssetTypeASSETTYPEGAMESERVER: - return true - case V1AssetTypeASSETTYPEGENERIC: - return true - case V1AssetTypeASSETTYPEGPU: - return true - case V1AssetTypeASSETTYPEIPADDRESS: - return true - case V1AssetTypeASSETTYPESTORAGE: - return true - case V1AssetTypeASSETTYPEUNSPECIFIED: - return true - case V1AssetTypeASSETTYPEVM: + case SERVICESTATUSUNSPECIFIED: return true default: return false } } -// Defines values for V1BackupOperationStatus. +// Defines values for AgentServiceListAgentsParamsGatewayRegion. const ( - BACKUPOPERATIONSTATUSCOMPLETED V1BackupOperationStatus = "BACKUP_OPERATION_STATUS_COMPLETED" - BACKUPOPERATIONSTATUSFAILED V1BackupOperationStatus = "BACKUP_OPERATION_STATUS_FAILED" - BACKUPOPERATIONSTATUSPENDING V1BackupOperationStatus = "BACKUP_OPERATION_STATUS_PENDING" - BACKUPOPERATIONSTATUSPROCESSING V1BackupOperationStatus = "BACKUP_OPERATION_STATUS_PROCESSING" - BACKUPOPERATIONSTATUSUNSPECIFIED V1BackupOperationStatus = "BACKUP_OPERATION_STATUS_UNSPECIFIED" + AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONAMS01 AgentServiceListAgentsParamsGatewayRegion = "AGENT_GATEWAY_REGION_AMS01" + AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONUNSPECIFIED AgentServiceListAgentsParamsGatewayRegion = "AGENT_GATEWAY_REGION_UNSPECIFIED" ) -// Valid indicates whether the value is a known member of the V1BackupOperationStatus enum. -func (e V1BackupOperationStatus) Valid() bool { +// Valid indicates whether the value is a known member of the AgentServiceListAgentsParamsGatewayRegion enum. +func (e AgentServiceListAgentsParamsGatewayRegion) Valid() bool { switch e { - case BACKUPOPERATIONSTATUSCOMPLETED: - return true - case BACKUPOPERATIONSTATUSFAILED: - return true - case BACKUPOPERATIONSTATUSPENDING: - return true - case BACKUPOPERATIONSTATUSPROCESSING: + case AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONAMS01: return true - case BACKUPOPERATIONSTATUSUNSPECIFIED: + case AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONUNSPECIFIED: return true default: return false } } -// Defines values for V1BackupStatus. -const ( - V1BackupStatusBACKUPSTATUSACTIVE V1BackupStatus = "BACKUP_STATUS_ACTIVE" - V1BackupStatusBACKUPSTATUSDELETED V1BackupStatus = "BACKUP_STATUS_DELETED" - V1BackupStatusBACKUPSTATUSEXPIRED V1BackupStatus = "BACKUP_STATUS_EXPIRED" - V1BackupStatusBACKUPSTATUSUNKNOWN V1BackupStatus = "BACKUP_STATUS_UNKNOWN" - V1BackupStatusBACKUPSTATUSUNSPECIFIED V1BackupStatus = "BACKUP_STATUS_UNSPECIFIED" -) +// AgentServiceGeneratePeeringConfigBody defines model for AgentServiceGeneratePeeringConfigBody. +type AgentServiceGeneratePeeringConfigBody = map[string]interface{} -// Valid indicates whether the value is a known member of the V1BackupStatus enum. -func (e V1BackupStatus) Valid() bool { - switch e { - case V1BackupStatusBACKUPSTATUSACTIVE: - return true - case V1BackupStatusBACKUPSTATUSDELETED: - return true - case V1BackupStatusBACKUPSTATUSEXPIRED: - return true - case V1BackupStatusBACKUPSTATUSUNKNOWN: - return true - case V1BackupStatusBACKUPSTATUSUNSPECIFIED: - return true - default: - return false - } +// AgentServiceUpdateAgentBody defines model for AgentServiceUpdateAgentBody. +type AgentServiceUpdateAgentBody struct { + Description *string `json:"description,omitempty"` + HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` + Name *string `json:"name,omitempty"` } -// Defines values for V1BackupStorageCompression. -const ( - BACKUPSTORAGECOMPRESSIONGZIP V1BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_GZIP" - BACKUPSTORAGECOMPRESSIONLZO V1BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_LZO" - BACKUPSTORAGECOMPRESSIONNONE V1BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_NONE" - BACKUPSTORAGECOMPRESSIONUNSPECIFIED V1BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_UNSPECIFIED" - BACKUPSTORAGECOMPRESSIONZSTD V1BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_ZSTD" -) - -// Valid indicates whether the value is a known member of the V1BackupStorageCompression enum. -func (e V1BackupStorageCompression) Valid() bool { - switch e { - case BACKUPSTORAGECOMPRESSIONGZIP: - return true - case BACKUPSTORAGECOMPRESSIONLZO: - return true - case BACKUPSTORAGECOMPRESSIONNONE: - return true - case BACKUPSTORAGECOMPRESSIONUNSPECIFIED: - return true - case BACKUPSTORAGECOMPRESSIONZSTD: - return true - default: - return false - } +// AgentServiceUploadInboundPeeringConfigBody defines model for AgentServiceUploadInboundPeeringConfigBody. +type AgentServiceUploadInboundPeeringConfigBody struct { + Kubeconfig *string `json:"kubeconfig,omitempty"` } -// Defines values for V1BillingPeriod. -const ( - V1BillingPeriodBILLINGPERIODDAY V1BillingPeriod = "BILLING_PERIOD_DAY" - V1BillingPeriodBILLINGPERIODHOUR V1BillingPeriod = "BILLING_PERIOD_HOUR" - V1BillingPeriodBILLINGPERIODMONTH V1BillingPeriod = "BILLING_PERIOD_MONTH" - V1BillingPeriodBILLINGPERIODQUARTER V1BillingPeriod = "BILLING_PERIOD_QUARTER" - V1BillingPeriodBILLINGPERIODUNSPECIFIED V1BillingPeriod = "BILLING_PERIOD_UNSPECIFIED" - V1BillingPeriodBILLINGPERIODWEEK V1BillingPeriod = "BILLING_PERIOD_WEEK" - V1BillingPeriodBILLINGPERIODYEAR V1BillingPeriod = "BILLING_PERIOD_YEAR" -) +// MetricsCredentialServiceRotateMetricsWriteCredentialBody defines model for MetricsCredentialServiceRotateMetricsWriteCredentialBody. +type MetricsCredentialServiceRotateMetricsWriteCredentialBody = map[string]interface{} -// Valid indicates whether the value is a known member of the V1BillingPeriod enum. -func (e V1BillingPeriod) Valid() bool { - switch e { - case V1BillingPeriodBILLINGPERIODDAY: - return true - case V1BillingPeriodBILLINGPERIODHOUR: - return true - case V1BillingPeriodBILLINGPERIODMONTH: - return true - case V1BillingPeriodBILLINGPERIODQUARTER: - return true - case V1BillingPeriodBILLINGPERIODUNSPECIFIED: - return true - case V1BillingPeriodBILLINGPERIODWEEK: - return true - case V1BillingPeriodBILLINGPERIODYEAR: - return true - default: - return false - } +// ServiceAccountServiceGenerateTokenBody defines model for ServiceAccountServiceGenerateTokenBody. +type ServiceAccountServiceGenerateTokenBody struct { + ExpiresInDays *int32 `json:"expiresInDays,omitempty"` + Name *string `json:"name,omitempty"` } -// Defines values for V1BillingType. -const ( - V1BillingTypeBILLINGTYPEFREE V1BillingType = "BILLING_TYPE_FREE" - V1BillingTypeBILLINGTYPEPERCENTAGE V1BillingType = "BILLING_TYPE_PERCENTAGE" - V1BillingTypeBILLINGTYPESUBSCRIPTION V1BillingType = "BILLING_TYPE_SUBSCRIPTION" - V1BillingTypeBILLINGTYPEUNSPECIFIED V1BillingType = "BILLING_TYPE_UNSPECIFIED" - V1BillingTypeBILLINGTYPEUSAGE V1BillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the V1BillingType enum. -func (e V1BillingType) Valid() bool { - switch e { - case V1BillingTypeBILLINGTYPEFREE: - return true - case V1BillingTypeBILLINGTYPEPERCENTAGE: - return true - case V1BillingTypeBILLINGTYPESUBSCRIPTION: - return true - case V1BillingTypeBILLINGTYPEUNSPECIFIED: - return true - case V1BillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } +// ServiceAccountServiceUpdateServiceAccountBody defines model for ServiceAccountServiceUpdateServiceAccountBody. +type ServiceAccountServiceUpdateServiceAccountBody struct { + AllowedIps *[]string `json:"allowedIps,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"isActive,omitempty"` + Name *string `json:"name,omitempty"` } -// Defines values for V1CPUType. -const ( - CPUTYPEAMD V1CPUType = "CPU_TYPE_AMD" - CPUTYPEARM V1CPUType = "CPU_TYPE_ARM" - CPUTYPEINTEL V1CPUType = "CPU_TYPE_INTEL" - CPUTYPEUNSPECIFIED V1CPUType = "CPU_TYPE_UNSPECIFIED" -) +// Protov1Status defines model for protov1Status. +type Protov1Status string -// Valid indicates whether the value is a known member of the V1CPUType enum. -func (e V1CPUType) Valid() bool { - switch e { - case CPUTYPEAMD: - return true - case CPUTYPEARM: - return true - case CPUTYPEINTEL: - return true - case CPUTYPEUNSPECIFIED: - return true - default: - return false - } +// V1AddServiceAccountToGroupRequest defines model for v1AddServiceAccountToGroupRequest. +type V1AddServiceAccountToGroupRequest struct { + GroupId *string `json:"groupId,omitempty"` + ServiceAccountIds *[]string `json:"serviceAccountIds,omitempty"` } -// Defines values for V1CaseType. -const ( - V1CaseTypeCASETYPEABUSE V1CaseType = "CASE_TYPE_ABUSE" - V1CaseTypeCASETYPEBILLING V1CaseType = "CASE_TYPE_BILLING" - V1CaseTypeCASETYPECONFIGURATIONCHANGE V1CaseType = "CASE_TYPE_CONFIGURATION_CHANGE" - V1CaseTypeCASETYPEGENERAL V1CaseType = "CASE_TYPE_GENERAL" - V1CaseTypeCASETYPEOUTAGE V1CaseType = "CASE_TYPE_OUTAGE" - V1CaseTypeCASETYPETROUBLESHOOTING V1CaseType = "CASE_TYPE_TROUBLESHOOTING" - V1CaseTypeCASETYPEUNSPECIFIED V1CaseType = "CASE_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1CaseType enum. -func (e V1CaseType) Valid() bool { - switch e { - case V1CaseTypeCASETYPEABUSE: - return true - case V1CaseTypeCASETYPEBILLING: - return true - case V1CaseTypeCASETYPECONFIGURATIONCHANGE: - return true - case V1CaseTypeCASETYPEGENERAL: - return true - case V1CaseTypeCASETYPEOUTAGE: - return true - case V1CaseTypeCASETYPETROUBLESHOOTING: - return true - case V1CaseTypeCASETYPEUNSPECIFIED: - return true - default: - return false - } +// V1Agent defines model for v1Agent. +type V1Agent struct { + AgentPublicIp *string `json:"agentPublicIp,omitempty"` + Description *string `json:"description,omitempty"` + GatewayRegion *V1AgentGatewayRegion `json:"gatewayRegion,omitempty"` + GwServerServicePort *int32 `json:"gwServerServicePort,omitempty"` + HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` + Id *string `json:"id,omitempty"` + InboundPeeringError *string `json:"inboundPeeringError,omitempty"` + InboundPeeringState *V1InboundPeeringState `json:"inboundPeeringState,omitempty"` + Metadata *map[string]interface{} `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + Provisioned *bool `json:"provisioned,omitempty"` + ServiceStatus *V1ServiceStatus `json:"serviceStatus,omitempty"` + Status *Protov1Status `json:"status,omitempty"` + Timestamps *V1Timestamps `json:"timestamps,omitempty"` } -// Defines values for V1ChargeTiming. -const ( - CHARGETIMINGINADVANCE V1ChargeTiming = "CHARGE_TIMING_IN_ADVANCE" - CHARGETIMINGINARREARS V1ChargeTiming = "CHARGE_TIMING_IN_ARREARS" - CHARGETIMINGUNSPECIFIED V1ChargeTiming = "CHARGE_TIMING_UNSPECIFIED" -) +// V1AgentGatewayRegion defines model for v1AgentGatewayRegion. +type V1AgentGatewayRegion string -// Valid indicates whether the value is a known member of the V1ChargeTiming enum. -func (e V1ChargeTiming) Valid() bool { - switch e { - case CHARGETIMINGINADVANCE: - return true - case CHARGETIMINGINARREARS: - return true - case CHARGETIMINGUNSPECIFIED: - return true - default: - return false - } +// V1ComponentVersion defines model for v1ComponentVersion. +type V1ComponentVersion struct { + ChecksumSha256 *string `json:"checksumSha256,omitempty"` + DownloadUrl *string `json:"downloadUrl,omitempty"` + MinVersion *string `json:"minVersion,omitempty"` + Name *string `json:"name,omitempty"` + Version *string `json:"version,omitempty"` } -// Defines values for V1ComputeCategory. -const ( - V1ComputeCategoryCOMPUTECATEGORYDEDICATEDCOMPUTE V1ComputeCategory = "COMPUTE_CATEGORY_DEDICATED_COMPUTE" - V1ComputeCategoryCOMPUTECATEGORYSHAREDCOMPUTE V1ComputeCategory = "COMPUTE_CATEGORY_SHARED_COMPUTE" - V1ComputeCategoryCOMPUTECATEGORYUNSPECIFIED V1ComputeCategory = "COMPUTE_CATEGORY_UNSPECIFIED" -) +// V1CreateAgentRequest defines model for v1CreateAgentRequest. +type V1CreateAgentRequest struct { + AgentPublicIp *string `json:"agentPublicIp,omitempty"` + Description *string `json:"description,omitempty"` + GatewayRegion *V1AgentGatewayRegion `json:"gatewayRegion,omitempty"` + HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` + Name *string `json:"name,omitempty"` +} -// Valid indicates whether the value is a known member of the V1ComputeCategory enum. -func (e V1ComputeCategory) Valid() bool { - switch e { - case V1ComputeCategoryCOMPUTECATEGORYDEDICATEDCOMPUTE: - return true - case V1ComputeCategoryCOMPUTECATEGORYSHAREDCOMPUTE: - return true - case V1ComputeCategoryCOMPUTECATEGORYUNSPECIFIED: - return true - default: - return false - } +// V1CreateMetricsWriteCredentialRequest defines model for v1CreateMetricsWriteCredentialRequest. +type V1CreateMetricsWriteCredentialRequest struct { + AgentId *string `json:"agentId,omitempty"` + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + Name *string `json:"name,omitempty"` } -// Defines values for V1ComputeType. -const ( - V1ComputeTypeCOMPUTETYPECPUOPTIMIZED V1ComputeType = "COMPUTE_TYPE_CPU_OPTIMIZED" - V1ComputeTypeCOMPUTETYPEGAMESERVER V1ComputeType = "COMPUTE_TYPE_GAME_SERVER" - V1ComputeTypeCOMPUTETYPEGENERALCOMPUTE V1ComputeType = "COMPUTE_TYPE_GENERAL_COMPUTE" - V1ComputeTypeCOMPUTETYPEGENERALPURPOSE V1ComputeType = "COMPUTE_TYPE_GENERAL_PURPOSE" - V1ComputeTypeCOMPUTETYPEHIGHFREQUENCY V1ComputeType = "COMPUTE_TYPE_HIGH_FREQUENCY" - V1ComputeTypeCOMPUTETYPEHIGHPERFORMANCE V1ComputeType = "COMPUTE_TYPE_HIGH_PERFORMANCE" - V1ComputeTypeCOMPUTETYPEMEMORYOPTIMIZED V1ComputeType = "COMPUTE_TYPE_MEMORY_OPTIMIZED" - V1ComputeTypeCOMPUTETYPESTORAGEOPTIMIZED V1ComputeType = "COMPUTE_TYPE_STORAGE_OPTIMIZED" - V1ComputeTypeCOMPUTETYPEUNSPECIFIED V1ComputeType = "COMPUTE_TYPE_UNSPECIFIED" - V1ComputeTypeCOMPUTETYPEVERYHIGHFREQUENCY V1ComputeType = "COMPUTE_TYPE_VERY_HIGH_FREQUENCY" -) +// V1CreateMetricsWriteCredentialResponse defines model for v1CreateMetricsWriteCredentialResponse. +type V1CreateMetricsWriteCredentialResponse struct { + Credential *V1MetricsWriteCredential `json:"credential,omitempty"` + Token *string `json:"token,omitempty"` +} -// Valid indicates whether the value is a known member of the V1ComputeType enum. -func (e V1ComputeType) Valid() bool { - switch e { - case V1ComputeTypeCOMPUTETYPECPUOPTIMIZED: - return true - case V1ComputeTypeCOMPUTETYPEGAMESERVER: - return true - case V1ComputeTypeCOMPUTETYPEGENERALCOMPUTE: - return true - case V1ComputeTypeCOMPUTETYPEGENERALPURPOSE: - return true - case V1ComputeTypeCOMPUTETYPEHIGHFREQUENCY: - return true - case V1ComputeTypeCOMPUTETYPEHIGHPERFORMANCE: - return true - case V1ComputeTypeCOMPUTETYPEMEMORYOPTIMIZED: - return true - case V1ComputeTypeCOMPUTETYPESTORAGEOPTIMIZED: - return true - case V1ComputeTypeCOMPUTETYPEUNSPECIFIED: - return true - case V1ComputeTypeCOMPUTETYPEVERYHIGHFREQUENCY: - return true - default: - return false - } -} - -// Defines values for V1Distro. -const ( - V1DistroDISTROALMALINUX10 V1Distro = "DISTRO_ALMALINUX_10" - V1DistroDISTROALMALINUX9 V1Distro = "DISTRO_ALMALINUX_9" - V1DistroDISTROCENTOS10 V1Distro = "DISTRO_CENTOS_10" - V1DistroDISTROCENTOS9 V1Distro = "DISTRO_CENTOS_9" - V1DistroDISTRODEBIAN12 V1Distro = "DISTRO_DEBIAN_12" - V1DistroDISTRODEBIAN13 V1Distro = "DISTRO_DEBIAN_13" - V1DistroDISTROFEDORA43 V1Distro = "DISTRO_FEDORA_43" - V1DistroDISTROFEDORA44 V1Distro = "DISTRO_FEDORA_44" - V1DistroDISTROROCKY10 V1Distro = "DISTRO_ROCKY_10" - V1DistroDISTROROCKY9 V1Distro = "DISTRO_ROCKY_9" - V1DistroDISTROUBUNTU2204 V1Distro = "DISTRO_UBUNTU_22_04" - V1DistroDISTROUBUNTU2404 V1Distro = "DISTRO_UBUNTU_24_04" - V1DistroDISTROUBUNTU2604 V1Distro = "DISTRO_UBUNTU_26_04" - V1DistroDISTROUNSPECIFIED V1Distro = "DISTRO_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1Distro enum. -func (e V1Distro) Valid() bool { - switch e { - case V1DistroDISTROALMALINUX10: - return true - case V1DistroDISTROALMALINUX9: - return true - case V1DistroDISTROCENTOS10: - return true - case V1DistroDISTROCENTOS9: - return true - case V1DistroDISTRODEBIAN12: - return true - case V1DistroDISTRODEBIAN13: - return true - case V1DistroDISTROFEDORA43: - return true - case V1DistroDISTROFEDORA44: - return true - case V1DistroDISTROROCKY10: - return true - case V1DistroDISTROROCKY9: - return true - case V1DistroDISTROUBUNTU2204: - return true - case V1DistroDISTROUBUNTU2404: - return true - case V1DistroDISTROUBUNTU2604: - return true - case V1DistroDISTROUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1EndUser. -const ( - V1EndUserENDUSERALL V1EndUser = "END_USER_ALL" - V1EndUserENDUSERCLIENT V1EndUser = "END_USER_CLIENT" - V1EndUserENDUSERPROVIDER V1EndUser = "END_USER_PROVIDER" - V1EndUserENDUSERUNSPECIFIED V1EndUser = "END_USER_UNSPECIFIED" - V1EndUserENDUSERUSER V1EndUser = "END_USER_USER" -) - -// Valid indicates whether the value is a known member of the V1EndUser enum. -func (e V1EndUser) Valid() bool { - switch e { - case V1EndUserENDUSERALL: - return true - case V1EndUserENDUSERCLIENT: - return true - case V1EndUserENDUSERPROVIDER: - return true - case V1EndUserENDUSERUNSPECIFIED: - return true - case V1EndUserENDUSERUSER: - return true - default: - return false - } -} - -// Defines values for V1FirewallAction. -const ( - FIREWALLACTIONACCEPT V1FirewallAction = "FIREWALL_ACTION_ACCEPT" - FIREWALLACTIONDROP V1FirewallAction = "FIREWALL_ACTION_DROP" - FIREWALLACTIONUNSPECIFIED V1FirewallAction = "FIREWALL_ACTION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1FirewallAction enum. -func (e V1FirewallAction) Valid() bool { - switch e { - case FIREWALLACTIONACCEPT: - return true - case FIREWALLACTIONDROP: - return true - case FIREWALLACTIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1FirewallDirection. -const ( - V1FirewallDirectionFIREWALLDIRECTIONEGRESS V1FirewallDirection = "FIREWALL_DIRECTION_EGRESS" - V1FirewallDirectionFIREWALLDIRECTIONINGRESS V1FirewallDirection = "FIREWALL_DIRECTION_INGRESS" - V1FirewallDirectionFIREWALLDIRECTIONUNSPECIFIED V1FirewallDirection = "FIREWALL_DIRECTION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1FirewallDirection enum. -func (e V1FirewallDirection) Valid() bool { - switch e { - case V1FirewallDirectionFIREWALLDIRECTIONEGRESS: - return true - case V1FirewallDirectionFIREWALLDIRECTIONINGRESS: - return true - case V1FirewallDirectionFIREWALLDIRECTIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1FirewallProtocol. -const ( - FIREWALLPROTOCOLAH V1FirewallProtocol = "FIREWALL_PROTOCOL_AH" - FIREWALLPROTOCOLANY V1FirewallProtocol = "FIREWALL_PROTOCOL_ANY" - FIREWALLPROTOCOLAX25 V1FirewallProtocol = "FIREWALL_PROTOCOL_AX_25" - FIREWALLPROTOCOLDCCP V1FirewallProtocol = "FIREWALL_PROTOCOL_DCCP" - FIREWALLPROTOCOLDDP V1FirewallProtocol = "FIREWALL_PROTOCOL_DDP" - FIREWALLPROTOCOLEGP V1FirewallProtocol = "FIREWALL_PROTOCOL_EGP" - FIREWALLPROTOCOLEIGRP V1FirewallProtocol = "FIREWALL_PROTOCOL_EIGRP" - FIREWALLPROTOCOLENCAP V1FirewallProtocol = "FIREWALL_PROTOCOL_ENCAP" - FIREWALLPROTOCOLESP V1FirewallProtocol = "FIREWALL_PROTOCOL_ESP" - FIREWALLPROTOCOLETHERIP V1FirewallProtocol = "FIREWALL_PROTOCOL_ETHERIP" - FIREWALLPROTOCOLFC V1FirewallProtocol = "FIREWALL_PROTOCOL_FC" - FIREWALLPROTOCOLGENEVE V1FirewallProtocol = "FIREWALL_PROTOCOL_GENEVE" - FIREWALLPROTOCOLGGP V1FirewallProtocol = "FIREWALL_PROTOCOL_GGP" - FIREWALLPROTOCOLGRE V1FirewallProtocol = "FIREWALL_PROTOCOL_GRE" - FIREWALLPROTOCOLHIP V1FirewallProtocol = "FIREWALL_PROTOCOL_HIP" - FIREWALLPROTOCOLHMP V1FirewallProtocol = "FIREWALL_PROTOCOL_HMP" - FIREWALLPROTOCOLICMP V1FirewallProtocol = "FIREWALL_PROTOCOL_ICMP" - FIREWALLPROTOCOLICMPV6 V1FirewallProtocol = "FIREWALL_PROTOCOL_ICMPV6" - FIREWALLPROTOCOLIDPRCMTP V1FirewallProtocol = "FIREWALL_PROTOCOL_IDPR_CMTP" - FIREWALLPROTOCOLIDRP V1FirewallProtocol = "FIREWALL_PROTOCOL_IDRP" - FIREWALLPROTOCOLIGMP V1FirewallProtocol = "FIREWALL_PROTOCOL_IGMP" - FIREWALLPROTOCOLIGP V1FirewallProtocol = "FIREWALL_PROTOCOL_IGP" - FIREWALLPROTOCOLIPCOMP V1FirewallProtocol = "FIREWALL_PROTOCOL_IPCOMP" - FIREWALLPROTOCOLIPENCAP V1FirewallProtocol = "FIREWALL_PROTOCOL_IPENCAP" - FIREWALLPROTOCOLIPIP V1FirewallProtocol = "FIREWALL_PROTOCOL_IPIP" - FIREWALLPROTOCOLIPSEC V1FirewallProtocol = "FIREWALL_PROTOCOL_IPSEC" - FIREWALLPROTOCOLIPV6 V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6" - FIREWALLPROTOCOLIPV6FRAG V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_FRAG" - FIREWALLPROTOCOLIPV6ICMP V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_ICMP" - FIREWALLPROTOCOLIPV6NONXT V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_NONXT" - FIREWALLPROTOCOLIPV6OPTS V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_OPTS" - FIREWALLPROTOCOLIPV6ROUTE V1FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_ROUTE" - FIREWALLPROTOCOLISIS V1FirewallProtocol = "FIREWALL_PROTOCOL_ISIS" - FIREWALLPROTOCOLISOTP4 V1FirewallProtocol = "FIREWALL_PROTOCOL_ISO_TP4" - FIREWALLPROTOCOLL2TP V1FirewallProtocol = "FIREWALL_PROTOCOL_L2TP" - FIREWALLPROTOCOLMOBILITYHEADER V1FirewallProtocol = "FIREWALL_PROTOCOL_MOBILITY_HEADER" - FIREWALLPROTOCOLMPLSINIP V1FirewallProtocol = "FIREWALL_PROTOCOL_MPLS_IN_IP" - FIREWALLPROTOCOLOSPF V1FirewallProtocol = "FIREWALL_PROTOCOL_OSPF" - FIREWALLPROTOCOLPIM V1FirewallProtocol = "FIREWALL_PROTOCOL_PIM" - FIREWALLPROTOCOLPUP V1FirewallProtocol = "FIREWALL_PROTOCOL_PUP" - FIREWALLPROTOCOLRDP V1FirewallProtocol = "FIREWALL_PROTOCOL_RDP" - FIREWALLPROTOCOLROHC V1FirewallProtocol = "FIREWALL_PROTOCOL_ROHC" - FIREWALLPROTOCOLRSVP V1FirewallProtocol = "FIREWALL_PROTOCOL_RSVP" - FIREWALLPROTOCOLSCTP V1FirewallProtocol = "FIREWALL_PROTOCOL_SCTP" - FIREWALLPROTOCOLSHIM6 V1FirewallProtocol = "FIREWALL_PROTOCOL_SHIM6" - FIREWALLPROTOCOLSKIP V1FirewallProtocol = "FIREWALL_PROTOCOL_SKIP" - FIREWALLPROTOCOLST V1FirewallProtocol = "FIREWALL_PROTOCOL_ST" - FIREWALLPROTOCOLTCP V1FirewallProtocol = "FIREWALL_PROTOCOL_TCP" - FIREWALLPROTOCOLUDP V1FirewallProtocol = "FIREWALL_PROTOCOL_UDP" - FIREWALLPROTOCOLUDPLITE V1FirewallProtocol = "FIREWALL_PROTOCOL_UDPLITE" - FIREWALLPROTOCOLUNSPECIFIED V1FirewallProtocol = "FIREWALL_PROTOCOL_UNSPECIFIED" - FIREWALLPROTOCOLVMTP V1FirewallProtocol = "FIREWALL_PROTOCOL_VMTP" - FIREWALLPROTOCOLVRRP V1FirewallProtocol = "FIREWALL_PROTOCOL_VRRP" - FIREWALLPROTOCOLVXLAN V1FirewallProtocol = "FIREWALL_PROTOCOL_VXLAN" - FIREWALLPROTOCOLWESP V1FirewallProtocol = "FIREWALL_PROTOCOL_WESP" - FIREWALLPROTOCOLXNSIDP V1FirewallProtocol = "FIREWALL_PROTOCOL_XNS_IDP" - FIREWALLPROTOCOLXTP V1FirewallProtocol = "FIREWALL_PROTOCOL_XTP" -) - -// Valid indicates whether the value is a known member of the V1FirewallProtocol enum. -func (e V1FirewallProtocol) Valid() bool { - switch e { - case FIREWALLPROTOCOLAH: - return true - case FIREWALLPROTOCOLANY: - return true - case FIREWALLPROTOCOLAX25: - return true - case FIREWALLPROTOCOLDCCP: - return true - case FIREWALLPROTOCOLDDP: - return true - case FIREWALLPROTOCOLEGP: - return true - case FIREWALLPROTOCOLEIGRP: - return true - case FIREWALLPROTOCOLENCAP: - return true - case FIREWALLPROTOCOLESP: - return true - case FIREWALLPROTOCOLETHERIP: - return true - case FIREWALLPROTOCOLFC: - return true - case FIREWALLPROTOCOLGENEVE: - return true - case FIREWALLPROTOCOLGGP: - return true - case FIREWALLPROTOCOLGRE: - return true - case FIREWALLPROTOCOLHIP: - return true - case FIREWALLPROTOCOLHMP: - return true - case FIREWALLPROTOCOLICMP: - return true - case FIREWALLPROTOCOLICMPV6: - return true - case FIREWALLPROTOCOLIDPRCMTP: - return true - case FIREWALLPROTOCOLIDRP: - return true - case FIREWALLPROTOCOLIGMP: - return true - case FIREWALLPROTOCOLIGP: - return true - case FIREWALLPROTOCOLIPCOMP: - return true - case FIREWALLPROTOCOLIPENCAP: - return true - case FIREWALLPROTOCOLIPIP: - return true - case FIREWALLPROTOCOLIPSEC: - return true - case FIREWALLPROTOCOLIPV6: - return true - case FIREWALLPROTOCOLIPV6FRAG: - return true - case FIREWALLPROTOCOLIPV6ICMP: - return true - case FIREWALLPROTOCOLIPV6NONXT: - return true - case FIREWALLPROTOCOLIPV6OPTS: - return true - case FIREWALLPROTOCOLIPV6ROUTE: - return true - case FIREWALLPROTOCOLISIS: - return true - case FIREWALLPROTOCOLISOTP4: - return true - case FIREWALLPROTOCOLL2TP: - return true - case FIREWALLPROTOCOLMOBILITYHEADER: - return true - case FIREWALLPROTOCOLMPLSINIP: - return true - case FIREWALLPROTOCOLOSPF: - return true - case FIREWALLPROTOCOLPIM: - return true - case FIREWALLPROTOCOLPUP: - return true - case FIREWALLPROTOCOLRDP: - return true - case FIREWALLPROTOCOLROHC: - return true - case FIREWALLPROTOCOLRSVP: - return true - case FIREWALLPROTOCOLSCTP: - return true - case FIREWALLPROTOCOLSHIM6: - return true - case FIREWALLPROTOCOLSKIP: - return true - case FIREWALLPROTOCOLST: - return true - case FIREWALLPROTOCOLTCP: - return true - case FIREWALLPROTOCOLUDP: - return true - case FIREWALLPROTOCOLUDPLITE: - return true - case FIREWALLPROTOCOLUNSPECIFIED: - return true - case FIREWALLPROTOCOLVMTP: - return true - case FIREWALLPROTOCOLVRRP: - return true - case FIREWALLPROTOCOLVXLAN: - return true - case FIREWALLPROTOCOLWESP: - return true - case FIREWALLPROTOCOLXNSIDP: - return true - case FIREWALLPROTOCOLXTP: - return true - default: - return false - } -} - -// Defines values for V1FirewallRulePosition. -const ( - FIREWALLRULEPOSITIONAFTER V1FirewallRulePosition = "FIREWALL_RULE_POSITION_AFTER" - FIREWALLRULEPOSITIONBEFORE V1FirewallRulePosition = "FIREWALL_RULE_POSITION_BEFORE" - FIREWALLRULEPOSITIONUNSPECIFIED V1FirewallRulePosition = "FIREWALL_RULE_POSITION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1FirewallRulePosition enum. -func (e V1FirewallRulePosition) Valid() bool { - switch e { - case FIREWALLRULEPOSITIONAFTER: - return true - case FIREWALLRULEPOSITIONBEFORE: - return true - case FIREWALLRULEPOSITIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1IPAllocationStatus. -const ( - IPALLOCATIONSTATUSACTIVE V1IPAllocationStatus = "IP_ALLOCATION_STATUS_ACTIVE" - IPALLOCATIONSTATUSRELEASED V1IPAllocationStatus = "IP_ALLOCATION_STATUS_RELEASED" - IPALLOCATIONSTATUSUNSPECIFIED V1IPAllocationStatus = "IP_ALLOCATION_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1IPAllocationStatus enum. -func (e V1IPAllocationStatus) Valid() bool { - switch e { - case IPALLOCATIONSTATUSACTIVE: - return true - case IPALLOCATIONSTATUSRELEASED: - return true - case IPALLOCATIONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1InboundPeeringState. -const ( - INBOUNDPEERINGSTATEFAILED V1InboundPeeringState = "INBOUND_PEERING_STATE_FAILED" - INBOUNDPEERINGSTATEPEERING V1InboundPeeringState = "INBOUND_PEERING_STATE_PEERING" - INBOUNDPEERINGSTATEPENDING V1InboundPeeringState = "INBOUND_PEERING_STATE_PENDING" - INBOUNDPEERINGSTATEREADY V1InboundPeeringState = "INBOUND_PEERING_STATE_READY" - INBOUNDPEERINGSTATEUNSPECIFIED V1InboundPeeringState = "INBOUND_PEERING_STATE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1InboundPeeringState enum. -func (e V1InboundPeeringState) Valid() bool { - switch e { - case INBOUNDPEERINGSTATEFAILED: - return true - case INBOUNDPEERINGSTATEPEERING: - return true - case INBOUNDPEERINGSTATEPENDING: - return true - case INBOUNDPEERINGSTATEREADY: - return true - case INBOUNDPEERINGSTATEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1InviteStatus. -const ( - INVITESTATUSACCEPTED V1InviteStatus = "INVITE_STATUS_ACCEPTED" - INVITESTATUSDECLINED V1InviteStatus = "INVITE_STATUS_DECLINED" - INVITESTATUSEXPIRED V1InviteStatus = "INVITE_STATUS_EXPIRED" - INVITESTATUSSENT V1InviteStatus = "INVITE_STATUS_SENT" - INVITESTATUSUNSPECIFIED V1InviteStatus = "INVITE_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1InviteStatus enum. -func (e V1InviteStatus) Valid() bool { - switch e { - case INVITESTATUSACCEPTED: - return true - case INVITESTATUSDECLINED: - return true - case INVITESTATUSEXPIRED: - return true - case INVITESTATUSSENT: - return true - case INVITESTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1InvoiceStatus. -const ( - V1InvoiceStatusINVOICESTATUSDRAFT V1InvoiceStatus = "INVOICE_STATUS_DRAFT" - V1InvoiceStatusINVOICESTATUSOPEN V1InvoiceStatus = "INVOICE_STATUS_OPEN" - V1InvoiceStatusINVOICESTATUSPAID V1InvoiceStatus = "INVOICE_STATUS_PAID" - V1InvoiceStatusINVOICESTATUSPASTDUE V1InvoiceStatus = "INVOICE_STATUS_PAST_DUE" - V1InvoiceStatusINVOICESTATUSUNCOLLECTIBLE V1InvoiceStatus = "INVOICE_STATUS_UNCOLLECTIBLE" - V1InvoiceStatusINVOICESTATUSUNSPECIFIED V1InvoiceStatus = "INVOICE_STATUS_UNSPECIFIED" - V1InvoiceStatusINVOICESTATUSVOID V1InvoiceStatus = "INVOICE_STATUS_VOID" -) - -// Valid indicates whether the value is a known member of the V1InvoiceStatus enum. -func (e V1InvoiceStatus) Valid() bool { - switch e { - case V1InvoiceStatusINVOICESTATUSDRAFT: - return true - case V1InvoiceStatusINVOICESTATUSOPEN: - return true - case V1InvoiceStatusINVOICESTATUSPAID: - return true - case V1InvoiceStatusINVOICESTATUSPASTDUE: - return true - case V1InvoiceStatusINVOICESTATUSUNCOLLECTIBLE: - return true - case V1InvoiceStatusINVOICESTATUSUNSPECIFIED: - return true - case V1InvoiceStatusINVOICESTATUSVOID: - return true - default: - return false - } -} - -// Defines values for V1MetricAggregation. -const ( - METRICAGGREGATIONCOUNT V1MetricAggregation = "METRIC_AGGREGATION_COUNT" - METRICAGGREGATIONLASTDURINGPERIOD V1MetricAggregation = "METRIC_AGGREGATION_LAST_DURING_PERIOD" - METRICAGGREGATIONMAX V1MetricAggregation = "METRIC_AGGREGATION_MAX" - METRICAGGREGATIONSUM V1MetricAggregation = "METRIC_AGGREGATION_SUM" - METRICAGGREGATIONUNSPECIFIED V1MetricAggregation = "METRIC_AGGREGATION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1MetricAggregation enum. -func (e V1MetricAggregation) Valid() bool { - switch e { - case METRICAGGREGATIONCOUNT: - return true - case METRICAGGREGATIONLASTDURINGPERIOD: - return true - case METRICAGGREGATIONMAX: - return true - case METRICAGGREGATIONSUM: - return true - case METRICAGGREGATIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1MetricType. -const ( - METRICTYPECOUNTER V1MetricType = "METRIC_TYPE_COUNTER" - METRICTYPEGAUGE V1MetricType = "METRIC_TYPE_GAUGE" - METRICTYPEHISTOGRAM V1MetricType = "METRIC_TYPE_HISTOGRAM" - METRICTYPESUMMARY V1MetricType = "METRIC_TYPE_SUMMARY" - METRICTYPEUNSPECIFIED V1MetricType = "METRIC_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1MetricType enum. -func (e V1MetricType) Valid() bool { - switch e { - case METRICTYPECOUNTER: - return true - case METRICTYPEGAUGE: - return true - case METRICTYPEHISTOGRAM: - return true - case METRICTYPESUMMARY: - return true - case METRICTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1NodeCPUStatus. -const ( - NODECPUSTATUSALLOCATEDNR V1NodeCPUStatus = "NODE_CPU_STATUS_ALLOCATED_NR" - NODECPUSTATUSAVAILABLE V1NodeCPUStatus = "NODE_CPU_STATUS_AVAILABLE" - NODECPUSTATUSDRIFT V1NodeCPUStatus = "NODE_CPU_STATUS_DRIFT" - NODECPUSTATUSPINNEDFOREIGN V1NodeCPUStatus = "NODE_CPU_STATUS_PINNED_FOREIGN" - NODECPUSTATUSUNSPECIFIED V1NodeCPUStatus = "NODE_CPU_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1NodeCPUStatus enum. -func (e V1NodeCPUStatus) Valid() bool { - switch e { - case NODECPUSTATUSALLOCATEDNR: - return true - case NODECPUSTATUSAVAILABLE: - return true - case NODECPUSTATUSDRIFT: - return true - case NODECPUSTATUSPINNEDFOREIGN: - return true - case NODECPUSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1NodeComputeType. -const ( - NODECOMPUTETYPEDEDICATED V1NodeComputeType = "NODE_COMPUTE_TYPE_DEDICATED" - NODECOMPUTETYPESHARED V1NodeComputeType = "NODE_COMPUTE_TYPE_SHARED" - NODECOMPUTETYPEUNSPECIFIED V1NodeComputeType = "NODE_COMPUTE_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1NodeComputeType enum. -func (e V1NodeComputeType) Valid() bool { - switch e { - case NODECOMPUTETYPEDEDICATED: - return true - case NODECOMPUTETYPESHARED: - return true - case NODECOMPUTETYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1NodePlacementStrategy. -const ( - NODEPLACEMENTSTRATEGYFIRSTSTABLE V1NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_FIRST_STABLE" - NODEPLACEMENTSTRATEGYLEASTASSIGNEDVMS V1NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_LEAST_ASSIGNED_VMS" - NODEPLACEMENTSTRATEGYRANDOM V1NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_RANDOM" - NODEPLACEMENTSTRATEGYROUNDROBIN V1NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_ROUND_ROBIN" - NODEPLACEMENTSTRATEGYUNSPECIFIED V1NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1NodePlacementStrategy enum. -func (e V1NodePlacementStrategy) Valid() bool { - switch e { - case NODEPLACEMENTSTRATEGYFIRSTSTABLE: - return true - case NODEPLACEMENTSTRATEGYLEASTASSIGNEDVMS: - return true - case NODEPLACEMENTSTRATEGYRANDOM: - return true - case NODEPLACEMENTSTRATEGYROUNDROBIN: - return true - case NODEPLACEMENTSTRATEGYUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1OperationStatus. -const ( - V1OperationStatusOPERATIONSTATUSCREATED V1OperationStatus = "OPERATION_STATUS_CREATED" - V1OperationStatusOPERATIONSTATUSDELETED V1OperationStatus = "OPERATION_STATUS_DELETED" - V1OperationStatusOPERATIONSTATUSREINSTALLING V1OperationStatus = "OPERATION_STATUS_REINSTALLING" - V1OperationStatusOPERATIONSTATUSRESTARTED V1OperationStatus = "OPERATION_STATUS_RESTARTED" - V1OperationStatusOPERATIONSTATUSSTARTED V1OperationStatus = "OPERATION_STATUS_STARTED" - V1OperationStatusOPERATIONSTATUSSTOPPED V1OperationStatus = "OPERATION_STATUS_STOPPED" - V1OperationStatusOPERATIONSTATUSUNSPECIFIED V1OperationStatus = "OPERATION_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1OperationStatus enum. -func (e V1OperationStatus) Valid() bool { - switch e { - case V1OperationStatusOPERATIONSTATUSCREATED: - return true - case V1OperationStatusOPERATIONSTATUSDELETED: - return true - case V1OperationStatusOPERATIONSTATUSREINSTALLING: - return true - case V1OperationStatusOPERATIONSTATUSRESTARTED: - return true - case V1OperationStatusOPERATIONSTATUSSTARTED: - return true - case V1OperationStatusOPERATIONSTATUSSTOPPED: - return true - case V1OperationStatusOPERATIONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1OrganizationType. -const ( - ORGANIZATIONTYPECLIENT V1OrganizationType = "ORGANIZATION_TYPE_CLIENT" - ORGANIZATIONTYPEPROVIDER V1OrganizationType = "ORGANIZATION_TYPE_PROVIDER" - ORGANIZATIONTYPEUNSPECIFIED V1OrganizationType = "ORGANIZATION_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1OrganizationType enum. -func (e V1OrganizationType) Valid() bool { - switch e { - case ORGANIZATIONTYPECLIENT: - return true - case ORGANIZATIONTYPEPROVIDER: - return true - case ORGANIZATIONTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1PaymentStatus. -const ( - V1PaymentStatusPAYMENTSTATUSCANCELED V1PaymentStatus = "PAYMENT_STATUS_CANCELED" - V1PaymentStatusPAYMENTSTATUSFAILED V1PaymentStatus = "PAYMENT_STATUS_FAILED" - V1PaymentStatusPAYMENTSTATUSPARTIALLYREFUNDED V1PaymentStatus = "PAYMENT_STATUS_PARTIALLY_REFUNDED" - V1PaymentStatusPAYMENTSTATUSPENDING V1PaymentStatus = "PAYMENT_STATUS_PENDING" - V1PaymentStatusPAYMENTSTATUSPROCESSING V1PaymentStatus = "PAYMENT_STATUS_PROCESSING" - V1PaymentStatusPAYMENTSTATUSREFUNDED V1PaymentStatus = "PAYMENT_STATUS_REFUNDED" - V1PaymentStatusPAYMENTSTATUSSUCCEEDED V1PaymentStatus = "PAYMENT_STATUS_SUCCEEDED" - V1PaymentStatusPAYMENTSTATUSUNSPECIFIED V1PaymentStatus = "PAYMENT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1PaymentStatus enum. -func (e V1PaymentStatus) Valid() bool { - switch e { - case V1PaymentStatusPAYMENTSTATUSCANCELED: - return true - case V1PaymentStatusPAYMENTSTATUSFAILED: - return true - case V1PaymentStatusPAYMENTSTATUSPARTIALLYREFUNDED: - return true - case V1PaymentStatusPAYMENTSTATUSPENDING: - return true - case V1PaymentStatusPAYMENTSTATUSPROCESSING: - return true - case V1PaymentStatusPAYMENTSTATUSREFUNDED: - return true - case V1PaymentStatusPAYMENTSTATUSSUCCEEDED: - return true - case V1PaymentStatusPAYMENTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1PayoutScheduleType. -const ( - PAYOUTSCHEDULETYPEDAILY V1PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_DAILY" - PAYOUTSCHEDULETYPEIMMEDIATE V1PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_IMMEDIATE" - PAYOUTSCHEDULETYPEMONTHLY V1PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_MONTHLY" - PAYOUTSCHEDULETYPEUNSPECIFIED V1PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_UNSPECIFIED" - PAYOUTSCHEDULETYPEWEEKLY V1PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_WEEKLY" -) - -// Valid indicates whether the value is a known member of the V1PayoutScheduleType enum. -func (e V1PayoutScheduleType) Valid() bool { - switch e { - case PAYOUTSCHEDULETYPEDAILY: - return true - case PAYOUTSCHEDULETYPEIMMEDIATE: - return true - case PAYOUTSCHEDULETYPEMONTHLY: - return true - case PAYOUTSCHEDULETYPEUNSPECIFIED: - return true - case PAYOUTSCHEDULETYPEWEEKLY: - return true - default: - return false - } -} - -// Defines values for V1PayoutStatus. -const ( - V1PayoutStatusPAYOUTSTATUSCANCELED V1PayoutStatus = "PAYOUT_STATUS_CANCELED" - V1PayoutStatusPAYOUTSTATUSCOMPLETED V1PayoutStatus = "PAYOUT_STATUS_COMPLETED" - V1PayoutStatusPAYOUTSTATUSFAILED V1PayoutStatus = "PAYOUT_STATUS_FAILED" - V1PayoutStatusPAYOUTSTATUSPENDING V1PayoutStatus = "PAYOUT_STATUS_PENDING" - V1PayoutStatusPAYOUTSTATUSPROCESSING V1PayoutStatus = "PAYOUT_STATUS_PROCESSING" - V1PayoutStatusPAYOUTSTATUSUNSPECIFIED V1PayoutStatus = "PAYOUT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1PayoutStatus enum. -func (e V1PayoutStatus) Valid() bool { - switch e { - case V1PayoutStatusPAYOUTSTATUSCANCELED: - return true - case V1PayoutStatusPAYOUTSTATUSCOMPLETED: - return true - case V1PayoutStatusPAYOUTSTATUSFAILED: - return true - case V1PayoutStatusPAYOUTSTATUSPENDING: - return true - case V1PayoutStatusPAYOUTSTATUSPROCESSING: - return true - case V1PayoutStatusPAYOUTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1PlanCategory. -const ( - PLANCATEGORYCUSTOM V1PlanCategory = "PLAN_CATEGORY_CUSTOM" - PLANCATEGORYFREE V1PlanCategory = "PLAN_CATEGORY_FREE" - PLANCATEGORYPREMIUM V1PlanCategory = "PLAN_CATEGORY_PREMIUM" - PLANCATEGORYSTARTER V1PlanCategory = "PLAN_CATEGORY_STARTER" - PLANCATEGORYUNSPECIFIED V1PlanCategory = "PLAN_CATEGORY_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1PlanCategory enum. -func (e V1PlanCategory) Valid() bool { - switch e { - case PLANCATEGORYCUSTOM: - return true - case PLANCATEGORYFREE: - return true - case PLANCATEGORYPREMIUM: - return true - case PLANCATEGORYSTARTER: - return true - case PLANCATEGORYUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1PlanType. -const ( - PLANTYPEENTERPRISE V1PlanType = "PLAN_TYPE_ENTERPRISE" - PLANTYPEFREE V1PlanType = "PLAN_TYPE_FREE" - PLANTYPEPAID V1PlanType = "PLAN_TYPE_PAID" - PLANTYPETRIAL V1PlanType = "PLAN_TYPE_TRIAL" - PLANTYPEUNSPECIFIED V1PlanType = "PLAN_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1PlanType enum. -func (e V1PlanType) Valid() bool { - switch e { - case PLANTYPEENTERPRISE: - return true - case PLANTYPEFREE: - return true - case PLANTYPEPAID: - return true - case PLANTYPETRIAL: - return true - case PLANTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1PlatformDriver. -const ( - PLATFORMDRIVERPROXMOX V1PlatformDriver = "PLATFORM_DRIVER_PROXMOX" - PLATFORMDRIVERSOLUSVM V1PlatformDriver = "PLATFORM_DRIVER_SOLUSVM" - PLATFORMDRIVERUNSPECIFIED V1PlatformDriver = "PLATFORM_DRIVER_UNSPECIFIED" - PLATFORMDRIVERVIRTFUSION V1PlatformDriver = "PLATFORM_DRIVER_VIRTFUSION" -) - -// Valid indicates whether the value is a known member of the V1PlatformDriver enum. -func (e V1PlatformDriver) Valid() bool { - switch e { - case PLATFORMDRIVERPROXMOX, PLATFORMDRIVERSOLUSVM, PLATFORMDRIVERUNSPECIFIED, PLATFORMDRIVERVIRTFUSION: - return true - default: - return false - } -} - -// Defines values for V1PricingModel. -const ( - PRICINGMODELFIXED V1PricingModel = "PRICING_MODEL_FIXED" - PRICINGMODELGRADUATED V1PricingModel = "PRICING_MODEL_GRADUATED" - PRICINGMODELHYBRID V1PricingModel = "PRICING_MODEL_HYBRID" - PRICINGMODELPACKAGE V1PricingModel = "PRICING_MODEL_PACKAGE" - PRICINGMODELTIERED V1PricingModel = "PRICING_MODEL_TIERED" - PRICINGMODELUNSPECIFIED V1PricingModel = "PRICING_MODEL_UNSPECIFIED" - PRICINGMODELUSAGEBASED V1PricingModel = "PRICING_MODEL_USAGE_BASED" - PRICINGMODELVOLUME V1PricingModel = "PRICING_MODEL_VOLUME" -) - -// Valid indicates whether the value is a known member of the V1PricingModel enum. -func (e V1PricingModel) Valid() bool { - switch e { - case PRICINGMODELFIXED: - return true - case PRICINGMODELGRADUATED: - return true - case PRICINGMODELHYBRID: - return true - case PRICINGMODELPACKAGE: - return true - case PRICINGMODELTIERED: - return true - case PRICINGMODELUNSPECIFIED: - return true - case PRICINGMODELUSAGEBASED: - return true - case PRICINGMODELVOLUME: - return true - default: - return false - } -} - -// Defines values for V1ProductType. -const ( - PRODUCTTYPEADDON V1ProductType = "PRODUCT_TYPE_ADDON" - PRODUCTTYPEPLAN V1ProductType = "PRODUCT_TYPE_PLAN" - PRODUCTTYPEUNSPECIFIED V1ProductType = "PRODUCT_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1ProductType enum. -func (e V1ProductType) Valid() bool { - switch e { - case PRODUCTTYPEADDON: - return true - case PRODUCTTYPEPLAN: - return true - case PRODUCTTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1ProviderCustomerAssetType. -const ( - V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEALL V1ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_ALL" - V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEDEDICATEDSERVER V1ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_DEDICATED_SERVER" - V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEGAMESERVER V1ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_GAME_SERVER" - V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEUNSPECIFIED V1ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED" - V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEVIRTUALMACHINE V1ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_VIRTUAL_MACHINE" -) - -// Valid indicates whether the value is a known member of the V1ProviderCustomerAssetType enum. -func (e V1ProviderCustomerAssetType) Valid() bool { - switch e { - case V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEALL: - return true - case V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEDEDICATEDSERVER: - return true - case V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEGAMESERVER: - return true - case V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEUNSPECIFIED: - return true - case V1ProviderCustomerAssetTypePROVIDERCUSTOMERASSETTYPEVIRTUALMACHINE: - return true - default: - return false - } -} - -// Defines values for V1ProviderCustomerVmActivityStatus. -const ( - V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSACTIVE V1ProviderCustomerVmActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_ACTIVE" - V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSINACTIVE V1ProviderCustomerVmActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_INACTIVE" - V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSUNSPECIFIED V1ProviderCustomerVmActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1ProviderCustomerVmActivityStatus enum. -func (e V1ProviderCustomerVmActivityStatus) Valid() bool { - switch e { - case V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSACTIVE: - return true - case V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSINACTIVE: - return true - case V1ProviderCustomerVmActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1ProviderOnboardingStepCode. -const ( - PROVIDERONBOARDINGSTEPCODEADDONS V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_ADDONS" - PROVIDERONBOARDINGSTEPCODEAGENT V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_AGENT" - PROVIDERONBOARDINGSTEPCODECLOUDINIT V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_CLOUD_INIT" - PROVIDERONBOARDINGSTEPCODEDOMAIN V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_DOMAIN" - PROVIDERONBOARDINGSTEPCODEFIXEDPRICEADDONS V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_FIXED_PRICE_ADDONS" - PROVIDERONBOARDINGSTEPCODEKYC V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_KYC" - PROVIDERONBOARDINGSTEPCODELIVEVALIDATION V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_LIVE_VALIDATION" - PROVIDERONBOARDINGSTEPCODENETWORK V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NETWORK" - PROVIDERONBOARDINGSTEPCODENODE V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE" - PROVIDERONBOARDINGSTEPCODENODEMETRICS V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE_METRICS" - PROVIDERONBOARDINGSTEPCODENODENETWORK V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE_NETWORK" - PROVIDERONBOARDINGSTEPCODEPLAN V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PLAN" - PROVIDERONBOARDINGSTEPCODEPLATFORM V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PLATFORM" - PROVIDERONBOARDINGSTEPCODEPREFIXIPV4 V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV4" - PROVIDERONBOARDINGSTEPCODEPREFIXIPV6 V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV6" - PROVIDERONBOARDINGSTEPCODEPREFLIGHT V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFLIGHT" - PROVIDERONBOARDINGSTEPCODEREGION V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_REGION" - PROVIDERONBOARDINGSTEPCODESTRIPECONNECT V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_STRIPE_CONNECT" - PROVIDERONBOARDINGSTEPCODEUNSPECIFIED V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_UNSPECIFIED" - PROVIDERONBOARDINGSTEPCODEVMTEMPLATE V1ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_VM_TEMPLATE" -) - -// Valid indicates whether the value is a known member of the V1ProviderOnboardingStepCode enum. -func (e V1ProviderOnboardingStepCode) Valid() bool { - switch e { - case PROVIDERONBOARDINGSTEPCODEADDONS: - return true - case PROVIDERONBOARDINGSTEPCODEAGENT: - return true - case PROVIDERONBOARDINGSTEPCODECLOUDINIT: - return true - case PROVIDERONBOARDINGSTEPCODEDOMAIN: - return true - case PROVIDERONBOARDINGSTEPCODEFIXEDPRICEADDONS: - return true - case PROVIDERONBOARDINGSTEPCODEKYC: - return true - case PROVIDERONBOARDINGSTEPCODELIVEVALIDATION: - return true - case PROVIDERONBOARDINGSTEPCODENETWORK: - return true - case PROVIDERONBOARDINGSTEPCODENODE: - return true - case PROVIDERONBOARDINGSTEPCODENODEMETRICS: - return true - case PROVIDERONBOARDINGSTEPCODENODENETWORK: - return true - case PROVIDERONBOARDINGSTEPCODEPLAN: - return true - case PROVIDERONBOARDINGSTEPCODEPLATFORM: - return true - case PROVIDERONBOARDINGSTEPCODEPREFIXIPV4: - return true - case PROVIDERONBOARDINGSTEPCODEPREFIXIPV6: - return true - case PROVIDERONBOARDINGSTEPCODEPREFLIGHT: - return true - case PROVIDERONBOARDINGSTEPCODEREGION: - return true - case PROVIDERONBOARDINGSTEPCODESTRIPECONNECT: - return true - case PROVIDERONBOARDINGSTEPCODEUNSPECIFIED: - return true - case PROVIDERONBOARDINGSTEPCODEVMTEMPLATE: - return true - default: - return false - } -} - -// Defines values for V1RefundStatus. -const ( - V1RefundStatusREFUNDSTATUSCANCELED V1RefundStatus = "REFUND_STATUS_CANCELED" - V1RefundStatusREFUNDSTATUSFAILED V1RefundStatus = "REFUND_STATUS_FAILED" - V1RefundStatusREFUNDSTATUSPENDING V1RefundStatus = "REFUND_STATUS_PENDING" - V1RefundStatusREFUNDSTATUSPROCESSING V1RefundStatus = "REFUND_STATUS_PROCESSING" - V1RefundStatusREFUNDSTATUSSUCCEEDED V1RefundStatus = "REFUND_STATUS_SUCCEEDED" - V1RefundStatusREFUNDSTATUSUNSPECIFIED V1RefundStatus = "REFUND_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1RefundStatus enum. -func (e V1RefundStatus) Valid() bool { - switch e { - case V1RefundStatusREFUNDSTATUSCANCELED: - return true - case V1RefundStatusREFUNDSTATUSFAILED: - return true - case V1RefundStatusREFUNDSTATUSPENDING: - return true - case V1RefundStatusREFUNDSTATUSPROCESSING: - return true - case V1RefundStatusREFUNDSTATUSSUCCEEDED: - return true - case V1RefundStatusREFUNDSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1ReinstallStatus. -const ( - REINSTALLSTATUSCOMPLETED V1ReinstallStatus = "REINSTALL_STATUS_COMPLETED" - REINSTALLSTATUSDELETING V1ReinstallStatus = "REINSTALL_STATUS_DELETING" - REINSTALLSTATUSFAILED V1ReinstallStatus = "REINSTALL_STATUS_FAILED" - REINSTALLSTATUSNONE V1ReinstallStatus = "REINSTALL_STATUS_NONE" - REINSTALLSTATUSPROVISIONING V1ReinstallStatus = "REINSTALL_STATUS_PROVISIONING" - REINSTALLSTATUSREQUESTED V1ReinstallStatus = "REINSTALL_STATUS_REQUESTED" - REINSTALLSTATUSUNSPECIFIED V1ReinstallStatus = "REINSTALL_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1ReinstallStatus enum. -func (e V1ReinstallStatus) Valid() bool { - switch e { - case REINSTALLSTATUSCOMPLETED: - return true - case REINSTALLSTATUSDELETING: - return true - case REINSTALLSTATUSFAILED: - return true - case REINSTALLSTATUSNONE: - return true - case REINSTALLSTATUSPROVISIONING: - return true - case REINSTALLSTATUSREQUESTED: - return true - case REINSTALLSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1RestoreStatus. -const ( - RESTORESTATUSCOMPLETED V1RestoreStatus = "RESTORE_STATUS_COMPLETED" - RESTORESTATUSFAILED V1RestoreStatus = "RESTORE_STATUS_FAILED" - RESTORESTATUSNONE V1RestoreStatus = "RESTORE_STATUS_NONE" - RESTORESTATUSREQUESTED V1RestoreStatus = "RESTORE_STATUS_REQUESTED" - RESTORESTATUSRESTORING V1RestoreStatus = "RESTORE_STATUS_RESTORING" - RESTORESTATUSUNSPECIFIED V1RestoreStatus = "RESTORE_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1RestoreStatus enum. -func (e V1RestoreStatus) Valid() bool { - switch e { - case RESTORESTATUSCOMPLETED: - return true - case RESTORESTATUSFAILED: - return true - case RESTORESTATUSNONE: - return true - case RESTORESTATUSREQUESTED: - return true - case RESTORESTATUSRESTORING: - return true - case RESTORESTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1RoadmapRequestStatus. -const ( - V1RoadmapRequestStatusROADMAPREQUESTSTATUSCOMPLETED V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_COMPLETED" - V1RoadmapRequestStatusROADMAPREQUESTSTATUSDECLINED V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_DECLINED" - V1RoadmapRequestStatusROADMAPREQUESTSTATUSINPROGRESS V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_IN_PROGRESS" - V1RoadmapRequestStatusROADMAPREQUESTSTATUSINREVIEW V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_IN_REVIEW" - V1RoadmapRequestStatusROADMAPREQUESTSTATUSPLANNED V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_PLANNED" - V1RoadmapRequestStatusROADMAPREQUESTSTATUSUNSPECIFIED V1RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1RoadmapRequestStatus enum. -func (e V1RoadmapRequestStatus) Valid() bool { - switch e { - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSCOMPLETED: - return true - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSDECLINED: - return true - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSINPROGRESS: - return true - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSINREVIEW: - return true - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSPLANNED: - return true - case V1RoadmapRequestStatusROADMAPREQUESTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1RoadmapVoteType. -const ( - ROADMAPVOTETYPEUNSPECIFIED V1RoadmapVoteType = "ROADMAP_VOTE_TYPE_UNSPECIFIED" - ROADMAPVOTETYPEUP V1RoadmapVoteType = "ROADMAP_VOTE_TYPE_UP" -) - -// Valid indicates whether the value is a known member of the V1RoadmapVoteType enum. -func (e V1RoadmapVoteType) Valid() bool { - switch e { - case ROADMAPVOTETYPEUNSPECIFIED: - return true - case ROADMAPVOTETYPEUP: - return true - default: - return false - } -} - -// Defines values for V1RuleEffect. -const ( - RULEEFFECTENABLE V1RuleEffect = "RULE_EFFECT_ENABLE" - RULEEFFECTENTITLE V1RuleEffect = "RULE_EFFECT_ENTITLE" - RULEEFFECTLIMIT V1RuleEffect = "RULE_EFFECT_LIMIT" - RULEEFFECTUNSPECIFIED V1RuleEffect = "RULE_EFFECT_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1RuleEffect enum. -func (e V1RuleEffect) Valid() bool { - switch e { - case RULEEFFECTENABLE: - return true - case RULEEFFECTENTITLE: - return true - case RULEEFFECTLIMIT: - return true - case RULEEFFECTUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1ServiceStatus. -const ( - V1ServiceStatusSERVICESTATUSMAINTENANCE V1ServiceStatus = "SERVICE_STATUS_MAINTENANCE" - V1ServiceStatusSERVICESTATUSOFFLINE V1ServiceStatus = "SERVICE_STATUS_OFFLINE" - V1ServiceStatusSERVICESTATUSONLINE V1ServiceStatus = "SERVICE_STATUS_ONLINE" - V1ServiceStatusSERVICESTATUSUNSPECIFIED V1ServiceStatus = "SERVICE_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1ServiceStatus enum. -func (e V1ServiceStatus) Valid() bool { - switch e { - case V1ServiceStatusSERVICESTATUSMAINTENANCE: - return true - case V1ServiceStatusSERVICESTATUSOFFLINE: - return true - case V1ServiceStatusSERVICESTATUSONLINE: - return true - case V1ServiceStatusSERVICESTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1ServingStatus. -const ( - NOTSERVING V1ServingStatus = "NOT_SERVING" - SERVING V1ServingStatus = "SERVING" - UNKNOWN V1ServingStatus = "UNKNOWN" -) - -// Valid indicates whether the value is a known member of the V1ServingStatus enum. -func (e V1ServingStatus) Valid() bool { - switch e { - case NOTSERVING: - return true - case SERVING: - return true - case UNKNOWN: - return true - default: - return false - } -} - -// Defines values for V1SmtpOutboundVmAction. -const ( - SMTPOUTBOUNDVMACTIONALLOW V1SmtpOutboundVmAction = "SMTP_OUTBOUND_VM_ACTION_ALLOW" - SMTPOUTBOUNDVMACTIONBLOCK V1SmtpOutboundVmAction = "SMTP_OUTBOUND_VM_ACTION_BLOCK" - SMTPOUTBOUNDVMACTIONINHERIT V1SmtpOutboundVmAction = "SMTP_OUTBOUND_VM_ACTION_INHERIT" - SMTPOUTBOUNDVMACTIONUNSPECIFIED V1SmtpOutboundVmAction = "SMTP_OUTBOUND_VM_ACTION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1SmtpOutboundVmAction enum. -func (e V1SmtpOutboundVmAction) Valid() bool { - switch e { - case SMTPOUTBOUNDVMACTIONALLOW: - return true - case SMTPOUTBOUNDVMACTIONBLOCK: - return true - case SMTPOUTBOUNDVMACTIONINHERIT: - return true - case SMTPOUTBOUNDVMACTIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1SnapshotOperationStatus. -const ( - SNAPSHOTOPERATIONSTATUSCOMPLETED V1SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_COMPLETED" - SNAPSHOTOPERATIONSTATUSFAILED V1SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_FAILED" - SNAPSHOTOPERATIONSTATUSPENDING V1SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_PENDING" - SNAPSHOTOPERATIONSTATUSPROCESSING V1SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_PROCESSING" - SNAPSHOTOPERATIONSTATUSUNSPECIFIED V1SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1SnapshotOperationStatus enum. -func (e V1SnapshotOperationStatus) Valid() bool { - switch e { - case SNAPSHOTOPERATIONSTATUSCOMPLETED: - return true - case SNAPSHOTOPERATIONSTATUSFAILED: - return true - case SNAPSHOTOPERATIONSTATUSPENDING: - return true - case SNAPSHOTOPERATIONSTATUSPROCESSING: - return true - case SNAPSHOTOPERATIONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1SnapshotStatus. -const ( - V1SnapshotStatusSNAPSHOTSTATUSACTIVE V1SnapshotStatus = "SNAPSHOT_STATUS_ACTIVE" - V1SnapshotStatusSNAPSHOTSTATUSDELETED V1SnapshotStatus = "SNAPSHOT_STATUS_DELETED" - V1SnapshotStatusSNAPSHOTSTATUSEXPIRED V1SnapshotStatus = "SNAPSHOT_STATUS_EXPIRED" - V1SnapshotStatusSNAPSHOTSTATUSUNKNOWN V1SnapshotStatus = "SNAPSHOT_STATUS_UNKNOWN" - V1SnapshotStatusSNAPSHOTSTATUSUNSPECIFIED V1SnapshotStatus = "SNAPSHOT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1SnapshotStatus enum. -func (e V1SnapshotStatus) Valid() bool { - switch e { - case V1SnapshotStatusSNAPSHOTSTATUSACTIVE: - return true - case V1SnapshotStatusSNAPSHOTSTATUSDELETED: - return true - case V1SnapshotStatusSNAPSHOTSTATUSEXPIRED: - return true - case V1SnapshotStatusSNAPSHOTSTATUSUNKNOWN: - return true - case V1SnapshotStatusSNAPSHOTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1SubscriptionStatus. -const ( - SUBSCRIPTIONSTATUSACTIVE V1SubscriptionStatus = "SUBSCRIPTION_STATUS_ACTIVE" - SUBSCRIPTIONSTATUSCANCELED V1SubscriptionStatus = "SUBSCRIPTION_STATUS_CANCELED" - SUBSCRIPTIONSTATUSPASTDUE V1SubscriptionStatus = "SUBSCRIPTION_STATUS_PAST_DUE" - SUBSCRIPTIONSTATUSPAUSED V1SubscriptionStatus = "SUBSCRIPTION_STATUS_PAUSED" - SUBSCRIPTIONSTATUSTRIALING V1SubscriptionStatus = "SUBSCRIPTION_STATUS_TRIALING" - SUBSCRIPTIONSTATUSUNSPECIFIED V1SubscriptionStatus = "SUBSCRIPTION_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1SubscriptionStatus enum. -func (e V1SubscriptionStatus) Valid() bool { - switch e { - case SUBSCRIPTIONSTATUSACTIVE: - return true - case SUBSCRIPTIONSTATUSCANCELED: - return true - case SUBSCRIPTIONSTATUSPASTDUE: - return true - case SUBSCRIPTIONSTATUSPAUSED: - return true - case SUBSCRIPTIONSTATUSTRIALING: - return true - case SUBSCRIPTIONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1TicketPriority. -const ( - V1TicketPriorityTICKETPRIORITYCRITICAL V1TicketPriority = "TICKET_PRIORITY_CRITICAL" - V1TicketPriorityTICKETPRIORITYHIGH V1TicketPriority = "TICKET_PRIORITY_HIGH" - V1TicketPriorityTICKETPRIORITYLOW V1TicketPriority = "TICKET_PRIORITY_LOW" - V1TicketPriorityTICKETPRIORITYNORMAL V1TicketPriority = "TICKET_PRIORITY_NORMAL" - V1TicketPriorityTICKETPRIORITYUNSPECIFIED V1TicketPriority = "TICKET_PRIORITY_UNSPECIFIED" - V1TicketPriorityTICKETPRIORITYURGENT V1TicketPriority = "TICKET_PRIORITY_URGENT" -) - -// Valid indicates whether the value is a known member of the V1TicketPriority enum. -func (e V1TicketPriority) Valid() bool { - switch e { - case V1TicketPriorityTICKETPRIORITYCRITICAL: - return true - case V1TicketPriorityTICKETPRIORITYHIGH: - return true - case V1TicketPriorityTICKETPRIORITYLOW: - return true - case V1TicketPriorityTICKETPRIORITYNORMAL: - return true - case V1TicketPriorityTICKETPRIORITYUNSPECIFIED: - return true - case V1TicketPriorityTICKETPRIORITYURGENT: - return true - default: - return false - } -} - -// Defines values for V1TicketStatus. -const ( - V1TicketStatusTICKETSTATUSAWAITINGREPLY V1TicketStatus = "TICKET_STATUS_AWAITING_REPLY" - V1TicketStatusTICKETSTATUSDUPLICATE V1TicketStatus = "TICKET_STATUS_DUPLICATE" - V1TicketStatusTICKETSTATUSESCALATED V1TicketStatus = "TICKET_STATUS_ESCALATED" - V1TicketStatusTICKETSTATUSINPROGRESS V1TicketStatus = "TICKET_STATUS_IN_PROGRESS" - V1TicketStatusTICKETSTATUSNOTREPRODUCIBLE V1TicketStatus = "TICKET_STATUS_NOT_REPRODUCIBLE" - V1TicketStatusTICKETSTATUSPENDING V1TicketStatus = "TICKET_STATUS_PENDING" - V1TicketStatusTICKETSTATUSRESOLVED V1TicketStatus = "TICKET_STATUS_RESOLVED" - V1TicketStatusTICKETSTATUSUNSPECIFIED V1TicketStatus = "TICKET_STATUS_UNSPECIFIED" - V1TicketStatusTICKETSTATUSWONTFIX V1TicketStatus = "TICKET_STATUS_WONT_FIX" -) - -// Valid indicates whether the value is a known member of the V1TicketStatus enum. -func (e V1TicketStatus) Valid() bool { - switch e { - case V1TicketStatusTICKETSTATUSAWAITINGREPLY: - return true - case V1TicketStatusTICKETSTATUSDUPLICATE: - return true - case V1TicketStatusTICKETSTATUSESCALATED: - return true - case V1TicketStatusTICKETSTATUSINPROGRESS: - return true - case V1TicketStatusTICKETSTATUSNOTREPRODUCIBLE: - return true - case V1TicketStatusTICKETSTATUSPENDING: - return true - case V1TicketStatusTICKETSTATUSRESOLVED: - return true - case V1TicketStatusTICKETSTATUSUNSPECIFIED: - return true - case V1TicketStatusTICKETSTATUSWONTFIX: - return true - default: - return false - } -} - -// Defines values for V1TierMode. -const ( - TIERMODEGRADUATED V1TierMode = "TIER_MODE_GRADUATED" - TIERMODENONE V1TierMode = "TIER_MODE_NONE" - TIERMODETIERED V1TierMode = "TIER_MODE_TIERED" - TIERMODEUNSPECIFIED V1TierMode = "TIER_MODE_UNSPECIFIED" - TIERMODEVOLUME V1TierMode = "TIER_MODE_VOLUME" -) - -// Valid indicates whether the value is a known member of the V1TierMode enum. -func (e V1TierMode) Valid() bool { - switch e { - case TIERMODEGRADUATED: - return true - case TIERMODENONE: - return true - case TIERMODETIERED: - return true - case TIERMODEUNSPECIFIED: - return true - case TIERMODEVOLUME: - return true - default: - return false - } -} - -// Defines values for V1UsageRecordStatus. -const ( - V1UsageRecordStatusUSAGERECORDSTATUSBILLED V1UsageRecordStatus = "USAGE_RECORD_STATUS_BILLED" - V1UsageRecordStatusUSAGERECORDSTATUSFAILED V1UsageRecordStatus = "USAGE_RECORD_STATUS_FAILED" - V1UsageRecordStatusUSAGERECORDSTATUSPENDING V1UsageRecordStatus = "USAGE_RECORD_STATUS_PENDING" - V1UsageRecordStatusUSAGERECORDSTATUSPROCESSED V1UsageRecordStatus = "USAGE_RECORD_STATUS_PROCESSED" - V1UsageRecordStatusUSAGERECORDSTATUSUNSPECIFIED V1UsageRecordStatus = "USAGE_RECORD_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1UsageRecordStatus enum. -func (e V1UsageRecordStatus) Valid() bool { - switch e { - case V1UsageRecordStatusUSAGERECORDSTATUSBILLED: - return true - case V1UsageRecordStatusUSAGERECORDSTATUSFAILED: - return true - case V1UsageRecordStatusUSAGERECORDSTATUSPENDING: - return true - case V1UsageRecordStatusUSAGERECORDSTATUSPROCESSED: - return true - case V1UsageRecordStatusUSAGERECORDSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for V1VerificationType. -const ( - VERIFICATIONTYPEDNS V1VerificationType = "VERIFICATION_TYPE_DNS" - VERIFICATIONTYPEHTTPS V1VerificationType = "VERIFICATION_TYPE_HTTPS" - VERIFICATIONTYPEUNSPECIFIED V1VerificationType = "VERIFICATION_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the V1VerificationType enum. -func (e V1VerificationType) Valid() bool { - switch e { - case VERIFICATIONTYPEDNS: - return true - case VERIFICATIONTYPEHTTPS: - return true - case VERIFICATIONTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for AddonServiceListAddonsParamsAddonType. -const ( - AddonServiceListAddonsParamsAddonTypeADDONTYPEADDITIONALIP AddonServiceListAddonsParamsAddonType = "ADDON_TYPE_ADDITIONAL_IP" - AddonServiceListAddonsParamsAddonTypeADDONTYPEBACKUP AddonServiceListAddonsParamsAddonType = "ADDON_TYPE_BACKUP" - AddonServiceListAddonsParamsAddonTypeADDONTYPESNAPSHOT AddonServiceListAddonsParamsAddonType = "ADDON_TYPE_SNAPSHOT" - AddonServiceListAddonsParamsAddonTypeADDONTYPEUNSPECIFIED AddonServiceListAddonsParamsAddonType = "ADDON_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the AddonServiceListAddonsParamsAddonType enum. -func (e AddonServiceListAddonsParamsAddonType) Valid() bool { - switch e { - case AddonServiceListAddonsParamsAddonTypeADDONTYPEADDITIONALIP: - return true - case AddonServiceListAddonsParamsAddonTypeADDONTYPEBACKUP: - return true - case AddonServiceListAddonsParamsAddonTypeADDONTYPESNAPSHOT: - return true - case AddonServiceListAddonsParamsAddonTypeADDONTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for AddonServiceListAddonsParamsBillingType. -const ( - AddonServiceListAddonsParamsBillingTypeBILLINGTYPEFREE AddonServiceListAddonsParamsBillingType = "BILLING_TYPE_FREE" - AddonServiceListAddonsParamsBillingTypeBILLINGTYPEPERCENTAGE AddonServiceListAddonsParamsBillingType = "BILLING_TYPE_PERCENTAGE" - AddonServiceListAddonsParamsBillingTypeBILLINGTYPESUBSCRIPTION AddonServiceListAddonsParamsBillingType = "BILLING_TYPE_SUBSCRIPTION" - AddonServiceListAddonsParamsBillingTypeBILLINGTYPEUNSPECIFIED AddonServiceListAddonsParamsBillingType = "BILLING_TYPE_UNSPECIFIED" - AddonServiceListAddonsParamsBillingTypeBILLINGTYPEUSAGE AddonServiceListAddonsParamsBillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the AddonServiceListAddonsParamsBillingType enum. -func (e AddonServiceListAddonsParamsBillingType) Valid() bool { - switch e { - case AddonServiceListAddonsParamsBillingTypeBILLINGTYPEFREE: - return true - case AddonServiceListAddonsParamsBillingTypeBILLINGTYPEPERCENTAGE: - return true - case AddonServiceListAddonsParamsBillingTypeBILLINGTYPESUBSCRIPTION: - return true - case AddonServiceListAddonsParamsBillingTypeBILLINGTYPEUNSPECIFIED: - return true - case AddonServiceListAddonsParamsBillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } -} - -// Defines values for AgentServiceListAgentsParamsGatewayRegion. -const ( - AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONAMS01 AgentServiceListAgentsParamsGatewayRegion = "AGENT_GATEWAY_REGION_AMS01" - AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONUNSPECIFIED AgentServiceListAgentsParamsGatewayRegion = "AGENT_GATEWAY_REGION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the AgentServiceListAgentsParamsGatewayRegion enum. -func (e AgentServiceListAgentsParamsGatewayRegion) Valid() bool { - switch e { - case AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONAMS01: - return true - case AgentServiceListAgentsParamsGatewayRegionAGENTGATEWAYREGIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for CreditServiceListCreditLedgerEntriesParamsEntryType. -const ( - CREDITLEDGERENTRYTYPECHARGEBACKREVERSAL CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_CHARGEBACK_REVERSAL" - CREDITLEDGERENTRYTYPEEXPIRY CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_EXPIRY" - CREDITLEDGERENTRYTYPEFORFEITURE CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_FORFEITURE" - CREDITLEDGERENTRYTYPEHOLDRELEASE CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_HOLD_RELEASE" - CREDITLEDGERENTRYTYPEINVOICESETTLEMENT CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_INVOICE_SETTLEMENT" - CREDITLEDGERENTRYTYPEMANUALADJUSTMENT CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_MANUAL_ADJUSTMENT" - CREDITLEDGERENTRYTYPEPROMOTIONAL CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROMOTIONAL" - CREDITLEDGERENTRYTYPEPROVISIONRELEASE CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RELEASE" - CREDITLEDGERENTRYTYPEPROVISIONRESERVE CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RESERVE" - CREDITLEDGERENTRYTYPEPURCHASE CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PURCHASE" - CREDITLEDGERENTRYTYPEUNSPECIFIED CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED" - CREDITLEDGERENTRYTYPEUSAGEHOLD CreditServiceListCreditLedgerEntriesParamsEntryType = "CREDIT_LEDGER_ENTRY_TYPE_USAGE_HOLD" -) - -// Valid indicates whether the value is a known member of the CreditServiceListCreditLedgerEntriesParamsEntryType enum. -func (e CreditServiceListCreditLedgerEntriesParamsEntryType) Valid() bool { - switch e { - case CREDITLEDGERENTRYTYPECHARGEBACKREVERSAL: - return true - case CREDITLEDGERENTRYTYPEEXPIRY: - return true - case CREDITLEDGERENTRYTYPEFORFEITURE: - return true - case CREDITLEDGERENTRYTYPEHOLDRELEASE: - return true - case CREDITLEDGERENTRYTYPEINVOICESETTLEMENT: - return true - case CREDITLEDGERENTRYTYPEMANUALADJUSTMENT: - return true - case CREDITLEDGERENTRYTYPEPROMOTIONAL: - return true - case CREDITLEDGERENTRYTYPEPROVISIONRELEASE: - return true - case CREDITLEDGERENTRYTYPEPROVISIONRESERVE: - return true - case CREDITLEDGERENTRYTYPEPURCHASE: - return true - case CREDITLEDGERENTRYTYPEUNSPECIFIED: - return true - case CREDITLEDGERENTRYTYPEUSAGEHOLD: - return true - default: - return false - } -} - -// Defines values for FirewallServiceGetFirewallRuleParamsDirection. -const ( - FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONEGRESS FirewallServiceGetFirewallRuleParamsDirection = "FIREWALL_DIRECTION_EGRESS" - FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONINGRESS FirewallServiceGetFirewallRuleParamsDirection = "FIREWALL_DIRECTION_INGRESS" - FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONUNSPECIFIED FirewallServiceGetFirewallRuleParamsDirection = "FIREWALL_DIRECTION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the FirewallServiceGetFirewallRuleParamsDirection enum. -func (e FirewallServiceGetFirewallRuleParamsDirection) Valid() bool { - switch e { - case FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONEGRESS: - return true - case FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONINGRESS: - return true - case FirewallServiceGetFirewallRuleParamsDirectionFIREWALLDIRECTIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for FirewallServiceListFirewallRuleSetsParamsFilterAttachment. -const ( - FIREWALLRULESETATTACHMENTFILTERATTACHED FirewallServiceListFirewallRuleSetsParamsFilterAttachment = "FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED" - FIREWALLRULESETATTACHMENTFILTERUNATTACHED FirewallServiceListFirewallRuleSetsParamsFilterAttachment = "FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED" - FIREWALLRULESETATTACHMENTFILTERUNSPECIFIED FirewallServiceListFirewallRuleSetsParamsFilterAttachment = "FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the FirewallServiceListFirewallRuleSetsParamsFilterAttachment enum. -func (e FirewallServiceListFirewallRuleSetsParamsFilterAttachment) Valid() bool { - switch e { - case FIREWALLRULESETATTACHMENTFILTERATTACHED: - return true - case FIREWALLRULESETATTACHMENTFILTERUNATTACHED: - return true - case FIREWALLRULESETATTACHMENTFILTERUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for FirewallServiceListFirewallRulesParamsDirection. -const ( - FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONEGRESS FirewallServiceListFirewallRulesParamsDirection = "FIREWALL_DIRECTION_EGRESS" - FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONINGRESS FirewallServiceListFirewallRulesParamsDirection = "FIREWALL_DIRECTION_INGRESS" - FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONUNSPECIFIED FirewallServiceListFirewallRulesParamsDirection = "FIREWALL_DIRECTION_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the FirewallServiceListFirewallRulesParamsDirection enum. -func (e FirewallServiceListFirewallRulesParamsDirection) Valid() bool { - switch e { - case FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONEGRESS: - return true - case FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONINGRESS: - return true - case FirewallServiceListFirewallRulesParamsDirectionFIREWALLDIRECTIONUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for GroupServiceListGroupsParamsFilterStatus. -const ( - GroupServiceListGroupsParamsFilterStatusSTATUSACTIVE GroupServiceListGroupsParamsFilterStatus = "STATUS_ACTIVE" - GroupServiceListGroupsParamsFilterStatusSTATUSBANNED GroupServiceListGroupsParamsFilterStatus = "STATUS_BANNED" - GroupServiceListGroupsParamsFilterStatusSTATUSINACTIVE GroupServiceListGroupsParamsFilterStatus = "STATUS_INACTIVE" - GroupServiceListGroupsParamsFilterStatusSTATUSSOFTDELETED GroupServiceListGroupsParamsFilterStatus = "STATUS_SOFT_DELETED" - GroupServiceListGroupsParamsFilterStatusSTATUSUNSPECIFIED GroupServiceListGroupsParamsFilterStatus = "STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the GroupServiceListGroupsParamsFilterStatus enum. -func (e GroupServiceListGroupsParamsFilterStatus) Valid() bool { - switch e { - case GroupServiceListGroupsParamsFilterStatusSTATUSACTIVE: - return true - case GroupServiceListGroupsParamsFilterStatusSTATUSBANNED: - return true - case GroupServiceListGroupsParamsFilterStatusSTATUSINACTIVE: - return true - case GroupServiceListGroupsParamsFilterStatusSTATUSSOFTDELETED: - return true - case GroupServiceListGroupsParamsFilterStatusSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for InstantAppServiceListInstantAppsParamsDistro. -const ( - InstantAppServiceListInstantAppsParamsDistroDISTROALMALINUX10 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_ALMALINUX_10" - InstantAppServiceListInstantAppsParamsDistroDISTROALMALINUX9 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_ALMALINUX_9" - InstantAppServiceListInstantAppsParamsDistroDISTROCENTOS10 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_CENTOS_10" - InstantAppServiceListInstantAppsParamsDistroDISTROCENTOS9 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_CENTOS_9" - InstantAppServiceListInstantAppsParamsDistroDISTRODEBIAN12 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_DEBIAN_12" - InstantAppServiceListInstantAppsParamsDistroDISTRODEBIAN13 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_DEBIAN_13" - InstantAppServiceListInstantAppsParamsDistroDISTROFEDORA43 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_FEDORA_43" - InstantAppServiceListInstantAppsParamsDistroDISTROFEDORA44 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_FEDORA_44" - InstantAppServiceListInstantAppsParamsDistroDISTROROCKY10 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_ROCKY_10" - InstantAppServiceListInstantAppsParamsDistroDISTROROCKY9 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_ROCKY_9" - InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2204 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_UBUNTU_22_04" - InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2404 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_UBUNTU_24_04" - InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2604 InstantAppServiceListInstantAppsParamsDistro = "DISTRO_UBUNTU_26_04" - InstantAppServiceListInstantAppsParamsDistroDISTROUNSPECIFIED InstantAppServiceListInstantAppsParamsDistro = "DISTRO_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the InstantAppServiceListInstantAppsParamsDistro enum. -func (e InstantAppServiceListInstantAppsParamsDistro) Valid() bool { - switch e { - case InstantAppServiceListInstantAppsParamsDistroDISTROALMALINUX10: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROALMALINUX9: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROCENTOS10: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROCENTOS9: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTRODEBIAN12: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTRODEBIAN13: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROFEDORA43: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROFEDORA44: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROROCKY10: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROROCKY9: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2204: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2404: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROUBUNTU2604: - return true - case InstantAppServiceListInstantAppsParamsDistroDISTROUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for InvoiceServiceListInvoicesParamsStatus. -const ( - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSDRAFT InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_DRAFT" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSOPEN InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_OPEN" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSPAID InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_PAID" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSPASTDUE InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_PAST_DUE" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSUNCOLLECTIBLE InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_UNCOLLECTIBLE" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSUNSPECIFIED InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_UNSPECIFIED" - InvoiceServiceListInvoicesParamsStatusINVOICESTATUSVOID InvoiceServiceListInvoicesParamsStatus = "INVOICE_STATUS_VOID" -) - -// Valid indicates whether the value is a known member of the InvoiceServiceListInvoicesParamsStatus enum. -func (e InvoiceServiceListInvoicesParamsStatus) Valid() bool { - switch e { - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSDRAFT: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSOPEN: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSPAID: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSPASTDUE: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSUNCOLLECTIBLE: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSUNSPECIFIED: - return true - case InvoiceServiceListInvoicesParamsStatusINVOICESTATUSVOID: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListAvailableAddonsParamsFilterAddonType. -const ( - MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEADDITIONALIP MarketplaceServiceListAvailableAddonsParamsFilterAddonType = "ADDON_TYPE_ADDITIONAL_IP" - MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEBACKUP MarketplaceServiceListAvailableAddonsParamsFilterAddonType = "ADDON_TYPE_BACKUP" - MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPESNAPSHOT MarketplaceServiceListAvailableAddonsParamsFilterAddonType = "ADDON_TYPE_SNAPSHOT" - MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEUNSPECIFIED MarketplaceServiceListAvailableAddonsParamsFilterAddonType = "ADDON_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListAvailableAddonsParamsFilterAddonType enum. -func (e MarketplaceServiceListAvailableAddonsParamsFilterAddonType) Valid() bool { - switch e { - case MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEADDITIONALIP: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEBACKUP: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPESNAPSHOT: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterAddonTypeADDONTYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListAvailableAddonsParamsFilterBillingType. -const ( - MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEFREE MarketplaceServiceListAvailableAddonsParamsFilterBillingType = "BILLING_TYPE_FREE" - MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEPERCENTAGE MarketplaceServiceListAvailableAddonsParamsFilterBillingType = "BILLING_TYPE_PERCENTAGE" - MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION MarketplaceServiceListAvailableAddonsParamsFilterBillingType = "BILLING_TYPE_SUBSCRIPTION" - MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED MarketplaceServiceListAvailableAddonsParamsFilterBillingType = "BILLING_TYPE_UNSPECIFIED" - MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEUSAGE MarketplaceServiceListAvailableAddonsParamsFilterBillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListAvailableAddonsParamsFilterBillingType enum. -func (e MarketplaceServiceListAvailableAddonsParamsFilterBillingType) Valid() bool { - switch e { - case MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEFREE: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEPERCENTAGE: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED: - return true - case MarketplaceServiceListAvailableAddonsParamsFilterBillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListAvailablePlansParamsFilterBillingType. -const ( - MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEFREE MarketplaceServiceListAvailablePlansParamsFilterBillingType = "BILLING_TYPE_FREE" - MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEPERCENTAGE MarketplaceServiceListAvailablePlansParamsFilterBillingType = "BILLING_TYPE_PERCENTAGE" - MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION MarketplaceServiceListAvailablePlansParamsFilterBillingType = "BILLING_TYPE_SUBSCRIPTION" - MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED MarketplaceServiceListAvailablePlansParamsFilterBillingType = "BILLING_TYPE_UNSPECIFIED" - MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEUSAGE MarketplaceServiceListAvailablePlansParamsFilterBillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListAvailablePlansParamsFilterBillingType enum. -func (e MarketplaceServiceListAvailablePlansParamsFilterBillingType) Valid() bool { - switch e { - case MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEFREE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEPERCENTAGE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION: - return true - case MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED: - return true - case MarketplaceServiceListAvailablePlansParamsFilterBillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListAvailablePlansParamsFilterComputeType. -const ( - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPECPUOPTIMIZED MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_CPU_OPTIMIZED" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGAMESERVER MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_GAME_SERVER" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGENERALCOMPUTE MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_GENERAL_COMPUTE" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGENERALPURPOSE MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_GENERAL_PURPOSE" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEHIGHFREQUENCY MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_HIGH_FREQUENCY" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEHIGHPERFORMANCE MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_HIGH_PERFORMANCE" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEMEMORYOPTIMIZED MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_MEMORY_OPTIMIZED" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPESTORAGEOPTIMIZED MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_STORAGE_OPTIMIZED" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEUNSPECIFIED MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_UNSPECIFIED" - MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEVERYHIGHFREQUENCY MarketplaceServiceListAvailablePlansParamsFilterComputeType = "COMPUTE_TYPE_VERY_HIGH_FREQUENCY" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListAvailablePlansParamsFilterComputeType enum. -func (e MarketplaceServiceListAvailablePlansParamsFilterComputeType) Valid() bool { - switch e { - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPECPUOPTIMIZED: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGAMESERVER: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGENERALCOMPUTE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEGENERALPURPOSE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEHIGHFREQUENCY: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEHIGHPERFORMANCE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEMEMORYOPTIMIZED: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPESTORAGEOPTIMIZED: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEUNSPECIFIED: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeTypeCOMPUTETYPEVERYHIGHFREQUENCY: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListAvailablePlansParamsFilterComputeCategory. -const ( - MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYDEDICATEDCOMPUTE MarketplaceServiceListAvailablePlansParamsFilterComputeCategory = "COMPUTE_CATEGORY_DEDICATED_COMPUTE" - MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYSHAREDCOMPUTE MarketplaceServiceListAvailablePlansParamsFilterComputeCategory = "COMPUTE_CATEGORY_SHARED_COMPUTE" - MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYUNSPECIFIED MarketplaceServiceListAvailablePlansParamsFilterComputeCategory = "COMPUTE_CATEGORY_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListAvailablePlansParamsFilterComputeCategory enum. -func (e MarketplaceServiceListAvailablePlansParamsFilterComputeCategory) Valid() bool { - switch e { - case MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYDEDICATEDCOMPUTE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYSHAREDCOMPUTE: - return true - case MarketplaceServiceListAvailablePlansParamsFilterComputeCategoryCOMPUTECATEGORYUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListProvidersParamsFilterBillingType. -const ( - MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEFREE MarketplaceServiceListProvidersParamsFilterBillingType = "BILLING_TYPE_FREE" - MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEPERCENTAGE MarketplaceServiceListProvidersParamsFilterBillingType = "BILLING_TYPE_PERCENTAGE" - MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION MarketplaceServiceListProvidersParamsFilterBillingType = "BILLING_TYPE_SUBSCRIPTION" - MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED MarketplaceServiceListProvidersParamsFilterBillingType = "BILLING_TYPE_UNSPECIFIED" - MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEUSAGE MarketplaceServiceListProvidersParamsFilterBillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListProvidersParamsFilterBillingType enum. -func (e MarketplaceServiceListProvidersParamsFilterBillingType) Valid() bool { - switch e { - case MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEFREE: - return true - case MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEPERCENTAGE: - return true - case MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPESUBSCRIPTION: - return true - case MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEUNSPECIFIED: - return true - case MarketplaceServiceListProvidersParamsFilterBillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } -} - -// Defines values for MarketplaceServiceListProvidersParamsPlanPriceSort. -const ( - PROVIDERPLANPRICESORTLEASTEXPENSIVEFIRST MarketplaceServiceListProvidersParamsPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST" - PROVIDERPLANPRICESORTMOSTEXPENSIVEFIRST MarketplaceServiceListProvidersParamsPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST" - PROVIDERPLANPRICESORTUNSPECIFIED MarketplaceServiceListProvidersParamsPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the MarketplaceServiceListProvidersParamsPlanPriceSort enum. -func (e MarketplaceServiceListProvidersParamsPlanPriceSort) Valid() bool { - switch e { - case PROVIDERPLANPRICESORTLEASTEXPENSIVEFIRST: - return true - case PROVIDERPLANPRICESORTMOSTEXPENSIVEFIRST: - return true - case PROVIDERPLANPRICESORTUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for NodeServiceListNodesParamsServiceStatus. -const ( - NodeServiceListNodesParamsServiceStatusSERVICESTATUSMAINTENANCE NodeServiceListNodesParamsServiceStatus = "SERVICE_STATUS_MAINTENANCE" - NodeServiceListNodesParamsServiceStatusSERVICESTATUSOFFLINE NodeServiceListNodesParamsServiceStatus = "SERVICE_STATUS_OFFLINE" - NodeServiceListNodesParamsServiceStatusSERVICESTATUSONLINE NodeServiceListNodesParamsServiceStatus = "SERVICE_STATUS_ONLINE" - NodeServiceListNodesParamsServiceStatusSERVICESTATUSUNSPECIFIED NodeServiceListNodesParamsServiceStatus = "SERVICE_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the NodeServiceListNodesParamsServiceStatus enum. -func (e NodeServiceListNodesParamsServiceStatus) Valid() bool { - switch e { - case NodeServiceListNodesParamsServiceStatusSERVICESTATUSMAINTENANCE: - return true - case NodeServiceListNodesParamsServiceStatusSERVICESTATUSOFFLINE: - return true - case NodeServiceListNodesParamsServiceStatusSERVICESTATUSONLINE: - return true - case NodeServiceListNodesParamsServiceStatusSERVICESTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for PaymentServiceListPaymentsParamsStatus. -const ( - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSCANCELED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_CANCELED" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSFAILED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_FAILED" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPARTIALLYREFUNDED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_PARTIALLY_REFUNDED" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPENDING PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_PENDING" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPROCESSING PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_PROCESSING" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSREFUNDED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_REFUNDED" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSSUCCEEDED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_SUCCEEDED" - PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSUNSPECIFIED PaymentServiceListPaymentsParamsStatus = "PAYMENT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the PaymentServiceListPaymentsParamsStatus enum. -func (e PaymentServiceListPaymentsParamsStatus) Valid() bool { - switch e { - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSCANCELED: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSFAILED: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPARTIALLYREFUNDED: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPENDING: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSPROCESSING: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSREFUNDED: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSSUCCEEDED: - return true - case PaymentServiceListPaymentsParamsStatusPAYMENTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for PlanServiceListPlansParamsEndUser. -const ( - PlanServiceListPlansParamsEndUserENDUSERALL PlanServiceListPlansParamsEndUser = "END_USER_ALL" - PlanServiceListPlansParamsEndUserENDUSERCLIENT PlanServiceListPlansParamsEndUser = "END_USER_CLIENT" - PlanServiceListPlansParamsEndUserENDUSERPROVIDER PlanServiceListPlansParamsEndUser = "END_USER_PROVIDER" - PlanServiceListPlansParamsEndUserENDUSERUNSPECIFIED PlanServiceListPlansParamsEndUser = "END_USER_UNSPECIFIED" - PlanServiceListPlansParamsEndUserENDUSERUSER PlanServiceListPlansParamsEndUser = "END_USER_USER" -) - -// Valid indicates whether the value is a known member of the PlanServiceListPlansParamsEndUser enum. -func (e PlanServiceListPlansParamsEndUser) Valid() bool { - switch e { - case PlanServiceListPlansParamsEndUserENDUSERALL: - return true - case PlanServiceListPlansParamsEndUserENDUSERCLIENT: - return true - case PlanServiceListPlansParamsEndUserENDUSERPROVIDER: - return true - case PlanServiceListPlansParamsEndUserENDUSERUNSPECIFIED: - return true - case PlanServiceListPlansParamsEndUserENDUSERUSER: - return true - default: - return false - } -} - -// Defines values for PlanServiceListPlansParamsAssetType. -const ( - PlanServiceListPlansParamsAssetTypeASSETTYPECDN PlanServiceListPlansParamsAssetType = "ASSET_TYPE_CDN" - PlanServiceListPlansParamsAssetTypeASSETTYPECONTAINER PlanServiceListPlansParamsAssetType = "ASSET_TYPE_CONTAINER" - PlanServiceListPlansParamsAssetTypeASSETTYPEDNS PlanServiceListPlansParamsAssetType = "ASSET_TYPE_DNS" - PlanServiceListPlansParamsAssetTypeASSETTYPEGAMESERVER PlanServiceListPlansParamsAssetType = "ASSET_TYPE_GAMESERVER" - PlanServiceListPlansParamsAssetTypeASSETTYPEGENERIC PlanServiceListPlansParamsAssetType = "ASSET_TYPE_GENERIC" - PlanServiceListPlansParamsAssetTypeASSETTYPEGPU PlanServiceListPlansParamsAssetType = "ASSET_TYPE_GPU" - PlanServiceListPlansParamsAssetTypeASSETTYPEIPADDRESS PlanServiceListPlansParamsAssetType = "ASSET_TYPE_IP_ADDRESS" - PlanServiceListPlansParamsAssetTypeASSETTYPESTORAGE PlanServiceListPlansParamsAssetType = "ASSET_TYPE_STORAGE" - PlanServiceListPlansParamsAssetTypeASSETTYPEUNSPECIFIED PlanServiceListPlansParamsAssetType = "ASSET_TYPE_UNSPECIFIED" - PlanServiceListPlansParamsAssetTypeASSETTYPEVM PlanServiceListPlansParamsAssetType = "ASSET_TYPE_VM" -) - -// Valid indicates whether the value is a known member of the PlanServiceListPlansParamsAssetType enum. -func (e PlanServiceListPlansParamsAssetType) Valid() bool { - switch e { - case PlanServiceListPlansParamsAssetTypeASSETTYPECDN: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPECONTAINER: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEDNS: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEGAMESERVER: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEGENERIC: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEGPU: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEIPADDRESS: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPESTORAGE: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEUNSPECIFIED: - return true - case PlanServiceListPlansParamsAssetTypeASSETTYPEVM: - return true - default: - return false - } -} - -// Defines values for PlanServiceListPlansParamsBillingType. -const ( - PlanServiceListPlansParamsBillingTypeBILLINGTYPEFREE PlanServiceListPlansParamsBillingType = "BILLING_TYPE_FREE" - PlanServiceListPlansParamsBillingTypeBILLINGTYPEPERCENTAGE PlanServiceListPlansParamsBillingType = "BILLING_TYPE_PERCENTAGE" - PlanServiceListPlansParamsBillingTypeBILLINGTYPESUBSCRIPTION PlanServiceListPlansParamsBillingType = "BILLING_TYPE_SUBSCRIPTION" - PlanServiceListPlansParamsBillingTypeBILLINGTYPEUNSPECIFIED PlanServiceListPlansParamsBillingType = "BILLING_TYPE_UNSPECIFIED" - PlanServiceListPlansParamsBillingTypeBILLINGTYPEUSAGE PlanServiceListPlansParamsBillingType = "BILLING_TYPE_USAGE" -) - -// Valid indicates whether the value is a known member of the PlanServiceListPlansParamsBillingType enum. -func (e PlanServiceListPlansParamsBillingType) Valid() bool { - switch e { - case PlanServiceListPlansParamsBillingTypeBILLINGTYPEFREE: - return true - case PlanServiceListPlansParamsBillingTypeBILLINGTYPEPERCENTAGE: - return true - case PlanServiceListPlansParamsBillingTypeBILLINGTYPESUBSCRIPTION: - return true - case PlanServiceListPlansParamsBillingTypeBILLINGTYPEUNSPECIFIED: - return true - case PlanServiceListPlansParamsBillingTypeBILLINGTYPEUSAGE: - return true - default: - return false - } -} - -// Defines values for PlanServiceSubscribeParamsBillingPeriod. -const ( - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODDAY PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_DAY" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODHOUR PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_HOUR" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODMONTH PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_MONTH" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODQUARTER PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_QUARTER" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODUNSPECIFIED PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_UNSPECIFIED" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODWEEK PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_WEEK" - PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODYEAR PlanServiceSubscribeParamsBillingPeriod = "BILLING_PERIOD_YEAR" -) - -// Valid indicates whether the value is a known member of the PlanServiceSubscribeParamsBillingPeriod enum. -func (e PlanServiceSubscribeParamsBillingPeriod) Valid() bool { - switch e { - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODDAY: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODHOUR: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODMONTH: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODQUARTER: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODUNSPECIFIED: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODWEEK: - return true - case PlanServiceSubscribeParamsBillingPeriodBILLINGPERIODYEAR: - return true - default: - return false - } -} - -// Defines values for PlatformServiceListPlatformsParamsServiceStatus. -const ( - PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSMAINTENANCE PlatformServiceListPlatformsParamsServiceStatus = "SERVICE_STATUS_MAINTENANCE" - PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSOFFLINE PlatformServiceListPlatformsParamsServiceStatus = "SERVICE_STATUS_OFFLINE" - PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSONLINE PlatformServiceListPlatformsParamsServiceStatus = "SERVICE_STATUS_ONLINE" - PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSUNSPECIFIED PlatformServiceListPlatformsParamsServiceStatus = "SERVICE_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the PlatformServiceListPlatformsParamsServiceStatus enum. -func (e PlatformServiceListPlatformsParamsServiceStatus) Valid() bool { - switch e { - case PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSMAINTENANCE: - return true - case PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSOFFLINE: - return true - case PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSONLINE: - return true - case PlatformServiceListPlatformsParamsServiceStatusSERVICESTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for ProviderCustomerServiceListProviderCustomersParamsActivityFilter. -const ( - PROVIDERCUSTOMERACTIVITYFILTERACTIVE ProviderCustomerServiceListProviderCustomersParamsActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_ACTIVE" - PROVIDERCUSTOMERACTIVITYFILTERALL ProviderCustomerServiceListProviderCustomersParamsActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL" - PROVIDERCUSTOMERACTIVITYFILTERINACTIVE ProviderCustomerServiceListProviderCustomersParamsActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_INACTIVE" - PROVIDERCUSTOMERACTIVITYFILTERUNSPECIFIED ProviderCustomerServiceListProviderCustomersParamsActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the ProviderCustomerServiceListProviderCustomersParamsActivityFilter enum. -func (e ProviderCustomerServiceListProviderCustomersParamsActivityFilter) Valid() bool { - switch e { - case PROVIDERCUSTOMERACTIVITYFILTERACTIVE: - return true - case PROVIDERCUSTOMERACTIVITYFILTERALL: - return true - case PROVIDERCUSTOMERACTIVITYFILTERINACTIVE: - return true - case PROVIDERCUSTOMERACTIVITYFILTERUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType. -const ( - ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEALL ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_ALL" - ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEDEDICATEDSERVER ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_DEDICATED_SERVER" - ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEGAMESERVER ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_GAME_SERVER" - ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEUNSPECIFIED ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED" - ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEVIRTUALMACHINE ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_VIRTUAL_MACHINE" -) - -// Valid indicates whether the value is a known member of the ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType enum. -func (e ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType) Valid() bool { - switch e { - case ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEALL: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEDEDICATEDSERVER: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEGAMESERVER: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEUNSPECIFIED: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsAssetTypePROVIDERCUSTOMERASSETTYPEVIRTUALMACHINE: - return true - default: - return false - } -} - -// Defines values for ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus. -const ( - ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSACTIVE ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_ACTIVE" - ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSINACTIVE ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_INACTIVE" - ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSUNSPECIFIED ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus enum. -func (e ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus) Valid() bool { - switch e { - case ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSACTIVE: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSINACTIVE: - return true - case ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatusPROVIDERCUSTOMERVMACTIVITYSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily. -const ( - DASHBOARDIPAMASSIGNMENTIPFAMILYIPV4 ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV4" - DASHBOARDIPAMASSIGNMENTIPFAMILYIPV6 ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV6" - DASHBOARDIPAMASSIGNMENTIPFAMILYUNSPECIFIED ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily enum. -func (e ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily) Valid() bool { - switch e { - case DASHBOARDIPAMASSIGNMENTIPFAMILYIPV4: - return true - case DASHBOARDIPAMASSIGNMENTIPFAMILYIPV6: - return true - case DASHBOARDIPAMASSIGNMENTIPFAMILYUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for PayoutInvoiceServiceListPayoutInvoicesParamsStatus. -const ( - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSCANCELED PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_CANCELED" - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSCOMPLETED PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_COMPLETED" - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSFAILED PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_FAILED" - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSPENDING PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_PENDING" - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSPROCESSING PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_PROCESSING" - PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSUNSPECIFIED PayoutInvoiceServiceListPayoutInvoicesParamsStatus = "PAYOUT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the PayoutInvoiceServiceListPayoutInvoicesParamsStatus enum. -func (e PayoutInvoiceServiceListPayoutInvoicesParamsStatus) Valid() bool { - switch e { - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSCANCELED: - return true - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSCOMPLETED: - return true - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSFAILED: - return true - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSPENDING: - return true - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSPROCESSING: - return true - case PayoutInvoiceServiceListPayoutInvoicesParamsStatusPAYOUTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for RefundServiceListRefundsParamsStatus. -const ( - RefundServiceListRefundsParamsStatusREFUNDSTATUSCANCELED RefundServiceListRefundsParamsStatus = "REFUND_STATUS_CANCELED" - RefundServiceListRefundsParamsStatusREFUNDSTATUSFAILED RefundServiceListRefundsParamsStatus = "REFUND_STATUS_FAILED" - RefundServiceListRefundsParamsStatusREFUNDSTATUSPENDING RefundServiceListRefundsParamsStatus = "REFUND_STATUS_PENDING" - RefundServiceListRefundsParamsStatusREFUNDSTATUSPROCESSING RefundServiceListRefundsParamsStatus = "REFUND_STATUS_PROCESSING" - RefundServiceListRefundsParamsStatusREFUNDSTATUSSUCCEEDED RefundServiceListRefundsParamsStatus = "REFUND_STATUS_SUCCEEDED" - RefundServiceListRefundsParamsStatusREFUNDSTATUSUNSPECIFIED RefundServiceListRefundsParamsStatus = "REFUND_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the RefundServiceListRefundsParamsStatus enum. -func (e RefundServiceListRefundsParamsStatus) Valid() bool { - switch e { - case RefundServiceListRefundsParamsStatusREFUNDSTATUSCANCELED: - return true - case RefundServiceListRefundsParamsStatusREFUNDSTATUSFAILED: - return true - case RefundServiceListRefundsParamsStatusREFUNDSTATUSPENDING: - return true - case RefundServiceListRefundsParamsStatusREFUNDSTATUSPROCESSING: - return true - case RefundServiceListRefundsParamsStatusREFUNDSTATUSSUCCEEDED: - return true - case RefundServiceListRefundsParamsStatusREFUNDSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for RoadmapServiceListRoadmapFeatureRequestsParamsStatus. -const ( - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSCOMPLETED RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_COMPLETED" - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSDECLINED RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_DECLINED" - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSINPROGRESS RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_IN_PROGRESS" - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSINREVIEW RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_IN_REVIEW" - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSPLANNED RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_PLANNED" - RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSUNSPECIFIED RoadmapServiceListRoadmapFeatureRequestsParamsStatus = "ROADMAP_REQUEST_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the RoadmapServiceListRoadmapFeatureRequestsParamsStatus enum. -func (e RoadmapServiceListRoadmapFeatureRequestsParamsStatus) Valid() bool { - switch e { - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSCOMPLETED: - return true - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSDECLINED: - return true - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSINPROGRESS: - return true - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSINREVIEW: - return true - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSPLANNED: - return true - case RoadmapServiceListRoadmapFeatureRequestsParamsStatusROADMAPREQUESTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for AddonServiceListAddonSubscriptionsParamsAddonStatus. -const ( - AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSACTIVE AddonServiceListAddonSubscriptionsParamsAddonStatus = "ADDON_STATUS_ACTIVE" - AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSCANCELED AddonServiceListAddonSubscriptionsParamsAddonStatus = "ADDON_STATUS_CANCELED" - AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSPAUSED AddonServiceListAddonSubscriptionsParamsAddonStatus = "ADDON_STATUS_PAUSED" - AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSPENDINGACTIVATION AddonServiceListAddonSubscriptionsParamsAddonStatus = "ADDON_STATUS_PENDING_ACTIVATION" - AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSUNSPECIFIED AddonServiceListAddonSubscriptionsParamsAddonStatus = "ADDON_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the AddonServiceListAddonSubscriptionsParamsAddonStatus enum. -func (e AddonServiceListAddonSubscriptionsParamsAddonStatus) Valid() bool { - switch e { - case AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSACTIVE: - return true - case AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSCANCELED: - return true - case AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSPAUSED: - return true - case AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSPENDINGACTIVATION: - return true - case AddonServiceListAddonSubscriptionsParamsAddonStatusADDONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for TicketServiceListTicketsParamsFilterTicketStatus. -const ( - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSAWAITINGREPLY TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_AWAITING_REPLY" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSDUPLICATE TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_DUPLICATE" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSESCALATED TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_ESCALATED" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSINPROGRESS TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_IN_PROGRESS" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSNOTREPRODUCIBLE TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_NOT_REPRODUCIBLE" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSPENDING TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_PENDING" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSRESOLVED TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_RESOLVED" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSUNSPECIFIED TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_UNSPECIFIED" - TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSWONTFIX TicketServiceListTicketsParamsFilterTicketStatus = "TICKET_STATUS_WONT_FIX" -) - -// Valid indicates whether the value is a known member of the TicketServiceListTicketsParamsFilterTicketStatus enum. -func (e TicketServiceListTicketsParamsFilterTicketStatus) Valid() bool { - switch e { - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSAWAITINGREPLY: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSDUPLICATE: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSESCALATED: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSINPROGRESS: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSNOTREPRODUCIBLE: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSPENDING: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSRESOLVED: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSUNSPECIFIED: - return true - case TicketServiceListTicketsParamsFilterTicketStatusTICKETSTATUSWONTFIX: - return true - default: - return false - } -} - -// Defines values for TicketServiceListTicketsParamsFilterCaseType. -const ( - TicketServiceListTicketsParamsFilterCaseTypeCASETYPEABUSE TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_ABUSE" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPEBILLING TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_BILLING" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPECONFIGURATIONCHANGE TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_CONFIGURATION_CHANGE" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPEGENERAL TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_GENERAL" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPEOUTAGE TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_OUTAGE" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPETROUBLESHOOTING TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_TROUBLESHOOTING" - TicketServiceListTicketsParamsFilterCaseTypeCASETYPEUNSPECIFIED TicketServiceListTicketsParamsFilterCaseType = "CASE_TYPE_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the TicketServiceListTicketsParamsFilterCaseType enum. -func (e TicketServiceListTicketsParamsFilterCaseType) Valid() bool { - switch e { - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPEABUSE: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPEBILLING: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPECONFIGURATIONCHANGE: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPEGENERAL: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPEOUTAGE: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPETROUBLESHOOTING: - return true - case TicketServiceListTicketsParamsFilterCaseTypeCASETYPEUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for TicketServiceListTicketsParamsFilterPriority. -const ( - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYCRITICAL TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_CRITICAL" - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYHIGH TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_HIGH" - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYLOW TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_LOW" - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYNORMAL TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_NORMAL" - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYUNSPECIFIED TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_UNSPECIFIED" - TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYURGENT TicketServiceListTicketsParamsFilterPriority = "TICKET_PRIORITY_URGENT" -) - -// Valid indicates whether the value is a known member of the TicketServiceListTicketsParamsFilterPriority enum. -func (e TicketServiceListTicketsParamsFilterPriority) Valid() bool { - switch e { - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYCRITICAL: - return true - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYHIGH: - return true - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYLOW: - return true - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYNORMAL: - return true - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYUNSPECIFIED: - return true - case TicketServiceListTicketsParamsFilterPriorityTICKETPRIORITYURGENT: - return true - default: - return false - } -} - -// Defines values for UsageReportServiceListUsageRecordsParamsUsageRecordStatus. -const ( - UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSBILLED UsageReportServiceListUsageRecordsParamsUsageRecordStatus = "USAGE_RECORD_STATUS_BILLED" - UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSFAILED UsageReportServiceListUsageRecordsParamsUsageRecordStatus = "USAGE_RECORD_STATUS_FAILED" - UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSPENDING UsageReportServiceListUsageRecordsParamsUsageRecordStatus = "USAGE_RECORD_STATUS_PENDING" - UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSPROCESSED UsageReportServiceListUsageRecordsParamsUsageRecordStatus = "USAGE_RECORD_STATUS_PROCESSED" - UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSUNSPECIFIED UsageReportServiceListUsageRecordsParamsUsageRecordStatus = "USAGE_RECORD_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the UsageReportServiceListUsageRecordsParamsUsageRecordStatus enum. -func (e UsageReportServiceListUsageRecordsParamsUsageRecordStatus) Valid() bool { - switch e { - case UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSBILLED: - return true - case UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSFAILED: - return true - case UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSPENDING: - return true - case UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSPROCESSED: - return true - case UsageReportServiceListUsageRecordsParamsUsageRecordStatusUSAGERECORDSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for UserServiceListUsersParamsFilterStatus. -const ( - UserServiceListUsersParamsFilterStatusSTATUSACTIVE UserServiceListUsersParamsFilterStatus = "STATUS_ACTIVE" - UserServiceListUsersParamsFilterStatusSTATUSBANNED UserServiceListUsersParamsFilterStatus = "STATUS_BANNED" - UserServiceListUsersParamsFilterStatusSTATUSINACTIVE UserServiceListUsersParamsFilterStatus = "STATUS_INACTIVE" - UserServiceListUsersParamsFilterStatusSTATUSSOFTDELETED UserServiceListUsersParamsFilterStatus = "STATUS_SOFT_DELETED" - UserServiceListUsersParamsFilterStatusSTATUSUNSPECIFIED UserServiceListUsersParamsFilterStatus = "STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the UserServiceListUsersParamsFilterStatus enum. -func (e UserServiceListUsersParamsFilterStatus) Valid() bool { - switch e { - case UserServiceListUsersParamsFilterStatusSTATUSACTIVE: - return true - case UserServiceListUsersParamsFilterStatusSTATUSBANNED: - return true - case UserServiceListUsersParamsFilterStatusSTATUSINACTIVE: - return true - case UserServiceListUsersParamsFilterStatusSTATUSSOFTDELETED: - return true - case UserServiceListUsersParamsFilterStatusSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus. -const ( - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSCREATED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_CREATED" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSDELETED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_DELETED" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSREINSTALLING VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_REINSTALLING" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSRESTARTED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_RESTARTED" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSSTARTED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_STARTED" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSSTOPPED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_STOPPED" - VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSUNSPECIFIED VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus = "OPERATION_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus enum. -func (e VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus) Valid() bool { - switch e { - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSCREATED: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSDELETED: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSREINSTALLING: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSRESTARTED: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSSTARTED: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSSTOPPED: - return true - case VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatusOPERATIONSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for BackupServiceListBackupsParamsStatus. -const ( - BackupServiceListBackupsParamsStatusBACKUPSTATUSACTIVE BackupServiceListBackupsParamsStatus = "BACKUP_STATUS_ACTIVE" - BackupServiceListBackupsParamsStatusBACKUPSTATUSDELETED BackupServiceListBackupsParamsStatus = "BACKUP_STATUS_DELETED" - BackupServiceListBackupsParamsStatusBACKUPSTATUSEXPIRED BackupServiceListBackupsParamsStatus = "BACKUP_STATUS_EXPIRED" - BackupServiceListBackupsParamsStatusBACKUPSTATUSUNKNOWN BackupServiceListBackupsParamsStatus = "BACKUP_STATUS_UNKNOWN" - BackupServiceListBackupsParamsStatusBACKUPSTATUSUNSPECIFIED BackupServiceListBackupsParamsStatus = "BACKUP_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the BackupServiceListBackupsParamsStatus enum. -func (e BackupServiceListBackupsParamsStatus) Valid() bool { - switch e { - case BackupServiceListBackupsParamsStatusBACKUPSTATUSACTIVE: - return true - case BackupServiceListBackupsParamsStatusBACKUPSTATUSDELETED: - return true - case BackupServiceListBackupsParamsStatusBACKUPSTATUSEXPIRED: - return true - case BackupServiceListBackupsParamsStatusBACKUPSTATUSUNKNOWN: - return true - case BackupServiceListBackupsParamsStatusBACKUPSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// Defines values for SnapshotServiceListSnapshotsParamsStatus. -const ( - SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSACTIVE SnapshotServiceListSnapshotsParamsStatus = "SNAPSHOT_STATUS_ACTIVE" - SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSDELETED SnapshotServiceListSnapshotsParamsStatus = "SNAPSHOT_STATUS_DELETED" - SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSEXPIRED SnapshotServiceListSnapshotsParamsStatus = "SNAPSHOT_STATUS_EXPIRED" - SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSUNKNOWN SnapshotServiceListSnapshotsParamsStatus = "SNAPSHOT_STATUS_UNKNOWN" - SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSUNSPECIFIED SnapshotServiceListSnapshotsParamsStatus = "SNAPSHOT_STATUS_UNSPECIFIED" -) - -// Valid indicates whether the value is a known member of the SnapshotServiceListSnapshotsParamsStatus enum. -func (e SnapshotServiceListSnapshotsParamsStatus) Valid() bool { - switch e { - case SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSACTIVE: - return true - case SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSDELETED: - return true - case SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSEXPIRED: - return true - case SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSUNKNOWN: - return true - case SnapshotServiceListSnapshotsParamsStatusSNAPSHOTSTATUSUNSPECIFIED: - return true - default: - return false - } -} - -// AddonServiceAddAddonToSubscriptionBody defines model for AddonServiceAddAddonToSubscriptionBody. -type AddonServiceAddAddonToSubscriptionBody struct { - AddonId *string `json:"addonId,omitempty"` - AddonPriceId *string `json:"addonPriceId,omitempty"` - Quantity *int32 `json:"quantity,omitempty"` -} - -// AddonServiceUpdateAddonBody defines model for AddonServiceUpdateAddonBody. -type AddonServiceUpdateAddonBody struct { - Currency *string `json:"currency,omitempty"` - PercentageValue *float64 `json:"percentageValue,omitempty"` - - // UnitAmount Decimal string with 6 decimal places precision - UnitAmount *string `json:"unitAmount,omitempty"` - - // ZeroBaseFallbackAmount Decimal string with 6 decimal places precision - ZeroBaseFallbackAmount *string `json:"zeroBaseFallbackAmount,omitempty"` -} - -// AgentServiceGenerateInstallCommandBody defines model for AgentServiceGenerateInstallCommandBody. -type AgentServiceGenerateInstallCommandBody = map[string]interface{} - -// AgentServiceGeneratePeeringConfigBody defines model for AgentServiceGeneratePeeringConfigBody. -type AgentServiceGeneratePeeringConfigBody = map[string]interface{} - -// AgentServiceUpdateAgentBody defines model for AgentServiceUpdateAgentBody. -type AgentServiceUpdateAgentBody struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - // HypervisorDriver Set when registering an existing (console-created) agent via CLI. - // Must match the organization driver after the first registered agent. - HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` -} - -// AgentServiceUploadInboundPeeringConfigBody defines model for AgentServiceUploadInboundPeeringConfigBody. -type AgentServiceUploadInboundPeeringConfigBody struct { - // Kubeconfig Provider-generated peering-user kubeconfig YAML for neo as consumer. - Kubeconfig *string `json:"kubeconfig,omitempty"` -} - -// BackupServiceRestoreBackupBody defines model for BackupServiceRestoreBackupBody. -type BackupServiceRestoreBackupBody struct { - StartAfterRestore *bool `json:"startAfterRestore,omitempty"` -} - -// ClientProviderReviewServiceUpdateClientReviewBody defines model for ClientProviderReviewServiceUpdateClientReviewBody. -type ClientProviderReviewServiceUpdateClientReviewBody struct { - Comment *string `json:"comment,omitempty"` - StarRating *int32 `json:"starRating,omitempty"` -} - -// CloudInitTemplateServiceUpdateCloudInitTemplateBody defines model for CloudInitTemplateServiceUpdateCloudInitTemplateBody. -type CloudInitTemplateServiceUpdateCloudInitTemplateBody struct { - Name *string `json:"name,omitempty"` - NetworkData *string `json:"networkData,omitempty"` - Storage *string `json:"storage,omitempty"` - UserData *string `json:"userData,omitempty"` - VendorData *string `json:"vendorData,omitempty"` -} - -// CloudInitUserDataServiceUpdateCloudInitUserDataBody defines model for CloudInitUserDataServiceUpdateCloudInitUserDataBody. -type CloudInitUserDataServiceUpdateCloudInitUserDataBody struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - UserData *string `json:"userData,omitempty"` -} - -// EnvironmentVariableServiceUpdateEnvironmentVariableBody defines model for EnvironmentVariableServiceUpdateEnvironmentVariableBody. -type EnvironmentVariableServiceUpdateEnvironmentVariableBody struct { - Value *string `json:"value,omitempty"` -} - -// FirewallServiceCreateFirewallRuleBody defines model for FirewallServiceCreateFirewallRuleBody. -type FirewallServiceCreateFirewallRuleBody struct { - // Rule FirewallRuleInput is the client-provided rule payload for create/update. - // Clients must not provide id/ruleset_id/timestamps (those are server-controlled). - Rule *V1FirewallRuleInput `json:"rule,omitempty"` -} - -// FirewallServiceMoveFirewallRuleBody MoveFirewallRuleRequest is used to reorder firewall rules via drag-and-drop. -// The rule specified by `id` will be moved to a position relative to `target_rule_id`. -// Rules can only be moved within the same direction (ingress/egress). -type FirewallServiceMoveFirewallRuleBody struct { - Position *V1FirewallRulePosition `json:"position,omitempty"` - TargetRuleId *string `json:"targetRuleId,omitempty"` -} - -// FirewallServiceUpdateFirewallAddressGroupBody defines model for FirewallServiceUpdateFirewallAddressGroupBody. -type FirewallServiceUpdateFirewallAddressGroupBody struct { - // Group FirewallAddressGroupInput is the client-provided payload for create/update. - // Clients must not provide id/timestamps (those are server-controlled). - Group *V1FirewallAddressGroupInput `json:"group,omitempty"` -} - -// FirewallServiceUpdateFirewallRuleBody defines model for FirewallServiceUpdateFirewallRuleBody. -type FirewallServiceUpdateFirewallRuleBody struct { - // Rule FirewallRuleInput is the client-provided rule payload for create/update. - // Clients must not provide id/ruleset_id/timestamps (those are server-controlled). - Rule *V1FirewallRuleInput `json:"rule,omitempty"` -} - -// FirewallServiceUpdateFirewallRuleSetBody defines model for FirewallServiceUpdateFirewallRuleSetBody. -type FirewallServiceUpdateFirewallRuleSetBody struct { - Ruleset *V1FirewallRuleSetInput `json:"ruleset,omitempty"` -} - -// GroupServiceUpdateGroupBody defines model for GroupServiceUpdateGroupBody. -type GroupServiceUpdateGroupBody struct { - Description *string `json:"description,omitempty"` - GroupRoles *[]string `json:"groupRoles,omitempty"` - Name *string `json:"name,omitempty"` -} - -// IPAMServiceAddReservedIPBody defines model for IPAMServiceAddReservedIPBody. -type IPAMServiceAddReservedIPBody struct { - IpAddress *string `json:"ipAddress,omitempty"` -} - -// IPAMServiceAddReservedPrefixBody defines model for IPAMServiceAddReservedPrefixBody. -type IPAMServiceAddReservedPrefixBody struct { - Cidr *string `json:"cidr,omitempty"` -} - -// IPAMServiceAssignNetworkToNodeBody defines model for IPAMServiceAssignNetworkToNodeBody. -type IPAMServiceAssignNetworkToNodeBody struct { - NodeIds *[]string `json:"nodeIds,omitempty"` -} - -// IPAMServiceClearAllPrefixReservedIPsBody defines model for IPAMServiceClearAllPrefixReservedIPsBody. -type IPAMServiceClearAllPrefixReservedIPsBody = map[string]interface{} - -// IPAMServiceReserveAllPrefixIPsBody defines model for IPAMServiceReserveAllPrefixIPsBody. -type IPAMServiceReserveAllPrefixIPsBody = map[string]interface{} - -// IPAMServiceUpdateNetworkBody defines model for IPAMServiceUpdateNetworkBody. -type IPAMServiceUpdateNetworkBody struct { - Description *string `json:"description,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - - // MacAddressPrefix First 3 octets for MAC allocation within this network. Empty = leave unchanged on update. - MacAddressPrefix *string `json:"macAddressPrefix,omitempty"` - Name *string `json:"name,omitempty"` -} - -// IPAMServiceUpdatePrefixBody defines model for IPAMServiceUpdatePrefixBody. -type IPAMServiceUpdatePrefixBody struct { - AllocationStrategy *V1AllocationStrategy `json:"allocationStrategy,omitempty"` - Description *string `json:"description,omitempty"` - Gateway *string `json:"gateway,omitempty"` - NetworkId *string `json:"networkId,omitempty"` - ReservedIps *[]string `json:"reservedIps,omitempty"` -} - -// LiveValidationServiceStartPlanLiveValidationBody defines model for LiveValidationServiceStartPlanLiveValidationBody. -type LiveValidationServiceStartPlanLiveValidationBody struct { - IncludeBenchmarking *bool `json:"includeBenchmarking,omitempty"` - NodeId *string `json:"nodeId,omitempty"` -} - -// MetricsCredentialServiceRevokeMetricsWriteCredentialBody defines model for MetricsCredentialServiceRevokeMetricsWriteCredentialBody. -type MetricsCredentialServiceRevokeMetricsWriteCredentialBody = map[string]interface{} - -// MetricsCredentialServiceRotateMetricsWriteCredentialBody defines model for MetricsCredentialServiceRotateMetricsWriteCredentialBody. -type MetricsCredentialServiceRotateMetricsWriteCredentialBody = map[string]interface{} - -// NodeServiceUpdateNodeBody defines model for NodeServiceUpdateNodeBody. -type NodeServiceUpdateNodeBody struct { - // BackupStorageCompression Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node). - BackupStorageCompression *V1BackupStorageCompression `json:"backupStorageCompression,omitempty"` - BackupStorageDestination *string `json:"backupStorageDestination,omitempty"` - - // ComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated - // (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - // - // - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - // - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - ComputeType *V1NodeComputeType `json:"computeType,omitempty"` - CpuOverallocatePercent *int32 `json:"cpuOverallocatePercent,omitempty"` - MaintenanceMode *bool `json:"maintenanceMode,omitempty"` - MemoryOverallocatePercent *int32 `json:"memoryOverallocatePercent,omitempty"` - NetworkBridge *string `json:"networkBridge,omitempty"` - NetworkModel *string `json:"networkModel,omitempty"` - NetworkName *string `json:"networkName,omitempty"` - - // NetworkVlanId Omit to leave unchanged; 0 = untagged. - NetworkVlanId *int32 `json:"networkVlanId,omitempty"` - RegionId *string `json:"regionId,omitempty"` - StorageOverallocatePercent *int32 `json:"storageOverallocatePercent,omitempty"` - - // TopologyPaste Topology re-paste for dedicated nodes. Rejected if it would orphan a - // currently allocated CPU. Empty = leave stored topology unchanged. - TopologyPaste *string `json:"topologyPaste,omitempty"` - VmStorageDestination *string `json:"vmStorageDestination,omitempty"` - VmidSeed *int32 `json:"vmidSeed,omitempty"` -} - -// PaymentMethodServiceSetDefaultPaymentMethodBody defines model for PaymentMethodServiceSetDefaultPaymentMethodBody. -type PaymentMethodServiceSetDefaultPaymentMethodBody = map[string]interface{} - -// PlatformServiceAssignAgentBody defines model for PlatformServiceAssignAgentBody. -type PlatformServiceAssignAgentBody struct { - AgentId *string `json:"agentId,omitempty"` -} - -// PlatformServiceUnassignAgentBody defines model for PlatformServiceUnassignAgentBody. -type PlatformServiceUnassignAgentBody struct { - AgentId *string `json:"agentId,omitempty"` -} - -// PlatformServiceUpdatePlatformBody defines model for PlatformServiceUpdatePlatformBody. -type PlatformServiceUpdatePlatformBody struct { - EndpointUrl *string `json:"endpointUrl,omitempty"` - Name *string `json:"name,omitempty"` -} - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachineBody Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). -// The server must verify the VM belongs to this provider and client org. -type ProviderCustomerServiceRestartProviderCustomerVirtualMachineBody = map[string]interface{} - -// ProviderCustomerServiceStartProviderCustomerVirtualMachineBody Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). -// The server must verify the VM belongs to this provider and client org. -type ProviderCustomerServiceStartProviderCustomerVirtualMachineBody = map[string]interface{} - -// ProviderCustomerServiceStopProviderCustomerVirtualMachineBody Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). -// The server must verify the VM belongs to this provider and client org. -type ProviderCustomerServiceStopProviderCustomerVirtualMachineBody = map[string]interface{} - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody defines model for ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody. -type ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody struct { - Action *V1SmtpOutboundVmAction `json:"action,omitempty"` -} - -// ProviderPlanServiceUpdatePlanBody defines model for ProviderPlanServiceUpdatePlanBody. -type ProviderPlanServiceUpdatePlanBody struct { - AddonPriceOverrides *[]V1AddonPriceOverride `json:"addonPriceOverrides,omitempty"` - - // CpuLimit Plan CPU/network scheduling overrides written into metadata.specifications. - // Only affects VMs created after the update (VMs snapshot plan values at create). - CpuLimit *int32 `json:"cpuLimit,omitempty"` - CpuUnits *int32 `json:"cpuUnits,omitempty"` - Currency *string `json:"currency,omitempty"` - NetworkRateLimitMbs *float64 `json:"networkRateLimitMbs,omitempty"` - - // NodeIds When non-empty, replaces the plan's assigned nodes (same rules as create). - // Omitted / empty leaves existing assignments unchanged. - NodeIds *[]string `json:"nodeIds,omitempty"` - - // OnCreditExhaustion Provider choice when client prepaid credits are exhausted. - // Values: "suspend" (default), "continue_with_dunning". - OnCreditExhaustion *string `json:"onCreditExhaustion,omitempty"` - PlanPrices *[]V1PlanPriceOverride `json:"planPrices,omitempty"` - - // RegionId Region for this plan offer (optional on update). - RegionId *string `json:"regionId,omitempty"` -} - -// ProviderReviewServiceCreateProviderReviewReplyBody Create first public provider reply to a client review. -type ProviderReviewServiceCreateProviderReviewReplyBody struct { - ReplyMessage *string `json:"replyMessage,omitempty"` -} - -// ProviderReviewServiceUpdateProviderReviewReplyBody Update existing provider reply text. -type ProviderReviewServiceUpdateProviderReviewReplyBody struct { - ReplyMessage *string `json:"replyMessage,omitempty"` -} - -// RoadmapServiceCreateRoadmapFeatureRequestCommentBody defines model for RoadmapServiceCreateRoadmapFeatureRequestCommentBody. -type RoadmapServiceCreateRoadmapFeatureRequestCommentBody struct { - Body *string `json:"body,omitempty"` -} - -// RoadmapServiceUpdateRoadmapFeatureRequestCommentBody defines model for RoadmapServiceUpdateRoadmapFeatureRequestCommentBody. -type RoadmapServiceUpdateRoadmapFeatureRequestCommentBody struct { - Body *string `json:"body,omitempty"` -} - -// RoadmapServiceVoteRoadmapFeatureRequestBody defines model for RoadmapServiceVoteRoadmapFeatureRequestBody. -type RoadmapServiceVoteRoadmapFeatureRequestBody struct { - Type *V1RoadmapVoteType `json:"type,omitempty"` -} - -// RoleServiceUpdateRoleBody defines model for RoleServiceUpdateRoleBody. -type RoleServiceUpdateRoleBody struct { - Description *string `json:"description,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - Name *string `json:"name,omitempty"` - Permissions *[]string `json:"permissions,omitempty"` -} - -// SecretServiceUpdateSecretBody defines model for SecretServiceUpdateSecretBody. -type SecretServiceUpdateSecretBody struct { - Value *string `json:"value,omitempty"` -} - -// ServiceAccountServiceGenerateTokenBody defines model for ServiceAccountServiceGenerateTokenBody. -type ServiceAccountServiceGenerateTokenBody struct { - ExpiresInDays *int32 `json:"expiresInDays,omitempty"` - Name *string `json:"name,omitempty"` -} - -// ServiceAccountServiceUpdateServiceAccountBody defines model for ServiceAccountServiceUpdateServiceAccountBody. -type ServiceAccountServiceUpdateServiceAccountBody struct { - AllowedIps *[]string `json:"allowedIps,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - Name *string `json:"name,omitempty"` -} - -// SnapshotServiceCreateSnapshotBody defines model for SnapshotServiceCreateSnapshotBody. -type SnapshotServiceCreateSnapshotBody struct { - Description *string `json:"description,omitempty"` -} - -// SnapshotServiceRestoreSnapshotBody defines model for SnapshotServiceRestoreSnapshotBody. -type SnapshotServiceRestoreSnapshotBody struct { - SnapshotName *string `json:"snapshotName,omitempty"` - StopVm *bool `json:"stopVm,omitempty"` -} - -// TicketServiceAddInternalCommentBody defines model for TicketServiceAddInternalCommentBody. -type TicketServiceAddInternalCommentBody struct { - Comment *string `json:"comment,omitempty"` -} - -// TicketServiceAddReplyToTicketBody defines model for TicketServiceAddReplyToTicketBody. -type TicketServiceAddReplyToTicketBody struct { - ReplyMessage *string `json:"replyMessage,omitempty"` -} - -// TicketServiceCreateTicketAttachmentUploadBody defines model for TicketServiceCreateTicketAttachmentUploadBody. -type TicketServiceCreateTicketAttachmentUploadBody struct { - FileName *string `json:"fileName,omitempty"` - FileSize *string `json:"fileSize,omitempty"` - MimeType *string `json:"mimeType,omitempty"` -} - -// TicketServiceSetTicketPriorityBody defines model for TicketServiceSetTicketPriorityBody. -type TicketServiceSetTicketPriorityBody struct { - Priority *V1TicketPriority `json:"priority,omitempty"` -} - -// TicketServiceSetTicketStatusBody defines model for TicketServiceSetTicketStatusBody. -type TicketServiceSetTicketStatusBody struct { - TicketStatus *V1TicketStatus `json:"ticketStatus,omitempty"` -} - -// TicketServiceUpdateTicketTemplateBody defines model for TicketServiceUpdateTicketTemplateBody. -type TicketServiceUpdateTicketTemplateBody struct { - TicketTemplate *V1TicketTemplateInput `json:"ticketTemplate,omitempty"` -} - -// UserServiceUpdateUserBody defines model for UserServiceUpdateUserBody. -type UserServiceUpdateUserBody struct { - AllowOrgInvites *bool `json:"allowOrgInvites,omitempty"` - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - LastName *string `json:"lastName,omitempty"` - UserRoles *[]string `json:"userRoles,omitempty"` -} - -// VMTemplateServiceUpdateVMTemplateBody defines model for VMTemplateServiceUpdateVMTemplateBody. -type VMTemplateServiceUpdateVMTemplateBody struct { - CloudInitTemplateId *string `json:"cloudInitTemplateId,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Name *string `json:"name,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - - // ProxmoxCpuType Proxmox cpu= guest CPU model. Empty = leave unchanged on update. - ProxmoxCpuType *string `json:"proxmoxCpuType,omitempty"` - TemplateId *int32 `json:"templateId,omitempty"` -} - -// VirtualMachineServiceAttachVMFirewallBody defines model for VirtualMachineServiceAttachVMFirewallBody. -type VirtualMachineServiceAttachVMFirewallBody struct { - RulesetId *string `json:"rulesetId,omitempty"` -} - -// VirtualMachineServiceDetachVMFirewallBody defines model for VirtualMachineServiceDetachVMFirewallBody. -type VirtualMachineServiceDetachVMFirewallBody struct { - RulesetId *string `json:"rulesetId,omitempty"` -} - -// VirtualMachineServiceDisableAdditionalIPBody DisableAdditionalIPRequest removes one additional IPv4 and updates billing quantity. -type VirtualMachineServiceDisableAdditionalIPBody struct { - CancelImmediately *bool `json:"cancelImmediately,omitempty"` - - // IpAddress Specific additional IPv4 to release. When empty, the most recently added address is removed. - IpAddress *string `json:"ipAddress,omitempty"` -} - -// VirtualMachineServiceDisableBackupBody defines model for VirtualMachineServiceDisableBackupBody. -type VirtualMachineServiceDisableBackupBody struct { - AddonId *string `json:"addonId,omitempty"` - CancelImmediately *bool `json:"cancelImmediately,omitempty"` -} - -// VirtualMachineServiceEnableAdditionalIPBody EnableAdditionalIPRequest adds one additional IPv4 (same prefix as VM primary) and bills via ADDITIONAL-IP addon. -type VirtualMachineServiceEnableAdditionalIPBody = map[string]interface{} - -// VirtualMachineServiceEnableBackupBody defines model for VirtualMachineServiceEnableBackupBody. -type VirtualMachineServiceEnableBackupBody struct { - AddonId *string `json:"addonId,omitempty"` -} - -// VirtualMachineServiceReinstallVirtualMachineBody defines model for VirtualMachineServiceReinstallVirtualMachineBody. -type VirtualMachineServiceReinstallVirtualMachineBody struct { - CloudInitUserDataId *string `json:"cloudInitUserDataId,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Hostname *string `json:"hostname,omitempty"` - - // InstantAppId Platform Instant App. Same exclusivity rules as CreateVirtualMachineRequest. - InstantAppId *string `json:"instantAppId,omitempty"` - Password *string `json:"password,omitempty"` - SshKeyIds *[]string `json:"sshKeyIds,omitempty"` - UserData *string `json:"userData,omitempty"` -} - -// VirtualMachineServiceRestartVirtualMachineBody UpdateVMOperationStatusRequest is a unified request message for -// all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. -type VirtualMachineServiceRestartVirtualMachineBody = map[string]interface{} - -// VirtualMachineServiceStartVirtualMachineBody UpdateVMOperationStatusRequest is a unified request message for -// all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. -type VirtualMachineServiceStartVirtualMachineBody = map[string]interface{} - -// VirtualMachineServiceStopVirtualMachineBody UpdateVMOperationStatusRequest is a unified request message for -// all VM operation status updates. The endpoint name (start, stop, restart) determines the operation. -type VirtualMachineServiceStopVirtualMachineBody = map[string]interface{} - -// VirtualMachineServiceUpdateVirtualMachineBody UpdateVirtualMachineRequest is used to update virtual machine tags. -// Only tags can be modified through this endpoint. -type VirtualMachineServiceUpdateVirtualMachineBody struct { - AddTags *[]string `json:"addTags,omitempty"` - RemoveTags *[]string `json:"removeTags,omitempty"` -} - -// WebhookServiceHandleWebhookBody defines model for WebhookServiceHandleWebhookBody. -type WebhookServiceHandleWebhookBody struct { - Payload *[]byte `json:"payload,omitempty"` -} - -// Protov1Status defines model for protov1Status. -type Protov1Status string - -// V1AddAddonToSubscriptionResponse defines model for v1AddAddonToSubscriptionResponse. -type V1AddAddonToSubscriptionResponse struct { - AddonSubscription *V1AddonSubscription `json:"addonSubscription,omitempty"` -} - -// V1AddInternalCommentResponse defines model for v1AddInternalCommentResponse. -type V1AddInternalCommentResponse struct { - Comment *V1TicketInternalComment `json:"comment,omitempty"` -} - -// V1AddServiceAccountToGroupRequest defines model for v1AddServiceAccountToGroupRequest. -type V1AddServiceAccountToGroupRequest struct { - GroupId *string `json:"groupId,omitempty"` - ServiceAccountIds *[]string `json:"serviceAccountIds,omitempty"` -} - -// V1AddUserToGroupRequest defines model for v1AddUserToGroupRequest. -type V1AddUserToGroupRequest struct { - GroupId *string `json:"groupId,omitempty"` - UserIds *[]string `json:"userIds,omitempty"` -} - -// V1AdditionalIPAddress AdditionalIPAddress is an extra IPv4 allocated from the VM's primary prefix. -type V1AdditionalIPAddress struct { - Gateway *string `json:"gateway,omitempty"` - IpAddress *string `json:"ipAddress,omitempty"` - PrefixLength *string `json:"prefixLength,omitempty"` -} - -// V1Addon defines model for v1Addon. -type V1Addon struct { - AddonCategory *V1AssetCategory `json:"addonCategory,omitempty"` - AddonPrices *[]V1AddonPrice `json:"addonPrices,omitempty"` - AddonType *V1AddonType `json:"addonType,omitempty"` - AutoAttach *bool `json:"autoAttach,omitempty"` - Code *string `json:"code,omitempty"` - CompatibleAssetTypes *[]string `json:"compatibleAssetTypes,omitempty"` - CompatiblePlanCodes *[]string `json:"compatiblePlanCodes,omitempty"` - Description *string `json:"description,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - Id *string `json:"id,omitempty"` - IsPublic *bool `json:"isPublic,omitempty"` - IsTemplate *bool `json:"isTemplate,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - RequiresApproval *bool `json:"requiresApproval,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - TenantId *string `json:"tenantId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1AddonInput defines model for v1AddonInput. -type V1AddonInput struct { - Code *string `json:"code,omitempty"` - Usage *map[string]float64 `json:"usage,omitempty"` -} - -// V1AddonPrice DEPRECATED: AddonPrice is deprecated. Use PlanPrice with -// product_type=PRODUCT_TYPE_ADDON instead. This message is kept for backward -// compatibility but should not be used for new code. -type V1AddonPrice struct { - AddonId *string `json:"addonId,omitempty"` - BillingInterval *int32 `json:"billingInterval,omitempty"` - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - ChargeTiming *V1ChargeTiming `json:"chargeTiming,omitempty"` - Currency *string `json:"currency,omitempty"` - EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"` - EffectiveUntil *time.Time `json:"effectiveUntil,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - Id *string `json:"id,omitempty"` - Kind *V1AddonPriceKind `json:"kind,omitempty"` - MaxQuantity *int32 `json:"maxQuantity,omitempty"` - MaximumCharge *string `json:"maximumCharge,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - MetricAggregation *V1MetricAggregation `json:"metricAggregation,omitempty"` - MetricName *string `json:"metricName,omitempty"` - MinQuantity *int32 `json:"minQuantity,omitempty"` - - // MinimumCharge Decimal string with 6 decimal places precision - MinimumCharge *string `json:"minimumCharge,omitempty"` - PricingFormula *map[string]interface{} `json:"pricingFormula,omitempty"` - PricingModel *V1PricingModel `json:"pricingModel,omitempty"` - Prorate *bool `json:"prorate,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` - UnitName *string `json:"unitName,omitempty"` -} - -// V1AddonPriceKind defines model for v1AddonPriceKind. -type V1AddonPriceKind string - -// V1AddonPriceOverride AddonPriceOverride allows providers to set custom prices for addons when -// creating plans. If an addon_code is specified here, the override price will -// be used instead of copying from template. Only accepts unit_amount_minor -// (price). Currency comes from plan level. -type V1AddonPriceOverride struct { - AddonCode *string `json:"addonCode,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` -} - -// V1AddonStatus defines model for v1AddonStatus. -type V1AddonStatus string - -// V1AddonSubscription defines model for v1AddonSubscription. -type V1AddonSubscription struct { - AddonCode *string `json:"addonCode,omitempty"` - AddonId *string `json:"addonId,omitempty"` - AddonName *string `json:"addonName,omitempty"` - AddonPriceId *string `json:"addonPriceId,omitempty"` - AddonStatus *V1AddonStatus `json:"addonStatus,omitempty"` - CancelAtPeriodEnd *bool `json:"cancelAtPeriodEnd,omitempty"` - CanceledAt *time.Time `json:"canceledAt,omitempty"` - EndDate *time.Time `json:"endDate,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Quantity *int32 `json:"quantity,omitempty"` - StartDate *time.Time `json:"startDate,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - SubscriptionName *string `json:"subscriptionName,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1AddonType defines model for v1AddonType. -type V1AddonType string - -// V1Agent defines model for v1Agent. -type V1Agent struct { - AgentPublicIp *string `json:"agentPublicIp,omitempty"` - Description *string `json:"description,omitempty"` - GatewayRegion *V1AgentGatewayRegion `json:"gatewayRegion,omitempty"` - GwServerServicePort *int32 `json:"gwServerServicePort,omitempty"` - Id *string `json:"id,omitempty"` - InboundPeeringError *string `json:"inboundPeeringError,omitempty"` - InboundPeeringState *V1InboundPeeringState `json:"inboundPeeringState,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Provisioned *bool `json:"provisioned,omitempty"` - ServiceStatus *V1ServiceStatus `json:"serviceStatus,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - // HypervisorDriver Set when this agent is registered via CLI. Empty/UNSPECIFIED until then. - HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` -} - -// V1AgentGatewayRegion defines model for v1AgentGatewayRegion. -type V1AgentGatewayRegion string - -// V1AggregationType defines model for v1AggregationType. -type V1AggregationType string - -// V1AllocationStrategy defines model for v1AllocationStrategy. -type V1AllocationStrategy string - -// V1AssetCategory defines model for v1AssetCategory. -type V1AssetCategory string - -// V1AssetType defines model for v1AssetType. -type V1AssetType string - -// V1AssignPermissionToRoleRequest defines model for v1AssignPermissionToRoleRequest. -type V1AssignPermissionToRoleRequest struct { - PermissionIds *[]string `json:"permissionIds,omitempty"` - RoleId *string `json:"roleId,omitempty"` -} - -// V1AssignableNodeView defines model for v1AssignableNodeView. -type V1AssignableNodeView struct { - CatalogBrand *string `json:"catalogBrand,omitempty"` - CatalogModel *string `json:"catalogModel,omitempty"` - - // ComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated - // (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - // - // - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - // - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - ComputeType *V1NodeComputeType `json:"computeType,omitempty"` - CpuModel *string `json:"cpuModel,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - RegionId *string `json:"regionId,omitempty"` -} - -// V1AttachPaymentMethodRequest defines model for v1AttachPaymentMethodRequest. -type V1AttachPaymentMethodRequest struct { - // Metadata Optional: custom metadata - Metadata *map[string]interface{} `json:"metadata,omitempty"` - - // PaymentMethodId Optional: Payment method ID (if using existing) - PaymentMethodId *string `json:"paymentMethodId,omitempty"` - PaymentMethodToken *string `json:"paymentMethodToken,omitempty"` - - // SetAsDefault Whether to set as default payment method - SetAsDefault *bool `json:"setAsDefault,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` -} - -// V1AttachPaymentMethodResponse defines model for v1AttachPaymentMethodResponse. -type V1AttachPaymentMethodResponse struct { - PaymentMethod *V1PaymentMethod `json:"paymentMethod,omitempty"` -} - -// V1AuthorizeResponse defines model for v1AuthorizeResponse. -type V1AuthorizeResponse struct { - AuthorizationUrl *string `json:"authorizationUrl,omitempty"` - Code *string `json:"code,omitempty"` - State *string `json:"state,omitempty"` -} - -// V1AvailablePlanCode defines model for v1AvailablePlanCode. -type V1AvailablePlanCode struct { - BillingType *V1BillingType `json:"billingType,omitempty"` - - // ComputeCategory - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) - // - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - ComputeCategory *V1ComputeCategory `json:"computeCategory,omitempty"` - - // ComputeType - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) - // - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - // - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - // - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - // - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - // - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - // - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - // - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - // - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - ComputeType *V1ComputeType `json:"computeType,omitempty"` - PlanCode *string `json:"planCode,omitempty"` -} - -// V1Backup defines model for v1Backup. -type V1Backup struct { - AddonId *string `json:"addonId,omitempty"` - BackupId *string `json:"backupId,omitempty"` - BackupStatus *V1BackupStatus `json:"backupStatus,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OperationStatus *V1BackupOperationStatus `json:"operationStatus,omitempty"` - RestoreStatus *V1RestoreStatus `json:"restoreStatus,omitempty"` - RestoredAt *time.Time `json:"restoredAt,omitempty"` - SizeBytes *string `json:"sizeBytes,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1BackupOperationStatus defines model for v1BackupOperationStatus. -type V1BackupOperationStatus string - -// V1BackupStatus defines model for v1BackupStatus. -type V1BackupStatus string - -// V1BackupStorageCompression Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node). -type V1BackupStorageCompression string - -// V1BatchRecordUsageRequest defines model for v1BatchRecordUsageRequest. -type V1BatchRecordUsageRequest struct { - Records *[]V1RecordUsageRequest `json:"records,omitempty"` -} - -// V1BatchRecordUsageResponse defines model for v1BatchRecordUsageResponse. -type V1BatchRecordUsageResponse struct { - CreatedCount *int32 `json:"createdCount,omitempty"` - DuplicateCount *int32 `json:"duplicateCount,omitempty"` - ErrorMessages *[]string `json:"errorMessages,omitempty"` - FailedCount *int32 `json:"failedCount,omitempty"` - UsageRecords *[]V1UsageRecord `json:"usageRecords,omitempty"` -} - -// V1BillingPeriod defines model for v1BillingPeriod. -type V1BillingPeriod string - -// V1BillingType defines model for v1BillingType. -type V1BillingType string - -// V1CPUType defines model for v1CPUType. -type V1CPUType string - -// V1CalculatePlanPricingRequest defines model for v1CalculatePlanPricingRequest. -type V1CalculatePlanPricingRequest struct { - CalcConfig *V1PricingCalculationConfig `json:"calcConfig,omitempty"` - Instances *[]V1ResourceInstanceInput `json:"instances,omitempty"` - PlanConfig *V1PlanPricingConfig `json:"planConfig,omitempty"` -} - -// V1CalculatePlanPricingResponse defines model for v1CalculatePlanPricingResponse. -type V1CalculatePlanPricingResponse struct { - CouponValue *string `json:"couponValue,omitempty"` - Currency *string `json:"currency,omitempty"` - Debug *map[string]interface{} `json:"debug,omitempty"` - DiscountPercent *float64 `json:"discountPercent,omitempty"` - Discounted *string `json:"discounted,omitempty"` - LineItems *[]V1PricingLineItem `json:"lineItems,omitempty"` - OverageCost *string `json:"overageCost,omitempty"` - PooledAllowances *map[string]float64 `json:"pooledAllowances,omitempty"` - PooledUsage *map[string]float64 `json:"pooledUsage,omitempty"` - - // Subtotal Decimal string with 6 decimal places precision - Subtotal *string `json:"subtotal,omitempty"` - Tax *string `json:"tax,omitempty"` - Total *string `json:"total,omitempty"` -} - -// V1CancelRenewalRequest defines model for v1CancelRenewalRequest. -type V1CancelRenewalRequest struct { - SubscriptionId *string `json:"subscriptionId,omitempty"` -} - -// V1CancelResponse defines model for v1CancelResponse. -type V1CancelResponse struct { - Subscription *V1Subscription `json:"subscription,omitempty"` -} - -// V1CaseType defines model for v1CaseType. -type V1CaseType string - -// V1ChangePasswordRequest defines model for v1ChangePasswordRequest. -type V1ChangePasswordRequest struct { - NewPassword *string `json:"newPassword,omitempty"` - OldPassword *string `json:"oldPassword,omitempty"` -} - -// V1ChargeTiming defines model for v1ChargeTiming. -type V1ChargeTiming string - -// V1ChatMessage defines model for v1ChatMessage. -type V1ChatMessage struct { - Content *string `json:"content,omitempty"` - FunctionCallId *string `json:"functionCallId,omitempty"` - FunctionCalls *[]V1FunctionCall `json:"functionCalls,omitempty"` - Role *string `json:"role,omitempty"` -} - -// V1ChatRequest defines model for v1ChatRequest. -type V1ChatRequest struct { - ConversationId *string `json:"conversationId,omitempty"` - Message *string `json:"message,omitempty"` -} - -// V1ChatResponse defines model for v1ChatResponse. -type V1ChatResponse struct { - ConversationId *string `json:"conversationId,omitempty"` - FunctionCalls *[]V1FunctionCall `json:"functionCalls,omitempty"` - FunctionResults *[]V1FunctionResult `json:"functionResults,omitempty"` - Message *string `json:"message,omitempty"` - SessionToken *string `json:"sessionToken,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1City defines model for v1City. -type V1City struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CityCountry defines model for v1CityCountry. -type V1CityCountry struct { - CityName *string `json:"cityName,omitempty"` - CountryName *string `json:"countryName,omitempty"` - Id *string `json:"id,omitempty"` -} - -// V1ClientDashboardSpendBucket Categorized spend for one UTC calendar day or one UTC hour. -// Paid invoice lines land in the bucket of their paid_at time; un-invoiced metered -// usage lands in the bucket of its usage timestamp as an estimate. -type V1ClientDashboardSpendBucket struct { - // AddonAmount Add-on charges (additional IP, backups, snapshots, ...), fixed or metered. - AddonAmount *string `json:"addonAmount,omitempty"` - - // BandwidthAmount Bandwidth overage beyond the plan's included allowance (egress/ingress). - BandwidthAmount *string `json:"bandwidthAmount,omitempty"` - - // BucketStart "YYYY-MM-DD" for daily buckets; RFC3339 hour start (UTC) for hourly buckets. - BucketStart *string `json:"bucketStart,omitempty"` - - // FixedAmount Fixed-price plan charges (billed in advance). - FixedAmount *string `json:"fixedAmount,omitempty"` - - // HasEstimated True when any amount in this bucket is an accrual estimate (not yet invoiced). - HasEstimated *bool `json:"hasEstimated,omitempty"` - Items *[]V1ClientDashboardSpendItem `json:"items,omitempty"` - - // UsageAmount Metered plan usage (compute hours etc.), paid or estimated. - UsageAmount *string `json:"usageAmount,omitempty"` -} - -// V1ClientDashboardSpendItem One product-level line inside a spend bucket (used for chart tooltips / detail). -type V1ClientDashboardSpendItem struct { - Amount *string `json:"amount,omitempty"` - - // BillingType "fixed" | "usage": how this product is billed. - BillingType *string `json:"billingType,omitempty"` - - // Category "fixed" | "usage" | "bandwidth" | "addon": chart stacking category. - Category *string `json:"category,omitempty"` - - // Detail Secondary detail: "hostname · provider", metered quantity ("12.50 GB"), etc. - Detail *string `json:"detail,omitempty"` - - // Estimated True for accrued metered usage priced from plan/addon prices but not yet invoiced. - Estimated *bool `json:"estimated,omitempty"` - - // Label Display label: plan code, add-on name, or bandwidth metric label. - Label *string `json:"label,omitempty"` -} - -// V1ClientDashboardSpendingWindow Rolling spend for the authenticated client org (paid invoices where this org is tenant). UTC calendar windows. -type V1ClientDashboardSpendingWindow struct { - Currency *string `json:"currency,omitempty"` - TotalAddonSpend *string `json:"totalAddonSpend,omitempty"` - TotalPlanSpend *string `json:"totalPlanSpend,omitempty"` - TotalSpend *string `json:"totalSpend,omitempty"` - WindowDays *int32 `json:"windowDays,omitempty"` -} - -// V1ClientDashboardUsageRollup Aggregated metered usage for the billing period overlapping "now" (compute, bandwidth overage, add-ons). -type V1ClientDashboardUsageRollup struct { - // EstimatedAmount Estimated charge for quantity_total priced with the subscription's plan/addon price - // (free units and block overage applied). Empty when no price could be resolved. - EstimatedAmount *string `json:"estimatedAmount,omitempty"` - MetricName *string `json:"metricName,omitempty"` - MetricUnit *string `json:"metricUnit,omitempty"` - PeriodEnd *string `json:"periodEnd,omitempty"` - PlanName *string `json:"planName,omitempty"` - QuantityTotal *string `json:"quantityTotal,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` -} - -// V1ClientDashboardVirtualMachinesSummary defines model for v1ClientDashboardVirtualMachinesSummary. -type V1ClientDashboardVirtualMachinesSummary struct { - // TotalCount Active + inactive VMs for this client org (not soft-deleted / not expired). - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ClientProviderReview defines model for v1ClientProviderReview. -type V1ClientProviderReview struct { - Comment *string `json:"comment,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - Id *string `json:"id,omitempty"` - ProviderOrganizationId *string `json:"providerOrganizationId,omitempty"` - ProviderRepliedAt *time.Time `json:"providerRepliedAt,omitempty"` - ProviderReply *string `json:"providerReply,omitempty"` - StarRating *int32 `json:"starRating,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1ClientProviderReviewAssetItem defines model for v1ClientProviderReviewAssetItem. -type V1ClientProviderReviewAssetItem struct { - CanSubmitReview *bool `json:"canSubmitReview,omitempty"` - HasSubmitted *bool `json:"hasSubmitted,omitempty"` - Hostname *string `json:"hostname,omitempty"` - ProviderOrganizationId *string `json:"providerOrganizationId,omitempty"` - ProviderOrganizationName *string `json:"providerOrganizationName,omitempty"` - Review *V1ClientProviderReview `json:"review,omitempty"` - ReviewAvailableAt *time.Time `json:"reviewAvailableAt,omitempty"` - - // ReviewBlockedReason Set when can_submit_review is false and has_submitted is false (e.g. usage-based 24h window). - ReviewBlockedReason *string `json:"reviewBlockedReason,omitempty"` - VirtualMachineDeleted *bool `json:"virtualMachineDeleted,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1CloudInitTemplate defines model for v1CloudInitTemplate. -type V1CloudInitTemplate struct { - Id *string `json:"id,omitempty"` - IsTemplate *bool `json:"isTemplate,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - NetworkData *string `json:"networkData,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Storage *string `json:"storage,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UserData *string `json:"userData,omitempty"` - VendorData *string `json:"vendorData,omitempty"` -} - -// V1CloudInitUserData CloudInitUserData is a client-scoped saved cloud-init user_data Jinja profile. -type V1CloudInitUserData struct { - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UserData *string `json:"userData,omitempty"` - ValidationWarnings *[]V1CloudInitValidationWarning `json:"validationWarnings,omitempty"` -} - -// V1CloudInitValidationWarning CloudInitValidationWarning is a non-blocking issue found when saving a user_data profile. -type V1CloudInitValidationWarning struct { - Code *string `json:"code,omitempty"` - Key *string `json:"key,omitempty"` - Line *int32 `json:"line,omitempty"` - Message *string `json:"message,omitempty"` -} - -// V1CompleteSSOLinkRequest defines model for v1CompleteSSOLinkRequest. -type V1CompleteSSOLinkRequest struct { - Password *string `json:"password,omitempty"` - Ticket *string `json:"ticket,omitempty"` -} - -// V1ComponentVersion ComponentVersion describes a pinned installable platform component. -type V1ComponentVersion struct { - // ChecksumSha256 Optional SHA-256 hex digest of the download artifact. - ChecksumSha256 *string `json:"checksumSha256,omitempty"` - - // DownloadUrl Optional download URL override; CLI derives GitHub URLs when empty. - DownloadUrl *string `json:"downloadUrl,omitempty"` - - // MinVersion Optional minimum acceptable local version for skip-install checks. - MinVersion *string `json:"minVersion,omitempty"` - Name *string `json:"name,omitempty"` - - // Version Exact version / tag to install (e.g. "v1.31.5+k3s1", "v3.30.2"). - Version *string `json:"version,omitempty"` -} - -// V1ComputeCategory - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) -// - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) -type V1ComputeCategory string - -// V1ComputeType - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) -// - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) -// - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) -// - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) -// - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) -// - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) -// - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) -// - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) -// - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) -type V1ComputeType string - -// V1ConfirmTicketAttachmentUploadRequest defines model for v1ConfirmTicketAttachmentUploadRequest. -type V1ConfirmTicketAttachmentUploadRequest struct { - UploadToken *string `json:"uploadToken,omitempty"` -} - -// V1ConnectAccount defines model for v1ConnectAccount. -type V1ConnectAccount struct { - ChargesEnabled *bool `json:"chargesEnabled,omitempty"` - Country *string `json:"country,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Email *string `json:"email,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - OnboardingUrl *string `json:"onboardingUrl,omitempty"` - PayoutsEnabled *bool `json:"payoutsEnabled,omitempty"` - - // Status Account status: "active", "pending", "restricted", etc. - Status *string `json:"status,omitempty"` - - // TaxSettingsMissingFields Missing fields when tax settings are pending (e.g. head_office). - TaxSettingsMissingFields *[]string `json:"taxSettingsMissingFields,omitempty"` - - // TaxSettingsStatus Stripe Tax Settings status for the connected account (active|pending|unknown). - TaxSettingsStatus *string `json:"taxSettingsStatus,omitempty"` - Type *string `json:"type,omitempty"` -} - -// V1ConversationInfo defines model for v1ConversationInfo. -type V1ConversationInfo struct { - ConversationId *string `json:"conversationId,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1ConvertCurrencyRequest defines model for v1ConvertCurrencyRequest. -type V1ConvertCurrencyRequest struct { - TargetCurrency *string `json:"targetCurrency,omitempty"` - UsdAmount *string `json:"usdAmount,omitempty"` -} - -// V1ConvertCurrencyResponse defines model for v1ConvertCurrencyResponse. -type V1ConvertCurrencyResponse struct { - ConvertedAmount *string `json:"convertedAmount,omitempty"` - ExchangeRate *string `json:"exchangeRate,omitempty"` - SourceCurrency *string `json:"sourceCurrency,omitempty"` - TargetCurrency *string `json:"targetCurrency,omitempty"` -} - -// V1Country defines model for v1Country. -type V1Country struct { - Cities *[]V1City `json:"cities,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateAddonRequest defines model for v1CreateAddonRequest. -type V1CreateAddonRequest struct { - AddonId *string `json:"addonId,omitempty"` - Currency *string `json:"currency,omitempty"` - - // MaximumCharge Decimal string with 6 decimal places precision - MaximumCharge *string `json:"maximumCharge,omitempty"` - - // MinimumCharge Decimal string with 6 decimal places precision - MinimumCharge *string `json:"minimumCharge,omitempty"` - PercentageValue *float64 `json:"percentageValue,omitempty"` - - // UnitAmount Decimal string with 6 decimal places precision - UnitAmount *string `json:"unitAmount,omitempty"` - - // ZeroBaseFallbackAmount Decimal string with 6 decimal places precision - ZeroBaseFallbackAmount *string `json:"zeroBaseFallbackAmount,omitempty"` -} - -// V1CreateAgentRequest defines model for v1CreateAgentRequest. -type V1CreateAgentRequest struct { - AgentPublicIp *string `json:"agentPublicIp,omitempty"` - Description *string `json:"description,omitempty"` - GatewayRegion *V1AgentGatewayRegion `json:"gatewayRegion,omitempty"` - HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateClientReviewRequest defines model for v1CreateClientReviewRequest. -type V1CreateClientReviewRequest struct { - Comment *string `json:"comment,omitempty"` - StarRating *int32 `json:"starRating,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1CreateClientReviewResponse defines model for v1CreateClientReviewResponse. -type V1CreateClientReviewResponse struct { - Review *V1ClientProviderReview `json:"review,omitempty"` -} - -// V1CreateCloudInitTemplateRequest defines model for v1CreateCloudInitTemplateRequest. -type V1CreateCloudInitTemplateRequest struct { - Name *string `json:"name,omitempty"` - NetworkData *string `json:"networkData,omitempty"` - Storage *string `json:"storage,omitempty"` - UserData *string `json:"userData,omitempty"` - VendorData *string `json:"vendorData,omitempty"` -} - -// V1CreateCloudInitUserDataRequest defines model for v1CreateCloudInitUserDataRequest. -type V1CreateCloudInitUserDataRequest struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - UserData *string `json:"userData,omitempty"` -} - -// V1CreateConnectAccountRequest defines model for v1CreateConnectAccountRequest. -type V1CreateConnectAccountRequest struct { - Country *string `json:"country,omitempty"` - Email *string `json:"email,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Type *string `json:"type,omitempty"` -} - -// V1CreateConnectAccountResponse defines model for v1CreateConnectAccountResponse. -type V1CreateConnectAccountResponse struct { - Account *V1ConnectAccount `json:"account,omitempty"` - OnboardingUrl *string `json:"onboardingUrl,omitempty"` - RequiresOnboarding *bool `json:"requiresOnboarding,omitempty"` -} - -// V1CreateConnectTaxSessionResponse defines model for v1CreateConnectTaxSessionResponse. -type V1CreateConnectTaxSessionResponse struct { - // ClientSecret Stripe AccountSession client_secret for Connect.js embedded tax components. - ClientSecret *string `json:"clientSecret,omitempty"` - TaxSettingsMissingFields *[]string `json:"taxSettingsMissingFields,omitempty"` - TaxSettingsStatus *string `json:"taxSettingsStatus,omitempty"` -} - -// V1CreateDomainRequest defines model for v1CreateDomainRequest. -type V1CreateDomainRequest struct { - Name *string `json:"name,omitempty"` - VerificationType *V1VerificationType `json:"verificationType,omitempty"` -} - -// V1CreateEnvironmentVariableRequest defines model for v1CreateEnvironmentVariableRequest. -type V1CreateEnvironmentVariableRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// V1CreateFirewallAddressGroupRequest defines model for v1CreateFirewallAddressGroupRequest. -type V1CreateFirewallAddressGroupRequest struct { - // Group FirewallAddressGroupInput is the client-provided payload for create/update. - // Clients must not provide id/timestamps (those are server-controlled). - Group *V1FirewallAddressGroupInput `json:"group,omitempty"` -} - -// V1CreateFirewallRuleSetRequest defines model for v1CreateFirewallRuleSetRequest. -type V1CreateFirewallRuleSetRequest struct { - Ruleset *V1FirewallRuleSetInput `json:"ruleset,omitempty"` -} - -// V1CreateGroupRequest defines model for v1CreateGroupRequest. -type V1CreateGroupRequest struct { - Description *string `json:"description,omitempty"` - GroupRoles *[]string `json:"groupRoles,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateInviteRequest defines model for v1CreateInviteRequest. -type V1CreateInviteRequest struct { - GroupId *string `json:"groupId,omitempty"` - InviteeEmails *[]string `json:"inviteeEmails,omitempty"` - RoleId *string `json:"roleId,omitempty"` -} - -// V1CreateManualPayoutRequest defines model for v1CreateManualPayoutRequest. -type V1CreateManualPayoutRequest struct { - AccountHolderName *string `json:"accountHolderName,omitempty"` - AccountNumber *string `json:"accountNumber,omitempty"` - BankName *string `json:"bankName,omitempty"` - Bic *string `json:"bic,omitempty"` - Country *string `json:"country,omitempty"` - Iban *string `json:"iban,omitempty"` - Notes *string `json:"notes,omitempty"` - RoutingNumber *string `json:"routingNumber,omitempty"` -} - -// V1CreateManualPayoutResponse defines model for v1CreateManualPayoutResponse. -type V1CreateManualPayoutResponse struct { - Payout *V1ManualPayout `json:"payout,omitempty"` -} - -// V1CreateMetricsWriteCredentialRequest defines model for v1CreateMetricsWriteCredentialRequest. -type V1CreateMetricsWriteCredentialRequest struct { - // AgentId Optional: omit or leave empty when the credential is not tied to an agent. - AgentId *string `json:"agentId,omitempty"` - - // ExpiresAt Optional expiry; omit for non-expiring machine tokens. - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateMetricsWriteCredentialResponse defines model for v1CreateMetricsWriteCredentialResponse. -type V1CreateMetricsWriteCredentialResponse struct { - Credential *V1MetricsWriteCredential `json:"credential,omitempty"` - - // Token Plaintext token returned only on create/rotate. Store securely; it is not retrievable again. - Token *string `json:"token,omitempty"` -} - -// V1CreateNetworkRequest defines model for v1CreateNetworkRequest. -type V1CreateNetworkRequest struct { - Description *string `json:"description,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - - // MacAddressPrefix First 3 octets for MAC allocation within this network (e.g. BC:24:11). Default: BC:24:11. - MacAddressPrefix *string `json:"macAddressPrefix,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateNodeRequest defines model for v1CreateNodeRequest. -type V1CreateNodeRequest struct { - // BackupStorageCompression Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node). - BackupStorageCompression *V1BackupStorageCompression `json:"backupStorageCompression,omitempty"` - BackupStorageDestination *string `json:"backupStorageDestination,omitempty"` - - // ComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated - // (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - // - // - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - // - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - ComputeType *V1NodeComputeType `json:"computeType,omitempty"` - CpuOverallocatePercent *int32 `json:"cpuOverallocatePercent,omitempty"` - MaintenanceMode *bool `json:"maintenanceMode,omitempty"` - MemoryOverallocatePercent *int32 `json:"memoryOverallocatePercent,omitempty"` - Name *string `json:"name,omitempty"` - - // NetworkBridge Node provisioning settings (server-side defaults applied when omitted) - // Proxmox Linux bridge for VM primary NIC. Default: vmbr0. - NetworkBridge *string `json:"networkBridge,omitempty"` - - // NetworkModel Proxmox NIC model for primary NIC. Default: virtio. - NetworkModel *string `json:"networkModel,omitempty"` - - // NetworkName Proxmox net device key for primary NIC (net0, net1, ...). Default: net0. - NetworkName *string `json:"networkName,omitempty"` - - // NetworkVlanId 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged. - NetworkVlanId *int32 `json:"networkVlanId,omitempty"` - PlatformId *string `json:"platformId,omitempty"` - RegionId *string `json:"regionId,omitempty"` - StorageOverallocatePercent *int32 `json:"storageOverallocatePercent,omitempty"` - - // TopologyPaste Raw topology paste (output of the documented lscpu/sysfs command block). - // Required when compute_type is dedicated; ignored otherwise. - TopologyPaste *string `json:"topologyPaste,omitempty"` - VmStorageDestination *string `json:"vmStorageDestination,omitempty"` - VmidSeed *int32 `json:"vmidSeed,omitempty"` -} - -// V1CreateOAuth2ClientRequest defines model for v1CreateOAuth2ClientRequest. -type V1CreateOAuth2ClientRequest struct { - ClientType *string `json:"clientType,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - RedirectUris *[]string `json:"redirectUris,omitempty"` - RequiresPkce *bool `json:"requiresPkce,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` -} - -// V1CreateOAuth2ClientResponse defines model for v1CreateOAuth2ClientResponse. -type V1CreateOAuth2ClientResponse struct { - ClientId *string `json:"clientId,omitempty"` - ClientSecret *string `json:"clientSecret,omitempty"` - Name *string `json:"name,omitempty"` - RedirectUris *[]string `json:"redirectUris,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` -} - -// V1CreateOrganizationRequest defines model for v1CreateOrganizationRequest. -type V1CreateOrganizationRequest struct { - Asn *string `json:"asn,omitempty"` - - // DdosProvider DDoS partner slug (e.g. none, in-house, gcore, akamai, voxility). Provider orgs only. - DdosProvider *string `json:"ddosProvider,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - - // ProviderWebsiteUrl Required for provider organizations (http/https; scheme optional in input: server normalizes). - ProviderWebsiteUrl *string `json:"providerWebsiteUrl,omitempty"` - Type *V1OrganizationType `json:"type,omitempty"` -} - -// V1CreatePlanRequest defines model for v1CreatePlanRequest. -type V1CreatePlanRequest struct { - // CpuLimit Plan CPU/network scheduling overrides written into metadata.specifications. - // Proxmox cpulimit= (max CPU time); 0 = unlimited. Omitted = template value / 0. - CpuLimit *int32 `json:"cpuLimit,omitempty"` - - // CpuUnits Proxmox cpuunits= fair-share weight. Omitted = template value / 1024. - CpuUnits *int32 `json:"cpuUnits,omitempty"` - Currency *string `json:"currency,omitempty"` - - // NetworkRateLimitMbs Primary NIC rate limit in MB/s (Proxmox rate=); 0 = unlimited. - NetworkRateLimitMbs *float64 `json:"networkRateLimitMbs,omitempty"` - - // NodeIds Nodes this plan may sell on (must be catalog-eligible for the template). - // Required: at least one node_id (validated in Go). - NodeIds *[]string `json:"nodeIds,omitempty"` - - // OnCreditExhaustion Provider choice when client prepaid credits are exhausted. - // Values: "suspend" (default), "continue_with_dunning". - OnCreditExhaustion *string `json:"onCreditExhaustion,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanPrices *[]V1PlanPriceOverride `json:"planPrices,omitempty"` - - // RegionId Region where this plan is offered (exactly one per plan). - RegionId *string `json:"regionId,omitempty"` -} - -// V1CreatePlatformRequest defines model for v1CreatePlatformRequest. -type V1CreatePlatformRequest struct { - AgentId *string `json:"agentId,omitempty"` - Driver *V1PlatformDriver `json:"driver,omitempty"` - EndpointUrl *string `json:"endpointUrl,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreatePrefixRequest defines model for v1CreatePrefixRequest. -type V1CreatePrefixRequest struct { - AllocationStrategy *V1AllocationStrategy `json:"allocationStrategy,omitempty"` - Cidr *string `json:"cidr,omitempty"` - Description *string `json:"description,omitempty"` - Gateway *string `json:"gateway,omitempty"` - NetworkId *string `json:"networkId,omitempty"` - ReservedIps *[]string `json:"reservedIps,omitempty"` - VmAssignmentPrefixLength *int32 `json:"vmAssignmentPrefixLength,omitempty"` -} - -// V1CreateProviderReviewReplyResponse defines model for v1CreateProviderReviewReplyResponse. -type V1CreateProviderReviewReplyResponse struct { - // Review Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider). - Review *V1ProviderReviewListItem `json:"review,omitempty"` -} - -// V1CreateRegionRequest defines model for v1CreateRegionRequest. -type V1CreateRegionRequest struct { - CityCountryId *string `json:"cityCountryId,omitempty"` - DatacenterId *string `json:"datacenterId,omitempty"` -} - -// V1CreateRoadmapFeatureRequestCommentResponse defines model for v1CreateRoadmapFeatureRequestCommentResponse. -type V1CreateRoadmapFeatureRequestCommentResponse struct { - Comment *V1RoadmapFeatureRequestComment `json:"comment,omitempty"` -} - -// V1CreateRoleRequest defines model for v1CreateRoleRequest. -type V1CreateRoleRequest struct { - Description *string `json:"description,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - Name *string `json:"name,omitempty"` - Permissions *[]string `json:"permissions,omitempty"` -} - -// V1CreateSSHKeyRequest defines model for v1CreateSSHKeyRequest. -type V1CreateSSHKeyRequest struct { - Name *string `json:"name,omitempty"` - PublicKey *string `json:"publicKey,omitempty"` -} - -// V1CreateSSHKeyResponse defines model for v1CreateSSHKeyResponse. -type V1CreateSSHKeyResponse struct { - SshKey *V1SSHKey `json:"sshKey,omitempty"` -} - -// V1CreateSecretRequest defines model for v1CreateSecretRequest. -type V1CreateSecretRequest struct { - Key *string `json:"key,omitempty"` - Value *string `json:"value,omitempty"` -} - -// V1CreateSecretResponse defines model for v1CreateSecretResponse. -type V1CreateSecretResponse struct { - Secret *V1Secret `json:"secret,omitempty"` -} - -// V1CreateServiceAccountRequest defines model for v1CreateServiceAccountRequest. -type V1CreateServiceAccountRequest struct { - AllowedIps *[]string `json:"allowedIps,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1CreateTicketAttachmentUploadResponse defines model for v1CreateTicketAttachmentUploadResponse. -type V1CreateTicketAttachmentUploadResponse struct { - Attachment *V1TicketAttachment `json:"attachment,omitempty"` - UploadToken *string `json:"uploadToken,omitempty"` -} - -// V1CreateTicketRequest defines model for v1CreateTicketRequest. -type V1CreateTicketRequest struct { - TemplateId *string `json:"templateId,omitempty"` - TemplateVariables *map[string]string `json:"templateVariables,omitempty"` - Ticket *V1Ticket `json:"ticket,omitempty"` -} - -// V1CreateTicketResponse defines model for v1CreateTicketResponse. -type V1CreateTicketResponse struct { - Ticket *V1Ticket `json:"ticket,omitempty"` -} - -// V1CreateTicketTemplateRequest defines model for v1CreateTicketTemplateRequest. -type V1CreateTicketTemplateRequest struct { - TicketTemplate *V1TicketTemplateInput `json:"ticketTemplate,omitempty"` -} - -// V1CreateVMTemplateRequest defines model for v1CreateVMTemplateRequest. -type V1CreateVMTemplateRequest struct { - CloudInitTemplateId *string `json:"cloudInitTemplateId,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Name *string `json:"name,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - - // ProxmoxCpuType Proxmox cpu= guest CPU model for VMs using this template. Default: host. - ProxmoxCpuType *string `json:"proxmoxCpuType,omitempty"` - TemplateId *int32 `json:"templateId,omitempty"` -} - -// V1CreateVirtualMachineRequest defines model for v1CreateVirtualMachineRequest. -type V1CreateVirtualMachineRequest struct { - // CloudInitUserDataId Saved client cloud-init user_data profile ID. Replaces provider user_data at VM create. - CloudInitUserDataId *string `json:"cloudInitUserDataId,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Hostname *string `json:"hostname,omitempty"` - - // IdempotencyKey Client-generated UUID for idempotent create retries. Required for all creates. - IdempotencyKey *string `json:"idempotencyKey,omitempty"` - - // InstantAppId Platform Instant App ID. Replaces provider user_data. Mutually exclusive with - // user_data and cloud_init_user_data_id. Requires password or ssh_key_ids. - InstantAppId *string `json:"instantAppId,omitempty"` - - // Password Password for VM access. Either user_data, ssh_key_ids, or password must be provided, but only one. - Password *string `json:"password,omitempty"` - PlanId *string `json:"planId,omitempty"` - RegionId *string `json:"regionId,omitempty"` - - // SshKeyIds SSH key IDs to use for VM access (one or more). Either user_data, ssh_key_ids, or password must be provided, but only one. - SshKeyIds *[]string `json:"sshKeyIds,omitempty"` - Tags *[]string `json:"tags,omitempty"` - - // UserData User data for CloudInit. Either user_data, ssh_key_ids, password, or cloud_init_user_data_id must be provided, but only one. - UserData *string `json:"userData,omitempty"` -} - -// V1CreditLedgerEntryProto defines model for v1CreditLedgerEntryProto. -type V1CreditLedgerEntryProto struct { - Amount *string `json:"amount,omitempty"` - BalanceAfter *string `json:"balanceAfter,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreditSource *string `json:"creditSource,omitempty"` - Currency *string `json:"currency,omitempty"` - EntryType *string `json:"entryType,omitempty"` - Id *string `json:"id,omitempty"` - IdempotencyKey *string `json:"idempotencyKey,omitempty"` - ReasonCode *string `json:"reasonCode,omitempty"` - ReservedAfter *string `json:"reservedAfter,omitempty"` -} - -// V1DashboardAssetSalesDayBucket defines model for v1DashboardAssetSalesDayBucket. -type V1DashboardAssetSalesDayBucket struct { - // Count Total assets sold that day (today equals VM count; available for future multi-product rollups). - Count *int32 `json:"count,omitempty"` - Day *string `json:"day,omitempty"` - VirtualMachineCount *int32 `json:"virtualMachineCount,omitempty"` -} - -// V1DashboardBillingCommercialHealth defines model for v1DashboardBillingCommercialHealth. -type V1DashboardBillingCommercialHealth struct { - DistinctPayingTenantCount *int32 `json:"distinctPayingTenantCount,omitempty"` - OutstandingOpenAmount *string `json:"outstandingOpenAmount,omitempty"` - OutstandingOpenInvoiceCount *int32 `json:"outstandingOpenInvoiceCount,omitempty"` - OutstandingPastDueAmount *string `json:"outstandingPastDueAmount,omitempty"` - OutstandingPastDueInvoiceCount *int32 `json:"outstandingPastDueInvoiceCount,omitempty"` - PaidInvoiceCount *int32 `json:"paidInvoiceCount,omitempty"` -} - -// V1DashboardBillingCustomerRevenue defines model for v1DashboardBillingCustomerRevenue. -type V1DashboardBillingCustomerRevenue struct { - // ContactEmail Primary owner contact email for the client org (billing dashboard display). - ContactEmail *string `json:"contactEmail,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - TotalAmount *string `json:"totalAmount,omitempty"` -} - -// V1DashboardBillingProductSlice Billing dashboard tab: revenue from paid invoices attributed to this provider's catalog. -type V1DashboardBillingProductSlice struct { - Amount *string `json:"amount,omitempty"` - ProductKey *string `json:"productKey,omitempty"` - ProductLabel *string `json:"productLabel,omitempty"` -} - -// V1DashboardBillingSalesDayBucket defines model for v1DashboardBillingSalesDayBucket. -type V1DashboardBillingSalesDayBucket struct { - AddonSlices *[]V1DashboardBillingProductSlice `json:"addonSlices,omitempty"` - Day *string `json:"day,omitempty"` - PlanSlices *[]V1DashboardBillingProductSlice `json:"planSlices,omitempty"` - - // PlanSlicesByPlanCode Same plan revenue as plan_slices, grouped by catalog plan code (SKU) instead of tier/category family. - PlanSlicesByPlanCode *[]V1DashboardBillingProductSlice `json:"planSlicesByPlanCode,omitempty"` - - // PriorPeriodDay Prior window (same length, ending the day before current window): parallel day label and total sales. - PriorPeriodDay *string `json:"priorPeriodDay,omitempty"` - PriorPeriodTotalAmount *string `json:"priorPeriodTotalAmount,omitempty"` -} - -// V1DashboardCustomerAcquisitionDayBucket Per UTC calendar day: distinct client orgs whose first-ever VM with this provider was created that day (UTC). -type V1DashboardCustomerAcquisitionDayBucket struct { - Day *string `json:"day,omitempty"` - NewCustomers *int32 `json:"newCustomers,omitempty"` -} - -// V1DashboardIpamAssignmentRow defines model for v1DashboardIpamAssignmentRow. -type V1DashboardIpamAssignmentRow struct { - ClientOrganizationId *string `json:"clientOrganizationId,omitempty"` - IpAddress *string `json:"ipAddress,omitempty"` - NetworkId *string `json:"networkId,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - PlatformId *string `json:"platformId,omitempty"` - VirtualMachineHostname *string `json:"virtualMachineHostname,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1DashboardIpamNetworkPrefixSummary usable_total: assignable pool (structural hosts minus reserved list and in-prefix gateway when -// not duplicated in reserved). utilization_percent = active_allocations / usable_total. -// reserved_count is len(reserved_ips) for display only. -type V1DashboardIpamNetworkPrefixSummary struct { - ActiveAllocations *string `json:"activeAllocations,omitempty"` - AllocatedSampleIps *[]string `json:"allocatedSampleIps,omitempty"` - AvailableEstimate *string `json:"availableEstimate,omitempty"` - CapacityIsOpenEnded *bool `json:"capacityIsOpenEnded,omitempty"` - CapacityUnitLabel *string `json:"capacityUnitLabel,omitempty"` - Cidr *string `json:"cidr,omitempty"` - GatewayIp *string `json:"gatewayIp,omitempty"` - IsIpv6 *bool `json:"isIpv6,omitempty"` - PrefixId *string `json:"prefixId,omitempty"` - ReservedCount *string `json:"reservedCount,omitempty"` - ReservedIps *[]string `json:"reservedIps,omitempty"` - ReservedPrefixes *[]string `json:"reservedPrefixes,omitempty"` - UsableTotal *string `json:"usableTotal,omitempty"` - UtilizationPercent *float64 `json:"utilizationPercent,omitempty"` - VmAssignmentPrefixLength *int32 `json:"vmAssignmentPrefixLength,omitempty"` -} - -// V1DashboardIpamNetworkRollup defines model for v1DashboardIpamNetworkRollup. -type V1DashboardIpamNetworkRollup struct { - ActiveAllocationsTotal *string `json:"activeAllocationsTotal,omitempty"` - DashboardVirtualMachineCount *int32 `json:"dashboardVirtualMachineCount,omitempty"` - Description *string `json:"description,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - Name *string `json:"name,omitempty"` - NetworkId *string `json:"networkId,omitempty"` - NodeCount *int32 `json:"nodeCount,omitempty"` - Nodes *[]V1DashboardIpamNodeRollup `json:"nodes,omitempty"` - PrefixCount *int32 `json:"prefixCount,omitempty"` - PrefixSummaries *[]V1DashboardIpamNetworkPrefixSummary `json:"prefixSummaries,omitempty"` -} - -// V1DashboardIpamNodeRollup defines model for v1DashboardIpamNodeRollup. -type V1DashboardIpamNodeRollup struct { - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - PlatformId *string `json:"platformId,omitempty"` - PlatformName *string `json:"platformName,omitempty"` -} - -// V1DashboardSummaryAddonBreakdown defines model for v1DashboardSummaryAddonBreakdown. -type V1DashboardSummaryAddonBreakdown struct { - ActiveSubscriptionCount *int32 `json:"activeSubscriptionCount,omitempty"` - AddonId *string `json:"addonId,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - Code *string `json:"code,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1DashboardSummaryPlanBreakdown defines model for v1DashboardSummaryPlanBreakdown. -type V1DashboardSummaryPlanBreakdown struct { - ActiveSubscriptionCount *int32 `json:"activeSubscriptionCount,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - Code *string `json:"code,omitempty"` - Name *string `json:"name,omitempty"` - PlanId *string `json:"planId,omitempty"` -} - -// V1DashboardSummaryRegionBreakdown defines model for v1DashboardSummaryRegionBreakdown. -type V1DashboardSummaryRegionBreakdown struct { - ActiveCustomerCount *int32 `json:"activeCustomerCount,omitempty"` - ActiveVmCount *int32 `json:"activeVmCount,omitempty"` - IpAddressesFreeTotal *string `json:"ipAddressesFreeTotal,omitempty"` - IpAddressesIpv4FreeTotal *string `json:"ipAddressesIpv4FreeTotal,omitempty"` - IpAddressesIpv4TakenTotal *string `json:"ipAddressesIpv4TakenTotal,omitempty"` - IpAddressesIpv6FreeTotal *string `json:"ipAddressesIpv6FreeTotal,omitempty"` - IpAddressesIpv6TakenTotal *string `json:"ipAddressesIpv6TakenTotal,omitempty"` - IpAddressesTakenTotal *string `json:"ipAddressesTakenTotal,omitempty"` - NodeCount *int32 `json:"nodeCount,omitempty"` - RegionId *string `json:"regionId,omitempty"` - RegionLabel *string `json:"regionLabel,omitempty"` -} - -// V1DashboardSummaryTickets defines model for v1DashboardSummaryTickets. -type V1DashboardSummaryTickets struct { - EscalatedLast7d *int32 `json:"escalatedLast7d,omitempty"` - OpenLast7d *int32 `json:"openLast7d,omitempty"` - OpenNeedingProviderFirstResponseLast7d *int32 `json:"openNeedingProviderFirstResponseLast7d,omitempty"` - SlaFirstResponseBreaches *int32 `json:"slaFirstResponseBreaches,omitempty"` - SlaResolutionBreaches *int32 `json:"slaResolutionBreaches,omitempty"` - TotalInWindow *int32 `json:"totalInWindow,omitempty"` -} - -// V1DashboardTicketStatisticsByCaseType defines model for v1DashboardTicketStatisticsByCaseType. -type V1DashboardTicketStatisticsByCaseType struct { - CaseType *V1CaseType `json:"caseType,omitempty"` - Count *int32 `json:"count,omitempty"` -} - -// V1DashboardTicketStatisticsByPriority defines model for v1DashboardTicketStatisticsByPriority. -type V1DashboardTicketStatisticsByPriority struct { - Count *int32 `json:"count,omitempty"` - Priority *V1TicketPriority `json:"priority,omitempty"` -} - -// V1DashboardTicketStatisticsByStatus defines model for v1DashboardTicketStatisticsByStatus. -type V1DashboardTicketStatisticsByStatus struct { - Count *int32 `json:"count,omitempty"` - TicketStatus *V1TicketStatus `json:"ticketStatus,omitempty"` -} - -// V1DashboardTicketStatisticsDayBucket defines model for v1DashboardTicketStatisticsDayBucket. -type V1DashboardTicketStatisticsDayBucket struct { - Count *int32 `json:"count,omitempty"` - Day *string `json:"day,omitempty"` -} - -// V1DashboardVirtualMachineRow defines model for v1DashboardVirtualMachineRow. -type V1DashboardVirtualMachineRow struct { - ClientContactEmail *string `json:"clientContactEmail,omitempty"` - ClientOrganizationId *string `json:"clientOrganizationId,omitempty"` - Cpu *int32 `json:"cpu,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Hostname *string `json:"hostname,omitempty"` - Id *string `json:"id,omitempty"` - Ipv4Address *string `json:"ipv4Address,omitempty"` - Ipv6Address *string `json:"ipv6Address,omitempty"` - - // MacAddress Allocated MAC address (provider-only visibility; never exposed on client VM APIs). - MacAddress *string `json:"macAddress,omitempty"` - MemoryMb *int32 `json:"memoryMb,omitempty"` - StorageMb *int32 `json:"storageMb,omitempty"` -} - -// V1Datacenter defines model for v1Datacenter. -type V1Datacenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1DatacenterInfo defines model for v1DatacenterInfo. -type V1DatacenterInfo struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1DeleteProviderReviewReplyResponse defines model for v1DeleteProviderReviewReplyResponse. -type V1DeleteProviderReviewReplyResponse struct { - // Review Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider). - Review *V1ProviderReviewListItem `json:"review,omitempty"` -} - -// V1DeleteRoadmapFeatureRequestCommentResponse defines model for v1DeleteRoadmapFeatureRequestCommentResponse. -type V1DeleteRoadmapFeatureRequestCommentResponse struct { - Success *bool `json:"success,omitempty"` -} - -// V1DisableMfaRequest defines model for v1DisableMfaRequest. -type V1DisableMfaRequest struct { - // Code Current TOTP or an unused recovery code. - Code *string `json:"code,omitempty"` - - // Password Required when the user has a local password. - Password *string `json:"password,omitempty"` -} - -// V1Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions -// - DISTRO_FEDORA_43: Fedora distributions -// - DISTRO_DEBIAN_12: Debian distributions -// - DISTRO_CENTOS_9: CentOS distributions -// - DISTRO_ROCKY_9: Rocky Linux distributions -// - DISTRO_ALMALINUX_9: AlmaLinux distributions -type V1Distro string - -// V1Domain defines model for v1Domain. -type V1Domain struct { - Id *string `json:"id,omitempty"` - IsVerified *bool `json:"isVerified,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - VerificationType *V1VerificationType `json:"verificationType,omitempty"` -} - -// V1DownloadTicketAttachmentResponse defines model for v1DownloadTicketAttachmentResponse. -type V1DownloadTicketAttachmentResponse struct { - AttachmentId *string `json:"attachmentId,omitempty"` - FileContent *[]byte `json:"fileContent,omitempty"` - FileName *string `json:"fileName,omitempty"` - FileSize *string `json:"fileSize,omitempty"` - MimeType *string `json:"mimeType,omitempty"` -} - -// V1EffectivePermissions defines model for v1EffectivePermissions. -type V1EffectivePermissions struct { - Permissions *[]V1Permission `json:"permissions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1EnableAdditionalIPResponse EnableAdditionalIPResponse returns the newly allocated address. -type V1EnableAdditionalIPResponse struct { - // Allocation AdditionalIPAddress is an extra IPv4 allocated from the VM's primary prefix. - Allocation *V1AdditionalIPAddress `json:"allocation,omitempty"` - - // BillingMessage Human-readable billing summary for the UI. - BillingMessage *string `json:"billingMessage,omitempty"` - Currency *string `json:"currency,omitempty"` - - // MonthlyUnitPrice Monthly list price per additional IP (fixed billing). Empty for usage-based VMs. - MonthlyUnitPrice *string `json:"monthlyUnitPrice,omitempty"` - - // ProratedChargeAmount Prorated amount charged now for the remaining VM billing period (fixed billing). - ProratedChargeAmount *string `json:"proratedChargeAmount,omitempty"` - TotalAdditionalIps *int32 `json:"totalAdditionalIps,omitempty"` -} - -// V1EndUser defines model for v1EndUser. -type V1EndUser string - -// V1EnrollMfaTotpRequest defines model for v1EnrollMfaTotpRequest. -type V1EnrollMfaTotpRequest = map[string]interface{} - -// V1EnrollMfaTotpResponse defines model for v1EnrollMfaTotpResponse. -type V1EnrollMfaTotpResponse struct { - OtpauthUrl *string `json:"otpauthUrl,omitempty"` - - // Secret Base32 TOTP secret for manual entry / backup. Shown once during enrollment. - Secret *string `json:"secret,omitempty"` -} - -// V1EnvironmentVariable defines model for v1EnvironmentVariable. -type V1EnvironmentVariable struct { - Id *string `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Organization *string `json:"organization,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - User *string `json:"user,omitempty"` - Value *string `json:"value,omitempty"` -} - -// V1ExchangeSSOCodeRequest defines model for v1ExchangeSSOCodeRequest. -type V1ExchangeSSOCodeRequest struct { - Code *string `json:"code,omitempty"` -} - -// V1FirewallAction defines model for v1FirewallAction. -type V1FirewallAction string - -// V1FirewallAddressGroup defines model for v1FirewallAddressGroup. -type V1FirewallAddressGroup struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - - // Prefixes CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses. - // Supports "all IPs" via 0.0.0.0/0 or ::/0. - Prefixes *[]V1FirewallIPPrefix `json:"prefixes,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1FirewallAddressGroupInput FirewallAddressGroupInput is the client-provided payload for create/update. -// Clients must not provide id/timestamps (those are server-controlled). -type V1FirewallAddressGroupInput struct { - Name *string `json:"name,omitempty"` - - // Prefixes CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses. - // Supports "all IPs" via 0.0.0.0/0 or ::/0. - Prefixes *[]V1FirewallIPPrefix `json:"prefixes,omitempty"` -} - -// V1FirewallDirection defines model for v1FirewallDirection. -type V1FirewallDirection string - -// V1FirewallIPPrefix FirewallIPPrefix represents a single CIDR prefix as separate fields. -// The backend will normalize/store it as a CIDR string (e.g., "10.0.0.0/24", "0.0.0.0/0", "::/0"). -type V1FirewallIPPrefix struct { - // Ip IPv4 or IPv6 address. May be "0.0.0.0" (v4 default route) or "::" (v6 default route). - Ip *string `json:"ip,omitempty"` - - // Prefix Prefix length. IPv4: 0-32. IPv6: 0-128. Enforced by backend based on derived family. - Prefix *int64 `json:"prefix,omitempty"` -} - -// V1FirewallProtocol defines model for v1FirewallProtocol. -type V1FirewallProtocol string - -// V1FirewallRuleAddressGroups FirewallRuleAddressGroups contains address group UUIDs. Can be one or more. -type V1FirewallRuleAddressGroups struct { - AddressGroupIds *[]string `json:"addressGroupIds,omitempty"` -} - -// V1FirewallRuleDestination FirewallRuleDestination defines the destination specification for a firewall rule. -// All fields are optional, but at least one must be set. Multiple fields can be combined. -type V1FirewallRuleDestination struct { - // AddressGroupIds FirewallRuleAddressGroups contains address group UUIDs. Can be one or more. - AddressGroupIds *V1FirewallRuleAddressGroups `json:"addressGroupIds,omitempty"` - - // Ips FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more. - Ips *V1FirewallRuleIPs `json:"ips,omitempty"` - - // VmTags FirewallRuleVMTags contains VM tags. Can be one or more. - VmTags *V1FirewallRuleVMTags `json:"vmTags,omitempty"` -} - -// V1FirewallRuleIPs FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more. -type V1FirewallRuleIPs struct { - Ips *[]string `json:"ips,omitempty"` -} - -// V1FirewallRuleInput FirewallRuleInput is the client-provided rule payload for create/update. -// Clients must not provide id/ruleset_id/timestamps (those are server-controlled). -type V1FirewallRuleInput struct { - Action *V1FirewallAction `json:"action,omitempty"` - - // Destination FirewallRuleDestination defines the destination specification for a firewall rule. - // All fields are optional, but at least one must be set. Multiple fields can be combined. - Destination *V1FirewallRuleDestination `json:"destination,omitempty"` - DestinationPorts *string `json:"destinationPorts,omitempty"` - Direction *V1FirewallDirection `json:"direction,omitempty"` - Protocol *V1FirewallProtocol `json:"protocol,omitempty"` - - // Source FirewallRuleSource defines the source specification for a firewall rule. - // All fields are optional, but at least one must be set. Multiple fields can be combined. - Source *V1FirewallRuleSource `json:"source,omitempty"` - SourcePorts *string `json:"sourcePorts,omitempty"` -} - -// V1FirewallRulePosition defines model for v1FirewallRulePosition. -type V1FirewallRulePosition string - -// V1FirewallRuleResource FirewallRuleResource is a first-class rule resource that belongs to a FirewallRuleSet. -type V1FirewallRuleResource struct { - Id *string `json:"id,omitempty"` - - // Position Position of the rule (0, 1, 2, 3...). Sequential position indicating order. Auto-assigned by the system. - Position *int64 `json:"position,omitempty"` - - // Rule FirewallRuleInput is the client-provided rule payload for create/update. - // Clients must not provide id/ruleset_id/timestamps (those are server-controlled). - Rule *V1FirewallRuleInput `json:"rule,omitempty"` - RulesetId *string `json:"rulesetId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1FirewallRuleSet defines model for v1FirewallRuleSet. -type V1FirewallRuleSet struct { - // AttachedVmCount Number of virtual machines currently attached to this ruleset. - AttachedVmCount *int32 `json:"attachedVmCount,omitempty"` - - // AttachedVmHostnames Hostnames of virtual machines attached to this ruleset (sorted). - AttachedVmHostnames *[]string `json:"attachedVmHostnames,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - - // RuleCount Number of rules in this ruleset (ingress and egress combined). - RuleCount *int32 `json:"ruleCount,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1FirewallRuleSetInput defines model for v1FirewallRuleSetInput. -type V1FirewallRuleSetInput struct { - Name *string `json:"name,omitempty"` -} - -// V1FirewallRuleSource FirewallRuleSource defines the source specification for a firewall rule. -// All fields are optional, but at least one must be set. Multiple fields can be combined. -type V1FirewallRuleSource struct { - // AddressGroupIds FirewallRuleAddressGroups contains address group UUIDs. Can be one or more. - AddressGroupIds *V1FirewallRuleAddressGroups `json:"addressGroupIds,omitempty"` - - // Ips FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more. - Ips *V1FirewallRuleIPs `json:"ips,omitempty"` - - // VmTags FirewallRuleVMTags contains VM tags. Can be one or more. - VmTags *V1FirewallRuleVMTags `json:"vmTags,omitempty"` -} - -// V1FirewallRuleVMTags FirewallRuleVMTags contains VM tags. Can be one or more. -type V1FirewallRuleVMTags struct { - Tags *[]string `json:"tags,omitempty"` -} - -// V1ForgotPasswordRequest defines model for v1ForgotPasswordRequest. -type V1ForgotPasswordRequest struct { - Email *string `json:"email,omitempty"` - - // TurnstileToken Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled). - TurnstileToken *string `json:"turnstileToken,omitempty"` -} - -// V1FunctionCall defines model for v1FunctionCall. -type V1FunctionCall struct { - Arguments *string `json:"arguments,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1FunctionResult defines model for v1FunctionResult. -type V1FunctionResult struct { - Content *string `json:"content,omitempty"` - FunctionCallId *string `json:"functionCallId,omitempty"` - IsError *bool `json:"isError,omitempty"` -} - -// V1GenerateInstallCommandResponse defines model for v1GenerateInstallCommandResponse. -type V1GenerateInstallCommandResponse struct { - Command *string `json:"command,omitempty"` - Token *string `json:"token,omitempty"` -} - -// V1GeneratePeeringConfigResponse defines model for v1GeneratePeeringConfigResponse. -type V1GeneratePeeringConfigResponse struct { - Config *string `json:"config,omitempty"` -} - -// V1GenerateServiceAccountTokenResponse defines model for v1GenerateServiceAccountTokenResponse. -type V1GenerateServiceAccountTokenResponse struct { - CreatedAt *time.Time `json:"createdAt,omitempty"` - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - Token *string `json:"token,omitempty"` - TokenId *string `json:"tokenId,omitempty"` - Warning *string `json:"warning,omitempty"` -} - -// V1GetActiveSessionsResponse defines model for v1GetActiveSessionsResponse. -type V1GetActiveSessionsResponse struct { - Sessions *[]V1SessionInfo `json:"sessions,omitempty"` -} - -// V1GetAddonResponse defines model for v1GetAddonResponse. -type V1GetAddonResponse struct { - Addon *V1Addon `json:"addon,omitempty"` - AddonPrices *[]V1AddonPrice `json:"addonPrices,omitempty"` -} - -// V1GetAgentResponse defines model for v1GetAgentResponse. -type V1GetAgentResponse struct { - Agent *V1Agent `json:"agent,omitempty"` -} - -// V1GetAllExchangeRatesResponse defines model for v1GetAllExchangeRatesResponse. -type V1GetAllExchangeRatesResponse struct { - LastUpdated *string `json:"lastUpdated,omitempty"` - Rates *map[string]string `json:"rates,omitempty"` -} - -// V1GetBackupResponse defines model for v1GetBackupResponse. -type V1GetBackupResponse struct { - Backup *V1Backup `json:"backup,omitempty"` -} - -// V1GetClientDashboardBillingResponse defines model for v1GetClientDashboardBillingResponse. -type V1GetClientDashboardBillingResponse struct { - Currency *string `json:"currency,omitempty"` - - // SpendDays Daily categorized spend, oldest first (fixed window ending today, UTC). - SpendDays *[]V1ClientDashboardSpendBucket `json:"spendDays,omitempty"` - - // SpendHours Hourly categorized spend for the last 24 hours, oldest first. - SpendHours *[]V1ClientDashboardSpendBucket `json:"spendHours,omitempty"` - UsageRollups *[]V1ClientDashboardUsageRollup `json:"usageRollups,omitempty"` -} - -// V1GetClientDashboardSummaryResponse Client dashboard (buyer org): single read for Summary tab widgets. -type V1GetClientDashboardSummaryResponse struct { - SpendingWindows *[]V1ClientDashboardSpendingWindow `json:"spendingWindows,omitempty"` - VirtualMachines *V1ClientDashboardVirtualMachinesSummary `json:"virtualMachines,omitempty"` -} - -// V1GetClientReviewForVirtualMachineResponse defines model for v1GetClientReviewForVirtualMachineResponse. -type V1GetClientReviewForVirtualMachineResponse struct { - CanSubmitReview *bool `json:"canSubmitReview,omitempty"` - HasSubmitted *bool `json:"hasSubmitted,omitempty"` - Review *V1ClientProviderReview `json:"review,omitempty"` - ReviewAvailableAt *time.Time `json:"reviewAvailableAt,omitempty"` - - // ReviewBlockedReason Set when can_submit_review is false and has_submitted is false (e.g. usage-based 24h window). - ReviewBlockedReason *string `json:"reviewBlockedReason,omitempty"` -} - -// V1GetCloudInitTemplateResponse defines model for v1GetCloudInitTemplateResponse. -type V1GetCloudInitTemplateResponse struct { - CloudInitTemplate *V1CloudInitTemplate `json:"cloudInitTemplate,omitempty"` -} - -// V1GetConnectAccountResponse defines model for v1GetConnectAccountResponse. -type V1GetConnectAccountResponse struct { - Account *V1ConnectAccount `json:"account,omitempty"` - OnboardingUrl *string `json:"onboardingUrl,omitempty"` - RequiresOnboarding *bool `json:"requiresOnboarding,omitempty"` -} - -// V1GetConversationHistoryResponse defines model for v1GetConversationHistoryResponse. -type V1GetConversationHistoryResponse struct { - ConversationId *string `json:"conversationId,omitempty"` - Messages *[]V1ChatMessage `json:"messages,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1GetCreditBalanceResponse defines model for v1GetCreditBalanceResponse. -type V1GetCreditBalanceResponse struct { - Available *string `json:"available,omitempty"` - Balance *string `json:"balance,omitempty"` - Currency *string `json:"currency,omitempty"` - Frozen *bool `json:"frozen,omitempty"` - FrozenReason *string `json:"frozenReason,omitempty"` - Reserved *string `json:"reserved,omitempty"` -} - -// V1GetDashboardAssetSalesTimeseriesResponse defines model for v1GetDashboardAssetSalesTimeseriesResponse. -type V1GetDashboardAssetSalesTimeseriesResponse struct { - AssetsSoldPerDay *[]V1DashboardAssetSalesDayBucket `json:"assetsSoldPerDay,omitempty"` -} - -// V1GetDashboardBillingSalesResponse defines model for v1GetDashboardBillingSalesResponse. -type V1GetDashboardBillingSalesResponse struct { - CommercialHealth *V1DashboardBillingCommercialHealth `json:"commercialHealth,omitempty"` - Currency *string `json:"currency,omitempty"` - Days *[]V1DashboardBillingSalesDayBucket `json:"days,omitempty"` - RevenueByCustomer *[]V1DashboardBillingCustomerRevenue `json:"revenueByCustomer,omitempty"` - - // RevenueByCustomerTotalCount Rows matching email filter (for pagination). - RevenueByCustomerTotalCount *int32 `json:"revenueByCustomerTotalCount,omitempty"` - - // RevenueByCustomerWindowTotal Distinct customer orgs with revenue in the window (before email filter). - RevenueByCustomerWindowTotal *int32 `json:"revenueByCustomerWindowTotal,omitempty"` - - // TotalFixedBillingSalesAmount Fixed = subscription + free plan lines + all add-ons; usage = usage-rated plan lines only. - TotalFixedBillingSalesAmount *string `json:"totalFixedBillingSalesAmount,omitempty"` - TotalUsageBillingSalesAmount *string `json:"totalUsageBillingSalesAmount,omitempty"` -} - -// V1GetDashboardCustomerAcquisitionTimeseriesResponse defines model for v1GetDashboardCustomerAcquisitionTimeseriesResponse. -type V1GetDashboardCustomerAcquisitionTimeseriesResponse struct { - Buckets *[]V1DashboardCustomerAcquisitionDayBucket `json:"buckets,omitempty"` -} - -// V1GetDashboardSummaryResponse defines model for v1GetDashboardSummaryResponse. -type V1GetDashboardSummaryResponse struct { - ActiveCustomerTotal *int32 `json:"activeCustomerTotal,omitempty"` - ActiveVmTotal *int32 `json:"activeVmTotal,omitempty"` - AddonBreakdown *[]V1DashboardSummaryAddonBreakdown `json:"addonBreakdown,omitempty"` - ByRegion *[]V1DashboardSummaryRegionBreakdown `json:"byRegion,omitempty"` - NodeTotal *int32 `json:"nodeTotal,omitempty"` - PlanBreakdown *[]V1DashboardSummaryPlanBreakdown `json:"planBreakdown,omitempty"` - Tickets *V1DashboardSummaryTickets `json:"tickets,omitempty"` -} - -// V1GetDomainResponse defines model for v1GetDomainResponse. -type V1GetDomainResponse struct { - Domain *V1Domain `json:"domain,omitempty"` -} - -// V1GetEnvironmentVariableResponse defines model for v1GetEnvironmentVariableResponse. -type V1GetEnvironmentVariableResponse struct { - EnvironmentVariable *V1EnvironmentVariable `json:"environmentVariable,omitempty"` -} - -// V1GetExchangeRateResponse defines model for v1GetExchangeRateResponse. -type V1GetExchangeRateResponse struct { - CurrencyCode *string `json:"currencyCode,omitempty"` - ExchangeRate *string `json:"exchangeRate,omitempty"` - LastUpdated *string `json:"lastUpdated,omitempty"` -} - -// V1GetGroupResponse defines model for v1GetGroupResponse. -type V1GetGroupResponse struct { - Group *V1Group `json:"group,omitempty"` -} - -// V1GetInvoiceResponse defines model for v1GetInvoiceResponse. -type V1GetInvoiceResponse struct { - Invoice *V1Invoice `json:"invoice,omitempty"` - InvoiceLines *[]V1InvoiceLine `json:"invoiceLines,omitempty"` -} - -// V1GetManualPayoutResponse defines model for v1GetManualPayoutResponse. -type V1GetManualPayoutResponse struct { - Payout *V1ManualPayout `json:"payout,omitempty"` -} - -// V1GetMarketplacePlanResponse Resolved marketplace offer for VM create prefill (authenticated clients). -type V1GetMarketplacePlanResponse struct { - BillingType *V1BillingType `json:"billingType,omitempty"` - DiskGb *int32 `json:"diskGb,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanPrices *[]V1PlanPrice `json:"planPrices,omitempty"` - PlanRegions *[]V1PlanRegion `json:"planRegions,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - RamGb *int32 `json:"ramGb,omitempty"` - Rating *float32 `json:"rating,omitempty"` - RegionCity *string `json:"regionCity,omitempty"` - RegionCountry *string `json:"regionCountry,omitempty"` - RegionId *string `json:"regionId,omitempty"` - TotalReviews *int32 `json:"totalReviews,omitempty"` - Vcpus *int32 `json:"vcpus,omitempty"` -} - -// V1GetMetricResponse defines model for v1GetMetricResponse. -type V1GetMetricResponse struct { - Metric *V1Metric `json:"metric,omitempty"` -} - -// V1GetMfaStatusResponse defines model for v1GetMfaStatusResponse. -type V1GetMfaStatusResponse struct { - BackupCodesRemaining *int32 `json:"backupCodesRemaining,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - FactorLabel *string `json:"factorLabel,omitempty"` -} - -// V1GetNetworkResponse defines model for v1GetNetworkResponse. -type V1GetNetworkResponse struct { - Network *V1Network `json:"network,omitempty"` -} - -// V1GetNodeCPUMapResponse defines model for v1GetNodeCPUMapResponse. -type V1GetNodeCPUMapResponse struct { - // ComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated - // (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - // - // - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - // - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - ComputeType *V1NodeComputeType `json:"computeType,omitempty"` - Cpus *[]V1NodeCPUMapCPU `json:"cpus,omitempty"` - LogicalCpus *int32 `json:"logicalCpus,omitempty"` - ModelName *string `json:"modelName,omitempty"` - NumaNodes *[]V1NodeCPUMapNUMA `json:"numaNodes,omitempty"` - PhysicalCores *int32 `json:"physicalCores,omitempty"` - SmtEnabled *bool `json:"smtEnabled,omitempty"` - Sockets *int32 `json:"sockets,omitempty"` - ThreadsPerCore *int32 `json:"threadsPerCore,omitempty"` - - // TopologyCollectedAt RFC3339 time the stored topology was collected/pasted. - TopologyCollectedAt *string `json:"topologyCollectedAt,omitempty"` -} - -// V1GetNodeNetworkResponse defines model for v1GetNodeNetworkResponse. -type V1GetNodeNetworkResponse struct { - Network *V1Network `json:"network,omitempty"` -} - -// V1GetNodePlacementPolicyResponse defines model for v1GetNodePlacementPolicyResponse. -type V1GetNodePlacementPolicyResponse struct { - Policy *V1NodePlacementPolicy `json:"policy,omitempty"` -} - -// V1GetNodeResponse defines model for v1GetNodeResponse. -type V1GetNodeResponse struct { - Node *V1Node `json:"node,omitempty"` -} - -// V1GetOrganizationResponse defines model for v1GetOrganizationResponse. -type V1GetOrganizationResponse struct { - Organization *V1Organization `json:"organization,omitempty"` -} - -// V1GetPaymentResponse defines model for v1GetPaymentResponse. -type V1GetPaymentResponse struct { - Payment *V1Payment `json:"payment,omitempty"` - Refunds *[]V1Refund `json:"refunds,omitempty"` -} - -// V1GetPayoutConfigurationResponse defines model for v1GetPayoutConfigurationResponse. -type V1GetPayoutConfigurationResponse struct { - Configuration *V1PayoutConfiguration `json:"configuration,omitempty"` -} - -// V1GetPayoutInvoiceResponse defines model for v1GetPayoutInvoiceResponse. -type V1GetPayoutInvoiceResponse struct { - Invoices *[]V1Invoice `json:"invoices,omitempty"` - PayoutInvoice *V1PayoutInvoice `json:"payoutInvoice,omitempty"` -} - -// V1GetPlanLiveValidationResponse defines model for v1GetPlanLiveValidationResponse. -type V1GetPlanLiveValidationResponse struct { - Validation *V1PlanLiveValidationView `json:"validation,omitempty"` -} - -// V1GetPlatformResponse defines model for v1GetPlatformResponse. -type V1GetPlatformResponse struct { - Platform *V1Platform `json:"platform,omitempty"` -} - -// V1GetPrefixResponse defines model for v1GetPrefixResponse. -type V1GetPrefixResponse struct { - Prefix *V1Prefix `json:"prefix,omitempty"` -} - -// V1GetPrefixUtilizationResponse defines model for v1GetPrefixUtilizationResponse. -type V1GetPrefixUtilizationResponse struct { - AllocatedCount *int32 `json:"allocatedCount,omitempty"` - AvailableCount *int32 `json:"availableCount,omitempty"` - CapacityIsOpenEnded *bool `json:"capacityIsOpenEnded,omitempty"` - CapacityUnitLabel *string `json:"capacityUnitLabel,omitempty"` - ReservedCount *int32 `json:"reservedCount,omitempty"` - - // TotalIps Assignable pool: structurally assignable hosts minus explicit reserved list and one - // in-prefix gateway slot when the gateway is not already listed as reserved. Out-of-prefix - // gateways are ignored. - TotalIps *int32 `json:"totalIps,omitempty"` - UtilizationPercent *float64 `json:"utilizationPercent,omitempty"` - VmAssignmentPrefixLength *int32 `json:"vmAssignmentPrefixLength,omitempty"` -} - -// V1GetProviderCustomerResponse defines model for v1GetProviderCustomerResponse. -type V1GetProviderCustomerResponse struct { - Customer *V1ProviderCustomerRow `json:"customer,omitempty"` -} - -// V1GetProviderCustomerStatsResponse defines model for v1GetProviderCustomerStatsResponse. -type V1GetProviderCustomerStatsResponse struct { - ActiveCustomers *int32 `json:"activeCustomers,omitempty"` - InactiveCustomers *int32 `json:"inactiveCustomers,omitempty"` - TotalActiveVms *int32 `json:"totalActiveVms,omitempty"` -} - -// V1GetProviderOnboardingChecklistResponse defines model for v1GetProviderOnboardingChecklistResponse. -type V1GetProviderOnboardingChecklistResponse struct { - CompletedCount *int32 `json:"completedCount,omitempty"` - - // NextStep Provider self-serve onboarding checklist (provider orgs only). - NextStep *V1ProviderOnboardingStepCode `json:"nextStep,omitempty"` - - // Onboarded True when the org has completed every step at least once (persisted latch). - Onboarded *bool `json:"onboarded,omitempty"` - - // ProgressMessage Short copy for the wizard banner ("You created a region. Next: create a platform."). - ProgressMessage *string `json:"progressMessage,omitempty"` - - // Steps Ordered checklist; empty when onboarded is true. - Steps *[]V1ProviderOnboardingStep `json:"steps,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1GetProviderResponse defines model for v1GetProviderResponse. -type V1GetProviderResponse struct { - // Provider GetProvider payload: nested ProviderInfo shares the same core fields as list rows; extended - // fields are provider-wide (website, review breakdown, catalog plans, etc.). - Provider *V1ProviderDetails `json:"provider,omitempty"` -} - -// V1GetProviderRevenueResponse defines model for v1GetProviderRevenueResponse. -type V1GetProviderRevenueResponse struct { - CompletedPayoutCount *int32 `json:"completedPayoutCount,omitempty"` - Currency *string `json:"currency,omitempty"` - EndDate *time.Time `json:"endDate,omitempty"` - FailedPayoutCount *int32 `json:"failedPayoutCount,omitempty"` - PendingPayoutCount *int32 `json:"pendingPayoutCount,omitempty"` - StartDate *time.Time `json:"startDate,omitempty"` - TotalNetPayouts *string `json:"totalNetPayouts,omitempty"` - TotalPlatformFees *string `json:"totalPlatformFees,omitempty"` - TotalRevenue *string `json:"totalRevenue,omitempty"` -} - -// V1GetRefundResponse defines model for v1GetRefundResponse. -type V1GetRefundResponse struct { - Invoice *V1Invoice `json:"invoice,omitempty"` - Payment *V1Payment `json:"payment,omitempty"` - Refund *V1Refund `json:"refund,omitempty"` -} - -// V1GetRoadmapFeatureRequestResponse defines model for v1GetRoadmapFeatureRequestResponse. -type V1GetRoadmapFeatureRequestResponse struct { - Request *V1RoadmapFeatureRequest `json:"request,omitempty"` -} - -// V1GetRoadmapStatsResponse defines model for v1GetRoadmapStatsResponse. -type V1GetRoadmapStatsResponse struct { - ByProduct *[]V1RoadmapProductStats `json:"byProduct,omitempty"` - TotalRequests *int32 `json:"totalRequests,omitempty"` - TotalVotes *int32 `json:"totalVotes,omitempty"` -} - -// V1GetSSHKeyResponse defines model for v1GetSSHKeyResponse. -type V1GetSSHKeyResponse struct { - SshKey *V1SSHKey `json:"sshKey,omitempty"` -} - -// V1GetSecretResponse defines model for v1GetSecretResponse. -type V1GetSecretResponse struct { - Secret *V1Secret `json:"secret,omitempty"` -} - -// V1GetSmtpOutboundProviderPolicyResponse defines model for v1GetSmtpOutboundProviderPolicyResponse. -type V1GetSmtpOutboundProviderPolicyResponse struct { - Policy *V1SmtpOutboundProviderPolicy `json:"policy,omitempty"` -} - -// V1GetSnapshotResponse defines model for v1GetSnapshotResponse. -type V1GetSnapshotResponse struct { - Snapshot *V1Snapshot `json:"snapshot,omitempty"` -} - -// V1GetSubscriptionStatusResponse defines model for v1GetSubscriptionStatusResponse. -type V1GetSubscriptionStatusResponse struct { - Rules *[]V1Rules `json:"rules,omitempty"` -} - -// V1GetTicketResponse defines model for v1GetTicketResponse. -type V1GetTicketResponse struct { - OrganizationDetails *map[string]V1OrganizationDetails `json:"organizationDetails,omitempty"` - Thread *[]V1TicketMessage `json:"thread,omitempty"` - Ticket *V1Ticket `json:"ticket,omitempty"` - UserDetails *map[string]V1UserDetails `json:"userDetails,omitempty"` -} - -// V1GetUsageRecordResponse defines model for v1GetUsageRecordResponse. -type V1GetUsageRecordResponse struct { - UsageRecord *V1UsageRecord `json:"usageRecord,omitempty"` -} - -// V1GetUsageReportResponse defines model for v1GetUsageReportResponse. -type V1GetUsageReportResponse struct { - Aggregates *[]V1UsageAggregate `json:"aggregates,omitempty"` - BillingPeriodEnd *time.Time `json:"billingPeriodEnd,omitempty"` - BillingPeriodStart *time.Time `json:"billingPeriodStart,omitempty"` - TotalRecords *int32 `json:"totalRecords,omitempty"` -} - -// V1GetUserResponse defines model for v1GetUserResponse. -type V1GetUserResponse struct { - User *V1User `json:"user,omitempty"` -} - -// V1GetVMTemplateResponse defines model for v1GetVMTemplateResponse. -type V1GetVMTemplateResponse struct { - VmTemplate *V1VMTemplate `json:"vmTemplate,omitempty"` -} - -// V1GetVNCConsoleResponse defines model for v1GetVNCConsoleResponse. -type V1GetVNCConsoleResponse struct { - Password *string `json:"password,omitempty"` - SessionId *string `json:"sessionId,omitempty"` - Token *string `json:"token,omitempty"` - WebsocketUrl *string `json:"websocketUrl,omitempty"` -} - -// V1Group defines model for v1Group. -type V1Group struct { - Description *string `json:"description,omitempty"` - GroupRoles *[]string `json:"groupRoles,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UserEmails *[]string `json:"userEmails,omitempty"` -} - -// V1HandleWebhookResponse defines model for v1HandleWebhookResponse. -type V1HandleWebhookResponse struct { - EventId *string `json:"eventId,omitempty"` - Message *string `json:"message,omitempty"` - Success *bool `json:"success,omitempty"` -} - -// V1HealthCheckResponse defines model for v1HealthCheckResponse. -type V1HealthCheckResponse struct { - Status *V1ServingStatus `json:"status,omitempty"` -} - -// V1IPAllocation defines model for v1IPAllocation. -type V1IPAllocation struct { - AllocatedCidr *string `json:"allocatedCidr,omitempty"` - AllocationKind *string `json:"allocationKind,omitempty"` - Id *string `json:"id,omitempty"` - IpAddress *string `json:"ipAddress,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - - // PrefixId Prefix this IP allocation is from - PrefixId *string `json:"prefixId,omitempty"` - Status *V1IPAllocationStatus `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1IPAllocationStatus defines model for v1IPAllocationStatus. -type V1IPAllocationStatus string - -// V1InboundPeeringState defines model for v1InboundPeeringState. -type V1InboundPeeringState string - -// V1InstantApp InstantApp is a platform-owned curated app install (Jinja user_data bound to a Distro). -// user_data is returned on Get for catalog preview; List omits it to keep responses small. -// Create/reinstall always load user_data server-side from storage. -type V1InstantApp struct { - Categories *[]string `json:"categories,omitempty"` - Description *string `json:"description,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - DocumentationUrl *string `json:"documentationUrl,omitempty"` - Family *string `json:"family,omitempty"` - IconUrl *string `json:"iconUrl,omitempty"` - Id *string `json:"id,omitempty"` - - // Metadata Includes ports (e.g. [22,80,443]), credentials_path, estimated_ready_minutes. - Metadata *map[string]interface{} `json:"metadata,omitempty"` - MinDiskGb *int32 `json:"minDiskGb,omitempty"` - MinRamGb *int32 `json:"minRamGb,omitempty"` - - // MinVcpus Recommended minimums (plan specifications units); not enforced at create. - MinVcpus *int32 `json:"minVcpus,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - SortOrder *int32 `json:"sortOrder,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - - // UserData Jinja cloud-init user_data template. Present on Get; omitted on List. - UserData *string `json:"userData,omitempty"` - Version *string `json:"version,omitempty"` -} - -// V1Invite defines model for v1Invite. -type V1Invite struct { - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - Group *string `json:"group,omitempty"` - Id *string `json:"id,omitempty"` - InviteStatus *V1InviteStatus `json:"inviteStatus,omitempty"` - InviteeEmail *string `json:"inviteeEmail,omitempty"` - Inviter *string `json:"inviter,omitempty"` - InviterEmail *string `json:"inviterEmail,omitempty"` - JoinedTime *time.Time `json:"joinedTime,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Organization *string `json:"organization,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - Role *string `json:"role,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1InviteStatus defines model for v1InviteStatus. -type V1InviteStatus string - -// V1Invoice defines model for v1Invoice. -type V1Invoice struct { - AmountDue *string `json:"amountDue,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Currency *string `json:"currency,omitempty"` - - // Customer InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an - // invoice. Provider/customer identity is snapshotted at invoice generation; the - // platform issuer is resolved from server config. - Customer *V1InvoiceParty `json:"customer,omitempty"` - DueDate *time.Time `json:"dueDate,omitempty"` - Id *string `json:"id,omitempty"` - InvoiceNumber *string `json:"invoiceNumber,omitempty"` - - // Issuer InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an - // invoice. Provider/customer identity is snapshotted at invoice generation; the - // platform issuer is resolved from server config. - Issuer *V1InvoiceParty `json:"issuer,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - PaidAt *time.Time `json:"paidAt,omitempty"` - PeriodEnd *time.Time `json:"periodEnd,omitempty"` - PeriodStart *time.Time `json:"periodStart,omitempty"` - Status *V1InvoiceStatus `json:"status,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - - // SubscriptionIds for backward compatibility. - // - // Subscriptions aggregated into this invoice (many-to-many) - SubscriptionIds *[]string `json:"subscriptionIds,omitempty"` - Subtotal *string `json:"subtotal,omitempty"` - TaxAmount *string `json:"taxAmount,omitempty"` - Total *string `json:"total,omitempty"` - TransactionId *string `json:"transactionId,omitempty"` -} - -// V1InvoiceLine defines model for v1InvoiceLine. -type V1InvoiceLine struct { - Amount *string `json:"amount,omitempty"` - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - InvoiceId *string `json:"invoiceId,omitempty"` - Quantity *string `json:"quantity,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` -} - -// V1InvoiceParty InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an -// invoice. Provider/customer identity is snapshotted at invoice generation; the -// platform issuer is resolved from server config. -type V1InvoiceParty struct { - Address *string `json:"address,omitempty"` - AddressLine1 *string `json:"addressLine1,omitempty"` - AddressLine2 *string `json:"addressLine2,omitempty"` - City *string `json:"city,omitempty"` - Country *string `json:"country,omitempty"` - Email *string `json:"email,omitempty"` - IsPlatform *bool `json:"isPlatform,omitempty"` - LegalName *string `json:"legalName,omitempty"` - Name *string `json:"name,omitempty"` - Phone *string `json:"phone,omitempty"` - PostalCode *string `json:"postalCode,omitempty"` - Region *string `json:"region,omitempty"` - TaxId *string `json:"taxId,omitempty"` - VatId *string `json:"vatId,omitempty"` - Website *string `json:"website,omitempty"` -} - -// V1InvoiceStatus defines model for v1InvoiceStatus. -type V1InvoiceStatus string - -// V1LastRestore defines model for v1LastRestore. -type V1LastRestore struct { - RestoredAt *time.Time `json:"restoredAt,omitempty"` - RestoredBy *string `json:"restoredBy,omitempty"` - SnapshotName *string `json:"snapshotName,omitempty"` -} - -// V1LinkedIdentity defines model for v1LinkedIdentity. -type V1LinkedIdentity struct { - CreateTime *time.Time `json:"createTime,omitempty"` - Email *string `json:"email,omitempty"` - Provider *string `json:"provider,omitempty"` -} - -// V1ListAddonSubscriptionsResponse defines model for v1ListAddonSubscriptionsResponse. -type V1ListAddonSubscriptionsResponse struct { - AddonSubscriptions *[]V1AddonSubscription `json:"addonSubscriptions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListAddonsResponse defines model for v1ListAddonsResponse. -type V1ListAddonsResponse struct { - Addons *[]V1Addon `json:"addons,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListAgentsResponse defines model for v1ListAgentsResponse. -type V1ListAgentsResponse struct { - Agents *[]V1GetAgentResponse `json:"agents,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListAllocationsResponse defines model for v1ListAllocationsResponse. -type V1ListAllocationsResponse struct { - Allocations *[]V1IPAllocation `json:"allocations,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// V1ListAssignableNodesForPlanResponse defines model for v1ListAssignableNodesForPlanResponse. -type V1ListAssignableNodesForPlanResponse struct { - Nodes *[]V1AssignableNodeView `json:"nodes,omitempty"` -} - -// V1ListAvailableAddonsResponse defines model for v1ListAvailableAddonsResponse. -type V1ListAvailableAddonsResponse struct { - Addons *[]V1Addon `json:"addons,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListAvailableIPsResponse defines model for v1ListAvailableIPsResponse. -type V1ListAvailableIPsResponse struct { - AllocatedCount *int32 `json:"allocatedCount,omitempty"` - AvailableCount *int32 `json:"availableCount,omitempty"` - AvailableIps *[]string `json:"availableIps,omitempty"` - ReservedCount *int32 `json:"reservedCount,omitempty"` - TotalIps *int32 `json:"totalIps,omitempty"` -} - -// V1ListAvailablePlansResponse defines model for v1ListAvailablePlansResponse. -type V1ListAvailablePlansResponse struct { - Plans *[]V1AvailablePlanCode `json:"plans,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListAvailableRegionsResponse defines model for v1ListAvailableRegionsResponse. -type V1ListAvailableRegionsResponse struct { - Regions *[]V1RegionLocation `json:"regions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListBackupsResponse defines model for v1ListBackupsResponse. -type V1ListBackupsResponse struct { - Backups *[]V1Backup `json:"backups,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListClientProviderReviewAssetsResponse defines model for v1ListClientProviderReviewAssetsResponse. -type V1ListClientProviderReviewAssetsResponse struct { - Assets *[]V1ClientProviderReviewAssetItem `json:"assets,omitempty"` - - // ReviewedAssetCount Submitted reviews across all assets (not just this page). - ReviewedAssetCount *int32 `json:"reviewedAssetCount,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListCloudInitTemplatesResponse defines model for v1ListCloudInitTemplatesResponse. -type V1ListCloudInitTemplatesResponse struct { - CloudInitTemplates *[]V1CloudInitTemplate `json:"cloudInitTemplates,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListCloudInitUserDataResponse defines model for v1ListCloudInitUserDataResponse. -type V1ListCloudInitUserDataResponse struct { - Profiles *[]V1CloudInitUserData `json:"profiles,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListConversationsResponse defines model for v1ListConversationsResponse. -type V1ListConversationsResponse struct { - Conversations *[]V1ConversationInfo `json:"conversations,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListCountriesCitiesResponse defines model for v1ListCountriesCitiesResponse. -type V1ListCountriesCitiesResponse struct { - Countries *[]V1Country `json:"countries,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListCreditLedgerEntriesResponse defines model for v1ListCreditLedgerEntriesResponse. -type V1ListCreditLedgerEntriesResponse struct { - Entries *[]V1CreditLedgerEntryProto `json:"entries,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListDashboardAddonCatalogStatsResponse defines model for v1ListDashboardAddonCatalogStatsResponse. -type V1ListDashboardAddonCatalogStatsResponse struct { - AddonCatalog *[]V1ProviderDashboardAddonCatalogRow `json:"addonCatalog,omitempty"` - AddonCatalogFilteredTotal *int32 `json:"addonCatalogFilteredTotal,omitempty"` - KpiActiveAddonSubscriptionsSum *int32 `json:"kpiActiveAddonSubscriptionsSum,omitempty"` -} - -// V1ListDashboardInfrastructureResponse defines model for v1ListDashboardInfrastructureResponse. -type V1ListDashboardInfrastructureResponse struct { - ByNode *[]V1ProviderDashboardNodeRollup `json:"byNode,omitempty"` - NodeTotalCount *int32 `json:"nodeTotalCount,omitempty"` -} - -// V1ListDashboardIpamAssignmentsResponse defines model for v1ListDashboardIpamAssignmentsResponse. -type V1ListDashboardIpamAssignmentsResponse struct { - Assignments *[]V1DashboardIpamAssignmentRow `json:"assignments,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListDashboardIpamResponse defines model for v1ListDashboardIpamResponse. -type V1ListDashboardIpamResponse struct { - AllocatedSampleIpsHasMore *bool `json:"allocatedSampleIpsHasMore,omitempty"` - Networks *[]V1DashboardIpamNetworkRollup `json:"networks,omitempty"` -} - -// V1ListDashboardPlanSubscriptionStatsResponse defines model for v1ListDashboardPlanSubscriptionStatsResponse. -type V1ListDashboardPlanSubscriptionStatsResponse struct { - KpiActiveSubscriptionsSum *int32 `json:"kpiActiveSubscriptionsSum,omitempty"` - KpiPlanCount *int32 `json:"kpiPlanCount,omitempty"` - KpiVmAssetsSum *int32 `json:"kpiVmAssetsSum,omitempty"` - Plans *[]V1ProviderDashboardPlanSubscriptionStat `json:"plans,omitempty"` - PlansFilteredTotal *int32 `json:"plansFilteredTotal,omitempty"` -} - -// V1ListDashboardTicketStatisticsResponse defines model for v1ListDashboardTicketStatisticsResponse. -type V1ListDashboardTicketStatisticsResponse struct { - AverageFirstResponseTimeSeconds *string `json:"averageFirstResponseTimeSeconds,omitempty"` - AverageResolutionTimeSeconds *string `json:"averageResolutionTimeSeconds,omitempty"` - AwaitingReplyTickets *int32 `json:"awaitingReplyTickets,omitempty"` - ByCaseType *[]V1DashboardTicketStatisticsByCaseType `json:"byCaseType,omitempty"` - ByPriority *[]V1DashboardTicketStatisticsByPriority `json:"byPriority,omitempty"` - ByStatus *[]V1DashboardTicketStatisticsByStatus `json:"byStatus,omitempty"` - ClosedTickets *int32 `json:"closedTickets,omitempty"` - OpenNeedingProviderFirstResponse *int32 `json:"openNeedingProviderFirstResponse,omitempty"` - OpenTickets *int32 `json:"openTickets,omitempty"` - SlaCompliantTickets *int32 `json:"slaCompliantTickets,omitempty"` - SlaFirstResponseBreachedTickets *int32 `json:"slaFirstResponseBreachedTickets,omitempty"` - SlaResolutionBreachedTickets *int32 `json:"slaResolutionBreachedTickets,omitempty"` - TicketsCreatedPerDay *[]V1DashboardTicketStatisticsDayBucket `json:"ticketsCreatedPerDay,omitempty"` - TotalTickets *int32 `json:"totalTickets,omitempty"` -} - -// V1ListDashboardVirtualMachinesResponse defines model for v1ListDashboardVirtualMachinesResponse. -type V1ListDashboardVirtualMachinesResponse struct { - DashboardVmCountTotal *int32 `json:"dashboardVmCountTotal,omitempty"` - VirtualMachines *[]V1DashboardVirtualMachineRow `json:"virtualMachines,omitempty"` - - // VmtemplateIdsWithVirtualMachines Distinct VM template IDs with at least one provider-scoped dashboard VM (unfiltered facet for sidebar). - VmtemplateIdsWithVirtualMachines *[]string `json:"vmtemplateIdsWithVirtualMachines,omitempty"` -} - -// V1ListDatacentersResponse defines model for v1ListDatacentersResponse. -type V1ListDatacentersResponse struct { - Datacenters *[]V1DatacenterInfo `json:"datacenters,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListEffectivePermissionsResponse defines model for v1ListEffectivePermissionsResponse. -type V1ListEffectivePermissionsResponse struct { - EffectivePermissions *map[string]V1EffectivePermissions `json:"effectivePermissions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListEligibleNodesForPlanResponse defines model for v1ListEligibleNodesForPlanResponse. -type V1ListEligibleNodesForPlanResponse struct { - Nodes *[]V1PlanLiveValidationNodeView `json:"nodes,omitempty"` -} - -// V1ListEnvironmentVariablesResponse defines model for v1ListEnvironmentVariablesResponse. -type V1ListEnvironmentVariablesResponse struct { - EnvironmentVariables *[]V1EnvironmentVariable `json:"environmentVariables,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListFirewallAddressGroupsResponse defines model for v1ListFirewallAddressGroupsResponse. -type V1ListFirewallAddressGroupsResponse struct { - Groups *[]V1FirewallAddressGroup `json:"groups,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListFirewallRuleSetsResponse defines model for v1ListFirewallRuleSetsResponse. -type V1ListFirewallRuleSetsResponse struct { - Rulesets *[]V1FirewallRuleSet `json:"rulesets,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListFirewallRulesResponse defines model for v1ListFirewallRulesResponse. -type V1ListFirewallRulesResponse struct { - Rules *[]V1FirewallRuleResource `json:"rules,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListGroupsResponse defines model for v1ListGroupsResponse. -type V1ListGroupsResponse struct { - Groups *[]V1Group `json:"groups,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListInstantAppsResponse defines model for v1ListInstantAppsResponse. -type V1ListInstantAppsResponse struct { - InstantApps *[]V1InstantApp `json:"instantApps,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListInternalCommentsResponse defines model for v1ListInternalCommentsResponse. -type V1ListInternalCommentsResponse struct { - Comments *[]V1TicketInternalComment `json:"comments,omitempty"` -} - -// V1ListInvitesResponse defines model for v1ListInvitesResponse. -type V1ListInvitesResponse struct { - Invites *[]V1Invite `json:"invites,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListInvoicesResponse defines model for v1ListInvoicesResponse. -type V1ListInvoicesResponse struct { - Invoices *[]V1Invoice `json:"invoices,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListLinkedIdentitiesResponse defines model for v1ListLinkedIdentitiesResponse. -type V1ListLinkedIdentitiesResponse struct { - // HasPassword True when the user has a local password (can unlink their last SSO identity). - HasPassword *bool `json:"hasPassword,omitempty"` - Identities *[]V1LinkedIdentity `json:"identities,omitempty"` -} - -// V1ListMarketplaceProviderDirectoryResponse defines model for v1ListMarketplaceProviderDirectoryResponse. -type V1ListMarketplaceProviderDirectoryResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Providers *[]V1ProviderInfo `json:"providers,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListMetricsResponse defines model for v1ListMetricsResponse. -type V1ListMetricsResponse struct { - Metrics *[]V1Metric `json:"metrics,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListMetricsWriteCredentialsResponse defines model for v1ListMetricsWriteCredentialsResponse. -type V1ListMetricsWriteCredentialsResponse struct { - Credentials *[]V1MetricsWriteCredential `json:"credentials,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListMyInvitesResponse defines model for v1ListMyInvitesResponse. -type V1ListMyInvitesResponse struct { - Invites *[]V1Invite `json:"invites,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListNetworkNodesResponse defines model for v1ListNetworkNodesResponse. -type V1ListNetworkNodesResponse struct { - Nodes *[]V1Node `json:"nodes,omitempty"` -} - -// V1ListNetworksResponse defines model for v1ListNetworksResponse. -type V1ListNetworksResponse struct { - Networks *[]V1Network `json:"networks,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// V1ListNodesResponse defines model for v1ListNodesResponse. -type V1ListNodesResponse struct { - Nodes *[]V1NodeWithExpandedRegion `json:"nodes,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListOAuth2ClientsResponse defines model for v1ListOAuth2ClientsResponse. -type V1ListOAuth2ClientsResponse struct { - Clients *[]V1OAuth2Client `json:"clients,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListOrganizationsResponse defines model for v1ListOrganizationsResponse. -type V1ListOrganizationsResponse struct { - Organizations *[]V1Organization `json:"organizations,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPaymentMethodsResponse defines model for v1ListPaymentMethodsResponse. -type V1ListPaymentMethodsResponse struct { - PaymentMethods *[]V1PaymentMethod `json:"paymentMethods,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPaymentsResponse defines model for v1ListPaymentsResponse. -type V1ListPaymentsResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Payments *[]V1Payment `json:"payments,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPayoutInvoicesResponse defines model for v1ListPayoutInvoicesResponse. -type V1ListPayoutInvoicesResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - PayoutInvoices *[]V1PayoutInvoice `json:"payoutInvoices,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPermissionsResponse defines model for v1ListPermissionsResponse. -type V1ListPermissionsResponse struct { - Permissions *[]V1Permission `json:"permissions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPlanLiveValidationBenchmarksResponse defines model for v1ListPlanLiveValidationBenchmarksResponse. -type V1ListPlanLiveValidationBenchmarksResponse struct { - Benchmarks *[]V1PlanLiveValidationBenchmarkView `json:"benchmarks,omitempty"` -} - -// V1ListPlanLiveValidationsResponse defines model for v1ListPlanLiveValidationsResponse. -type V1ListPlanLiveValidationsResponse struct { - TotalCount *int32 `json:"totalCount,omitempty"` - Validations *[]V1PlanLiveValidationView `json:"validations,omitempty"` -} - -// V1ListPlansResponse defines model for v1ListPlansResponse. -type V1ListPlansResponse struct { - Plans *[]V1Plan `json:"plans,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPlatformsResponse defines model for v1ListPlatformsResponse. -type V1ListPlatformsResponse struct { - Platforms *[]V1Platform `json:"platforms,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListPrefixesResponse defines model for v1ListPrefixesResponse. -type V1ListPrefixesResponse struct { - Prefixes *[]V1Prefix `json:"prefixes,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// V1ListPreflightChecksResponse defines model for v1ListPreflightChecksResponse. -type V1ListPreflightChecksResponse struct { - // MarketplaceReadyCheckEnabled Explicit presence: false when PLAN_MARKETPLACE_READY is disabled in config (interval may be omitted as 0). - MarketplaceReadyCheckEnabled *bool `json:"marketplaceReadyCheckEnabled,omitempty"` - - // MarketplaceReadyCheckIntervalSeconds Resolved from preflight.PLAN_MARKETPLACE_READY interval (seconds); for UI scheduling hints. - MarketplaceReadyCheckIntervalSeconds *int32 `json:"marketplaceReadyCheckIntervalSeconds,omitempty"` - Plans *[]V1PlanPreflightView `json:"plans,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListProviderCustomerAssetsResponse defines model for v1ListProviderCustomerAssetsResponse. -type V1ListProviderCustomerAssetsResponse struct { - Assets *[]V1ProviderCustomerAssetRow `json:"assets,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListProviderCustomersResponse defines model for v1ListProviderCustomersResponse. -type V1ListProviderCustomersResponse struct { - Customers *[]V1ProviderCustomerRow `json:"customers,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListProviderReviewsResponse defines model for v1ListProviderReviewsResponse. -type V1ListProviderReviewsResponse struct { - ProviderAverageStar *float64 `json:"providerAverageStar,omitempty"` - ProviderStarSummary *[]V1ProviderReviewStarSummary `json:"providerStarSummary,omitempty"` - ProviderTotalReviews *int32 `json:"providerTotalReviews,omitempty"` - Reviews *[]V1ProviderReviewListItem `json:"reviews,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListProvidersResponse defines model for v1ListProvidersResponse. -type V1ListProvidersResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Providers *[]V1ProviderInfo `json:"providers,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListRefundsResponse defines model for v1ListRefundsResponse. -type V1ListRefundsResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Refunds *[]V1Refund `json:"refunds,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListRegionsResponse defines model for v1ListRegionsResponse. -type V1ListRegionsResponse struct { - Regions *[]V1Region `json:"regions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListRoadmapFeatureRequestCommentsResponse defines model for v1ListRoadmapFeatureRequestCommentsResponse. -type V1ListRoadmapFeatureRequestCommentsResponse struct { - Comments *[]V1RoadmapFeatureRequestComment `json:"comments,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// V1ListRoadmapFeatureRequestsResponse defines model for v1ListRoadmapFeatureRequestsResponse. -type V1ListRoadmapFeatureRequestsResponse struct { - Requests *[]V1RoadmapFeatureRequest `json:"requests,omitempty"` - Total *int32 `json:"total,omitempty"` -} - -// V1ListRoadmapProductCategoriesResponse defines model for v1ListRoadmapProductCategoriesResponse. -type V1ListRoadmapProductCategoriesResponse struct { - Products *[]V1RoadmapProductCategory `json:"products,omitempty"` -} - -// V1ListRolesResponse defines model for v1ListRolesResponse. -type V1ListRolesResponse struct { - Roles *[]V1Role `json:"roles,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListSSHKeysResponse defines model for v1ListSSHKeysResponse. -type V1ListSSHKeysResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - SshKeys *[]V1SSHKey `json:"sshKeys,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListSecretsResponse defines model for v1ListSecretsResponse. -type V1ListSecretsResponse struct { - Secrets *[]V1Secret `json:"secrets,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListServiceAccountTokensResponse defines model for v1ListServiceAccountTokensResponse. -type V1ListServiceAccountTokensResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Tokens *[]V1ServiceAccountTokenInfo `json:"tokens,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListServiceAccountsResponse defines model for v1ListServiceAccountsResponse. -type V1ListServiceAccountsResponse struct { - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - ServiceAccounts *[]V1ServiceAccountResponse `json:"serviceAccounts,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListSnapshotsResponse defines model for v1ListSnapshotsResponse. -type V1ListSnapshotsResponse struct { - Snapshots *[]V1Snapshot `json:"snapshots,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListSubscriptionsResponse defines model for v1ListSubscriptionsResponse. -type V1ListSubscriptionsResponse struct { - Subscriptions *[]V1Subscription `json:"subscriptions,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListSupportedCurrenciesResponse defines model for v1ListSupportedCurrenciesResponse. -type V1ListSupportedCurrenciesResponse struct { - Currencies *[]string `json:"currencies,omitempty"` - LastUpdated *string `json:"lastUpdated,omitempty"` -} - -// V1ListTicketAttachmentsResponse defines model for v1ListTicketAttachmentsResponse. -type V1ListTicketAttachmentsResponse struct { - Attachments *[]V1TicketAttachment `json:"attachments,omitempty"` -} - -// V1ListTicketTemplatesResponse defines model for v1ListTicketTemplatesResponse. -type V1ListTicketTemplatesResponse struct { - AvailableVariables *[]V1TicketTemplateVariableDefinition `json:"availableVariables,omitempty"` - TicketTemplates *[]V1TicketTemplate `json:"ticketTemplates,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListTicketsResponse defines model for v1ListTicketsResponse. -type V1ListTicketsResponse struct { - OrganizationDetails *map[string]V1OrganizationDetails `json:"organizationDetails,omitempty"` - Tickets *[]V1Ticket `json:"tickets,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` - UserDetails *map[string]V1UserDetails `json:"userDetails,omitempty"` -} - -// V1ListUsageRecordsResponse defines model for v1ListUsageRecordsResponse. -type V1ListUsageRecordsResponse struct { - TotalCount *int32 `json:"totalCount,omitempty"` - UsageRecords *[]V1UsageRecord `json:"usageRecords,omitempty"` -} - -// V1ListUsersResponse defines model for v1ListUsersResponse. -type V1ListUsersResponse struct { - TotalCount *int32 `json:"totalCount,omitempty"` - Users *[]V1User `json:"users,omitempty"` -} - -// V1ListVMTagsResponse defines model for v1ListVMTagsResponse. -type V1ListVMTagsResponse struct { - Tags *[]string `json:"tags,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListVMTemplatesResponse defines model for v1ListVMTemplatesResponse. -type V1ListVMTemplatesResponse struct { - TotalCount *int32 `json:"totalCount,omitempty"` - - // TotalPages Page count when pagination packs whole node groups (never splits a node across pages). - TotalPages *int32 `json:"totalPages,omitempty"` - VmTemplates *[]V1VMTemplate `json:"vmTemplates,omitempty"` -} - -// V1ListVirtualMachineSmtpOutboundPoliciesResponse defines model for v1ListVirtualMachineSmtpOutboundPoliciesResponse. -type V1ListVirtualMachineSmtpOutboundPoliciesResponse struct { - Policies *[]V1VirtualMachineSmtpOutboundPolicyView `json:"policies,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1ListVirtualMachinesResponse defines model for v1ListVirtualMachinesResponse. -type V1ListVirtualMachinesResponse struct { - TotalCount *int32 `json:"totalCount,omitempty"` - VirtualMachines *[]V1VirtualMachine `json:"virtualMachines,omitempty"` -} - -// V1LiveValidationCheckView defines model for v1LiveValidationCheckView. -type V1LiveValidationCheckView struct { - Code *string `json:"code,omitempty"` - Note *string `json:"note,omitempty"` - Passed *bool `json:"passed,omitempty"` -} - -// V1LoginMfaVerifyRequest defines model for v1LoginMfaVerifyRequest. -type V1LoginMfaVerifyRequest struct { - // Code Authenticator TOTP code or a one-time recovery code. - Code *string `json:"code,omitempty"` - LoginSessionId *string `json:"loginSessionId,omitempty"` -} - -// V1LoginRequest defines model for v1LoginRequest. -type V1LoginRequest struct { - Email *string `json:"email,omitempty"` - Password *string `json:"password,omitempty"` - - // TurnstileToken Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled). - TurnstileToken *string `json:"turnstileToken,omitempty"` -} - -// V1LoginResponse defines model for v1LoginResponse. -type V1LoginResponse struct { - LoginSessionId *string `json:"loginSessionId,omitempty"` - - // MfaRequired When true, token/organization_id are empty and login_session_id must be used with LoginMfaVerify. - MfaRequired *bool `json:"mfaRequired,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - - // Token Present when MFA is not required (or after LoginMfaVerify succeeds). - Token *string `json:"token,omitempty"` -} - -// V1LogoutRequest defines model for v1LogoutRequest. -type V1LogoutRequest struct { - InvalidateAll *bool `json:"invalidateAll,omitempty"` -} - -// V1ManualPayout defines model for v1ManualPayout. -type V1ManualPayout struct { - AccountHolderName *string `json:"accountHolderName,omitempty"` - AccountNumber *string `json:"accountNumber,omitempty"` - BankName *string `json:"bankName,omitempty"` - Bic *string `json:"bic,omitempty"` - Country *string `json:"country,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Iban *string `json:"iban,omitempty"` - Id *string `json:"id,omitempty"` - IsVerified *bool `json:"isVerified,omitempty"` - Notes *string `json:"notes,omitempty"` - RoutingNumber *string `json:"routingNumber,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - VerificationNotes *string `json:"verificationNotes,omitempty"` -} - -// V1MarketplaceSearchParsedQuery Structured filters extracted from the user query (word matcher today; LLM later). -type V1MarketplaceSearchParsedQuery struct { - FilterBillingType *V1BillingType `json:"filterBillingType,omitempty"` - FilterCity *string `json:"filterCity,omitempty"` - - // FilterComputeCategory - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) - // - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - FilterComputeCategory *V1ComputeCategory `json:"filterComputeCategory,omitempty"` - - // FilterComputeType - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) - // - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - // - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - // - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - // - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - // - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - // - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - // - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - // - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - FilterComputeType *V1ComputeType `json:"filterComputeType,omitempty"` - FilterCountry *string `json:"filterCountry,omitempty"` - FilterPlanCode *string `json:"filterPlanCode,omitempty"` - MatchedTerms *[]string `json:"matchedTerms,omitempty"` - MinDiskGb *int32 `json:"minDiskGb,omitempty"` - MinRamGb *int32 `json:"minRamGb,omitempty"` - MinVcpus *int32 `json:"minVcpus,omitempty"` - - // Parser Parser implementation id, e.g. "word_matcher" or future "llm". - Parser *string `json:"parser,omitempty"` -} - -// V1MarketplaceSearchPlanPriceSummary defines model for v1MarketplaceSearchPlanPriceSummary. -type V1MarketplaceSearchPlanPriceSummary struct { - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - Currency *string `json:"currency,omitempty"` - - // FreeUnits Included free units (e.g. bandwidth GB). Used for bandwidth summaries in search. - FreeUnits *int32 `json:"freeUnits,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - MetricName *string `json:"metricName,omitempty"` - - // OveragePrice Overage unit price as decimal string (same precision as PlanPrice.overage_price). - OveragePrice *string `json:"overagePrice,omitempty"` - - // PricingFormula Percentage / formula pricing for add-ons (e.g. backup = % of VM price). - PricingFormula *map[string]interface{} `json:"pricingFormula,omitempty"` - PricingModel *V1PricingModel `json:"pricingModel,omitempty"` - ProductType *V1ProductType `json:"productType,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` - UnitName *string `json:"unitName,omitempty"` -} - -// V1MarketplaceSearchResult defines model for v1MarketplaceSearchResult. -type V1MarketplaceSearchResult struct { - AddonPrices *[]V1MarketplaceSearchPlanPriceSummary `json:"addonPrices,omitempty"` - - // BandwidthPrices Bandwidth plan prices (egress/ingress) with free units + overage for search UI. - BandwidthPrices *[]V1MarketplaceSearchPlanPriceSummary `json:"bandwidthPrices,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - DdosProvider *string `json:"ddosProvider,omitempty"` - DiskGb *int32 `json:"diskGb,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanPrice *V1MarketplaceSearchPlanPriceSummary `json:"planPrice,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - RamGb *int32 `json:"ramGb,omitempty"` - Rating *float32 `json:"rating,omitempty"` - RegionCity *string `json:"regionCity,omitempty"` - RegionCountry *string `json:"regionCountry,omitempty"` - RegionId *string `json:"regionId,omitempty"` - TotalReviews *int32 `json:"totalReviews,omitempty"` - Vcpus *int32 `json:"vcpus,omitempty"` -} - -// V1Metadata defines model for v1Metadata. -type V1Metadata struct { - BuildBranch *string `json:"buildBranch,omitempty"` - BuildCommit *string `json:"buildCommit,omitempty"` - BuildDate *string `json:"buildDate,omitempty"` - BuildTag *string `json:"buildTag,omitempty"` - Name *string `json:"name,omitempty"` - Version *string `json:"version,omitempty"` - VersionDetails *string `json:"versionDetails,omitempty"` -} - -// V1Metric defines model for v1Metric. -type V1Metric struct { - AggregationType *V1AggregationType `json:"aggregationType,omitempty"` - Billable *bool `json:"billable,omitempty"` - Code *string `json:"code,omitempty"` - Description *string `json:"description,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - MetricType *V1MetricType `json:"metricType,omitempty"` - Name *string `json:"name,omitempty"` - Recurring *bool `json:"recurring,omitempty"` - RetentionDays *int32 `json:"retentionDays,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - Unit *string `json:"unit,omitempty"` - UnitPlural *string `json:"unitPlural,omitempty"` -} - -// V1MetricAggregation defines model for v1MetricAggregation. -type V1MetricAggregation string - -// V1MetricType defines model for v1MetricType. -type V1MetricType string - -// V1MetricsWriteCredential defines model for v1MetricsWriteCredential. -type V1MetricsWriteCredential struct { - AgentId *string `json:"agentId,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - Id *string `json:"id,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - PublicId *string `json:"publicId,omitempty"` - RevokedAt *time.Time `json:"revokedAt,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` -} - -// V1Network defines model for v1Network. -type V1Network struct { - Description *string `json:"description,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - Id *string `json:"id,omitempty"` - - // MacAddressPrefix First 3 octets for MAC allocation within this network (e.g. BC:24:11). Default: BC:24:11. - MacAddressPrefix *string `json:"macAddressPrefix,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - Nodes *[]V1NetworkNode `json:"nodes,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1NetworkNode defines model for v1NetworkNode. -type V1NetworkNode struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1Node defines model for v1Node. -type V1Node struct { - // BackupStorageCompression Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node). - BackupStorageCompression *V1BackupStorageCompression `json:"backupStorageCompression,omitempty"` - BackupStorageDestination *string `json:"backupStorageDestination,omitempty"` - - // ComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated - // (docs/README-DEDICATED-CPU-CORES.md, design decision D1). - // - // - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. - // - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). - ComputeType *V1NodeComputeType `json:"computeType,omitempty"` - - // CpuCatalogSupported True when the host CPU model matches a cpu_catalog row with is_supported. - // False when the model is missing, unmatched, or matched but not supported. - CpuCatalogSupported *bool `json:"cpuCatalogSupported,omitempty"` - CpuOverallocatePercent *int32 `json:"cpuOverallocatePercent,omitempty"` - - // HasCpuTopology True when a dedicated node has a parsed CPU topology document stored - // (required before dedicated preflight can pass). - HasCpuTopology *bool `json:"hasCpuTopology,omitempty"` - Id *string `json:"id,omitempty"` - Inventory *V1NodeInventory `json:"inventory,omitempty"` - MaintenanceMode *bool `json:"maintenanceMode,omitempty"` - MemoryOverallocatePercent *int32 `json:"memoryOverallocatePercent,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - - // NetworkBridge Node provisioning settings (copied into ProxmoxVM CR at generation time) - // Proxmox Linux bridge for VM primary NIC (e.g. vmbr0). Default: vmbr0. - NetworkBridge *string `json:"networkBridge,omitempty"` - - // NetworkId Network ID this node is assigned to (optional) - NetworkId *string `json:"networkId,omitempty"` - - // NetworkModel Proxmox NIC model for primary NIC (virtio, e1000, ...). Default: virtio. - NetworkModel *string `json:"networkModel,omitempty"` - - // NetworkName Proxmox net device key for primary NIC (e.g. net0). Default: net0. - NetworkName *string `json:"networkName,omitempty"` - - // NetworkVlanId 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged. - NetworkVlanId *int32 `json:"networkVlanId,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Platform *string `json:"platform,omitempty"` - Region *string `json:"region,omitempty"` - ServiceStatus *V1ServiceStatus `json:"serviceStatus,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - StorageOverallocatePercent *int32 `json:"storageOverallocatePercent,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - - // VmStorageDestination Proxmox storage ID for new VM root disks (e.g. local-lvm). - VmStorageDestination *string `json:"vmStorageDestination,omitempty"` - VmidSeed *int32 `json:"vmidSeed,omitempty"` -} - -// V1NodeCPUMapCPU defines model for v1NodeCPUMapCPU. -type V1NodeCPUMapCPU struct { - // Core Physical core id (unique within a socket). - Core *int32 `json:"core,omitempty"` - - // Cpu Host logical CPU id (the affinity bit). - Cpu *int32 `json:"cpu,omitempty"` - - // CpuStatus Occupancy status of one host logical CPU (affinity bit). - // - // - NODE_CPU_STATUS_ALLOCATED_NR: Allocated to a NodeRings VM (vm_id/vm_hostname set). - // - NODE_CPU_STATUS_PINNED_FOREIGN: Pinned by a foreign (non-NodeRings) guest per exporter observation. - // - NODE_CPU_STATUS_DRIFT: DB expectation and exporter observation disagree for this CPU. - CpuStatus *V1NodeCPUStatus `json:"cpuStatus,omitempty"` - Numa *int32 `json:"numa,omitempty"` - - // Siblings Full SMT sibling set including this CPU. - Siblings *[]int32 `json:"siblings,omitempty"` - Socket *int32 `json:"socket,omitempty"` - VmHostname *string `json:"vmHostname,omitempty"` - - // VmId Set when cpu_status is ALLOCATED_NR. - VmId *string `json:"vmId,omitempty"` -} - -// V1NodeCPUMapNUMA defines model for v1NodeCPUMapNUMA. -type V1NodeCPUMapNUMA struct { - FreeCores *int32 `json:"freeCores,omitempty"` - Id *int32 `json:"id,omitempty"` - - // MemoryAllocatedMb Memory attributed to NodeRings VMs placed on this NUMA node. - MemoryAllocatedMb *string `json:"memoryAllocatedMb,omitempty"` - MemoryEstimated *bool `json:"memoryEstimated,omitempty"` - MemoryFreeMb *string `json:"memoryFreeMb,omitempty"` - MemoryMb *string `json:"memoryMb,omitempty"` - - // MemoryReservedMb Host reserve withheld from VMs on this NUMA node. - MemoryReservedMb *string `json:"memoryReservedMb,omitempty"` - Sockets *[]int32 `json:"sockets,omitempty"` - - // TotalCores Logical CPU (vCPU) counts on this NUMA node — sellable capacity units. - TotalCores *int32 `json:"totalCores,omitempty"` -} - -// V1NodeCPUStatus Occupancy status of one host logical CPU (affinity bit). -// -// - NODE_CPU_STATUS_ALLOCATED_NR: Allocated to a NodeRings VM (vm_id/vm_hostname set). -// - NODE_CPU_STATUS_PINNED_FOREIGN: Pinned by a foreign (non-NodeRings) guest per exporter observation. -// - NODE_CPU_STATUS_DRIFT: DB expectation and exporter observation disagree for this CPU. -type V1NodeCPUStatus string - -// V1NodeComputeType Compute product hosted by a node. Exclusive: a node is shared XOR dedicated -// (docs/README-DEDICATED-CPU-CORES.md, design decision D1). -// -// - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default. -// - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation). -type V1NodeComputeType string - -// V1NodeInventory defines model for v1NodeInventory. -type V1NodeInventory struct { - CpuCore *int32 `json:"cpuCore,omitempty"` - CpuCoreAllocated *int32 `json:"cpuCoreAllocated,omitempty"` - CpuType *V1CPUType `json:"cpuType,omitempty"` - Memory *int32 `json:"memory,omitempty"` - MemoryAllocated *int32 `json:"memoryAllocated,omitempty"` - StoragePools *[]V1StoragePool `json:"storagePools,omitempty"` -} - -// V1NodePlacementPolicy defines model for v1NodePlacementPolicy. -type V1NodePlacementPolicy struct { - DefaultStrategy *V1NodePlacementStrategy `json:"defaultStrategy,omitempty"` - RegionOverrides *[]V1NodePlacementRegionOverride `json:"regionOverrides,omitempty"` -} - -// V1NodePlacementRegionOverride defines model for v1NodePlacementRegionOverride. -type V1NodePlacementRegionOverride struct { - RegionId *string `json:"regionId,omitempty"` - Strategy *V1NodePlacementStrategy `json:"strategy,omitempty"` -} - -// V1NodePlacementStrategy defines model for v1NodePlacementStrategy. -type V1NodePlacementStrategy string - -// V1NodeWithExpandedRegion defines model for v1NodeWithExpandedRegion. -type V1NodeWithExpandedRegion struct { - ExpandedRegion *V1Region `json:"expandedRegion,omitempty"` - Node *V1Node `json:"node,omitempty"` -} - -// V1OAuth2Client defines model for v1OAuth2Client. -type V1OAuth2Client struct { - ClientId *string `json:"clientId,omitempty"` - ClientType *string `json:"clientType,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - Name *string `json:"name,omitempty"` - RedirectUris *[]string `json:"redirectUris,omitempty"` - RequiresPkce *bool `json:"requiresPkce,omitempty"` - Scopes *[]string `json:"scopes,omitempty"` -} - -// V1OperationStatus defines model for v1OperationStatus. -type V1OperationStatus string - -// V1Organization defines model for v1Organization. -type V1Organization struct { - Asn *string `json:"asn,omitempty"` - - // DdosProvider DDoS mitigation partner slug (e.g. "none"). Provider organizations only. - DdosProvider *string `json:"ddosProvider,omitempty"` - Description *string `json:"description,omitempty"` - Domains *[]string `json:"domains,omitempty"` - EnforceMfa *bool `json:"enforceMfa,omitempty"` - EnforceSso *bool `json:"enforceSso,omitempty"` - EnforceVerifiedDomain *bool `json:"enforceVerifiedDomain,omitempty"` - Groups *[]string `json:"groups,omitempty"` - Id *string `json:"id,omitempty"` - - // IsVerified Provider marketplace / admin verification (first-class fields; not part of metadata). - IsVerified *bool `json:"isVerified,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - - // Onboarded True after the provider has completed the self-serve onboarding checklist once. - Onboarded *bool `json:"onboarded,omitempty"` - OrganizationRoles *[]string `json:"organizationRoles,omitempty"` - Owner *string `json:"owner,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - - // HypervisorDriver Derived from registered agents (not stored on the organization). UNSPECIFIED until an agent is registered with a hypervisor driver; immutable after that. - HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` - - // ProviderWebsiteUrl Public storefront / company website (http or https). Provider organizations only. - ProviderWebsiteUrl *string `json:"providerWebsiteUrl,omitempty"` - ReviewRequested *bool `json:"reviewRequested,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Subscriptions *[]string `json:"subscriptions,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - Type *V1OrganizationType `json:"type,omitempty"` -} - -// V1OrganizationDetails defines model for v1OrganizationDetails. -type V1OrganizationDetails struct { - Name *string `json:"name,omitempty"` - OrgType *string `json:"orgType,omitempty"` -} - -// V1OrganizationType defines model for v1OrganizationType. -type V1OrganizationType string - -// V1Payment defines model for v1Payment. -type V1Payment struct { - Amount *string `json:"amount,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Currency *string `json:"currency,omitempty"` - FailureCode *string `json:"failureCode,omitempty"` - FailureReason *string `json:"failureReason,omitempty"` - Id *string `json:"id,omitempty"` - InvoiceId *string `json:"invoiceId,omitempty"` - PaymentMethodId *string `json:"paymentMethodId,omitempty"` - PaymentProvider *string `json:"paymentProvider,omitempty"` - PaymentStatus *V1PaymentStatus `json:"paymentStatus,omitempty"` - ProcessedAt *time.Time `json:"processedAt,omitempty"` - RefundAmount *string `json:"refundAmount,omitempty"` - RefundReason *string `json:"refundReason,omitempty"` - RefundedAt *time.Time `json:"refundedAt,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - TransactionId *string `json:"transactionId,omitempty"` -} - -// V1PaymentMethod defines model for v1PaymentMethod. -type V1PaymentMethod struct { - // Brand Card brand (for cards): "visa", "mastercard", etc. - Brand *string `json:"brand,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - CustomerId *string `json:"customerId,omitempty"` - ExpiryMonth *int32 `json:"expiryMonth,omitempty"` - ExpiryYear *int32 `json:"expiryYear,omitempty"` - Id *string `json:"id,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Last4 *string `json:"last4,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - - // OrganizationId Organization that owns this payment method - OrganizationId *string `json:"organizationId,omitempty"` - PaymentProviderPaymentMethodId *string `json:"paymentProviderPaymentMethodId,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - - // Type Payment method type: "card", "paypal", etc. - Type *string `json:"type,omitempty"` -} - -// V1PaymentStatus defines model for v1PaymentStatus. -type V1PaymentStatus string - -// V1PayoutConfiguration defines model for v1PayoutConfiguration. -type V1PayoutConfiguration struct { - Enabled *bool `json:"enabled,omitempty"` - ScheduleTime *string `json:"scheduleTime,omitempty"` - ScheduleTimezone *string `json:"scheduleTimezone,omitempty"` - - // ScheduleType - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds - // - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time - // - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time - // - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time - ScheduleType *V1PayoutScheduleType `json:"scheduleType,omitempty"` -} - -// V1PayoutInvoice defines model for v1PayoutInvoice. -type V1PayoutInvoice struct { - Amount *string `json:"amount,omitempty"` - CompletedAt *time.Time `json:"completedAt,omitempty"` - ConnectAccountId *string `json:"connectAccountId,omitempty"` - Currency *string `json:"currency,omitempty"` - FailedAt *time.Time `json:"failedAt,omitempty"` - FailureCode *string `json:"failureCode,omitempty"` - FailureReason *string `json:"failureReason,omitempty"` - Id *string `json:"id,omitempty"` - InvoiceIds *[]string `json:"invoiceIds,omitempty"` - LastRetryAt *time.Time `json:"lastRetryAt,omitempty"` - MaxRetries *int32 `json:"maxRetries,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - PaymentProvider *string `json:"paymentProvider,omitempty"` - PayoutStatus *V1PayoutStatus `json:"payoutStatus,omitempty"` - PlatformFeeAmount *string `json:"platformFeeAmount,omitempty"` - ProcessedAt *time.Time `json:"processedAt,omitempty"` - ProviderOrganizationId *string `json:"providerOrganizationId,omitempty"` - RetryCount *int32 `json:"retryCount,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - TransferTransactionId *string `json:"transferTransactionId,omitempty"` -} - -// V1PayoutScheduleType - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds -// - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time -// - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time -// - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time -type V1PayoutScheduleType string - -// V1PayoutStatus defines model for v1PayoutStatus. -type V1PayoutStatus string - -// V1Permission defines model for v1Permission. -type V1Permission struct { - HttpMethod *string `json:"httpMethod,omitempty"` - Id *string `json:"id,omitempty"` - MethodName *string `json:"methodName,omitempty"` - Scope *string `json:"scope,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} - -// V1Plan defines model for v1Plan. -type V1Plan struct { - AssetCategory *V1AssetCategory `json:"assetCategory,omitempty"` - AssetType *V1AssetType `json:"assetType,omitempty"` - AutoRenew *bool `json:"autoRenew,omitempty"` - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - Code *string `json:"code,omitempty"` - Currency *string `json:"currency,omitempty"` - Description *string `json:"description,omitempty"` - EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"` - EffectiveUntil *time.Time `json:"effectiveUntil,omitempty"` - EndUser *V1EndUser `json:"endUser,omitempty"` - ExternalBillingId *string `json:"externalBillingId,omitempty"` - GracePeriodDays *int32 `json:"gracePeriodDays,omitempty"` - Id *string `json:"id,omitempty"` - IsPublic *bool `json:"isPublic,omitempty"` - MaxSubscribers *int32 `json:"maxSubscribers,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - - // NodeIds Nodes explicitly assigned to this plan (placement / preflight candidates). - NodeIds *[]string `json:"nodeIds,omitempty"` - - // OnCreditExhaustion Provider choice when client prepaid credits are exhausted. - // Values: "suspend" (default), "continue_with_dunning". Relevant for usage-based Offerings. - OnCreditExhaustion *string `json:"onCreditExhaustion,omitempty"` - - // OrganizationName Name of the organization that owns this plan - OrganizationName *string `json:"organizationName,omitempty"` - PlanCategory *V1PlanCategory `json:"planCategory,omitempty"` - PlanPrices *[]V1PlanPrice `json:"planPrices,omitempty"` - PlanType *V1PlanType `json:"planType,omitempty"` - RegionIds *[]string `json:"regionIds,omitempty"` - RequiresManualApproval *bool `json:"requiresManualApproval,omitempty"` - RulesetIds *[]string `json:"rulesetIds,omitempty"` - SetupFee *string `json:"setupFee,omitempty"` - SlaHours *int32 `json:"slaHours,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionIds *[]string `json:"subscriptionIds,omitempty"` - TemplatePlanId *string `json:"templatePlanId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - TrialAvailable *bool `json:"trialAvailable,omitempty"` - TrialDays *int32 `json:"trialDays,omitempty"` -} - -// V1PlanCategory defines model for v1PlanCategory. -type V1PlanCategory string - -// V1PlanLiveValidationBenchmarkView defines model for v1PlanLiveValidationBenchmarkView. -type V1PlanLiveValidationBenchmarkView struct { - Cpu *map[string]interface{} `json:"cpu,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - Id *string `json:"id,omitempty"` - Memory *map[string]interface{} `json:"memory,omitempty"` - Misc *map[string]interface{} `json:"misc,omitempty"` - Network *map[string]interface{} `json:"network,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - Passed *bool `json:"passed,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanId *string `json:"planId,omitempty"` - Storage *map[string]interface{} `json:"storage,omitempty"` -} - -// V1PlanLiveValidationNodeView defines model for v1PlanLiveValidationNodeView. -type V1PlanLiveValidationNodeView struct { - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - RegionId *string `json:"regionId,omitempty"` - RegionName *string `json:"regionName,omitempty"` -} - -// V1PlanLiveValidationView defines model for v1PlanLiveValidationView. -type V1PlanLiveValidationView struct { - CheckedAt *time.Time `json:"checkedAt,omitempty"` - Checks *[]V1LiveValidationCheckView `json:"checks,omitempty"` - IncludeBenchmarking *bool `json:"includeBenchmarking,omitempty"` - MarketplaceLiveValidated *bool `json:"marketplaceLiveValidated,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - Passed *bool `json:"passed,omitempty"` - Phase *string `json:"phase,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanId *string `json:"planId,omitempty"` - RegionName *string `json:"regionName,omitempty"` - StartedAt *time.Time `json:"startedAt,omitempty"` - Status *string `json:"status,omitempty"` - SummaryNote *string `json:"summaryNote,omitempty"` -} - -// V1PlanPreflightView defines model for v1PlanPreflightView. -type V1PlanPreflightView struct { - BillingType *V1BillingType `json:"billingType,omitempty"` - Infrastructure *[]V1PreflightInfrastructureView `json:"infrastructure,omitempty"` - MarketplaceReady *bool `json:"marketplaceReady,omitempty"` - PlanChecks *[]V1PreflightCheckView `json:"planChecks,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanName *string `json:"planName,omitempty"` - RegionLabels *[]string `json:"regionLabels,omitempty"` - SummaryIssues *[]string `json:"summaryIssues,omitempty"` - SummaryNote *string `json:"summaryNote,omitempty"` -} - -// V1PlanPrice defines model for v1PlanPrice. -type V1PlanPrice struct { - BillingInterval *int32 `json:"billingInterval,omitempty"` - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - ChargeTiming *V1ChargeTiming `json:"chargeTiming,omitempty"` - Currency *string `json:"currency,omitempty"` - EffectiveFrom *time.Time `json:"effectiveFrom,omitempty"` - EffectiveUntil *time.Time `json:"effectiveUntil,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - FreeAmount *string `json:"freeAmount,omitempty"` - FreeUnits *int32 `json:"freeUnits,omitempty"` - Id *string `json:"id,omitempty"` - MaxQuantity *int32 `json:"maxQuantity,omitempty"` - MaximumCharge *string `json:"maximumCharge,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Metered *bool `json:"metered,omitempty"` - MetricAggregation *V1MetricAggregation `json:"metricAggregation,omitempty"` - MetricIds *[]string `json:"metricIds,omitempty"` - MetricName *string `json:"metricName,omitempty"` - MinQuantity *int32 `json:"minQuantity,omitempty"` - - // MinimumCharge Decimal string with 6 decimal places precision - MinimumCharge *string `json:"minimumCharge,omitempty"` - OveragePrice *string `json:"overagePrice,omitempty"` - PackagePrice *string `json:"packagePrice,omitempty"` - PackageSize *int32 `json:"packageSize,omitempty"` - ParentPlanId *string `json:"parentPlanId,omitempty"` - PlanPrices *[]V1Plan `json:"planPrices,omitempty"` - PricingFormula *map[string]interface{} `json:"pricingFormula,omitempty"` - PricingModel *V1PricingModel `json:"pricingModel,omitempty"` - PricingTierIds *[]string `json:"pricingTierIds,omitempty"` - ProductType *V1ProductType `json:"productType,omitempty"` - Prorate *bool `json:"prorate,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionTemplateIds *[]string `json:"subscriptionTemplateIds,omitempty"` - TierMode *V1TierMode `json:"tierMode,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` - UnitName *string `json:"unitName,omitempty"` - UnitQuantity *int32 `json:"unitQuantity,omitempty"` -} - -// V1PlanPriceInput defines model for v1PlanPriceInput. -type V1PlanPriceInput struct { - AddonCode *string `json:"addonCode,omitempty"` - BillingInterval *int32 `json:"billingInterval,omitempty"` - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - ChargeTiming *V1ChargeTiming `json:"chargeTiming,omitempty"` - FreeUnits *int32 `json:"freeUnits,omitempty"` - MaximumCharge *string `json:"maximumCharge,omitempty"` - MetricAggregation *V1MetricAggregation `json:"metricAggregation,omitempty"` - MetricName *string `json:"metricName,omitempty"` - MinimumCharge *string `json:"minimumCharge,omitempty"` - OveragePrice *string `json:"overagePrice,omitempty"` - PackagePrice *string `json:"packagePrice,omitempty"` - PackageSize *int32 `json:"packageSize,omitempty"` - PricingFormula *map[string]interface{} `json:"pricingFormula,omitempty"` - PricingModel *V1PricingModel `json:"pricingModel,omitempty"` - ProductType *V1ProductType `json:"productType,omitempty"` - Prorate *bool `json:"prorate,omitempty"` - Tiers *[]V1PricingTierInput `json:"tiers,omitempty"` - - // UnitAmount Decimal string with 6 decimal places precision - UnitAmount *string `json:"unitAmount,omitempty"` - UnitName *string `json:"unitName,omitempty"` - UnitQuantity *int32 `json:"unitQuantity,omitempty"` -} - -// V1PlanPriceOverride PlanPriceOverride allows overriding specific fields for plan prices when -// cloning. Either metric_id (for usage-based pricing) or plan_price_id (for -// fixed pricing) must be provided to identify which plan price to override. -type V1PlanPriceOverride struct { - FreeUnits *int32 `json:"freeUnits,omitempty"` - MaximumCharge *string `json:"maximumCharge,omitempty"` - MetricId *string `json:"metricId,omitempty"` - MinimumCharge *string `json:"minimumCharge,omitempty"` - PlanPriceId *string `json:"planPriceId,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` -} - -// V1PlanPricingConfig defines model for v1PlanPricingConfig. -type V1PlanPricingConfig struct { - AssetCategory *string `json:"assetCategory,omitempty"` - AssetType *string `json:"assetType,omitempty"` - Currency *string `json:"currency,omitempty"` - PlanName *string `json:"planName,omitempty"` - Prices *[]V1PlanPriceInput `json:"prices,omitempty"` -} - -// V1PlanRegion Plan region information (simplified for marketplace). -// Used by ListProviders (ProviderInfo.plan_regions), GetProvider (ProviderCatalogPlan.regions), -// and encoded by the same backend helpers as plan-linked region edges. -type V1PlanRegion struct { - City *string `json:"city,omitempty"` - Country *string `json:"country,omitempty"` - Latitude *float64 `json:"latitude,omitempty"` - Longitude *float64 `json:"longitude,omitempty"` - RegionId *string `json:"regionId,omitempty"` -} - -// V1PlanType defines model for v1PlanType. -type V1PlanType string - -// V1Platform defines model for v1Platform. -type V1Platform struct { - AgentId *string `json:"agentId,omitempty"` - Driver *V1PlatformDriver `json:"driver,omitempty"` - EndpointUrl *string `json:"endpointUrl,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - ServiceStatus *V1ServiceStatus `json:"serviceStatus,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1PlatformDriver defines model for v1PlatformDriver. -type V1PlatformDriver string - -// V1PlatformVersions PlatformVersions is the install matrix for provider CLI tooling and cluster components. -type V1PlatformVersions struct { - Components *[]V1ComponentVersion `json:"components,omitempty"` - - // SchemaVersion Schema version for forward-compatible clients (currently "1"). - SchemaVersion *string `json:"schemaVersion,omitempty"` -} - -// V1Prefix defines model for v1Prefix. -type V1Prefix struct { - AllocationStrategy *V1AllocationStrategy `json:"allocationStrategy,omitempty"` - Cidr *string `json:"cidr,omitempty"` - Description *string `json:"description,omitempty"` - - // Gateway Default gateway IP (e.g., 10.0.0.1). Must be within the prefix CIDR. - Gateway *string `json:"gateway,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - - // NetworkId Network this prefix belongs to (for DNS servers). Optional. - NetworkId *string `json:"networkId,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - ReservedIps *[]string `json:"reservedIps,omitempty"` - ReservedPrefixes *[]string `json:"reservedPrefixes,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - VmAssignmentPrefixLength *int32 `json:"vmAssignmentPrefixLength,omitempty"` -} - -// V1PreflightAgentView defines model for v1PreflightAgentView. -type V1PreflightAgentView struct { - Checks *[]V1PreflightCheckView `json:"checks,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Platform *V1PreflightPlatformView `json:"platform,omitempty"` -} - -// V1PreflightCheckView defines model for v1PreflightCheckView. -type V1PreflightCheckView struct { - Code *string `json:"code,omitempty"` - Note *string `json:"note,omitempty"` - Passed *bool `json:"passed,omitempty"` - SubChecks *[]V1PreflightCheckView `json:"subChecks,omitempty"` -} - -// V1PreflightInfrastructureView defines model for v1PreflightInfrastructureView. -type V1PreflightInfrastructureView struct { - Agent *V1PreflightAgentView `json:"agent,omitempty"` - Passed *bool `json:"passed,omitempty"` -} - -// V1PreflightNodeView defines model for v1PreflightNodeView. -type V1PreflightNodeView struct { - Checks *[]V1PreflightCheckView `json:"checks,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` -} - -// V1PreflightPlatformView defines model for v1PreflightPlatformView. -type V1PreflightPlatformView struct { - Checks *[]V1PreflightCheckView `json:"checks,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Node *V1PreflightNodeView `json:"node,omitempty"` -} - -// V1PricingCalculationConfig defines model for v1PricingCalculationConfig. -type V1PricingCalculationConfig struct { - CapHours *float64 `json:"capHours,omitempty"` - CouponValue *string `json:"couponValue,omitempty"` - DiscountPercent *float64 `json:"discountPercent,omitempty"` - OverageRates *map[string]float64 `json:"overageRates,omitempty"` - TaxRate *float64 `json:"taxRate,omitempty"` -} - -// V1PricingLineItem defines model for v1PricingLineItem. -type V1PricingLineItem struct { - Addons *string `json:"addons,omitempty"` - Base *string `json:"base,omitempty"` - Currency *string `json:"currency,omitempty"` - InstanceLabel *string `json:"instanceLabel,omitempty"` - Quantity *int32 `json:"quantity,omitempty"` - Subtotal *string `json:"subtotal,omitempty"` -} - -// V1PricingModel defines model for v1PricingModel. -type V1PricingModel string - -// V1PricingTierInput defines model for v1PricingTierInput. -type V1PricingTierInput struct { - EndExclusive *float64 `json:"endExclusive,omitempty"` - FlatFee *bool `json:"flatFee,omitempty"` - FlatFeeAmount *string `json:"flatFeeAmount,omitempty"` - StartInclusive *float64 `json:"startInclusive,omitempty"` - TierName *string `json:"tierName,omitempty"` - TierOrder *int32 `json:"tierOrder,omitempty"` - TierType *V1TierMode `json:"tierType,omitempty"` - UnitAmount *string `json:"unitAmount,omitempty"` -} - -// V1ProductType defines model for v1ProductType. -type V1ProductType string - -// V1ProviderCatalogPlan One public plan offering for a provider (GetProvider catalog). Reuses PlanRegion + PlanPrice -// from the same marketplace encoding as ListProviders rows. -type V1ProviderCatalogPlan struct { - BillingType *V1BillingType `json:"billingType,omitempty"` - - // ComputeCategory - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) - // - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - ComputeCategory *V1ComputeCategory `json:"computeCategory,omitempty"` - - // ComputeType - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) - // - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - // - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - // - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - // - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - // - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - // - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - // - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - // - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - ComputeType *V1ComputeType `json:"computeType,omitempty"` - PlanCode *string `json:"planCode,omitempty"` - PlanDescription *string `json:"planDescription,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanName *string `json:"planName,omitempty"` - PlanPrices *[]V1PlanPrice `json:"planPrices,omitempty"` - Regions *[]V1PlanRegion `json:"regions,omitempty"` -} - -// V1ProviderCustomerAssetRow defines model for v1ProviderCustomerAssetRow. -type V1ProviderCustomerAssetRow struct { - ActivityStatus *V1ProviderCustomerVmActivityStatus `json:"activityStatus,omitempty"` - AssetType *V1ProviderCustomerAssetType `json:"assetType,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - - // DeleteTime Set when the VM was deleted or terminated (soft-delete). - DeleteTime *time.Time `json:"deleteTime,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - Id *string `json:"id,omitempty"` - Ipv4 *string `json:"ipv4,omitempty"` - Ipv6 *string `json:"ipv6,omitempty"` - - // Os OS/distro label from the VM template (e.g. ubuntu-22). - Os *string `json:"os,omitempty"` - - // PlanCode Plan code (e.g. DC-HF-32C-…) from the subscription plan. - PlanCode *string `json:"planCode,omitempty"` - PlanName *string `json:"planName,omitempty"` - - // Region Region label, e.g. "Frankfurt, DE". - Region *string `json:"region,omitempty"` - - // RegionId UUID of the node's region (same dimension as ListProviderCustomerAssetsRequest.region_id filter). - RegionId *string `json:"regionId,omitempty"` - - // Spec Human-readable size, e.g. "2 vCPU · 4096 MB RAM · 80 GB disk". - Spec *string `json:"spec,omitempty"` -} - -// V1ProviderCustomerAssetType defines model for v1ProviderCustomerAssetType. -type V1ProviderCustomerAssetType string - -// V1ProviderCustomerRow defines model for v1ProviderCustomerRow. -type V1ProviderCustomerRow struct { - // AddressSummary Best-effort summary from organization metadata (billing/address keys). - AddressSummary *string `json:"addressSummary,omitempty"` - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - LastLoginTime *time.Time `json:"lastLoginTime,omitempty"` - LastName *string `json:"lastName,omitempty"` - - // OrganizationEnforceMfa When the client organization requires MFA for its members. - OrganizationEnforceMfa *bool `json:"organizationEnforceMfa,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - VmActivityStatus *V1ProviderCustomerVmActivityStatus `json:"vmActivityStatus,omitempty"` -} - -// V1ProviderCustomerVmActivityStatus defines model for v1ProviderCustomerVmActivityStatus. -type V1ProviderCustomerVmActivityStatus string - -// V1ProviderDashboardAddonCatalogRow defines model for v1ProviderDashboardAddonCatalogRow. -type V1ProviderDashboardAddonCatalogRow struct { - ActiveSubscriptionCount *int32 `json:"activeSubscriptionCount,omitempty"` - AddonId *string `json:"addonId,omitempty"` - AddonType *V1AddonType `json:"addonType,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - Code *string `json:"code,omitempty"` - DistinctCustomerOrgCount *int32 `json:"distinctCustomerOrgCount,omitempty"` - DistinctVmCount *int32 `json:"distinctVmCount,omitempty"` - Name *string `json:"name,omitempty"` - PricingModel *V1PricingModel `json:"pricingModel,omitempty"` -} - -// V1ProviderDashboardNodeRollup defines model for v1ProviderDashboardNodeRollup. -type V1ProviderDashboardNodeRollup struct { - CapacityCpuCores *int32 `json:"capacityCpuCores,omitempty"` - CapacityMemoryMb *string `json:"capacityMemoryMb,omitempty"` - CpuOverallocatePercent *int32 `json:"cpuOverallocatePercent,omitempty"` - MemoryOverallocatePercent *int32 `json:"memoryOverallocatePercent,omitempty"` - NodeCpuCoreAllocated *int32 `json:"nodeCpuCoreAllocated,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - NodeMemoryAllocatedMb *string `json:"nodeMemoryAllocatedMb,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - PlatformId *string `json:"platformId,omitempty"` - PlatformName *string `json:"platformName,omitempty"` - RegionId *string `json:"regionId,omitempty"` - SoldCpuCores *string `json:"soldCpuCores,omitempty"` - SoldMemoryMb *string `json:"soldMemoryMb,omitempty"` - SoldStorageGb *string `json:"soldStorageGb,omitempty"` - StorageOverallocatePercent *int32 `json:"storageOverallocatePercent,omitempty"` - VmCount *int32 `json:"vmCount,omitempty"` -} - -// V1ProviderDashboardPlanSubscriptionStat defines model for v1ProviderDashboardPlanSubscriptionStat. -type V1ProviderDashboardPlanSubscriptionStat struct { - ActiveSubscriptionCount *int32 `json:"activeSubscriptionCount,omitempty"` - AssetType *V1AssetType `json:"assetType,omitempty"` - BillingPeriod *V1BillingPeriod `json:"billingPeriod,omitempty"` - BillingType *V1BillingType `json:"billingType,omitempty"` - Code *string `json:"code,omitempty"` - DistinctCustomerOrgCount *int32 `json:"distinctCustomerOrgCount,omitempty"` - Name *string `json:"name,omitempty"` - PlanId *string `json:"planId,omitempty"` - VmAssetCount *int32 `json:"vmAssetCount,omitempty"` -} - -// V1ProviderDashboardPlansTabStats defines model for v1ProviderDashboardPlansTabStats. -type V1ProviderDashboardPlansTabStats struct { - KpiActiveAddonSubscriptionsSum *int32 `json:"kpiActiveAddonSubscriptionsSum,omitempty"` - KpiActiveSubscriptionsSum *int32 `json:"kpiActiveSubscriptionsSum,omitempty"` - KpiPlanCount *int32 `json:"kpiPlanCount,omitempty"` - KpiVmAssetsSum *int32 `json:"kpiVmAssetsSum,omitempty"` -} - -// V1ProviderDetails GetProvider payload: nested ProviderInfo shares the same core fields as list rows; extended -// fields are provider-wide (website, review breakdown, catalog plans, etc.). -type V1ProviderDetails struct { - AvailablePlans *[]V1ProviderCatalogPlan `json:"availablePlans,omitempty"` - AvailableRegions *[]string `json:"availableRegions,omitempty"` - AvgTicketResponseSeconds *string `json:"avgTicketResponseSeconds,omitempty"` - DdosSolution *string `json:"ddosSolution,omitempty"` - HasIpv6 *bool `json:"hasIpv6,omitempty"` - Provider *V1ProviderInfo `json:"provider,omitempty"` - ReviewBreakdown *V1ProviderReviewBreakdown `json:"reviewBreakdown,omitempty"` - Website *string `json:"website,omitempty"` -} - -// V1ProviderInfo defines model for v1ProviderInfo. -type V1ProviderInfo struct { - // DdosProvider DDoS mitigation partner slug; "none" or empty means no DDoS vendor icon in marketplace. - DdosProvider *string `json:"ddosProvider,omitempty"` - Description *string `json:"description,omitempty"` - HasCapacityInFilteredRegion *bool `json:"hasCapacityInFilteredRegion,omitempty"` - - // Ipv6AvailableInFilteredRegion True when the provider has at least one active IPv6 prefix on a network attached to a node in the filtered region (country + city). - Ipv6AvailableInFilteredRegion *bool `json:"ipv6AvailableInFilteredRegion,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - PlanId *string `json:"planId,omitempty"` - PlanPrices *[]V1PlanPrice `json:"planPrices,omitempty"` - PlanRegions *[]V1PlanRegion `json:"planRegions,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - Rating *float32 `json:"rating,omitempty"` - TotalReviews *int32 `json:"totalReviews,omitempty"` -} - -// V1ProviderOnboardingStep defines model for v1ProviderOnboardingStep. -type V1ProviderOnboardingStep struct { - // ActionPath Deep-link path in the provider console (e.g. "/organization/settings"). - ActionPath *string `json:"actionPath,omitempty"` - - // Code Provider self-serve onboarding checklist (provider orgs only). - Code *V1ProviderOnboardingStepCode `json:"code,omitempty"` - Completed *bool `json:"completed,omitempty"` - Description *string `json:"description,omitempty"` - - // Hint Optional guidance when incomplete (e.g. agent/Proxmox metrics hint). - Hint *string `json:"hint,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1ProviderOnboardingStepCode Provider self-serve onboarding checklist (provider orgs only). -type V1ProviderOnboardingStepCode string - -// V1ProviderReviewBreakdown defines model for v1ProviderReviewBreakdown. -type V1ProviderReviewBreakdown struct { - FiveStar *int32 `json:"fiveStar,omitempty"` - FourStar *int32 `json:"fourStar,omitempty"` - OneStar *int32 `json:"oneStar,omitempty"` - ThreeStar *int32 `json:"threeStar,omitempty"` - TwoStar *int32 `json:"twoStar,omitempty"` -} - -// V1ProviderReviewListItem Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider). -type V1ProviderReviewListItem struct { - Comment *string `json:"comment,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - Id *string `json:"id,omitempty"` - ProviderRepliedAt *time.Time `json:"providerRepliedAt,omitempty"` - ProviderReply *string `json:"providerReply,omitempty"` - StarRating *int32 `json:"starRating,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` -} - -// V1ProviderReviewStarSummary defines model for v1ProviderReviewStarSummary. -type V1ProviderReviewStarSummary struct { - ReviewCount *int32 `json:"reviewCount,omitempty"` - StarRating *int32 `json:"starRating,omitempty"` -} - -// V1PurchaseCreditsRequest defines model for v1PurchaseCreditsRequest. -type V1PurchaseCreditsRequest struct { - Amount *string `json:"amount,omitempty"` - - // PaymentMethodId Optional: payment method ID to charge. If omitted, the org's default - // payment method is used. - PaymentMethodId *string `json:"paymentMethodId,omitempty"` -} - -// V1PurchaseCreditsResponse defines model for v1PurchaseCreditsResponse. -type V1PurchaseCreditsResponse struct { - ClientSecret *string `json:"clientSecret,omitempty"` - CreditPurchaseId *string `json:"creditPurchaseId,omitempty"` - PaymentIntentId *string `json:"paymentIntentId,omitempty"` - RequiresAction *bool `json:"requiresAction,omitempty"` -} - -// V1RecordUsageRequest defines model for v1RecordUsageRequest. -type V1RecordUsageRequest struct { - // EventId For idempotent writes - EventId *string `json:"eventId,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - MetricCode *string `json:"metricCode,omitempty"` - MetricId *string `json:"metricId,omitempty"` - Properties *map[string]interface{} `json:"properties,omitempty"` - - // Quantity Decimal as string - Quantity *string `json:"quantity,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - Timestamp *time.Time `json:"timestamp,omitempty"` -} - -// V1RecordUsageResponse defines model for v1RecordUsageResponse. -type V1RecordUsageResponse struct { - IsDuplicate *bool `json:"isDuplicate,omitempty"` - UsageRecord *V1UsageRecord `json:"usageRecord,omitempty"` -} - -// V1RefreshTokenRequest defines model for v1RefreshTokenRequest. -type V1RefreshTokenRequest struct { - ClientId *string `json:"clientId,omitempty"` - ClientSecret *string `json:"clientSecret,omitempty"` - RefreshToken *string `json:"refreshToken,omitempty"` -} - -// V1Refund defines model for v1Refund. -type V1Refund struct { - Amount *string `json:"amount,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Currency *string `json:"currency,omitempty"` - FailureReason *string `json:"failureReason,omitempty"` - Id *string `json:"id,omitempty"` - PaymentId *string `json:"paymentId,omitempty"` - - // PaymentProvider Payment provider name (e.g., 'stripe', 'paypal') - PaymentProvider *string `json:"paymentProvider,omitempty"` - ProcessedAt *time.Time `json:"processedAt,omitempty"` - ProviderRefundId *string `json:"providerRefundId,omitempty"` - RefundStatus *V1RefundStatus `json:"refundStatus,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1RefundStatus defines model for v1RefundStatus. -type V1RefundStatus string - -// V1RegenerateMfaBackupCodesRequest defines model for v1RegenerateMfaBackupCodesRequest. -type V1RegenerateMfaBackupCodesRequest struct { - Code *string `json:"code,omitempty"` -} - -// V1RegenerateMfaBackupCodesResponse defines model for v1RegenerateMfaBackupCodesResponse. -type V1RegenerateMfaBackupCodesResponse struct { - BackupCodes *[]string `json:"backupCodes,omitempty"` -} - -// V1Region defines model for v1Region. -type V1Region struct { - CityCountry *V1CityCountry `json:"cityCountry,omitempty"` - Datacenter *V1Datacenter `json:"datacenter,omitempty"` - Id *string `json:"id,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1RegionLocation defines model for v1RegionLocation. -type V1RegionLocation struct { - City *string `json:"city,omitempty"` - Country *string `json:"country,omitempty"` -} - -// V1RegisterUserRequest defines model for v1RegisterUserRequest. -type V1RegisterUserRequest struct { - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - LastName *string `json:"lastName,omitempty"` - Password *string `json:"password,omitempty"` - - // TurnstileToken Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled). - TurnstileToken *string `json:"turnstileToken,omitempty"` -} - -// V1ReinstallStatus defines model for v1ReinstallStatus. -type V1ReinstallStatus string - -// V1RemoveAddonResponse defines model for v1RemoveAddonResponse. -type V1RemoveAddonResponse struct { - AddonSubscription *V1AddonSubscription `json:"addonSubscription,omitempty"` -} - -// V1RemovePaymentMethodResponse defines model for v1RemovePaymentMethodResponse. -type V1RemovePaymentMethodResponse struct { - Success *bool `json:"success,omitempty"` -} - -// V1ReplaceRoleForGroupRequest defines model for v1ReplaceRoleForGroupRequest. -type V1ReplaceRoleForGroupRequest struct { - GroupId *string `json:"groupId,omitempty"` - RoleId *string `json:"roleId,omitempty"` -} - -// V1ReplaceRoleForServiceAccountRequest defines model for v1ReplaceRoleForServiceAccountRequest. -type V1ReplaceRoleForServiceAccountRequest struct { - RoleId *string `json:"roleId,omitempty"` - ServiceAccountId *string `json:"serviceAccountId,omitempty"` -} - -// V1ReplaceRoleForUserRequest defines model for v1ReplaceRoleForUserRequest. -type V1ReplaceRoleForUserRequest struct { - RoleId *string `json:"roleId,omitempty"` - UserId *string `json:"userId,omitempty"` -} - -// V1ResendVerificationEmailRequest defines model for v1ResendVerificationEmailRequest. -type V1ResendVerificationEmailRequest struct { - Email *string `json:"email,omitempty"` - - // TurnstileToken Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled). - TurnstileToken *string `json:"turnstileToken,omitempty"` -} - -// V1ResetPasswordRequest defines model for v1ResetPasswordRequest. -type V1ResetPasswordRequest struct { - Email *string `json:"email,omitempty"` - NewPassword *string `json:"newPassword,omitempty"` - ResetToken *string `json:"resetToken,omitempty"` -} - -// V1ResourceInstanceInput defines model for v1ResourceInstanceInput. -type V1ResourceInstanceInput struct { - Addons *[]V1AddonInput `json:"addons,omitempty"` - HoursUsed *float64 `json:"hoursUsed,omitempty"` - Quantity *int32 `json:"quantity,omitempty"` - Region *string `json:"region,omitempty"` - Usage *map[string]float64 `json:"usage,omitempty"` -} - -// V1RestoreStatus defines model for v1RestoreStatus. -type V1RestoreStatus string - -// V1RetryPaymentRequest defines model for v1RetryPaymentRequest. -type V1RetryPaymentRequest struct { - PaymentMethodId *string `json:"paymentMethodId,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` -} - -// V1RetryPaymentResponse defines model for v1RetryPaymentResponse. -type V1RetryPaymentResponse struct { - PaymentStatus *string `json:"paymentStatus,omitempty"` - Subscription *V1Subscription `json:"subscription,omitempty"` - TaskId *string `json:"taskId,omitempty"` - TransactionId *string `json:"transactionId,omitempty"` -} - -// V1RevokeTokenRequest defines model for v1RevokeTokenRequest. -type V1RevokeTokenRequest struct { - ClientId *string `json:"clientId,omitempty"` - Token *string `json:"token,omitempty"` - TokenTypeHint *string `json:"tokenTypeHint,omitempty"` -} - -// V1RoadmapFeatureRequest defines model for v1RoadmapFeatureRequest. -type V1RoadmapFeatureRequest struct { - AssigneeName *string `json:"assigneeName,omitempty"` - AuthorDisplayName *string `json:"authorDisplayName,omitempty"` - CommentCount *int32 `json:"commentCount,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - Product *V1RoadmapProductCategory `json:"product,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *V1RoadmapRequestStatus `json:"status,omitempty"` - StatusChangedAt *time.Time `json:"statusChangedAt,omitempty"` - Title *string `json:"title,omitempty"` - UpvoteCount *int32 `json:"upvoteCount,omitempty"` - UserVote *V1RoadmapVoteType `json:"userVote,omitempty"` - VoteScore *int32 `json:"voteScore,omitempty"` -} - -// V1RoadmapFeatureRequestComment defines model for v1RoadmapFeatureRequestComment. -type V1RoadmapFeatureRequestComment struct { - AuthorDisplayName *string `json:"authorDisplayName,omitempty"` - Body *string `json:"body,omitempty"` - CanEdit *bool `json:"canEdit,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Id *string `json:"id,omitempty"` - IsEdited *bool `json:"isEdited,omitempty"` - IsOwn *bool `json:"isOwn,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` -} - -// V1RoadmapProductCategory defines model for v1RoadmapProductCategory. -type V1RoadmapProductCategory struct { - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Icon *string `json:"icon,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - SortOrder *int32 `json:"sortOrder,omitempty"` -} - -// V1RoadmapProductStats defines model for v1RoadmapProductStats. -type V1RoadmapProductStats struct { - Completed *int32 `json:"completed,omitempty"` - InProgress *int32 `json:"inProgress,omitempty"` - InReview *int32 `json:"inReview,omitempty"` - Planned *int32 `json:"planned,omitempty"` - ProductName *string `json:"productName,omitempty"` - ProductSlug *string `json:"productSlug,omitempty"` -} - -// V1RoadmapRequestStatus defines model for v1RoadmapRequestStatus. -type V1RoadmapRequestStatus string - -// V1RoadmapVoteType defines model for v1RoadmapVoteType. -type V1RoadmapVoteType string - -// V1Role defines model for v1Role. -type V1Role struct { - Description *string `json:"description,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - Id *string `json:"id,omitempty"` - IsBuiltin *bool `json:"isBuiltin,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - Permissions *[]string `json:"permissions,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - Users *[]V1UserSummary `json:"users,omitempty"` -} - -// V1RuleEffect - RULE_EFFECT_ENABLE: Feature toggle: true/false (use false to disable) -// - RULE_EFFECT_ENTITLE: Entitlement: granted -// - RULE_EFFECT_LIMIT: Limit: numeric ceiling -type V1RuleEffect string - -// V1Rules defines model for v1Rules. -type V1Rules struct { - BoolValue *bool `json:"boolValue,omitempty"` - CurrentUsage *string `json:"currentUsage,omitempty"` - - // Effect - RULE_EFFECT_ENABLE: Feature toggle: true/false (use false to disable) - // - RULE_EFFECT_ENTITLE: Entitlement: granted - // - RULE_EFFECT_LIMIT: Limit: numeric ceiling - Effect *V1RuleEffect `json:"effect,omitempty"` - Int64Value *string `json:"int64Value,omitempty"` - RuleKey *string `json:"ruleKey,omitempty"` -} - -// V1SSHKey defines model for v1SSHKey. -type V1SSHKey struct { - Fingerprint *string `json:"fingerprint,omitempty"` - Id *string `json:"id,omitempty"` - - // KeyType rsa, ed25519, ecdsa, dsa, etc. - KeyType *string `json:"keyType,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - PublicKey *string `json:"publicKey,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1SearchMarketplaceRequest Natural-language marketplace search (anonymous landing page). -type V1SearchMarketplaceRequest struct { - FilterBillingType *V1BillingType `json:"filterBillingType,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Query *string `json:"query,omitempty"` - - // TurnstileToken Cloudflare Turnstile token (required for anonymous callers when auth.turnstile.requireOnAnonymousMarketplaceSearch). - TurnstileToken *string `json:"turnstileToken,omitempty"` -} - -// V1SearchMarketplaceResponse defines model for v1SearchMarketplaceResponse. -type V1SearchMarketplaceResponse struct { - AppliedBillingType *V1BillingType `json:"appliedBillingType,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - - // ParsedQuery Structured filters extracted from the user query (word matcher today; LLM later). - ParsedQuery *V1MarketplaceSearchParsedQuery `json:"parsedQuery,omitempty"` - Results *[]V1MarketplaceSearchResult `json:"results,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` -} - -// V1SearchTicketsRequest defines model for v1SearchTicketsRequest. -type V1SearchTicketsRequest struct { - FilterCaseType *V1CaseType `json:"filterCaseType,omitempty"` - FilterPriority *V1TicketPriority `json:"filterPriority,omitempty"` - FilterTicketStatus *V1TicketStatus `json:"filterTicketStatus,omitempty"` - IncludeHighlights *bool `json:"includeHighlights,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Query *string `json:"query,omitempty"` -} - -// V1SearchTicketsResponse defines model for v1SearchTicketsResponse. -type V1SearchTicketsResponse struct { - Highlights *map[string]V1TicketSearchHighlight `json:"highlights,omitempty"` - OrganizationDetails *map[string]V1OrganizationDetails `json:"organizationDetails,omitempty"` - Tickets *[]V1Ticket `json:"tickets,omitempty"` - TotalCount *int32 `json:"totalCount,omitempty"` - UserDetails *map[string]V1UserDetails `json:"userDetails,omitempty"` -} - -// V1Secret defines model for v1Secret. -type V1Secret struct { - Id *string `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Organization *string `json:"organization,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - User *string `json:"user,omitempty"` -} - -// V1ServiceAccountResponse defines model for v1ServiceAccountResponse. -type V1ServiceAccountResponse struct { - ActiveTokenCount *int32 `json:"activeTokenCount,omitempty"` - AllowedIps *[]string `json:"allowedIps,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedByUserId *string `json:"createdByUserId,omitempty"` - Description *string `json:"description,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - Id *string `json:"id,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - Name *string `json:"name,omitempty"` - OrganizationId *string `json:"organizationId,omitempty"` - RoleIds *[]string `json:"roleIds,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` -} - -// V1ServiceAccountTokenInfo defines model for v1ServiceAccountTokenInfo. -type V1ServiceAccountTokenInfo struct { - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedByUserId *string `json:"createdByUserId,omitempty"` - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresInDays *int32 `json:"expiresInDays,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - Name *string `json:"name,omitempty"` - Status *string `json:"status,omitempty"` - TokenId *string `json:"tokenId,omitempty"` -} - -// V1ServiceStatus defines model for v1ServiceStatus. -type V1ServiceStatus string - -// V1ServingStatus defines model for v1ServingStatus. -type V1ServingStatus string - -// V1SessionInfo defines model for v1SessionInfo. -type V1SessionInfo struct { - Browser *string `json:"browser,omitempty"` - Country *string `json:"country,omitempty"` - DeviceType *string `json:"deviceType,omitempty"` - Id *string `json:"id,omitempty"` - IsCurrentSession *bool `json:"isCurrentSession,omitempty"` - LastLogin *string `json:"lastLogin,omitempty"` - Os *string `json:"os,omitempty"` - RealIp *string `json:"realIp,omitempty"` - RequestIp *string `json:"requestIp,omitempty"` -} - -// V1SetDefaultPaymentMethodResponse defines model for v1SetDefaultPaymentMethodResponse. -type V1SetDefaultPaymentMethodResponse struct { - PaymentMethod *V1PaymentMethod `json:"paymentMethod,omitempty"` -} - -// V1SetPasswordRequest SetPassword is for passwordless (SSO-only) accounts that have never set a local password. -type V1SetPasswordRequest struct { - NewPassword *string `json:"newPassword,omitempty"` -} - -// V1SmtpOutboundProviderPolicy defines model for v1SmtpOutboundProviderPolicy. -type V1SmtpOutboundProviderPolicy struct { - BlockByDefault *bool `json:"blockByDefault,omitempty"` -} - -// V1SmtpOutboundVmAction defines model for v1SmtpOutboundVmAction. -type V1SmtpOutboundVmAction string - -// V1Snapshot defines model for v1Snapshot. -type V1Snapshot struct { - CreatedAt *time.Time `json:"createdAt,omitempty"` - Description *string `json:"description,omitempty"` - Id *string `json:"id,omitempty"` - LastRestore *V1LastRestore `json:"lastRestore,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - OperationStatus *V1SnapshotOperationStatus `json:"operationStatus,omitempty"` - RestoreStatus *V1RestoreStatus `json:"restoreStatus,omitempty"` - RestoredAt *time.Time `json:"restoredAt,omitempty"` - SnapshotId *string `json:"snapshotId,omitempty"` - SnapshotStatus *V1SnapshotStatus `json:"snapshotStatus,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1SnapshotOperationStatus defines model for v1SnapshotOperationStatus. -type V1SnapshotOperationStatus string - -// V1SnapshotStatus defines model for v1SnapshotStatus. -type V1SnapshotStatus string - -// V1StartPlanLiveValidationResponse defines model for v1StartPlanLiveValidationResponse. -type V1StartPlanLiveValidationResponse struct { - RunId *string `json:"runId,omitempty"` - Status *string `json:"status,omitempty"` -} - -// V1StoragePool defines model for v1StoragePool. -type V1StoragePool struct { - Name *string `json:"name,omitempty"` - Storage *int32 `json:"storage,omitempty"` - StorageAllocated *int32 `json:"storageAllocated,omitempty"` -} - -// V1SubmitRoadmapFeatureRequestRequest defines model for v1SubmitRoadmapFeatureRequestRequest. -type V1SubmitRoadmapFeatureRequestRequest struct { - Description *string `json:"description,omitempty"` - ProductSlug *string `json:"productSlug,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1SubmitRoadmapFeatureRequestResponse defines model for v1SubmitRoadmapFeatureRequestResponse. -type V1SubmitRoadmapFeatureRequestResponse struct { - Message *string `json:"message,omitempty"` - Success *bool `json:"success,omitempty"` -} - -// V1SubscribeResponse defines model for v1SubscribeResponse. -type V1SubscribeResponse struct { - Subscription *V1Subscription `json:"subscription,omitempty"` -} - -// V1Subscription defines model for v1Subscription. -type V1Subscription struct { - ActivatedByUser *string `json:"activatedByUser,omitempty"` - CancelAtPeriodEnd *bool `json:"cancelAtPeriodEnd,omitempty"` - CanceledAt *time.Time `json:"canceledAt,omitempty"` - CurrentPeriodEnd *time.Time `json:"currentPeriodEnd,omitempty"` - CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Organization *string `json:"organization,omitempty"` - OrganizationName *string `json:"organizationName,omitempty"` - Plan *string `json:"plan,omitempty"` - PlanBillingPeriod *V1BillingPeriod `json:"planBillingPeriod,omitempty"` - - // PlanCode Plan catalog code (e.g. SC-GC-1C-1G-20) for display alongside plan_name. - PlanCode *string `json:"planCode,omitempty"` - PlanName *string `json:"planName,omitempty"` - PlatformFeeCurrency *string `json:"platformFeeCurrency,omitempty"` - - // PlatformFeeId Platform fee ID if applicable - PlatformFeeId *string `json:"platformFeeId,omitempty"` - PlatformFeePercent *float64 `json:"platformFeePercent,omitempty"` - PlatformFeeType *string `json:"platformFeeType,omitempty"` - Quantity *int32 `json:"quantity,omitempty"` - - // ResourceCpu Linked VM resource snapshot for display (0 when not applicable). - ResourceCpu *int32 `json:"resourceCpu,omitempty"` - - // ResourceHostname Primary linked VM hostname for client compute subscriptions (empty otherwise). - ResourceHostname *string `json:"resourceHostname,omitempty"` - ResourceMemory *int32 `json:"resourceMemory,omitempty"` - - // ResourceProviderName Provider organization name for the linked VM (empty when not applicable). - ResourceProviderName *string `json:"resourceProviderName,omitempty"` - - // ResourceRegionName Region label for the linked VM (e.g. city and country, or datacenter name). - ResourceRegionName *string `json:"resourceRegionName,omitempty"` - ResourceStorage *int32 `json:"resourceStorage,omitempty"` - - // ResourceVmId Linked VM id for navigation (empty when not applicable). - ResourceVmId *string `json:"resourceVmId,omitempty"` - StartDate *time.Time `json:"startDate,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionStatus *V1SubscriptionStatus `json:"subscriptionStatus,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - TrialEndDate *time.Time `json:"trialEndDate,omitempty"` -} - -// V1SubscriptionStatus defines model for v1SubscriptionStatus. -type V1SubscriptionStatus string - -// V1SuccessResponse defines model for v1SuccessResponse. -type V1SuccessResponse struct { - Success *bool `json:"success,omitempty"` -} - -// V1Ticket defines model for v1Ticket. -type V1Ticket struct { - AssignedToUser *string `json:"assignedToUser,omitempty"` - CaseType *V1CaseType `json:"caseType,omitempty"` - FirstResponseAt *time.Time `json:"firstResponseAt,omitempty"` - FirstResponseTimeSeconds *string `json:"firstResponseTimeSeconds,omitempty"` - FromOrganization *string `json:"fromOrganization,omitempty"` - FromUser *string `json:"fromUser,omitempty"` - Id *string `json:"id,omitempty"` - LastActivityAt *time.Time `json:"lastActivityAt,omitempty"` - LockedAt *time.Time `json:"lockedAt,omitempty"` - LockedByUser *string `json:"lockedByUser,omitempty"` - Message *string `json:"message,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Priority *V1TicketPriority `json:"priority,omitempty"` - Replies *string `json:"replies,omitempty"` - ResolutionTimeSeconds *string `json:"resolutionTimeSeconds,omitempty"` - ResolvedAt *time.Time `json:"resolvedAt,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TicketId *string `json:"ticketId,omitempty"` - TicketStatus *V1TicketStatus `json:"ticketStatus,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - Title *string `json:"title,omitempty"` - ToOrganization *string `json:"toOrganization,omitempty"` - ToUser *string `json:"toUser,omitempty"` - VirtualMachines *string `json:"virtualMachines,omitempty"` -} - -// V1TicketAttachment defines model for v1TicketAttachment. -type V1TicketAttachment struct { - FileName *string `json:"fileName,omitempty"` - FileSize *string `json:"fileSize,omitempty"` - Id *string `json:"id,omitempty"` - MimeType *string `json:"mimeType,omitempty"` - TicketId *string `json:"ticketId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UploadedByUserId *string `json:"uploadedByUserId,omitempty"` -} - -// V1TicketInternalComment defines model for v1TicketInternalComment. -type V1TicketInternalComment struct { - Comment *string `json:"comment,omitempty"` - CreatedByUserId *string `json:"createdByUserId,omitempty"` - Id *string `json:"id,omitempty"` - TicketId *string `json:"ticketId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1TicketMessage defines model for v1TicketMessage. -type V1TicketMessage struct { - FromOrganization *string `json:"fromOrganization,omitempty"` - FromUser *string `json:"fromUser,omitempty"` - Id *string `json:"id,omitempty"` - IsReply *bool `json:"isReply,omitempty"` - Message *string `json:"message,omitempty"` - Sequence *string `json:"sequence,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - ToOrganization *string `json:"toOrganization,omitempty"` - ToUser *string `json:"toUser,omitempty"` -} - -// V1TicketPriority defines model for v1TicketPriority. -type V1TicketPriority string - -// V1TicketSearchHighlight defines model for v1TicketSearchHighlight. -type V1TicketSearchHighlight struct { - Message *string `json:"message,omitempty"` - TicketId *string `json:"ticketId,omitempty"` - Title *string `json:"title,omitempty"` -} - -// V1TicketStatus defines model for v1TicketStatus. -type V1TicketStatus string - -// V1TicketTemplate defines model for v1TicketTemplate. -type V1TicketTemplate struct { - CaseType *V1CaseType `json:"caseType,omitempty"` - CreatedByUserId *string `json:"createdByUserId,omitempty"` - Id *string `json:"id,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - MessageTemplate *string `json:"messageTemplate,omitempty"` - Name *string `json:"name,omitempty"` - Tags *[]string `json:"tags,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - TitleTemplate *string `json:"titleTemplate,omitempty"` - Variables *[]string `json:"variables,omitempty"` -} - -// V1TicketTemplateInput defines model for v1TicketTemplateInput. -type V1TicketTemplateInput struct { - CaseType *V1CaseType `json:"caseType,omitempty"` - IsActive *bool `json:"isActive,omitempty"` - MessageTemplate *string `json:"messageTemplate,omitempty"` - Name *string `json:"name,omitempty"` - Tags *[]string `json:"tags,omitempty"` - TitleTemplate *string `json:"titleTemplate,omitempty"` -} - -// V1TicketTemplateVariableDefinition defines model for v1TicketTemplateVariableDefinition. -type V1TicketTemplateVariableDefinition struct { - Description *string `json:"description,omitempty"` - Example *string `json:"example,omitempty"` - Name *string `json:"name,omitempty"` - Required *bool `json:"required,omitempty"` - Source *string `json:"source,omitempty"` -} - -// V1TierMode defines model for v1TierMode. -type V1TierMode string - -// V1Timestamps defines model for v1Timestamps. -type V1Timestamps struct { - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` -} - -// V1TokenRequest defines model for v1TokenRequest. -type V1TokenRequest struct { - ClientId *string `json:"clientId,omitempty"` - ClientSecret *string `json:"clientSecret,omitempty"` - Code *string `json:"code,omitempty"` - CodeVerifier *string `json:"codeVerifier,omitempty"` - GrantType *string `json:"grantType,omitempty"` - RedirectUri *string `json:"redirectUri,omitempty"` - RefreshToken *string `json:"refreshToken,omitempty"` -} - -// V1TokenResponse defines model for v1TokenResponse. -type V1TokenResponse struct { - AccessToken *string `json:"accessToken,omitempty"` - ExpiresIn *string `json:"expiresIn,omitempty"` - RefreshToken *string `json:"refreshToken,omitempty"` - Scope *string `json:"scope,omitempty"` - TokenType *string `json:"tokenType,omitempty"` -} - -// V1UndoCancelRenewalRequest defines model for v1UndoCancelRenewalRequest. -type V1UndoCancelRenewalRequest struct { - SubscriptionId *string `json:"subscriptionId,omitempty"` -} - -// V1UpdateAgentResponse defines model for v1UpdateAgentResponse. -type V1UpdateAgentResponse struct { - Agent *V1Agent `json:"agent,omitempty"` -} - -// V1UpdateClientReviewResponse defines model for v1UpdateClientReviewResponse. -type V1UpdateClientReviewResponse struct { - Review *V1ClientProviderReview `json:"review,omitempty"` -} - -// V1UpdateCloudInitTemplateResponse defines model for v1UpdateCloudInitTemplateResponse. -type V1UpdateCloudInitTemplateResponse struct { - CloudInitTemplate *V1CloudInitTemplate `json:"cloudInitTemplate,omitempty"` -} - -// V1UpdateGroupResponse defines model for v1UpdateGroupResponse. -type V1UpdateGroupResponse struct { - Group *V1Group `json:"group,omitempty"` -} - -// V1UpdateInviteRequest defines model for v1UpdateInviteRequest. -type V1UpdateInviteRequest struct { - GroupId *string `json:"groupId,omitempty"` - InviteId *string `json:"inviteId,omitempty"` - RoleId *string `json:"roleId,omitempty"` -} - -// V1UpdateNetworkResponse defines model for v1UpdateNetworkResponse. -type V1UpdateNetworkResponse struct { - Network *V1Network `json:"network,omitempty"` -} - -// V1UpdateNodePlacementPolicyRequest defines model for v1UpdateNodePlacementPolicyRequest. -type V1UpdateNodePlacementPolicyRequest struct { - DefaultStrategy *V1NodePlacementStrategy `json:"defaultStrategy,omitempty"` - RegionOverrides *[]V1NodePlacementRegionOverride `json:"regionOverrides,omitempty"` -} - -// V1UpdateNodePlacementPolicyResponse defines model for v1UpdateNodePlacementPolicyResponse. -type V1UpdateNodePlacementPolicyResponse struct { - Policy *V1NodePlacementPolicy `json:"policy,omitempty"` -} - -// V1UpdateNodeResponse defines model for v1UpdateNodeResponse. -type V1UpdateNodeResponse struct { - Node *V1Node `json:"node,omitempty"` -} - -// V1UpdateOrganizationRequest defines model for v1UpdateOrganizationRequest. -type V1UpdateOrganizationRequest struct { - AccountHolderName *string `json:"accountHolderName,omitempty"` - Address *string `json:"address,omitempty"` - AddressCity *string `json:"addressCity,omitempty"` - - // AddressCountry ISO 3166-1 alpha-2 (e.g. US, DE). - AddressCountry *string `json:"addressCountry,omitempty"` - AddressLine1 *string `json:"addressLine1,omitempty"` - AddressLine2 *string `json:"addressLine2,omitempty"` - AddressPostcode *string `json:"addressPostcode,omitempty"` - AddressRegion *string `json:"addressRegion,omitempty"` - Asn *string `json:"asn,omitempty"` - BillingEmail *string `json:"billingEmail,omitempty"` - DdosProvider *string `json:"ddosProvider,omitempty"` - Description *string `json:"description,omitempty"` - EnforceMfa *bool `json:"enforceMfa,omitempty"` - EnforceSso *bool `json:"enforceSso,omitempty"` - EnforceVerifiedDomain *bool `json:"enforceVerifiedDomain,omitempty"` - Name *string `json:"name,omitempty"` - ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` - ProviderWebsiteUrl *string `json:"providerWebsiteUrl,omitempty"` - - // SocialAccountsJson JSON array of up to 4 objects: [{"platform":"x","url":"https://..."}, ...]. - // platform must be one of: x, linkedin, instagram, facebook (Facebook/Meta). - SocialAccountsJson *string `json:"socialAccountsJson,omitempty"` - SupportEmail *string `json:"supportEmail,omitempty"` - SupportPhone *string `json:"supportPhone,omitempty"` - TaxId *string `json:"taxId,omitempty"` - VatId *string `json:"vatId,omitempty"` -} - -// V1UpdateOrganizationResponse defines model for v1UpdateOrganizationResponse. -type V1UpdateOrganizationResponse struct { - Organization *V1Organization `json:"organization,omitempty"` -} - -// V1UpdatePayoutConfigurationRequest defines model for v1UpdatePayoutConfigurationRequest. -type V1UpdatePayoutConfigurationRequest struct { - Enabled *bool `json:"enabled,omitempty"` - ScheduleTime *string `json:"scheduleTime,omitempty"` - ScheduleTimezone *string `json:"scheduleTimezone,omitempty"` - - // ScheduleType - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds - // - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time - // - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time - // - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time - ScheduleType *V1PayoutScheduleType `json:"scheduleType,omitempty"` -} - -// V1UpdatePlatformResponse defines model for v1UpdatePlatformResponse. -type V1UpdatePlatformResponse struct { - Platform *V1Platform `json:"platform,omitempty"` -} - -// V1UpdatePrefixResponse defines model for v1UpdatePrefixResponse. -type V1UpdatePrefixResponse struct { - Prefix *V1Prefix `json:"prefix,omitempty"` -} - -// V1UpdateProviderReviewReplyResponse defines model for v1UpdateProviderReviewReplyResponse. -type V1UpdateProviderReviewReplyResponse struct { - // Review Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider). - Review *V1ProviderReviewListItem `json:"review,omitempty"` -} - -// V1UpdateRoadmapFeatureRequestCommentResponse defines model for v1UpdateRoadmapFeatureRequestCommentResponse. -type V1UpdateRoadmapFeatureRequestCommentResponse struct { - Comment *V1RoadmapFeatureRequestComment `json:"comment,omitempty"` -} - -// V1UpdateRoleResponse defines model for v1UpdateRoleResponse. -type V1UpdateRoleResponse struct { - Role *V1Role `json:"role,omitempty"` -} - -// V1UpdateSmtpOutboundProviderPolicyRequest defines model for v1UpdateSmtpOutboundProviderPolicyRequest. -type V1UpdateSmtpOutboundProviderPolicyRequest struct { - BlockByDefault *bool `json:"blockByDefault,omitempty"` -} - -// V1UpdateUserResponse defines model for v1UpdateUserResponse. -type V1UpdateUserResponse struct { - User *V1User `json:"user,omitempty"` -} - -// V1UpdateVMTemplateResponse defines model for v1UpdateVMTemplateResponse. -type V1UpdateVMTemplateResponse struct { - VmTemplate *V1VMTemplate `json:"vmTemplate,omitempty"` -} - -// V1UploadInboundPeeringConfigResponse defines model for v1UploadInboundPeeringConfigResponse. -type V1UploadInboundPeeringConfigResponse struct { - InboundPeeringState *V1InboundPeeringState `json:"inboundPeeringState,omitempty"` -} - -// V1UploadTicketAttachmentContentRequest defines model for v1UploadTicketAttachmentContentRequest. -type V1UploadTicketAttachmentContentRequest struct { - FileContent *[]byte `json:"fileContent,omitempty"` - UploadToken *string `json:"uploadToken,omitempty"` -} - -// V1UsageAggregate defines model for v1UsageAggregate. -type V1UsageAggregate struct { - AggregationType *V1AggregationType `json:"aggregationType,omitempty"` - BillingPeriodEnd *time.Time `json:"billingPeriodEnd,omitempty"` - BillingPeriodStart *time.Time `json:"billingPeriodStart,omitempty"` - FirstTimestamp *time.Time `json:"firstTimestamp,omitempty"` - LastTimestamp *time.Time `json:"lastTimestamp,omitempty"` - MetricCode *string `json:"metricCode,omitempty"` - MetricId *string `json:"metricId,omitempty"` - MetricName *string `json:"metricName,omitempty"` - RecordCount *int32 `json:"recordCount,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - - // TotalQuantity Decimal as string - TotalQuantity *string `json:"totalQuantity,omitempty"` -} - -// V1UsageRecord defines model for v1UsageRecord. -type V1UsageRecord struct { - BillingPeriodEnd *time.Time `json:"billingPeriodEnd,omitempty"` - BillingPeriodStart *time.Time `json:"billingPeriodStart,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` - - // EventId For deduplication - EventId *string `json:"eventId,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - Id *string `json:"id,omitempty"` - InvoiceId *string `json:"invoiceId,omitempty"` - InvoiceLineId *string `json:"invoiceLineId,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - MetricCode *string `json:"metricCode,omitempty"` - MetricId *string `json:"metricId,omitempty"` - MetricName *string `json:"metricName,omitempty"` - ProcessedAt *time.Time `json:"processedAt,omitempty"` - Properties *map[string]interface{} `json:"properties,omitempty"` - - // Quantity Stored as string for decimal precision - Quantity *string `json:"quantity,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - SubscriptionName *string `json:"subscriptionName,omitempty"` - Timestamp *time.Time `json:"timestamp,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UsageRecordStatus *V1UsageRecordStatus `json:"usageRecordStatus,omitempty"` -} - -// V1UsageRecordStatus defines model for v1UsageRecordStatus. -type V1UsageRecordStatus string - -// V1User defines model for v1User. -type V1User struct { - AllowOrgInvites *bool `json:"allowOrgInvites,omitempty"` - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - GroupIds *[]string `json:"groupIds,omitempty"` - Id *string `json:"id,omitempty"` - IsVerified *bool `json:"isVerified,omitempty"` - LastName *string `json:"lastName,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Organization *string `json:"organization,omitempty"` - Password *string `json:"password,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - SubscriptionIds *[]string `json:"subscriptionIds,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` - UserRoles *[]string `json:"userRoles,omitempty"` -} - -// V1UserDetails defines model for v1UserDetails. -type V1UserDetails struct { - FirstName *string `json:"firstName,omitempty"` - LastName *string `json:"lastName,omitempty"` -} - -// V1UserSummary defines model for v1UserSummary. -type V1UserSummary struct { - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - Id *string `json:"id,omitempty"` - LastName *string `json:"lastName,omitempty"` -} - -// V1VMTemplate defines model for v1VMTemplate. -type V1VMTemplate struct { - CloudInitTemplateId *string `json:"cloudInitTemplateId,omitempty"` - CloudInitTemplateName *string `json:"cloudInitTemplateName,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - Id *string `json:"id,omitempty"` - Metadata *map[string]interface{} `json:"metadata,omitempty"` - Name *string `json:"name,omitempty"` - NodeId *string `json:"nodeId,omitempty"` - NodeName *string `json:"nodeName,omitempty"` - PlatformName *string `json:"platformName,omitempty"` - - // ProxmoxCpuType Proxmox cpu= guest CPU model for VMs cloned from this template. Default: host. - ProxmoxCpuType *string `json:"proxmoxCpuType,omitempty"` - Status *Protov1Status `json:"status,omitempty"` - TemplateId *int32 `json:"templateId,omitempty"` - Timestamps *V1Timestamps `json:"timestamps,omitempty"` -} - -// V1ValidateNodeTopologyRequest defines model for v1ValidateNodeTopologyRequest. -type V1ValidateNodeTopologyRequest struct { - // NodeId Optional node to cross-check the paste against (edit flow). When set, the - // parsed totals are compared with the node's Proxmox-reported CPU inventory - // (metadata.proxmox_cpu) and mismatches are returned as warnings. - NodeId *string `json:"nodeId,omitempty"` - - // TopologyPaste Raw topology paste to validate without persisting. - TopologyPaste *string `json:"topologyPaste,omitempty"` -} - -// V1ValidateNodeTopologyResponse defines model for v1ValidateNodeTopologyResponse. -type V1ValidateNodeTopologyResponse struct { - // Error Parse/validation error when valid is false. - Error *string `json:"error,omitempty"` - LogicalCpus *int32 `json:"logicalCpus,omitempty"` - ModelName *string `json:"modelName,omitempty"` - NumaNodes *int32 `json:"numaNodes,omitempty"` - - // NumaSummary Per-NUMA memory in MB, indexed by NUMA node id order. - NumaSummary *[]V1NodeCPUMapNUMA `json:"numaSummary,omitempty"` - PhysicalCores *int32 `json:"physicalCores,omitempty"` - SmtEnabled *bool `json:"smtEnabled,omitempty"` - Sockets *int32 `json:"sockets,omitempty"` - ThreadsPerCore *int32 `json:"threadsPerCore,omitempty"` - Valid *bool `json:"valid,omitempty"` - Warnings *[]V1ValidateNodeTopologyWarning `json:"warnings,omitempty"` -} - -// V1ValidateNodeTopologyWarning defines model for v1ValidateNodeTopologyWarning. -type V1ValidateNodeTopologyWarning struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` -} - -// V1VerificationType defines model for v1VerificationType. -type V1VerificationType string - -// V1VerifyMfaEnrollmentRequest defines model for v1VerifyMfaEnrollmentRequest. -type V1VerifyMfaEnrollmentRequest struct { - Code *string `json:"code,omitempty"` -} - -// V1VerifyMfaEnrollmentResponse defines model for v1VerifyMfaEnrollmentResponse. -type V1VerifyMfaEnrollmentResponse struct { - BackupCodes *[]string `json:"backupCodes,omitempty"` -} - -// V1VirtualMachine VirtualMachine represents a managed virtual machine resource. -type V1VirtualMachine struct { - // ActiveBackupSubscriptionName Display name of the active backup addon (empty when has_active_backup_subscription is false). - ActiveBackupSubscriptionName *string `json:"activeBackupSubscriptionName,omitempty"` - - // AdditionalIpv4 Extra IPv4 addresses purchased via the ADDITIONAL-IP addon (same prefix as primary). - AdditionalIpv4 *[]V1AdditionalIPAddress `json:"additionalIpv4,omitempty"` - AddonSubscriptions *[]V1AddonSubscription `json:"addonSubscriptions,omitempty"` - - // BandwidthEgress VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX. - // Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine. - BandwidthEgress *V1VirtualMachineBandwidthQuota `json:"bandwidthEgress,omitempty"` - - // BandwidthIngress VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX. - // Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine. - BandwidthIngress *V1VirtualMachineBandwidthQuota `json:"bandwidthIngress,omitempty"` - - // Cpu The number of CPU cores allocated to the virtual machine. - Cpu *int32 `json:"cpu,omitempty"` - - // CreateTime The creation timestamp of the virtual machine. - CreateTime *time.Time `json:"createTime,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *V1Distro `json:"distro,omitempty"` - - // FirewallRulesetId Firewall ruleset attached to this VM (contains both ingress and egress rules). - // Managed via attach/detach firewall endpoints. - FirewallRulesetId *string `json:"firewallRulesetId,omitempty"` - - // HasActiveBackupSubscription True when this VM has an active backup-class addon subscription (derived from subscription add-ons). - HasActiveBackupSubscription *bool `json:"hasActiveBackupSubscription,omitempty"` - - // Hostname The name of the virtual machine. - Hostname *string `json:"hostname,omitempty"` - - // Id The unique identifier for the virtual machine. This is a read-only field. - Id *string `json:"id,omitempty"` - - // InstantAppFamily Family key used for icons under /icons/instant-apps/{family}.svg (e.g. portainer). - InstantAppFamily *string `json:"instantAppFamily,omitempty"` - - // InstantAppIconUrl Optional override; when empty, clients fall back to the family icon path. - InstantAppIconUrl *string `json:"instantAppIconUrl,omitempty"` - - // InstantAppId Platform Instant App used when this VM was created/reinstalled (empty when OS-only). - InstantAppId *string `json:"instantAppId,omitempty"` - InstantAppName *string `json:"instantAppName,omitempty"` - InstantAppSlug *string `json:"instantAppSlug,omitempty"` - InstantAppVersion *string `json:"instantAppVersion,omitempty"` - - // Ipv4 Primary IPv4 from active IPAM allocations (when available). - Ipv4 *string `json:"ipv4,omitempty"` - - // Ipv6 Primary IPv6 from active IPAM allocations (when available). - Ipv6 *string `json:"ipv6,omitempty"` - - // Memory The amount of memory in MB allocated to the virtual machine. - Memory *int32 `json:"memory,omitempty"` - OperationStatus *V1OperationStatus `json:"operationStatus,omitempty"` - PlanBillingType *V1BillingType `json:"planBillingType,omitempty"` - - // PlanCode Marketplace plan code for this VM's subscription (e.g. "DC-CPU-4C-4G-160"). - PlanCode *string `json:"planCode,omitempty"` - - // ProviderName The name of the provider organization that owns the node where the virtual machine is located. - ProviderName *string `json:"providerName,omitempty"` - - // ProviderOrganizationId The ID of the service provider organization for the virtual machine. - ProviderOrganizationId *string `json:"providerOrganizationId,omitempty"` - - // RegionCity The city of the region where the virtual machine is located. - RegionCity *string `json:"regionCity,omitempty"` - - // RegionCountry The country of the region where the virtual machine is located. - RegionCountry *string `json:"regionCountry,omitempty"` - ReinstallStatus *V1ReinstallStatus `json:"reinstallStatus,omitempty"` - ReinstalledAt *time.Time `json:"reinstalledAt,omitempty"` - - // Storage Target storage for full clone. - Storage *int32 `json:"storage,omitempty"` - Tags *[]string `json:"tags,omitempty"` - - // UpdateTime The last update timestamp of the virtual machine. - UpdateTime *time.Time `json:"updateTime,omitempty"` -} - -// V1VirtualMachineBandwidthQuota VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX. -// Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine. -type V1VirtualMachineBandwidthQuota struct { - // BillableBlocks Whole overage blocks currently billable (ceil(overage_gb / block_size_gb)). - BillableBlocks *int32 `json:"billableBlocks,omitempty"` - - // BillingEnabled False when usage is shown for visibility only (e.g. ingress not billed on this plan). - BillingEnabled *bool `json:"billingEnabled,omitempty"` - - // BlockPrice Price per overage block (decimal string, e.g. "2.00"). - BlockPrice *string `json:"blockPrice,omitempty"` - - // BlockSizeGb Overage block size (GB). Zero when unlimited or linear pricing. - BlockSizeGb *int32 `json:"blockSizeGb,omitempty"` - Currency *string `json:"currency,omitempty"` - - // EstimatedOverageAmount Estimated overage charge for the current period (decimal string). - EstimatedOverageAmount *string `json:"estimatedOverageAmount,omitempty"` - - // FreeUnitsGb Included free bandwidth per period (GB). Zero when unlimited or not configured. - FreeUnitsGb *int32 `json:"freeUnitsGb,omitempty"` - - // NextBlockGb Total usage GB at which the next overage block would begin (0 when unlimited). - NextBlockGb *float64 `json:"nextBlockGb,omitempty"` - - // OverageGb GB above the free allowance (0 when within free tier). - OverageGb *float64 `json:"overageGb,omitempty"` - PeriodEnd *time.Time `json:"periodEnd,omitempty"` - PeriodStart *time.Time `json:"periodStart,omitempty"` - - // Unlimited True when bandwidth is effectively unlimited ($0 overage) for this direction. - Unlimited *bool `json:"unlimited,omitempty"` - - // UsedGb Total bandwidth used this billing period (decimal GB, 1000^3 bytes). - UsedGb *float64 `json:"usedGb,omitempty"` -} - -// V1VirtualMachineSmtpOutboundPolicyView defines model for v1VirtualMachineSmtpOutboundPolicyView. -type V1VirtualMachineSmtpOutboundPolicyView struct { - Action *V1SmtpOutboundVmAction `json:"action,omitempty"` - - // ClientContactEmail Contact email of that owner (when resolved). - ClientContactEmail *string `json:"clientContactEmail,omitempty"` - - // ClientOrganizationId Client organization that owns the VM (grouping key for provider UI). - ClientOrganizationId *string `json:"clientOrganizationId,omitempty"` - - // ClientOwnerUserId First owner user of that client organization (when resolved). - ClientOwnerUserId *string `json:"clientOwnerUserId,omitempty"` - EffectiveBlocked *bool `json:"effectiveBlocked,omitempty"` - Hostname *string `json:"hostname,omitempty"` - - // Ipv4 Primary active IPv4 / IPv6 from IPAM allocations (empty when none). - Ipv4 *string `json:"ipv4,omitempty"` - Ipv6 *string `json:"ipv6,omitempty"` - VirtualMachineId *string `json:"virtualMachineId,omitempty"` -} - -// V1VoteRoadmapFeatureRequestResponse defines model for v1VoteRoadmapFeatureRequestResponse. -type V1VoteRoadmapFeatureRequestResponse struct { - Request *V1RoadmapFeatureRequest `json:"request,omitempty"` -} - -// AddonServiceRemoveAddonParams defines parameters for AddonServiceRemoveAddon. -type AddonServiceRemoveAddonParams struct { - // CancelImmediately If false, cancels at period end - CancelImmediately *bool `form:"cancelImmediately,omitempty" json:"cancelImmediately,omitempty"` -} - -// AddonServiceListAddonsParams defines parameters for AddonServiceListAddons. -type AddonServiceListAddonsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // SubscriptionId Filter by compatible with subscription - SubscriptionId *string `form:"subscriptionId,omitempty" json:"subscriptionId,omitempty"` - - // AddonType Filter by type - AddonType *AddonServiceListAddonsParamsAddonType `form:"addonType,omitempty" json:"addonType,omitempty"` - - // IsTemplate Filter by template status - IsTemplate *bool `form:"isTemplate,omitempty" json:"isTemplate,omitempty"` - - // BillingType Filter by billing type (usage-based or fixed/subscription) - // - // - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - BillingType *AddonServiceListAddonsParamsBillingType `form:"billingType,omitempty" json:"billingType,omitempty"` - - // Search Search filter for addon name, code, or description - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// AddonServiceListAddonsParamsAddonType defines parameters for AddonServiceListAddons. -type AddonServiceListAddonsParamsAddonType string - -// AddonServiceListAddonsParamsBillingType defines parameters for AddonServiceListAddons. -type AddonServiceListAddonsParamsBillingType string - -// AgentServiceListAgentsParams defines parameters for AgentServiceListAgents. -type AgentServiceListAgentsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - GatewayRegion *AgentServiceListAgentsParamsGatewayRegion `form:"gatewayRegion,omitempty" json:"gatewayRegion,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// AgentServiceListAgentsParamsGatewayRegion defines parameters for AgentServiceListAgents. -type AgentServiceListAgentsParamsGatewayRegion string - -// UserServiceVerifyEmailParams defines parameters for UserServiceVerifyEmail. -type UserServiceVerifyEmailParams struct { - UserId *string `form:"userId,omitempty" json:"userId,omitempty"` - Code *string `form:"code,omitempty" json:"code,omitempty"` -} - -// ClientProviderReviewServiceListClientProviderReviewAssetsParams defines parameters for ClientProviderReviewServiceListClientProviderReviewAssets. -type ClientProviderReviewServiceListClientProviderReviewAssetsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Search Optional filter (hostname / provider name), case-insensitive substring. - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// CloudInitTemplateServiceListCloudInitTemplatesParams defines parameters for CloudInitTemplateServiceListCloudInitTemplates. -type CloudInitTemplateServiceListCloudInitTemplatesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // FilterIsTemplate If not set, returns both template and non-template. If true, returns only templates. If false, returns only non-templates. - FilterIsTemplate *bool `form:"filterIsTemplate,omitempty" json:"filterIsTemplate,omitempty"` -} - -// CloudInitUserDataServiceListCloudInitUserDataParams defines parameters for CloudInitUserDataServiceListCloudInitUserData. -type CloudInitUserDataServiceListCloudInitUserDataParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// RegionServiceListCountriesCitiesParams defines parameters for RegionServiceListCountriesCities. -type RegionServiceListCountriesCitiesParams struct { - Query *string `form:"query,omitempty" json:"query,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// CreditServiceListCreditLedgerEntriesParams defines parameters for CreditServiceListCreditLedgerEntries. -type CreditServiceListCreditLedgerEntriesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - EntryType *CreditServiceListCreditLedgerEntriesParamsEntryType `form:"entryType,omitempty" json:"entryType,omitempty"` -} - -// CreditServiceListCreditLedgerEntriesParamsEntryType defines parameters for CreditServiceListCreditLedgerEntries. -type CreditServiceListCreditLedgerEntriesParamsEntryType string - -// RegionServiceListDatacentersParams defines parameters for RegionServiceListDatacenters. -type RegionServiceListDatacentersParams struct { - Query *string `form:"query,omitempty" json:"query,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// EnvironmentVariableServiceListEnvironmentVariablesParams defines parameters for EnvironmentVariableServiceListEnvironmentVariables. -type EnvironmentVariableServiceListEnvironmentVariablesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterKey *string `form:"filterKey,omitempty" json:"filterKey,omitempty"` -} - -// FirewallServiceListFirewallAddressGroupsParams defines parameters for FirewallServiceListFirewallAddressGroups. -type FirewallServiceListFirewallAddressGroupsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Name Note: family filter removed as address groups can now contain mixed IPv4/IPv6 - Name *string `form:"name,omitempty" json:"name,omitempty"` -} - -// FirewallServiceGetFirewallRuleParams defines parameters for FirewallServiceGetFirewallRule. -type FirewallServiceGetFirewallRuleParams struct { - // Direction Optional: Filter by direction. If not specified, returns the rule regardless of direction. - Direction *FirewallServiceGetFirewallRuleParamsDirection `form:"direction,omitempty" json:"direction,omitempty"` -} - -// FirewallServiceGetFirewallRuleParamsDirection defines parameters for FirewallServiceGetFirewallRule. -type FirewallServiceGetFirewallRuleParamsDirection string - -// FirewallServiceListFirewallRuleSetsParams defines parameters for FirewallServiceListFirewallRuleSets. -type FirewallServiceListFirewallRuleSetsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // FilterAttachment Optional: Filter by whether any virtual machine is attached to the ruleset. - // - // - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets - // - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached - // - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached - FilterAttachment *FirewallServiceListFirewallRuleSetsParamsFilterAttachment `form:"filterAttachment,omitempty" json:"filterAttachment,omitempty"` -} - -// FirewallServiceListFirewallRuleSetsParamsFilterAttachment defines parameters for FirewallServiceListFirewallRuleSets. -type FirewallServiceListFirewallRuleSetsParamsFilterAttachment string - -// FirewallServiceDeleteFirewallRuleSetParams defines parameters for FirewallServiceDeleteFirewallRuleSet. -type FirewallServiceDeleteFirewallRuleSetParams struct { - Force *bool `form:"force,omitempty" json:"force,omitempty"` -} - -// FirewallServiceListFirewallRulesParams defines parameters for FirewallServiceListFirewallRules. -type FirewallServiceListFirewallRulesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Direction Optional: Filter by direction. If not specified, returns all rules regardless of direction. - Direction *FirewallServiceListFirewallRulesParamsDirection `form:"direction,omitempty" json:"direction,omitempty"` -} - -// FirewallServiceListFirewallRulesParamsDirection defines parameters for FirewallServiceListFirewallRules. -type FirewallServiceListFirewallRulesParamsDirection string - -// GroupServiceListGroupsParams defines parameters for GroupServiceListGroups. -type GroupServiceListGroupsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterName *string `form:"filterName,omitempty" json:"filterName,omitempty"` - FilterStatus *GroupServiceListGroupsParamsFilterStatus `form:"filterStatus,omitempty" json:"filterStatus,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// GroupServiceListGroupsParamsFilterStatus defines parameters for GroupServiceListGroups. -type GroupServiceListGroupsParamsFilterStatus string - -// GroupServiceRemoveServiceAccountFromGroupParams defines parameters for GroupServiceRemoveServiceAccountFromGroup. -type GroupServiceRemoveServiceAccountFromGroupParams struct { - GroupId *string `form:"groupId,omitempty" json:"groupId,omitempty"` - ServiceAccountIds *[]string `form:"serviceAccountIds,omitempty" json:"serviceAccountIds,omitempty"` -} - -// GroupServiceRemoveUserFromGroupParams defines parameters for GroupServiceRemoveUserFromGroup. -type GroupServiceRemoveUserFromGroupParams struct { - GroupId *string `form:"groupId,omitempty" json:"groupId,omitempty"` - UserIds *[]string `form:"userIds,omitempty" json:"userIds,omitempty"` -} - -// InstantAppServiceListInstantAppsParams defines parameters for InstantAppServiceListInstantApps. -type InstantAppServiceListInstantAppsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - - // PageSize -1 returns all apps (create/reinstall picker); otherwise 1..100. - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Query Case-insensitive match on name or slug. - Query *string `form:"query,omitempty" json:"query,omitempty"` - - // Categories Filter: app must include all listed categories when non-empty. - Categories *[]string `form:"categories,omitempty" json:"categories,omitempty"` - - // Distro - DISTRO_UBUNTU_22_04: Ubuntu distributions - // - DISTRO_FEDORA_43: Fedora distributions - // - DISTRO_DEBIAN_12: Debian distributions - // - DISTRO_CENTOS_9: CentOS distributions - // - DISTRO_ROCKY_9: Rocky Linux distributions - // - DISTRO_ALMALINUX_9: AlmaLinux distributions - Distro *InstantAppServiceListInstantAppsParamsDistro `form:"distro,omitempty" json:"distro,omitempty"` -} - -// InstantAppServiceListInstantAppsParamsDistro defines parameters for InstantAppServiceListInstantApps. -type InstantAppServiceListInstantAppsParamsDistro string - -// InstantAppServiceGetInstantApp2Params defines parameters for InstantAppServiceGetInstantApp2. -type InstantAppServiceGetInstantApp2Params struct { - // Id Exactly one of id or slug must be set. - Id *string `form:"id,omitempty" json:"id,omitempty"` -} - -// InstantAppServiceGetInstantAppParams defines parameters for InstantAppServiceGetInstantApp. -type InstantAppServiceGetInstantAppParams struct { - Slug *string `form:"slug,omitempty" json:"slug,omitempty"` -} - -// InviteServiceListInvitesParams defines parameters for InviteServiceListInvites. -type InviteServiceListInvitesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterEmail *string `form:"filterEmail,omitempty" json:"filterEmail,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// InviteServiceAcceptInviteParams defines parameters for InviteServiceAcceptInvite. -type InviteServiceAcceptInviteParams struct { - InviteId *string `form:"inviteId,omitempty" json:"inviteId,omitempty"` -} - -// InviteServiceDeclineInviteParams defines parameters for InviteServiceDeclineInvite. -type InviteServiceDeclineInviteParams struct { - InviteId *string `form:"inviteId,omitempty" json:"inviteId,omitempty"` -} - -// InviteServiceListMyInvitesParams defines parameters for InviteServiceListMyInvites. -type InviteServiceListMyInvitesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// InvoiceServiceListInvoicesParams defines parameters for InvoiceServiceListInvoices. -type InvoiceServiceListInvoicesParams struct { - SubscriptionId *string `form:"subscriptionId,omitempty" json:"subscriptionId,omitempty"` - Status *InvoiceServiceListInvoicesParamsStatus `form:"status,omitempty" json:"status,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - OrderBy *string `form:"orderBy,omitempty" json:"orderBy,omitempty"` -} - -// InvoiceServiceListInvoicesParamsStatus defines parameters for InvoiceServiceListInvoices. -type InvoiceServiceListInvoicesParamsStatus string - -// IPAMServiceListAllocationsParams defines parameters for IPAMServiceListAllocations. -type IPAMServiceListAllocationsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // PrefixId Filter by prefix ID (required for filtering allocations) - PrefixId *string `form:"prefixId,omitempty" json:"prefixId,omitempty"` -} - -// IPAMServiceListNetworksParams defines parameters for IPAMServiceListNetworks. -type IPAMServiceListNetworksParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// IPAMServiceListPrefixesParams defines parameters for IPAMServiceListPrefixes. -type IPAMServiceListPrefixesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterNetworkId *string `form:"filterNetworkId,omitempty" json:"filterNetworkId,omitempty"` -} - -// IPAMServiceListAvailableIPsParams defines parameters for IPAMServiceListAvailableIPs. -type IPAMServiceListAvailableIPsParams struct { - // Limit Limit number of IPs returned (default: 100) - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` -} - -// IPAMServiceRemoveReservedPrefixParams defines parameters for IPAMServiceRemoveReservedPrefix. -type IPAMServiceRemoveReservedPrefixParams struct { - Cidr *string `form:"cidr,omitempty" json:"cidr,omitempty"` -} - -// MarketplaceServiceListAvailableAddonsParams defines parameters for MarketplaceServiceListAvailableAddons. -type MarketplaceServiceListAvailableAddonsParams struct { - FilterProviderId *string `form:"filterProviderId,omitempty" json:"filterProviderId,omitempty"` - VmId *string `form:"vmId,omitempty" json:"vmId,omitempty"` - FilterAddonType *MarketplaceServiceListAvailableAddonsParamsFilterAddonType `form:"filterAddonType,omitempty" json:"filterAddonType,omitempty"` - - // FilterBillingType - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - FilterBillingType *MarketplaceServiceListAvailableAddonsParamsFilterBillingType `form:"filterBillingType,omitempty" json:"filterBillingType,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// MarketplaceServiceListAvailableAddonsParamsFilterAddonType defines parameters for MarketplaceServiceListAvailableAddons. -type MarketplaceServiceListAvailableAddonsParamsFilterAddonType string - -// MarketplaceServiceListAvailableAddonsParamsFilterBillingType defines parameters for MarketplaceServiceListAvailableAddons. -type MarketplaceServiceListAvailableAddonsParamsFilterBillingType string - -// MarketplaceServiceListAvailablePlansParams defines parameters for MarketplaceServiceListAvailablePlans. -type MarketplaceServiceListAvailablePlansParams struct { - // FilterCountry Optional filters - // - // Filter by country name (case-insensitive) - FilterCountry *string `form:"filterCountry,omitempty" json:"filterCountry,omitempty"` - - // FilterCity Filter by city name (case-insensitive) - FilterCity *string `form:"filterCity,omitempty" json:"filterCity,omitempty"` - - // FilterBillingType Filter by billing type - // - // - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - FilterBillingType *MarketplaceServiceListAvailablePlansParamsFilterBillingType `form:"filterBillingType,omitempty" json:"filterBillingType,omitempty"` - - // FilterComputeType Filter by compute type - // - // - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance) - // - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds) - // - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage) - // - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources) - // - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio) - // - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio) - // - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity) - // - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs) - // - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*) - FilterComputeType *MarketplaceServiceListAvailablePlansParamsFilterComputeType `form:"filterComputeType,omitempty" json:"filterComputeType,omitempty"` - - // FilterComputeCategory Filter by compute category - // - // - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective) - // - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance) - FilterComputeCategory *MarketplaceServiceListAvailablePlansParamsFilterComputeCategory `form:"filterComputeCategory,omitempty" json:"filterComputeCategory,omitempty"` -} - -// MarketplaceServiceListAvailablePlansParamsFilterBillingType defines parameters for MarketplaceServiceListAvailablePlans. -type MarketplaceServiceListAvailablePlansParamsFilterBillingType string - -// MarketplaceServiceListAvailablePlansParamsFilterComputeType defines parameters for MarketplaceServiceListAvailablePlans. -type MarketplaceServiceListAvailablePlansParamsFilterComputeType string - -// MarketplaceServiceListAvailablePlansParamsFilterComputeCategory defines parameters for MarketplaceServiceListAvailablePlans. -type MarketplaceServiceListAvailablePlansParamsFilterComputeCategory string - -// MarketplaceServiceListMarketplaceProviderDirectoryParams defines parameters for MarketplaceServiceListMarketplaceProviderDirectory. -type MarketplaceServiceListMarketplaceProviderDirectoryParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// MarketplaceServiceListProvidersParams defines parameters for MarketplaceServiceListProviders. -type MarketplaceServiceListProvidersParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // FilterPlanCode Filter providers that offer this plan code (required) - FilterPlanCode *string `form:"filterPlanCode,omitempty" json:"filterPlanCode,omitempty"` - - // FilterCountry Filter by country name (required, case-insensitive) - FilterCountry *string `form:"filterCountry,omitempty" json:"filterCountry,omitempty"` - - // FilterCity Filter by city name (required, case-insensitive) - FilterCity *string `form:"filterCity,omitempty" json:"filterCity,omitempty"` - - // FilterBillingType Filter by billing type (subscription/fixed or usage-based) - // - // - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - FilterBillingType *MarketplaceServiceListProvidersParamsFilterBillingType `form:"filterBillingType,omitempty" json:"filterBillingType,omitempty"` - - // Search Search by organization name or description - Search *string `form:"search,omitempty" json:"search,omitempty"` - FilterIpv6AvailableOnly *bool `form:"filterIpv6AvailableOnly,omitempty" json:"filterIpv6AvailableOnly,omitempty"` - - // PlanPriceSort How to order providers: default is newest first; plan_price_sort can order by the - // displayed list price (same basis as the UI) for the selected plan and billing type. - // - // - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST: Ascending: lowest list price first (usage: hourly, subscription: fixed monthly, free: 0) - // - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST: Descending: highest list price first - PlanPriceSort *MarketplaceServiceListProvidersParamsPlanPriceSort `form:"planPriceSort,omitempty" json:"planPriceSort,omitempty"` - - // FilterUnlimitedBandwidthOnly Only include providers where bandwidth egress is effectively unlimited for the selected plan - // (same basis as UI badge: overage_price if > 0 else unit_amount; unlimited when effective $/GB == 0). - FilterUnlimitedBandwidthOnly *bool `form:"filterUnlimitedBandwidthOnly,omitempty" json:"filterUnlimitedBandwidthOnly,omitempty"` - - // FilterDdosProviders When set, only organizations whose ddos_provider is one of these slugs are included. - // When empty, do not filter by DDoS. Mirrored by marketplace UI: all slugs "selected" = omit this. - FilterDdosProviders *[]string `form:"filterDdosProviders,omitempty" json:"filterDdosProviders,omitempty"` -} - -// MarketplaceServiceListProvidersParamsFilterBillingType defines parameters for MarketplaceServiceListProviders. -type MarketplaceServiceListProvidersParamsFilterBillingType string - -// MarketplaceServiceListProvidersParamsPlanPriceSort defines parameters for MarketplaceServiceListProviders. -type MarketplaceServiceListProvidersParamsPlanPriceSort string - -// MetricServiceListMetricsParams defines parameters for MetricServiceListMetrics. -type MetricServiceListMetricsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - BillableOnly *bool `form:"billableOnly,omitempty" json:"billableOnly,omitempty"` -} - -// MetricsCredentialServiceListMetricsWriteCredentialsParams defines parameters for MetricsCredentialServiceListMetricsWriteCredentials. -type MetricsCredentialServiceListMetricsWriteCredentialsParams struct { - // AgentId Optional: omit or leave empty to list credentials for the whole organization. - AgentId *string `form:"agentId,omitempty" json:"agentId,omitempty"` - IncludeRevoked *bool `form:"includeRevoked,omitempty" json:"includeRevoked,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - - // PageSize -1 means fetch all; otherwise 1..100. - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// MetricServiceGetMetricParams defines parameters for MetricServiceGetMetric. -type MetricServiceGetMetricParams struct { - // Code Alternative to id - Code *string `form:"code,omitempty" json:"code,omitempty"` -} - -// NodeServiceListNodesParams defines parameters for NodeServiceListNodes. -type NodeServiceListNodesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // PlatformId Optional filter; UUID format validated in ListNodes when set. - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` - ServiceStatus *NodeServiceListNodesParamsServiceStatus `form:"serviceStatus,omitempty" json:"serviceStatus,omitempty"` - Expand *[]string `form:"expand,omitempty" json:"expand,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - RegionId *string `form:"regionId,omitempty" json:"regionId,omitempty"` -} - -// NodeServiceListNodesParamsServiceStatus defines parameters for NodeServiceListNodes. -type NodeServiceListNodesParamsServiceStatus string - -// OAuth2ServiceAuthorizeParams defines parameters for OAuth2ServiceAuthorize. -type OAuth2ServiceAuthorizeParams struct { - ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"` - ResponseType *string `form:"responseType,omitempty" json:"responseType,omitempty"` - RedirectUri *string `form:"redirectUri,omitempty" json:"redirectUri,omitempty"` - Scope *string `form:"scope,omitempty" json:"scope,omitempty"` - - // State CSRF protection - State *string `form:"state,omitempty" json:"state,omitempty"` - - // CodeChallenge PKCE challenge - CodeChallenge *string `form:"codeChallenge,omitempty" json:"codeChallenge,omitempty"` - - // CodeChallengeMethod Only S256, not plain - CodeChallengeMethod *string `form:"codeChallengeMethod,omitempty" json:"codeChallengeMethod,omitempty"` -} - -// OAuth2ServiceListClientsParams defines parameters for OAuth2ServiceListClients. -type OAuth2ServiceListClientsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// OrganizationServiceListOrganizationsParams defines parameters for OrganizationServiceListOrganizations. -type OrganizationServiceListOrganizationsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// PaymentMethodServiceListPaymentMethodsParams defines parameters for PaymentMethodServiceListPaymentMethods. -type PaymentMethodServiceListPaymentMethodsParams struct { - // SubscriptionId Filters - // - // Filter by subscription - SubscriptionId *string `form:"subscriptionId,omitempty" json:"subscriptionId,omitempty"` - - // OnlyDefault Only return default payment method - OnlyDefault *bool `form:"onlyDefault,omitempty" json:"onlyDefault,omitempty"` - - // Page Pagination - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// PaymentServiceListPaymentsParams defines parameters for PaymentServiceListPayments. -type PaymentServiceListPaymentsParams struct { - InvoiceId *string `form:"invoiceId,omitempty" json:"invoiceId,omitempty"` - Status *PaymentServiceListPaymentsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// PaymentServiceListPaymentsParamsStatus defines parameters for PaymentServiceListPayments. -type PaymentServiceListPaymentsParamsStatus string - -// PermissionServiceListPermissionsParams defines parameters for PermissionServiceListPermissions. -type PermissionServiceListPermissionsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterName *string `form:"filterName,omitempty" json:"filterName,omitempty"` -} - -// PermissionServiceListEffectivePermissionsParams defines parameters for PermissionServiceListEffectivePermissions. -type PermissionServiceListEffectivePermissionsParams struct { - UserIds *[]string `form:"userIds,omitempty" json:"userIds,omitempty"` -} - -// PermissionServiceRemovePermissionFromRoleParams defines parameters for PermissionServiceRemovePermissionFromRole. -type PermissionServiceRemovePermissionFromRoleParams struct { - PermissionIds *[]string `form:"permissionIds,omitempty" json:"permissionIds,omitempty"` - RoleId *string `form:"roleId,omitempty" json:"roleId,omitempty"` -} - -// PlanServiceListPlansParams defines parameters for PlanServiceListPlans. -type PlanServiceListPlansParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // IsTemplate Filter to show only template plans (true) or only non-template plans - // (false) If not specified, shows both template and non-template plans - IsTemplate *bool `form:"isTemplate,omitempty" json:"isTemplate,omitempty"` - - // EndUser Filter by end user type (client, provider, or all) - // If not specified, shows plans for all end user types based on organization - // permissions - EndUser *PlanServiceListPlansParamsEndUser `form:"endUser,omitempty" json:"endUser,omitempty"` - - // Search Search filter for plan name, code, or description - Search *string `form:"search,omitempty" json:"search,omitempty"` - - // AssetType Filter by asset type (vm, gameserver, etc.) - AssetType *PlanServiceListPlansParamsAssetType `form:"assetType,omitempty" json:"assetType,omitempty"` - - // BillingType Filter by billing type (subscription, usage, etc.) - // If not specified, shows plans for all billing types - // - // - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan) - BillingType *PlanServiceListPlansParamsBillingType `form:"billingType,omitempty" json:"billingType,omitempty"` - - // FilterComputeType Filter by compute type (optional). If provided, only plans with matching compute type in their name are returned. - // Examples: "high performance", "high frequency", "general compute", "general purpose", "cpu optimized", "memory optimized", "storage optimized" - // Filtering is case-insensitive. - FilterComputeType *string `form:"filterComputeType,omitempty" json:"filterComputeType,omitempty"` - - // FilterCode Filter by plan code (optional). If provided, only plans with matching code are returned. - // Filtering is case-insensitive. - // Examples: "SC-GC-1C-1G-20", "DC-HF-4C-8G-160" - // Filtering is case-insensitive. - FilterCode *string `form:"filterCode,omitempty" json:"filterCode,omitempty"` -} - -// PlanServiceListPlansParamsEndUser defines parameters for PlanServiceListPlans. -type PlanServiceListPlansParamsEndUser string - -// PlanServiceListPlansParamsAssetType defines parameters for PlanServiceListPlans. -type PlanServiceListPlansParamsAssetType string - -// PlanServiceListPlansParamsBillingType defines parameters for PlanServiceListPlans. -type PlanServiceListPlansParamsBillingType string - -// PlanServiceSubscribeParams defines parameters for PlanServiceSubscribe. -type PlanServiceSubscribeParams struct { - // BillingPeriod Optional billing period. If not provided, uses the plan's default billing - // period. If provided, validates that a PlanPrice exists for this billing - // period. If not available, returns a FailedPrecondition error. - BillingPeriod *PlanServiceSubscribeParamsBillingPeriod `form:"billingPeriod,omitempty" json:"billingPeriod,omitempty"` -} - -// PlanServiceSubscribeParamsBillingPeriod defines parameters for PlanServiceSubscribe. -type PlanServiceSubscribeParamsBillingPeriod string - -// PlatformServiceListPlatformsParams defines parameters for PlatformServiceListPlatforms. -type PlatformServiceListPlatformsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - ServiceStatus *PlatformServiceListPlatformsParamsServiceStatus `form:"serviceStatus,omitempty" json:"serviceStatus,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// PlatformServiceListPlatformsParamsServiceStatus defines parameters for PlatformServiceListPlatforms. -type PlatformServiceListPlatformsParamsServiceStatus string - -// ProviderReviewServiceListProviderReviewsParams defines parameters for ProviderReviewServiceListProviderReviews. -type ProviderReviewServiceListProviderReviewsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // StarRatings Multi-select star filter (e.g. [5,4]); empty means any stars. - StarRatings *[]int32 `form:"starRatings,omitempty" json:"starRatings,omitempty"` - - // Search Case-insensitive substring match on review comment or provider reply; empty means no text filter. - Search *string `form:"search,omitempty" json:"search,omitempty"` - - // ReplyFilter Inbox: 0 = awaiting provider reply / empty reply (default), 1 = replied only, 2 = all reviews. - ReplyFilter *int32 `form:"replyFilter,omitempty" json:"replyFilter,omitempty"` -} - -// ProviderConnectServiceCreateConnectTaxSessionJSONBody defines parameters for ProviderConnectServiceCreateConnectTaxSession. -type ProviderConnectServiceCreateConnectTaxSessionJSONBody = map[string]interface{} - -// ProviderCustomerServiceListProviderCustomersParams defines parameters for ProviderCustomerServiceListProviderCustomers. -type ProviderCustomerServiceListProviderCustomersParams struct { - // Page 0-based page (default 0). - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - - // PageSize -1 = all matches (no server row cap; prefer paginated 1..100 for large data sets). Otherwise 1..100 per page (see ListVirtualMachinesRequest). - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Search Case-insensitive match on client organization name or any member email (owners/members via roles & groups). - Search *string `form:"search,omitempty" json:"search,omitempty"` - - // ActivityFilter Default / UNSPECIFIED means ALL (same as PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL). - // - // - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL: All customers (any VM history with this provider, including when every VM is soft-deleted). - ActivityFilter *ProviderCustomerServiceListProviderCustomersParamsActivityFilter `form:"activityFilter,omitempty" json:"activityFilter,omitempty"` -} - -// ProviderCustomerServiceListProviderCustomersParamsActivityFilter defines parameters for ProviderCustomerServiceListProviderCustomers. -type ProviderCustomerServiceListProviderCustomersParamsActivityFilter string - -// ProviderCustomerServiceListProviderCustomerAssetsParams defines parameters for ProviderCustomerServiceListProviderCustomerAssets. -type ProviderCustomerServiceListProviderCustomerAssetsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - - // PageSize Same rules as ListProviderCustomers.page_size. - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - AssetType *ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType `form:"assetType,omitempty" json:"assetType,omitempty"` - - // ActivityStatus When set (not UNSPECIFIED), only assets matching this activity status are returned. - ActivityStatus *ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus `form:"activityStatus,omitempty" json:"activityStatus,omitempty"` - - // RegionId When set to a non-empty UUID, only assets whose VM node is in this region are returned. - RegionId *string `form:"regionId,omitempty" json:"regionId,omitempty"` -} - -// ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType defines parameters for ProviderCustomerServiceListProviderCustomerAssets. -type ProviderCustomerServiceListProviderCustomerAssetsParamsAssetType string - -// ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus defines parameters for ProviderCustomerServiceListProviderCustomerAssets. -type ProviderCustomerServiceListProviderCustomerAssetsParamsActivityStatus string - -// ProviderDashboardServiceListDashboardAddonCatalogStatsParams defines parameters for ProviderDashboardServiceListDashboardAddonCatalogStats. -type ProviderDashboardServiceListDashboardAddonCatalogStatsParams struct { - AddonSearch *string `form:"addonSearch,omitempty" json:"addonSearch,omitempty"` - AddonTypeFilter *string `form:"addonTypeFilter,omitempty" json:"addonTypeFilter,omitempty"` - AddonBillingTypeFilter *string `form:"addonBillingTypeFilter,omitempty" json:"addonBillingTypeFilter,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams defines parameters for ProviderDashboardServiceGetDashboardAssetSalesTimeseries. -type ProviderDashboardServiceGetDashboardAssetSalesTimeseriesParams struct { - RangeDays *int32 `form:"rangeDays,omitempty" json:"rangeDays,omitempty"` -} - -// ProviderDashboardServiceGetDashboardBillingSalesParams defines parameters for ProviderDashboardServiceGetDashboardBillingSales. -type ProviderDashboardServiceGetDashboardBillingSalesParams struct { - RangeDays *int32 `form:"rangeDays,omitempty" json:"rangeDays,omitempty"` - IncludePriorPeriod *bool `form:"includePriorPeriod,omitempty" json:"includePriorPeriod,omitempty"` - - // RevenueByCustomerPage Revenue-by-customer table (1-based page). Omit for defaults (page 1, page size 25). - RevenueByCustomerPage *int32 `form:"revenueByCustomerPage,omitempty" json:"revenueByCustomerPage,omitempty"` - RevenueByCustomerPageSize *int32 `form:"revenueByCustomerPageSize,omitempty" json:"revenueByCustomerPageSize,omitempty"` - - // RevenueByCustomerEmailFilter Case-insensitive substring match on contact email, organization id, or organization name. - RevenueByCustomerEmailFilter *string `form:"revenueByCustomerEmailFilter,omitempty" json:"revenueByCustomerEmailFilter,omitempty"` +// V1CreateServiceAccountRequest defines model for v1CreateServiceAccountRequest. +type V1CreateServiceAccountRequest struct { + AllowedIps *[]string `json:"allowedIps,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` } -// ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams defines parameters for ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseries. -type ProviderDashboardServiceGetDashboardCustomerAcquisitionTimeseriesParams struct { - RangeDays *int32 `form:"rangeDays,omitempty" json:"rangeDays,omitempty"` +// V1GeneratePeeringConfigResponse defines model for v1GeneratePeeringConfigResponse. +type V1GeneratePeeringConfigResponse struct { + Config *string `json:"config,omitempty"` } -// ProviderDashboardServiceListDashboardInfrastructureParams defines parameters for ProviderDashboardServiceListDashboardInfrastructure. -type ProviderDashboardServiceListDashboardInfrastructureParams struct { - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` - RegionId *string `form:"regionId,omitempty" json:"regionId,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// V1GenerateServiceAccountTokenResponse defines model for v1GenerateServiceAccountTokenResponse. +type V1GenerateServiceAccountTokenResponse struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + Token *string `json:"token,omitempty"` + TokenId *string `json:"tokenId,omitempty"` + Warning *string `json:"warning,omitempty"` } -// ProviderDashboardServiceListDashboardIpamParams defines parameters for ProviderDashboardServiceListDashboardIpam. -type ProviderDashboardServiceListDashboardIpamParams struct { - NetworkId *string `form:"networkId,omitempty" json:"networkId,omitempty"` - AllocatedSampleIpsPage *int32 `form:"allocatedSampleIpsPage,omitempty" json:"allocatedSampleIpsPage,omitempty"` - AllocatedSampleIpsPageSize *int32 `form:"allocatedSampleIpsPageSize,omitempty" json:"allocatedSampleIpsPageSize,omitempty"` +// V1GetAgentResponse defines model for v1GetAgentResponse. +type V1GetAgentResponse struct { + Agent *V1Agent `json:"agent,omitempty"` } -// ProviderDashboardServiceListDashboardIpamAssignmentsParams defines parameters for ProviderDashboardServiceListDashboardIpamAssignments. -type ProviderDashboardServiceListDashboardIpamAssignmentsParams struct { - NetworkId *string `form:"networkId,omitempty" json:"networkId,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - IpFamily *ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily `form:"ipFamily,omitempty" json:"ipFamily,omitempty"` +// V1GetOrganizationResponse defines model for v1GetOrganizationResponse. +type V1GetOrganizationResponse struct { + Organization *V1Organization `json:"organization,omitempty"` } -// ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily defines parameters for ProviderDashboardServiceListDashboardIpamAssignments. -type ProviderDashboardServiceListDashboardIpamAssignmentsParamsIpFamily string +// V1InboundPeeringState defines model for v1InboundPeeringState. +type V1InboundPeeringState string -// ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams defines parameters for ProviderDashboardServiceListDashboardPlanSubscriptionStats. -type ProviderDashboardServiceListDashboardPlanSubscriptionStatsParams struct { - PlanSearch *string `form:"planSearch,omitempty" json:"planSearch,omitempty"` - PlanBillingTypeFilter *string `form:"planBillingTypeFilter,omitempty" json:"planBillingTypeFilter,omitempty"` - PlanAssetFilter *string `form:"planAssetFilter,omitempty" json:"planAssetFilter,omitempty"` - PlansPage *int32 `form:"plansPage,omitempty" json:"plansPage,omitempty"` - PlansPageSize *int32 `form:"plansPageSize,omitempty" json:"plansPageSize,omitempty"` +// V1ListAgentsResponse defines model for v1ListAgentsResponse. +type V1ListAgentsResponse struct { + Agents *[]V1GetAgentResponse `json:"agents,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` } -// ProviderDashboardServiceListDashboardTicketStatisticsParams defines parameters for ProviderDashboardServiceListDashboardTicketStatistics. -type ProviderDashboardServiceListDashboardTicketStatisticsParams struct { - FromTime *time.Time `form:"fromTime,omitempty" json:"fromTime,omitempty"` - ToTime *time.Time `form:"toTime,omitempty" json:"toTime,omitempty"` +// V1ListMetricsWriteCredentialsResponse defines model for v1ListMetricsWriteCredentialsResponse. +type V1ListMetricsWriteCredentialsResponse struct { + Credentials *[]V1MetricsWriteCredential `json:"credentials,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` } -// ProviderDashboardServiceListDashboardVirtualMachinesParams defines parameters for ProviderDashboardServiceListDashboardVirtualMachines. -type ProviderDashboardServiceListDashboardVirtualMachinesParams struct { - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` - RegionId *string `form:"regionId,omitempty" json:"regionId,omitempty"` - NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"` - CustomerEmailContains *string `form:"customerEmailContains,omitempty" json:"customerEmailContains,omitempty"` - VmPage *int32 `form:"vmPage,omitempty" json:"vmPage,omitempty"` - VmPageSize *int32 `form:"vmPageSize,omitempty" json:"vmPageSize,omitempty"` - VmtemplateId *string `form:"vmtemplateId,omitempty" json:"vmtemplateId,omitempty"` +// V1ListOrganizationsResponse defines model for v1ListOrganizationsResponse. +type V1ListOrganizationsResponse struct { + Organizations *[]V1Organization `json:"organizations,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` } -// LiveValidationServiceListPlanLiveValidationsParams defines parameters for LiveValidationServiceListPlanLiveValidations. -type LiveValidationServiceListPlanLiveValidationsParams struct { - PlanId *string `form:"planId,omitempty" json:"planId,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// V1ListServiceAccountTokensResponse defines model for v1ListServiceAccountTokensResponse. +type V1ListServiceAccountTokensResponse struct { + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Tokens *[]V1ServiceAccountTokenInfo `json:"tokens,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` } -// ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams defines parameters for ProviderNetworkServiceListVirtualMachineSmtpOutboundPolicies. -type ProviderNetworkServiceListVirtualMachineSmtpOutboundPoliciesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Search Case-insensitive substring match on hostname, customer contact email, or exact virtual machine UUID. - Search *string `form:"search,omitempty" json:"search,omitempty"` +// V1ListServiceAccountsResponse defines model for v1ListServiceAccountsResponse. +type V1ListServiceAccountsResponse struct { + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + ServiceAccounts *[]V1ServiceAccountResponse `json:"serviceAccounts,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` } -// PayoutInvoiceServiceListPayoutInvoicesParams defines parameters for PayoutInvoiceServiceListPayoutInvoices. -type PayoutInvoiceServiceListPayoutInvoicesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - - // Status Filter by payout status - Status *PayoutInvoiceServiceListPayoutInvoicesParamsStatus `form:"status,omitempty" json:"status,omitempty"` +// V1MetricsWriteCredential defines model for v1MetricsWriteCredential. +type V1MetricsWriteCredential struct { + AgentId *string `json:"agentId,omitempty"` + CreateTime *time.Time `json:"createTime,omitempty"` + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + Id *string `json:"id,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + PublicId *string `json:"publicId,omitempty"` + RevokedAt *time.Time `json:"revokedAt,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` } -// PayoutInvoiceServiceListPayoutInvoicesParamsStatus defines parameters for PayoutInvoiceServiceListPayoutInvoices. -type PayoutInvoiceServiceListPayoutInvoicesParamsStatus string +// V1Organization defines model for v1Organization. +type V1Organization struct { + Asn *string `json:"asn,omitempty"` + DdosProvider *string `json:"ddosProvider,omitempty"` + Description *string `json:"description,omitempty"` + Domains *[]string `json:"domains,omitempty"` + EnforceMfa *bool `json:"enforceMfa,omitempty"` + EnforceSso *bool `json:"enforceSso,omitempty"` + EnforceVerifiedDomain *bool `json:"enforceVerifiedDomain,omitempty"` + Groups *[]string `json:"groups,omitempty"` + HypervisorDriver *V1PlatformDriver `json:"hypervisorDriver,omitempty"` + Id *string `json:"id,omitempty"` + IsVerified *bool `json:"isVerified,omitempty"` + Metadata *map[string]interface{} `json:"metadata,omitempty"` + Name *string `json:"name,omitempty"` + Onboarded *bool `json:"onboarded,omitempty"` + OrganizationRoles *[]string `json:"organizationRoles,omitempty"` + Owner *string `json:"owner,omitempty"` + ProviderLogoUrl *string `json:"providerLogoUrl,omitempty"` + ProviderWebsiteUrl *string `json:"providerWebsiteUrl,omitempty"` + ReviewRequested *bool `json:"reviewRequested,omitempty"` + Status *Protov1Status `json:"status,omitempty"` + Subscriptions *[]string `json:"subscriptions,omitempty"` + Timestamps *V1Timestamps `json:"timestamps,omitempty"` + Type *V1OrganizationType `json:"type,omitempty"` +} -// ProviderPlanServiceListAssignableNodesForPlanParams defines parameters for ProviderPlanServiceListAssignableNodesForPlan. -type ProviderPlanServiceListAssignableNodesForPlanParams struct { - // TemplatePlanId Optional: set for create-from-template. Empty when plan_id is used. - TemplatePlanId *string `form:"templatePlanId,omitempty" json:"templatePlanId,omitempty"` +// V1OrganizationType defines model for v1OrganizationType. +type V1OrganizationType string - // PlanId Optional: set for edit existing plan. Empty when template_plan_id is used. - PlanId *string `form:"planId,omitempty" json:"planId,omitempty"` - RegionId *string `form:"regionId,omitempty" json:"regionId,omitempty"` -} +// V1PlatformDriver defines model for v1PlatformDriver. +type V1PlatformDriver string -// LiveValidationServiceDeletePlanLiveValidationParams defines parameters for LiveValidationServiceDeletePlanLiveValidation. -type LiveValidationServiceDeletePlanLiveValidationParams struct { - NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"` +// V1PlatformVersions defines model for v1PlatformVersions. +type V1PlatformVersions struct { + Components *[]V1ComponentVersion `json:"components,omitempty"` + SchemaVersion *string `json:"schemaVersion,omitempty"` } -// LiveValidationServiceGetPlanLiveValidationParams defines parameters for LiveValidationServiceGetPlanLiveValidation. -type LiveValidationServiceGetPlanLiveValidationParams struct { - NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"` +// V1ReplaceRoleForServiceAccountRequest defines model for v1ReplaceRoleForServiceAccountRequest. +type V1ReplaceRoleForServiceAccountRequest struct { + RoleId *string `json:"roleId,omitempty"` + ServiceAccountId *string `json:"serviceAccountId,omitempty"` } -// LiveValidationServiceListPlanLiveValidationBenchmarksParams defines parameters for LiveValidationServiceListPlanLiveValidationBenchmarks. -type LiveValidationServiceListPlanLiveValidationBenchmarksParams struct { - NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// V1ServiceAccountResponse defines model for v1ServiceAccountResponse. +type V1ServiceAccountResponse struct { + ActiveTokenCount *int32 `json:"activeTokenCount,omitempty"` + AllowedIps *[]string `json:"allowedIps,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedByUserId *string `json:"createdByUserId,omitempty"` + Description *string `json:"description,omitempty"` + GroupIds *[]string `json:"groupIds,omitempty"` + Id *string `json:"id,omitempty"` + IsActive *bool `json:"isActive,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` + RoleIds *[]string `json:"roleIds,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -// PreflightServiceListPreflightChecksParams defines parameters for PreflightServiceListPreflightChecks. -type PreflightServiceListPreflightChecksParams struct { - PlanCode *string `form:"planCode,omitempty" json:"planCode,omitempty"` - PlanId *string `form:"planId,omitempty" json:"planId,omitempty"` - IssuesOnly *bool `form:"issuesOnly,omitempty" json:"issuesOnly,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// V1ServiceAccountTokenInfo defines model for v1ServiceAccountTokenInfo. +type V1ServiceAccountTokenInfo struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedByUserId *string `json:"createdByUserId,omitempty"` + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresInDays *int32 `json:"expiresInDays,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + Name *string `json:"name,omitempty"` + Status *string `json:"status,omitempty"` + TokenId *string `json:"tokenId,omitempty"` } -// PayoutInvoiceServiceGetProviderRevenueParams defines parameters for PayoutInvoiceServiceGetProviderRevenue. -type PayoutInvoiceServiceGetProviderRevenueParams struct { - // StartDate Start date for revenue calculation (inclusive) - StartDate *time.Time `form:"startDate,omitempty" json:"startDate,omitempty"` - - // EndDate End date for revenue calculation (inclusive) - EndDate *time.Time `form:"endDate,omitempty" json:"endDate,omitempty"` - - // PlanId Filter by plan ID (optional) - PlanId *string `form:"planId,omitempty" json:"planId,omitempty"` - - // ClientOrganizationId Filter by client organization ID (optional) - ClientOrganizationId *string `form:"clientOrganizationId,omitempty" json:"clientOrganizationId,omitempty"` +// V1ServiceStatus defines model for v1ServiceStatus. +type V1ServiceStatus string - // IncludePending Include pending/processing payouts in calculations (default: true) - IncludePending *bool `form:"includePending,omitempty" json:"includePending,omitempty"` +// V1SuccessResponse defines model for v1SuccessResponse. +type V1SuccessResponse struct { + Success *bool `json:"success,omitempty"` } -// RefundServiceListRefundsParams defines parameters for RefundServiceListRefunds. -type RefundServiceListRefundsParams struct { - PaymentId *string `form:"paymentId,omitempty" json:"paymentId,omitempty"` - InvoiceId *string `form:"invoiceId,omitempty" json:"invoiceId,omitempty"` - Status *RefundServiceListRefundsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// V1Timestamps defines model for v1Timestamps. +type V1Timestamps struct { + CreateTime *time.Time `json:"createTime,omitempty"` + UpdateTime *time.Time `json:"updateTime,omitempty"` } -// RefundServiceListRefundsParamsStatus defines parameters for RefundServiceListRefunds. -type RefundServiceListRefundsParamsStatus string +// V1UpdateAgentResponse defines model for v1UpdateAgentResponse. +type V1UpdateAgentResponse struct { + Agent *V1Agent `json:"agent,omitempty"` +} -// RegionServiceListRegionsParams defines parameters for RegionServiceListRegions. -type RegionServiceListRegionsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` +// V1UploadInboundPeeringConfigResponse defines model for v1UploadInboundPeeringConfigResponse. +type V1UploadInboundPeeringConfigResponse struct { + InboundPeeringState *V1InboundPeeringState `json:"inboundPeeringState,omitempty"` } -// RoadmapServiceListRoadmapFeatureRequestsParams defines parameters for RoadmapServiceListRoadmapFeatureRequests. -type RoadmapServiceListRoadmapFeatureRequestsParams struct { - Status *RoadmapServiceListRoadmapFeatureRequestsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - ProductSlug *string `form:"productSlug,omitempty" json:"productSlug,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - Sort *string `form:"sort,omitempty" json:"sort,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +// AgentServiceListAgentsParams defines parameters for AgentServiceListAgents. +type AgentServiceListAgentsParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` + GatewayRegion *AgentServiceListAgentsParamsGatewayRegion `form:"gatewayRegion,omitempty" json:"gatewayRegion,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` } -// RoadmapServiceListRoadmapFeatureRequestsParamsStatus defines parameters for RoadmapServiceListRoadmapFeatureRequests. -type RoadmapServiceListRoadmapFeatureRequestsParamsStatus string +// AgentServiceListAgentsParamsGatewayRegion defines parameters for AgentServiceListAgents. +type AgentServiceListAgentsParamsGatewayRegion string -// RoadmapServiceListRoadmapFeatureRequestCommentsParams defines parameters for RoadmapServiceListRoadmapFeatureRequestComments. -type RoadmapServiceListRoadmapFeatureRequestCommentsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +// GroupServiceRemoveServiceAccountFromGroupParams defines parameters for GroupServiceRemoveServiceAccountFromGroup. +type GroupServiceRemoveServiceAccountFromGroupParams struct { + GroupId *string `form:"groupId,omitempty" json:"groupId,omitempty"` + ServiceAccountIds *[]string `form:"serviceAccountIds,omitempty" json:"serviceAccountIds,omitempty"` } -// RoleServiceListRolesParams defines parameters for RoleServiceListRoles. -type RoleServiceListRolesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterName *string `form:"filterName,omitempty" json:"filterName,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` +// MetricsCredentialServiceListMetricsWriteCredentialsParams defines parameters for MetricsCredentialServiceListMetricsWriteCredentials. +type MetricsCredentialServiceListMetricsWriteCredentialsParams struct { + AgentId *string `form:"agentId,omitempty" json:"agentId,omitempty"` + IncludeRevoked *bool `form:"includeRevoked,omitempty" json:"includeRevoked,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` } -// SecretServiceListSecretsParams defines parameters for SecretServiceListSecrets. -type SecretServiceListSecretsParams struct { +// OrganizationServiceListOrganizationsParams defines parameters for OrganizationServiceListOrganizations. +type OrganizationServiceListOrganizationsParams struct { Page *int32 `form:"page,omitempty" json:"page,omitempty"` PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` } @@ -9287,459 +488,30 @@ type ServiceAccountServiceListTokensParams struct { PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` } -// SSHKeyServiceListSSHKeysParams defines parameters for SSHKeyServiceListSSHKeys. -type SSHKeyServiceListSSHKeysParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// SubscriptionServiceListSubscriptionsParams defines parameters for SubscriptionServiceListSubscriptions. -type SubscriptionServiceListSubscriptionsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - OnlyActive *bool `form:"onlyActive,omitempty" json:"onlyActive,omitempty"` -} - -// AddonServiceListAddonSubscriptionsParams defines parameters for AddonServiceListAddonSubscriptions. -type AddonServiceListAddonSubscriptionsParams struct { - // AddonStatus Filter by status - AddonStatus *AddonServiceListAddonSubscriptionsParamsAddonStatus `form:"addonStatus,omitempty" json:"addonStatus,omitempty"` -} - -// AddonServiceListAddonSubscriptionsParamsAddonStatus defines parameters for AddonServiceListAddonSubscriptions. -type AddonServiceListAddonSubscriptionsParamsAddonStatus string - -// TicketServiceListTicketTemplatesParams defines parameters for TicketServiceListTicketTemplates. -type TicketServiceListTicketTemplatesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// TicketServiceListTicketsParams defines parameters for TicketServiceListTickets. -type TicketServiceListTicketsParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterTicketStatus *TicketServiceListTicketsParamsFilterTicketStatus `form:"filterTicketStatus,omitempty" json:"filterTicketStatus,omitempty"` - FilterCaseType *TicketServiceListTicketsParamsFilterCaseType `form:"filterCaseType,omitempty" json:"filterCaseType,omitempty"` - FilterPriority *TicketServiceListTicketsParamsFilterPriority `form:"filterPriority,omitempty" json:"filterPriority,omitempty"` -} - -// TicketServiceListTicketsParamsFilterTicketStatus defines parameters for TicketServiceListTickets. -type TicketServiceListTicketsParamsFilterTicketStatus string - -// TicketServiceListTicketsParamsFilterCaseType defines parameters for TicketServiceListTickets. -type TicketServiceListTicketsParamsFilterCaseType string - -// TicketServiceListTicketsParamsFilterPriority defines parameters for TicketServiceListTickets. -type TicketServiceListTicketsParamsFilterPriority string - -// UsageReportServiceListUsageRecordsParams defines parameters for UsageReportServiceListUsageRecords. -type UsageReportServiceListUsageRecordsParams struct { - // SubscriptionId Filters - SubscriptionId *string `form:"subscriptionId,omitempty" json:"subscriptionId,omitempty"` - MetricId *string `form:"metricId,omitempty" json:"metricId,omitempty"` - UsageRecordStatus *UsageReportServiceListUsageRecordsParamsUsageRecordStatus `form:"usageRecordStatus,omitempty" json:"usageRecordStatus,omitempty"` - - // StartTime Time range - StartTime *time.Time `form:"startTime,omitempty" json:"startTime,omitempty"` - EndTime *time.Time `form:"endTime,omitempty" json:"endTime,omitempty"` - - // Page Pagination - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// UsageReportServiceListUsageRecordsParamsUsageRecordStatus defines parameters for UsageReportServiceListUsageRecords. -type UsageReportServiceListUsageRecordsParamsUsageRecordStatus string - -// UsageReportServiceGetUsageReportParams defines parameters for UsageReportServiceGetUsageReport. -type UsageReportServiceGetUsageReportParams struct { - // SubscriptionId Required filters - SubscriptionId *string `form:"subscriptionId,omitempty" json:"subscriptionId,omitempty"` - - // MetricId Optional filters - MetricId *string `form:"metricId,omitempty" json:"metricId,omitempty"` - - // BillingPeriodStart Billing period (if not provided, uses current billing period) - BillingPeriodStart *time.Time `form:"billingPeriodStart,omitempty" json:"billingPeriodStart,omitempty"` - BillingPeriodEnd *time.Time `form:"billingPeriodEnd,omitempty" json:"billingPeriodEnd,omitempty"` - - // IncludeBilled Options - // - // Include already billed records - IncludeBilled *bool `form:"includeBilled,omitempty" json:"includeBilled,omitempty"` -} - -// UserServiceListUsersParams defines parameters for UserServiceListUsers. -type UserServiceListUsersParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterEmail *string `form:"filterEmail,omitempty" json:"filterEmail,omitempty"` - FilterStatus *UserServiceListUsersParamsFilterStatus `form:"filterStatus,omitempty" json:"filterStatus,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` -} - -// UserServiceListUsersParamsFilterStatus defines parameters for UserServiceListUsers. -type UserServiceListUsersParamsFilterStatus string - -// VirtualMachineServiceListVirtualMachinesParams defines parameters for VirtualMachineServiceListVirtualMachines. -type VirtualMachineServiceListVirtualMachinesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - FilterOperationStatus *VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus `form:"filterOperationStatus,omitempty" json:"filterOperationStatus,omitempty"` -} - -// VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus defines parameters for VirtualMachineServiceListVirtualMachines. -type VirtualMachineServiceListVirtualMachinesParamsFilterOperationStatus string - -// BackupServiceListBackupsParams defines parameters for BackupServiceListBackups. -type BackupServiceListBackupsParams struct { - Status *BackupServiceListBackupsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// BackupServiceListBackupsParamsStatus defines parameters for BackupServiceListBackups. -type BackupServiceListBackupsParamsStatus string - -// SnapshotServiceListSnapshotsParams defines parameters for SnapshotServiceListSnapshots. -type SnapshotServiceListSnapshotsParams struct { - Status *SnapshotServiceListSnapshotsParamsStatus `form:"status,omitempty" json:"status,omitempty"` - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` -} - -// SnapshotServiceListSnapshotsParamsStatus defines parameters for SnapshotServiceListSnapshots. -type SnapshotServiceListSnapshotsParamsStatus string - -// VMTemplateServiceListVMTemplatesParams defines parameters for VMTemplateServiceListVMTemplates. -type VMTemplateServiceListVMTemplatesParams struct { - Page *int32 `form:"page,omitempty" json:"page,omitempty"` - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - Search *string `form:"search,omitempty" json:"search,omitempty"` - NodeId *string `form:"nodeId,omitempty" json:"nodeId,omitempty"` - PlatformId *string `form:"platformId,omitempty" json:"platformId,omitempty"` - Distro *string `form:"distro,omitempty" json:"distro,omitempty"` -} - -// WebhookServiceHandleWebhookJSONRequestBody defines body for WebhookServiceHandleWebhook for application/json ContentType. -type WebhookServiceHandleWebhookJSONRequestBody = WebhookServiceHandleWebhookBody - -// AddonServiceCreateAddonJSONRequestBody defines body for AddonServiceCreateAddon for application/json ContentType. -type AddonServiceCreateAddonJSONRequestBody = V1CreateAddonRequest - -// AddonServiceUpdateAddonJSONRequestBody defines body for AddonServiceUpdateAddon for application/json ContentType. -type AddonServiceUpdateAddonJSONRequestBody = AddonServiceUpdateAddonBody - // AgentServiceCreateAgentJSONRequestBody defines body for AgentServiceCreateAgent for application/json ContentType. type AgentServiceCreateAgentJSONRequestBody = V1CreateAgentRequest // AgentServiceUpdateAgentJSONRequestBody defines body for AgentServiceUpdateAgent for application/json ContentType. type AgentServiceUpdateAgentJSONRequestBody = AgentServiceUpdateAgentBody -// AgentServiceGenerateInstallCommandJSONRequestBody defines body for AgentServiceGenerateInstallCommand for application/json ContentType. -type AgentServiceGenerateInstallCommandJSONRequestBody = AgentServiceGenerateInstallCommandBody - // AgentServiceGeneratePeeringConfigJSONRequestBody defines body for AgentServiceGeneratePeeringConfig for application/json ContentType. type AgentServiceGeneratePeeringConfigJSONRequestBody = AgentServiceGeneratePeeringConfigBody // AgentServiceUploadInboundPeeringConfigJSONRequestBody defines body for AgentServiceUploadInboundPeeringConfig for application/json ContentType. type AgentServiceUploadInboundPeeringConfigJSONRequestBody = AgentServiceUploadInboundPeeringConfigBody -// UserServiceChangePasswordJSONRequestBody defines body for UserServiceChangePassword for application/json ContentType. -type UserServiceChangePasswordJSONRequestBody = V1ChangePasswordRequest - -// UserServiceForgotPasswordJSONRequestBody defines body for UserServiceForgotPassword for application/json ContentType. -type UserServiceForgotPasswordJSONRequestBody = V1ForgotPasswordRequest - -// UserServiceLoginJSONRequestBody defines body for UserServiceLogin for application/json ContentType. -type UserServiceLoginJSONRequestBody = V1LoginRequest - -// UserServiceLoginMfaVerifyJSONRequestBody defines body for UserServiceLoginMfaVerify for application/json ContentType. -type UserServiceLoginMfaVerifyJSONRequestBody = V1LoginMfaVerifyRequest - -// UserServiceLogoutJSONRequestBody defines body for UserServiceLogout for application/json ContentType. -type UserServiceLogoutJSONRequestBody = V1LogoutRequest - -// UserServiceRegenerateMfaBackupCodesJSONRequestBody defines body for UserServiceRegenerateMfaBackupCodes for application/json ContentType. -type UserServiceRegenerateMfaBackupCodesJSONRequestBody = V1RegenerateMfaBackupCodesRequest - -// UserServiceDisableMfaJSONRequestBody defines body for UserServiceDisableMfa for application/json ContentType. -type UserServiceDisableMfaJSONRequestBody = V1DisableMfaRequest - -// UserServiceEnrollMfaTotpJSONRequestBody defines body for UserServiceEnrollMfaTotp for application/json ContentType. -type UserServiceEnrollMfaTotpJSONRequestBody = V1EnrollMfaTotpRequest - -// UserServiceVerifyMfaEnrollmentJSONRequestBody defines body for UserServiceVerifyMfaEnrollment for application/json ContentType. -type UserServiceVerifyMfaEnrollmentJSONRequestBody = V1VerifyMfaEnrollmentRequest - -// UserServiceRegisterUserJSONRequestBody defines body for UserServiceRegisterUser for application/json ContentType. -type UserServiceRegisterUserJSONRequestBody = V1RegisterUserRequest - -// UserServiceResendVerificationEmailJSONRequestBody defines body for UserServiceResendVerificationEmail for application/json ContentType. -type UserServiceResendVerificationEmailJSONRequestBody = V1ResendVerificationEmailRequest - -// UserServiceResetPasswordJSONRequestBody defines body for UserServiceResetPassword for application/json ContentType. -type UserServiceResetPasswordJSONRequestBody = V1ResetPasswordRequest - -// UserServiceSetPasswordJSONRequestBody defines body for UserServiceSetPassword for application/json ContentType. -type UserServiceSetPasswordJSONRequestBody = V1SetPasswordRequest - -// UserServiceExchangeSSOCodeJSONRequestBody defines body for UserServiceExchangeSSOCode for application/json ContentType. -type UserServiceExchangeSSOCodeJSONRequestBody = V1ExchangeSSOCodeRequest - -// UserServiceCompleteSSOLinkJSONRequestBody defines body for UserServiceCompleteSSOLink for application/json ContentType. -type UserServiceCompleteSSOLinkJSONRequestBody = V1CompleteSSOLinkRequest - -// ChatServiceChatJSONRequestBody defines body for ChatServiceChat for application/json ContentType. -type ChatServiceChatJSONRequestBody = V1ChatRequest - -// ChatServiceChatAnonymousJSONRequestBody defines body for ChatServiceChatAnonymous for application/json ContentType. -type ChatServiceChatAnonymousJSONRequestBody = V1ChatRequest - -// CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody defines body for CloudInitTemplateServiceCreateCloudInitTemplate for application/json ContentType. -type CloudInitTemplateServiceCreateCloudInitTemplateJSONRequestBody = V1CreateCloudInitTemplateRequest - -// CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody defines body for CloudInitTemplateServiceUpdateCloudInitTemplate for application/json ContentType. -type CloudInitTemplateServiceUpdateCloudInitTemplateJSONRequestBody = CloudInitTemplateServiceUpdateCloudInitTemplateBody - -// CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody defines body for CloudInitUserDataServiceCreateCloudInitUserData for application/json ContentType. -type CloudInitUserDataServiceCreateCloudInitUserDataJSONRequestBody = V1CreateCloudInitUserDataRequest - -// CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody defines body for CloudInitUserDataServiceUpdateCloudInitUserData for application/json ContentType. -type CloudInitUserDataServiceUpdateCloudInitUserDataJSONRequestBody = CloudInitUserDataServiceUpdateCloudInitUserDataBody - -// CreditServicePurchaseCreditsJSONRequestBody defines body for CreditServicePurchaseCredits for application/json ContentType. -type CreditServicePurchaseCreditsJSONRequestBody = V1PurchaseCreditsRequest - -// DomainServiceCreateDomainJSONRequestBody defines body for DomainServiceCreateDomain for application/json ContentType. -type DomainServiceCreateDomainJSONRequestBody = V1CreateDomainRequest - -// EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody defines body for EnvironmentVariableServiceCreateEnvironmentVariable for application/json ContentType. -type EnvironmentVariableServiceCreateEnvironmentVariableJSONRequestBody = V1CreateEnvironmentVariableRequest - -// EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody defines body for EnvironmentVariableServiceUpdateEnvironmentVariable for application/json ContentType. -type EnvironmentVariableServiceUpdateEnvironmentVariableJSONRequestBody = EnvironmentVariableServiceUpdateEnvironmentVariableBody - -// ExchangeRateServiceConvertCurrencyJSONRequestBody defines body for ExchangeRateServiceConvertCurrency for application/json ContentType. -type ExchangeRateServiceConvertCurrencyJSONRequestBody = V1ConvertCurrencyRequest - -// FirewallServiceCreateFirewallAddressGroupJSONRequestBody defines body for FirewallServiceCreateFirewallAddressGroup for application/json ContentType. -type FirewallServiceCreateFirewallAddressGroupJSONRequestBody = V1CreateFirewallAddressGroupRequest - -// FirewallServiceUpdateFirewallAddressGroupJSONRequestBody defines body for FirewallServiceUpdateFirewallAddressGroup for application/json ContentType. -type FirewallServiceUpdateFirewallAddressGroupJSONRequestBody = FirewallServiceUpdateFirewallAddressGroupBody - -// FirewallServiceUpdateFirewallRuleJSONRequestBody defines body for FirewallServiceUpdateFirewallRule for application/json ContentType. -type FirewallServiceUpdateFirewallRuleJSONRequestBody = FirewallServiceUpdateFirewallRuleBody - -// FirewallServiceMoveFirewallRuleJSONRequestBody defines body for FirewallServiceMoveFirewallRule for application/json ContentType. -type FirewallServiceMoveFirewallRuleJSONRequestBody = FirewallServiceMoveFirewallRuleBody - -// FirewallServiceCreateFirewallRuleSetJSONRequestBody defines body for FirewallServiceCreateFirewallRuleSet for application/json ContentType. -type FirewallServiceCreateFirewallRuleSetJSONRequestBody = V1CreateFirewallRuleSetRequest - -// FirewallServiceUpdateFirewallRuleSetJSONRequestBody defines body for FirewallServiceUpdateFirewallRuleSet for application/json ContentType. -type FirewallServiceUpdateFirewallRuleSetJSONRequestBody = FirewallServiceUpdateFirewallRuleSetBody - -// FirewallServiceCreateFirewallRuleJSONRequestBody defines body for FirewallServiceCreateFirewallRule for application/json ContentType. -type FirewallServiceCreateFirewallRuleJSONRequestBody = FirewallServiceCreateFirewallRuleBody - -// GroupServiceCreateGroupJSONRequestBody defines body for GroupServiceCreateGroup for application/json ContentType. -type GroupServiceCreateGroupJSONRequestBody = V1CreateGroupRequest - // GroupServiceAddServiceAccountToGroupJSONRequestBody defines body for GroupServiceAddServiceAccountToGroup for application/json ContentType. type GroupServiceAddServiceAccountToGroupJSONRequestBody = V1AddServiceAccountToGroupRequest -// GroupServiceAddUserToGroupJSONRequestBody defines body for GroupServiceAddUserToGroup for application/json ContentType. -type GroupServiceAddUserToGroupJSONRequestBody = V1AddUserToGroupRequest - -// GroupServiceUpdateGroupJSONRequestBody defines body for GroupServiceUpdateGroup for application/json ContentType. -type GroupServiceUpdateGroupJSONRequestBody = GroupServiceUpdateGroupBody - -// InviteServiceUpdateInviteJSONRequestBody defines body for InviteServiceUpdateInvite for application/json ContentType. -type InviteServiceUpdateInviteJSONRequestBody = V1UpdateInviteRequest - -// InviteServiceCreateInviteJSONRequestBody defines body for InviteServiceCreateInvite for application/json ContentType. -type InviteServiceCreateInviteJSONRequestBody = V1CreateInviteRequest - -// IPAMServiceCreateNetworkJSONRequestBody defines body for IPAMServiceCreateNetwork for application/json ContentType. -type IPAMServiceCreateNetworkJSONRequestBody = V1CreateNetworkRequest - -// IPAMServiceUpdateNetworkJSONRequestBody defines body for IPAMServiceUpdateNetwork for application/json ContentType. -type IPAMServiceUpdateNetworkJSONRequestBody = IPAMServiceUpdateNetworkBody - -// IPAMServiceAssignNetworkToNodeJSONRequestBody defines body for IPAMServiceAssignNetworkToNode for application/json ContentType. -type IPAMServiceAssignNetworkToNodeJSONRequestBody = IPAMServiceAssignNetworkToNodeBody - -// IPAMServiceCreatePrefixJSONRequestBody defines body for IPAMServiceCreatePrefix for application/json ContentType. -type IPAMServiceCreatePrefixJSONRequestBody = V1CreatePrefixRequest - -// IPAMServiceUpdatePrefixJSONRequestBody defines body for IPAMServiceUpdatePrefix for application/json ContentType. -type IPAMServiceUpdatePrefixJSONRequestBody = IPAMServiceUpdatePrefixBody - -// IPAMServiceAddReservedIPJSONRequestBody defines body for IPAMServiceAddReservedIP for application/json ContentType. -type IPAMServiceAddReservedIPJSONRequestBody = IPAMServiceAddReservedIPBody - -// IPAMServiceClearAllPrefixReservedIPsJSONRequestBody defines body for IPAMServiceClearAllPrefixReservedIPs for application/json ContentType. -type IPAMServiceClearAllPrefixReservedIPsJSONRequestBody = IPAMServiceClearAllPrefixReservedIPsBody - -// IPAMServiceReserveAllPrefixIPsJSONRequestBody defines body for IPAMServiceReserveAllPrefixIPs for application/json ContentType. -type IPAMServiceReserveAllPrefixIPsJSONRequestBody = IPAMServiceReserveAllPrefixIPsBody - -// IPAMServiceAddReservedPrefixJSONRequestBody defines body for IPAMServiceAddReservedPrefix for application/json ContentType. -type IPAMServiceAddReservedPrefixJSONRequestBody = IPAMServiceAddReservedPrefixBody - -// MarketplaceServiceSearchMarketplaceJSONRequestBody defines body for MarketplaceServiceSearchMarketplace for application/json ContentType. -type MarketplaceServiceSearchMarketplaceJSONRequestBody = V1SearchMarketplaceRequest - // MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody defines body for MetricsCredentialServiceCreateMetricsWriteCredential for application/json ContentType. type MetricsCredentialServiceCreateMetricsWriteCredentialJSONRequestBody = V1CreateMetricsWriteCredentialRequest -// MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody defines body for MetricsCredentialServiceRevokeMetricsWriteCredential for application/json ContentType. -type MetricsCredentialServiceRevokeMetricsWriteCredentialJSONRequestBody = MetricsCredentialServiceRevokeMetricsWriteCredentialBody - // MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody defines body for MetricsCredentialServiceRotateMetricsWriteCredential for application/json ContentType. type MetricsCredentialServiceRotateMetricsWriteCredentialJSONRequestBody = MetricsCredentialServiceRotateMetricsWriteCredentialBody -// NodeServiceCreateNodeJSONRequestBody defines body for NodeServiceCreateNode for application/json ContentType. -type NodeServiceCreateNodeJSONRequestBody = V1CreateNodeRequest - -// NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody defines body for NodePlacementServiceUpdateNodePlacementPolicy for application/json ContentType. -type NodePlacementServiceUpdateNodePlacementPolicyJSONRequestBody = V1UpdateNodePlacementPolicyRequest - -// NodeServiceValidateNodeTopologyJSONRequestBody defines body for NodeServiceValidateNodeTopology for application/json ContentType. -type NodeServiceValidateNodeTopologyJSONRequestBody = V1ValidateNodeTopologyRequest - -// NodeServiceUpdateNodeJSONRequestBody defines body for NodeServiceUpdateNode for application/json ContentType. -type NodeServiceUpdateNodeJSONRequestBody = NodeServiceUpdateNodeBody - -// OAuth2ServiceCreateClientJSONRequestBody defines body for OAuth2ServiceCreateClient for application/json ContentType. -type OAuth2ServiceCreateClientJSONRequestBody = V1CreateOAuth2ClientRequest - -// OAuth2ServiceRefreshTokenJSONRequestBody defines body for OAuth2ServiceRefreshToken for application/json ContentType. -type OAuth2ServiceRefreshTokenJSONRequestBody = V1RefreshTokenRequest - -// OAuth2ServiceRevokeTokenJSONRequestBody defines body for OAuth2ServiceRevokeToken for application/json ContentType. -type OAuth2ServiceRevokeTokenJSONRequestBody = V1RevokeTokenRequest - -// OAuth2ServiceTokenJSONRequestBody defines body for OAuth2ServiceToken for application/json ContentType. -type OAuth2ServiceTokenJSONRequestBody = V1TokenRequest - -// OrganizationServiceUpdateOrganizationJSONRequestBody defines body for OrganizationServiceUpdateOrganization for application/json ContentType. -type OrganizationServiceUpdateOrganizationJSONRequestBody = V1UpdateOrganizationRequest - -// OrganizationServiceCreateOrganizationJSONRequestBody defines body for OrganizationServiceCreateOrganization for application/json ContentType. -type OrganizationServiceCreateOrganizationJSONRequestBody = V1CreateOrganizationRequest - -// PaymentMethodServiceAttachPaymentMethodJSONRequestBody defines body for PaymentMethodServiceAttachPaymentMethod for application/json ContentType. -type PaymentMethodServiceAttachPaymentMethodJSONRequestBody = V1AttachPaymentMethodRequest - -// PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody defines body for PaymentMethodServiceSetDefaultPaymentMethod for application/json ContentType. -type PaymentMethodServiceSetDefaultPaymentMethodJSONRequestBody = PaymentMethodServiceSetDefaultPaymentMethodBody - -// PermissionServiceAssignPermissionToRoleJSONRequestBody defines body for PermissionServiceAssignPermissionToRole for application/json ContentType. -type PermissionServiceAssignPermissionToRoleJSONRequestBody = V1AssignPermissionToRoleRequest - -// ProviderPlanServiceCreatePlanJSONRequestBody defines body for ProviderPlanServiceCreatePlan for application/json ContentType. -type ProviderPlanServiceCreatePlanJSONRequestBody = V1CreatePlanRequest - -// ProviderPlanServiceUpdatePlanJSONRequestBody defines body for ProviderPlanServiceUpdatePlan for application/json ContentType. -type ProviderPlanServiceUpdatePlanJSONRequestBody = ProviderPlanServiceUpdatePlanBody - -// ProviderPlanServiceCalculatePlanPricingJSONRequestBody defines body for ProviderPlanServiceCalculatePlanPricing for application/json ContentType. -type ProviderPlanServiceCalculatePlanPricingJSONRequestBody = V1CalculatePlanPricingRequest - -// PlatformServiceCreatePlatformJSONRequestBody defines body for PlatformServiceCreatePlatform for application/json ContentType. -type PlatformServiceCreatePlatformJSONRequestBody = V1CreatePlatformRequest - -// PlatformServiceUpdatePlatformJSONRequestBody defines body for PlatformServiceUpdatePlatform for application/json ContentType. -type PlatformServiceUpdatePlatformJSONRequestBody = PlatformServiceUpdatePlatformBody - -// PlatformServiceAssignAgentJSONRequestBody defines body for PlatformServiceAssignAgent for application/json ContentType. -type PlatformServiceAssignAgentJSONRequestBody = PlatformServiceAssignAgentBody - -// PlatformServiceUnassignAgentJSONRequestBody defines body for PlatformServiceUnassignAgent for application/json ContentType. -type PlatformServiceUnassignAgentJSONRequestBody = PlatformServiceUnassignAgentBody - -// ClientProviderReviewServiceCreateClientReviewJSONRequestBody defines body for ClientProviderReviewServiceCreateClientReview for application/json ContentType. -type ClientProviderReviewServiceCreateClientReviewJSONRequestBody = V1CreateClientReviewRequest - -// ClientProviderReviewServiceUpdateClientReviewJSONRequestBody defines body for ClientProviderReviewServiceUpdateClientReview for application/json ContentType. -type ClientProviderReviewServiceUpdateClientReviewJSONRequestBody = ClientProviderReviewServiceUpdateClientReviewBody - -// ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody defines body for ProviderReviewServiceUpdateProviderReviewReply for application/json ContentType. -type ProviderReviewServiceUpdateProviderReviewReplyJSONRequestBody = ProviderReviewServiceUpdateProviderReviewReplyBody - -// ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody defines body for ProviderReviewServiceCreateProviderReviewReply for application/json ContentType. -type ProviderReviewServiceCreateProviderReviewReplyJSONRequestBody = ProviderReviewServiceCreateProviderReviewReplyBody - -// ProviderConnectServiceCreateConnectAccountJSONRequestBody defines body for ProviderConnectServiceCreateConnectAccount for application/json ContentType. -type ProviderConnectServiceCreateConnectAccountJSONRequestBody = V1CreateConnectAccountRequest - -// ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody defines body for ProviderConnectServiceCreateConnectTaxSession for application/json ContentType. -type ProviderConnectServiceCreateConnectTaxSessionJSONRequestBody = ProviderConnectServiceCreateConnectTaxSessionJSONBody - -// ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody defines body for ProviderCustomerServiceRestartProviderCustomerVirtualMachine for application/json ContentType. -type ProviderCustomerServiceRestartProviderCustomerVirtualMachineJSONRequestBody = ProviderCustomerServiceRestartProviderCustomerVirtualMachineBody - -// ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody defines body for ProviderCustomerServiceStartProviderCustomerVirtualMachine for application/json ContentType. -type ProviderCustomerServiceStartProviderCustomerVirtualMachineJSONRequestBody = ProviderCustomerServiceStartProviderCustomerVirtualMachineBody - -// ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody defines body for ProviderCustomerServiceStopProviderCustomerVirtualMachine for application/json ContentType. -type ProviderCustomerServiceStopProviderCustomerVirtualMachineJSONRequestBody = ProviderCustomerServiceStopProviderCustomerVirtualMachineBody - -// ManualPayoutServiceCreateManualPayoutJSONRequestBody defines body for ManualPayoutServiceCreateManualPayout for application/json ContentType. -type ManualPayoutServiceCreateManualPayoutJSONRequestBody = V1CreateManualPayoutRequest - -// ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody defines body for ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicy for application/json ContentType. -type ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyJSONRequestBody = ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody - -// ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody defines body for ProviderNetworkServiceUpdateSmtpOutboundProviderPolicy for application/json ContentType. -type ProviderNetworkServiceUpdateSmtpOutboundProviderPolicyJSONRequestBody = V1UpdateSmtpOutboundProviderPolicyRequest - -// PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody defines body for PayoutConfigurationServiceUpdatePayoutConfiguration for application/json ContentType. -type PayoutConfigurationServiceUpdatePayoutConfigurationJSONRequestBody = V1UpdatePayoutConfigurationRequest - -// LiveValidationServiceStartPlanLiveValidationJSONRequestBody defines body for LiveValidationServiceStartPlanLiveValidation for application/json ContentType. -type LiveValidationServiceStartPlanLiveValidationJSONRequestBody = LiveValidationServiceStartPlanLiveValidationBody - -// RegionServiceCreateRegionJSONRequestBody defines body for RegionServiceCreateRegion for application/json ContentType. -type RegionServiceCreateRegionJSONRequestBody = V1CreateRegionRequest - -// RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody defines body for RoadmapServiceUpdateRoadmapFeatureRequestComment for application/json ContentType. -type RoadmapServiceUpdateRoadmapFeatureRequestCommentJSONRequestBody = RoadmapServiceUpdateRoadmapFeatureRequestCommentBody - -// RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody defines body for RoadmapServiceCreateRoadmapFeatureRequestComment for application/json ContentType. -type RoadmapServiceCreateRoadmapFeatureRequestCommentJSONRequestBody = RoadmapServiceCreateRoadmapFeatureRequestCommentBody - -// RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody defines body for RoadmapServiceVoteRoadmapFeatureRequest for application/json ContentType. -type RoadmapServiceVoteRoadmapFeatureRequestJSONRequestBody = RoadmapServiceVoteRoadmapFeatureRequestBody - -// RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody defines body for RoadmapServiceSubmitRoadmapFeatureRequest for application/json ContentType. -type RoadmapServiceSubmitRoadmapFeatureRequestJSONRequestBody = V1SubmitRoadmapFeatureRequestRequest - -// RoleServiceCreateRoleJSONRequestBody defines body for RoleServiceCreateRole for application/json ContentType. -type RoleServiceCreateRoleJSONRequestBody = V1CreateRoleRequest - -// RoleServiceReplaceRoleForGroupJSONRequestBody defines body for RoleServiceReplaceRoleForGroup for application/json ContentType. -type RoleServiceReplaceRoleForGroupJSONRequestBody = V1ReplaceRoleForGroupRequest - // RoleServiceReplaceRoleForServiceAccountJSONRequestBody defines body for RoleServiceReplaceRoleForServiceAccount for application/json ContentType. type RoleServiceReplaceRoleForServiceAccountJSONRequestBody = V1ReplaceRoleForServiceAccountRequest -// RoleServiceReplaceRoleForUserJSONRequestBody defines body for RoleServiceReplaceRoleForUser for application/json ContentType. -type RoleServiceReplaceRoleForUserJSONRequestBody = V1ReplaceRoleForUserRequest - -// RoleServiceUpdateRoleJSONRequestBody defines body for RoleServiceUpdateRole for application/json ContentType. -type RoleServiceUpdateRoleJSONRequestBody = RoleServiceUpdateRoleBody - -// SecretServiceCreateSecretJSONRequestBody defines body for SecretServiceCreateSecret for application/json ContentType. -type SecretServiceCreateSecretJSONRequestBody = V1CreateSecretRequest - -// SecretServiceUpdateSecretJSONRequestBody defines body for SecretServiceUpdateSecret for application/json ContentType. -type SecretServiceUpdateSecretJSONRequestBody = SecretServiceUpdateSecretBody - // ServiceAccountServiceCreateServiceAccountJSONRequestBody defines body for ServiceAccountServiceCreateServiceAccount for application/json ContentType. type ServiceAccountServiceCreateServiceAccountJSONRequestBody = V1CreateServiceAccountRequest @@ -9748,111 +520,3 @@ type ServiceAccountServiceUpdateServiceAccountJSONRequestBody = ServiceAccountSe // ServiceAccountServiceGenerateTokenJSONRequestBody defines body for ServiceAccountServiceGenerateToken for application/json ContentType. type ServiceAccountServiceGenerateTokenJSONRequestBody = ServiceAccountServiceGenerateTokenBody - -// SSHKeyServiceCreateSSHKeyJSONRequestBody defines body for SSHKeyServiceCreateSSHKey for application/json ContentType. -type SSHKeyServiceCreateSSHKeyJSONRequestBody = V1CreateSSHKeyRequest - -// AddonServiceAddAddonToSubscriptionJSONRequestBody defines body for AddonServiceAddAddonToSubscription for application/json ContentType. -type AddonServiceAddAddonToSubscriptionJSONRequestBody = AddonServiceAddAddonToSubscriptionBody - -// SubscriptionServiceCancelRenewalJSONRequestBody defines body for SubscriptionServiceCancelRenewal for application/json ContentType. -type SubscriptionServiceCancelRenewalJSONRequestBody = V1CancelRenewalRequest - -// SubscriptionServiceRetryPaymentJSONRequestBody defines body for SubscriptionServiceRetryPayment for application/json ContentType. -type SubscriptionServiceRetryPaymentJSONRequestBody = V1RetryPaymentRequest - -// SubscriptionServiceUndoCancelRenewalJSONRequestBody defines body for SubscriptionServiceUndoCancelRenewal for application/json ContentType. -type SubscriptionServiceUndoCancelRenewalJSONRequestBody = V1UndoCancelRenewalRequest - -// TicketServiceCreateTicketTemplateJSONRequestBody defines body for TicketServiceCreateTicketTemplate for application/json ContentType. -type TicketServiceCreateTicketTemplateJSONRequestBody = V1CreateTicketTemplateRequest - -// TicketServiceUpdateTicketTemplateJSONRequestBody defines body for TicketServiceUpdateTicketTemplate for application/json ContentType. -type TicketServiceUpdateTicketTemplateJSONRequestBody = TicketServiceUpdateTicketTemplateBody - -// TicketServiceCreateTicketJSONRequestBody defines body for TicketServiceCreateTicket for application/json ContentType. -type TicketServiceCreateTicketJSONRequestBody = V1CreateTicketRequest - -// TicketServiceConfirmTicketAttachmentUploadJSONRequestBody defines body for TicketServiceConfirmTicketAttachmentUpload for application/json ContentType. -type TicketServiceConfirmTicketAttachmentUploadJSONRequestBody = V1ConfirmTicketAttachmentUploadRequest - -// TicketServiceUploadTicketAttachmentContentJSONRequestBody defines body for TicketServiceUploadTicketAttachmentContent for application/json ContentType. -type TicketServiceUploadTicketAttachmentContentJSONRequestBody = V1UploadTicketAttachmentContentRequest - -// TicketServiceCreateTicketAttachmentUploadJSONRequestBody defines body for TicketServiceCreateTicketAttachmentUpload for application/json ContentType. -type TicketServiceCreateTicketAttachmentUploadJSONRequestBody = TicketServiceCreateTicketAttachmentUploadBody - -// TicketServiceAddReplyToTicketJSONRequestBody defines body for TicketServiceAddReplyToTicket for application/json ContentType. -type TicketServiceAddReplyToTicketJSONRequestBody = TicketServiceAddReplyToTicketBody - -// TicketServiceAddInternalCommentJSONRequestBody defines body for TicketServiceAddInternalComment for application/json ContentType. -type TicketServiceAddInternalCommentJSONRequestBody = TicketServiceAddInternalCommentBody - -// TicketServiceSetTicketPriorityJSONRequestBody defines body for TicketServiceSetTicketPriority for application/json ContentType. -type TicketServiceSetTicketPriorityJSONRequestBody = TicketServiceSetTicketPriorityBody - -// TicketServiceSetTicketStatusJSONRequestBody defines body for TicketServiceSetTicketStatus for application/json ContentType. -type TicketServiceSetTicketStatusJSONRequestBody = TicketServiceSetTicketStatusBody - -// TicketServiceSearchTicketsJSONRequestBody defines body for TicketServiceSearchTickets for application/json ContentType. -type TicketServiceSearchTicketsJSONRequestBody = V1SearchTicketsRequest - -// UsageReportServiceRecordUsageJSONRequestBody defines body for UsageReportServiceRecordUsage for application/json ContentType. -type UsageReportServiceRecordUsageJSONRequestBody = V1RecordUsageRequest - -// UsageReportServiceBatchRecordUsageJSONRequestBody defines body for UsageReportServiceBatchRecordUsage for application/json ContentType. -type UsageReportServiceBatchRecordUsageJSONRequestBody = V1BatchRecordUsageRequest - -// UserServiceUpdateUserJSONRequestBody defines body for UserServiceUpdateUser for application/json ContentType. -type UserServiceUpdateUserJSONRequestBody = UserServiceUpdateUserBody - -// VirtualMachineServiceCreateVirtualMachineJSONRequestBody defines body for VirtualMachineServiceCreateVirtualMachine for application/json ContentType. -type VirtualMachineServiceCreateVirtualMachineJSONRequestBody = V1CreateVirtualMachineRequest - -// VirtualMachineServiceUpdateVirtualMachineJSONRequestBody defines body for VirtualMachineServiceUpdateVirtualMachine for application/json ContentType. -type VirtualMachineServiceUpdateVirtualMachineJSONRequestBody = VirtualMachineServiceUpdateVirtualMachineBody - -// VirtualMachineServiceAttachVMFirewallJSONRequestBody defines body for VirtualMachineServiceAttachVMFirewall for application/json ContentType. -type VirtualMachineServiceAttachVMFirewallJSONRequestBody = VirtualMachineServiceAttachVMFirewallBody - -// VirtualMachineServiceDetachVMFirewallJSONRequestBody defines body for VirtualMachineServiceDetachVMFirewall for application/json ContentType. -type VirtualMachineServiceDetachVMFirewallJSONRequestBody = VirtualMachineServiceDetachVMFirewallBody - -// VirtualMachineServiceReinstallVirtualMachineJSONRequestBody defines body for VirtualMachineServiceReinstallVirtualMachine for application/json ContentType. -type VirtualMachineServiceReinstallVirtualMachineJSONRequestBody = VirtualMachineServiceReinstallVirtualMachineBody - -// VirtualMachineServiceRestartVirtualMachineJSONRequestBody defines body for VirtualMachineServiceRestartVirtualMachine for application/json ContentType. -type VirtualMachineServiceRestartVirtualMachineJSONRequestBody = VirtualMachineServiceRestartVirtualMachineBody - -// VirtualMachineServiceStartVirtualMachineJSONRequestBody defines body for VirtualMachineServiceStartVirtualMachine for application/json ContentType. -type VirtualMachineServiceStartVirtualMachineJSONRequestBody = VirtualMachineServiceStartVirtualMachineBody - -// VirtualMachineServiceStopVirtualMachineJSONRequestBody defines body for VirtualMachineServiceStopVirtualMachine for application/json ContentType. -type VirtualMachineServiceStopVirtualMachineJSONRequestBody = VirtualMachineServiceStopVirtualMachineBody - -// BackupServiceRestoreBackupJSONRequestBody defines body for BackupServiceRestoreBackup for application/json ContentType. -type BackupServiceRestoreBackupJSONRequestBody = BackupServiceRestoreBackupBody - -// SnapshotServiceCreateSnapshotJSONRequestBody defines body for SnapshotServiceCreateSnapshot for application/json ContentType. -type SnapshotServiceCreateSnapshotJSONRequestBody = SnapshotServiceCreateSnapshotBody - -// SnapshotServiceRestoreSnapshotJSONRequestBody defines body for SnapshotServiceRestoreSnapshot for application/json ContentType. -type SnapshotServiceRestoreSnapshotJSONRequestBody = SnapshotServiceRestoreSnapshotBody - -// VirtualMachineServiceDisableAdditionalIPJSONRequestBody defines body for VirtualMachineServiceDisableAdditionalIP for application/json ContentType. -type VirtualMachineServiceDisableAdditionalIPJSONRequestBody = VirtualMachineServiceDisableAdditionalIPBody - -// VirtualMachineServiceDisableBackupJSONRequestBody defines body for VirtualMachineServiceDisableBackup for application/json ContentType. -type VirtualMachineServiceDisableBackupJSONRequestBody = VirtualMachineServiceDisableBackupBody - -// VirtualMachineServiceEnableAdditionalIPJSONRequestBody defines body for VirtualMachineServiceEnableAdditionalIP for application/json ContentType. -type VirtualMachineServiceEnableAdditionalIPJSONRequestBody = VirtualMachineServiceEnableAdditionalIPBody - -// VirtualMachineServiceEnableBackupJSONRequestBody defines body for VirtualMachineServiceEnableBackup for application/json ContentType. -type VirtualMachineServiceEnableBackupJSONRequestBody = VirtualMachineServiceEnableBackupBody - -// VMTemplateServiceCreateVMTemplateJSONRequestBody defines body for VMTemplateServiceCreateVMTemplate for application/json ContentType. -type VMTemplateServiceCreateVMTemplateJSONRequestBody = V1CreateVMTemplateRequest - -// VMTemplateServiceUpdateVMTemplateJSONRequestBody defines body for VMTemplateServiceUpdateVMTemplate for application/json ContentType. -type VMTemplateServiceUpdateVMTemplateJSONRequestBody = VMTemplateServiceUpdateVMTemplateBody diff --git a/scripts/openapi-allowlist.py b/scripts/openapi-allowlist.py new file mode 100755 index 0000000..e25c2c9 --- /dev/null +++ b/scripts/openapi-allowlist.py @@ -0,0 +1,145 @@ +#!/usr/bin/env python3 +"""Cut an OpenAPI 3 spec down to the operations on an allow-list. + +Keeps only the allow-listed operations, the components they reach through +$ref, and the tags they use. Strips free text (descriptions, summaries, +titles, examples) because it is copied from backend proto comments and can +describe internal behaviour. Response objects keep an empty description, which +OpenAPI 3 requires. + +Usage: openapi-allowlist.py ALLOWLIST IN.yaml OUT.yaml +""" + +import sys + +import yaml + +HTTP_METHODS = {"get", "put", "post", "delete", "options", "head", "patch", "trace"} +FREE_TEXT = {"description", "summary", "title", "example", "examples", "externalDocs"} +# Maps whose keys are names chosen by the API author, not OpenAPI keywords. +NAME_MAPS = {"properties", "schemas", "parameters", "requestBodies", "responses", + "securitySchemes", "headers", "content", "paths", "mapping", "scopes"} + + +def read_allowlist(path): + ops = set() + with open(path, encoding="utf-8") as f: + for line in f: + line = line.split("#", 1)[0].strip() + if line: + ops.add(line) + return ops + + +def refs_in(node, out): + if isinstance(node, dict): + for k, v in node.items(): + if k == "$ref" and isinstance(v, str): + out.add(v) + elif k == "mapping" and isinstance(v, dict): + out.update(x for x in v.values() if isinstance(x, str)) + else: + refs_in(v, out) + elif isinstance(node, list): + for v in node: + refs_in(v, out) + + +def resolve(spec, ref): + if not ref.startswith("#/"): + raise SystemExit(f"openapi-allowlist: external $ref not supported: {ref}") + node = spec + for part in ref[2:].split("/"): + node = node[part.replace("~1", "/").replace("~0", "~")] + return node + + +def strip(node, parent_key=None): + if isinstance(node, dict): + out = {} + for k, v in node.items(): + if parent_key not in NAME_MAPS and k in FREE_TEXT: + continue + out[k] = strip(v, k) + if parent_key == "responses": + for resp in out.values(): + if isinstance(resp, dict) and "$ref" not in resp: + resp["description"] = "" + return out + if isinstance(node, list): + return [strip(v, None) for v in node] + return node + + +class NoAliasDumper(yaml.SafeDumper): + def ignore_aliases(self, data): + return True + + +def main(): + if len(sys.argv) != 4: + raise SystemExit(__doc__) + allowed = read_allowlist(sys.argv[1]) + with open(sys.argv[2], encoding="utf-8") as f: + spec = yaml.safe_load(f) + + paths, found, tags = {}, set(), set() + for path, item in spec.get("paths", {}).items(): + kept = {} + for method, op in item.items(): + if method not in HTTP_METHODS: + continue + if op.get("operationId") in allowed: + kept[method] = op + found.add(op["operationId"]) + tags.update(op.get("tags", [])) + if kept: + # Path-level parameters apply to every kept method. + if "parameters" in item: + kept["parameters"] = item["parameters"] + paths[path] = kept + + missing = sorted(allowed - found) + if missing: + raise SystemExit("openapi-allowlist: allow-listed operations not in spec:\n " + + "\n ".join(missing)) + + # Follow $refs to a fixed point. Security schemes are referenced by name. + seen, todo = set(), set() + refs_in(paths, todo) + for req in spec.get("security", []): + todo.update(f"#/components/securitySchemes/{name}" for name in req) + while todo: + ref = todo.pop() + if ref in seen: + continue + seen.add(ref) + refs_in(resolve(spec, ref), todo) + + components = {} + for section, items in spec.get("components", {}).items(): + kept = {name: body for name, body in items.items() + if f"#/components/{section}/{name}" in seen} + if kept: + components[section] = kept + + out = {"openapi": spec["openapi"], "info": spec["info"]} + if "servers" in spec: + out["servers"] = spec["servers"] + out["tags"] = [t for t in spec.get("tags", []) if t.get("name") in tags] + out["paths"] = paths + if "security" in spec: + out["security"] = spec["security"] + out["components"] = components + + out = strip(out) + out["info"]["title"] = spec["info"].get("title", "API") + with open(sys.argv[3], "w", encoding="utf-8") as f: + yaml.dump(out, f, Dumper=NoAliasDumper, sort_keys=False, width=1000, + allow_unicode=True) + print(f"openapi-allowlist: kept {len(found)} operations, " + f"{sum(len(v) for v in components.values())} components") + + +if __name__ == "__main__": + main() diff --git a/scripts/openapi-allowlist.txt b/scripts/openapi-allowlist.txt new file mode 100644 index 0000000..62520a4 --- /dev/null +++ b/scripts/openapi-allowlist.txt @@ -0,0 +1,42 @@ +# Backend API operations the CLI calls. scripts/openapi-allowlist.py keeps only +# these operations and the schemas they reach. Everything else in the backend +# API spec is dropped before the generated client is committed here. +# +# Add an operation here before writing code that calls it, then run +# `make generate-api-client SWAGGER_SPEC=`. +# +# Format: operationId as it appears in the spec (Service_Method), one per line. + +# Agents (clusters) +AgentService_CreateAgent +AgentService_DeleteAgent +AgentService_GeneratePeeringConfig +AgentService_GetAgent +AgentService_ListAgents +AgentService_UpdateAgent +AgentService_UploadInboundPeeringConfig + +# Metrics write credentials +MetricsCredentialService_CreateMetricsWriteCredential +MetricsCredentialService_ListMetricsWriteCredentials +MetricsCredentialService_RotateMetricsWriteCredential + +# Platform +MetadataService_GetPlatformVersions + +# Organizations +OrganizationService_GetOrganization +OrganizationService_ListOrganizations + +# Service accounts +GroupService_AddServiceAccountToGroup +GroupService_RemoveServiceAccountFromGroup +RoleService_ReplaceRoleForServiceAccount +ServiceAccountService_CreateServiceAccount +ServiceAccountService_DeleteServiceAccount +ServiceAccountService_GenerateToken +ServiceAccountService_GetServiceAccount +ServiceAccountService_ListServiceAccounts +ServiceAccountService_ListTokens +ServiceAccountService_RevokeToken +ServiceAccountService_UpdateServiceAccount diff --git a/scripts/openapi-leak-check.sh b/scripts/openapi-leak-check.sh new file mode 100755 index 0000000..e7cab04 --- /dev/null +++ b/scripts/openapi-leak-check.sh @@ -0,0 +1,119 @@ +#!/usr/bin/env bash +# Fail if the generated API client contains internal details or API surface +# the CLI does not call. Run by `make generate-api-client`, `make leak-check` +# and CI. +set -euo pipefail + +ROOT="$(cd "$(dirname "$0")/.." && pwd)" +cd "${ROOT}" + +GEN_DIR="internal/api/generated" +SPEC="${GEN_DIR}/openapi3.yaml" +ALLOWLIST="scripts/openapi-allowlist.txt" + +status=0 +fail() { + echo "openapi-leak-check: $1" >&2 + status=1 +} + +# 1. Internal infrastructure, credentials, and admin or billing surface. +PATTERNS=( + '\.svc\b' + 'cluster\.local' + '\.internal\b' + '\blocalhost\b' + '\b127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\b' + '\b10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\b' + '\b172\.(1[6-9]|2[0-9]|3[01])\.[0-9]{1,3}\.[0-9]{1,3}\b' + '\b192\.168\.[0-9]{1,3}\.[0-9]{1,3}\b' + '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}' + '/v1/admin' + '[Aa]dmin[A-Z_]' + '[Ee]nforcement' + '[Ii]mpersonat' + '[Xx]-[Aa]cting-[Uu]ser' + '[Ss]tripe' + '[Pp]ay[Pp]al' + '[Ww]ebhook' + '[Pp]ayout' + '[Ii]nvoice' + '[Uu]sageReport' + '[Rr]ecordUsage' + 'ConnectAccount' + '[Pp]aymentMethod|payment_method' + '[Hh]ookScript' + 'VNCConsole' + '\b(session_token|client_secret|sessionToken|clientSecret)\b' + '\b[Pp]assword\b' +) +# Maintainers can keep extra patterns (internal component or host names) in a +# file outside this repository, one extended regex per line. +if [[ -n "${OPENAPI_LEAK_EXTRA_PATTERNS_FILE:-}" ]]; then + while IFS= read -r line; do + [[ -z "${line}" || "${line}" == \#* ]] || PATTERNS+=("${line}") + done <"${OPENAPI_LEAK_EXTRA_PATTERNS_FILE}" +fi + +FILES=("${SPEC}" "${GEN_DIR}"/*.go) + +# Public NodeRings URLs are allowed. Remove only the URL text before matching, +# so anything else on the same line is still checked. +scan() { + local pattern="$1" + local f + for f in "${FILES[@]}"; do + sed -E 's#https://(api\.)?noderings\.com##g' "${f}" | grep -nE -- "${pattern}" | sed "s#^#${f}:#" || true + done +} + +for p in "${PATTERNS[@]}"; do + hits="$(scan "${p}")" + if [[ -n "${hits}" ]]; then + fail "pattern ${p} found in ${GEN_DIR}:" + head -20 <<<"${hits}" >&2 + fi +done + +# 2. Free text copied from backend proto comments must be stripped from the +# spec (scripts/openapi-allowlist.py does this). Response objects keep an +# empty description; the info title is the public API name. +hits="$(grep -nE "^[[:space:]]*(description|summary|example|examples|externalDocs):[[:space:]]*[^[:space:]]" "${SPEC}" \ + | grep -vE ":[[:space:]]*description: ''$" || true)" +hits+="$(grep -nE "^[[:space:]]+title:[[:space:]]*[^[:space:]]" "${SPEC}" | grep -vE "^[0-9]+: title: NodeRings API$" || true)" +if [[ -n "${hits}" ]]; then + fail "free text found in ${SPEC} (regenerate with make generate-api-client):" + head -20 <<<"${hits}" >&2 +fi + +# 3. Every operation in the spec and in the generated client must be on the +# allow-list, and every allow-listed operation must be generated and called. +allowed="$(grep -vE '^[[:space:]]*(#|$)' "${ALLOWLIST}" | sed 's/[[:space:]]//g' | sort -u)" +allowed_go="$(echo "${allowed}" | tr -d '_' | sort -u)" +in_spec="$(grep -oE '^[[:space:]]+operationId:[[:space:]]*[A-Za-z0-9_]+' "${SPEC}" | awk '{print $2}' | sort -u)" +in_client="$(grep -oE '^func \(c \*Client\) [A-Z][A-Za-z0-9]+\(' "${GEN_DIR}/client.gen.go" \ + | sed -E 's/^func \(c \*Client\) //; s/\($//; s/WithBody$//' | sort -u)" + +extra="$(comm -13 <(echo "${allowed}") <(echo "${in_spec}"))" +[[ -z "${extra}" ]] || { fail "operations in ${SPEC} not on ${ALLOWLIST}:"; echo "${extra}" >&2; } +extra="$(comm -13 <(echo "${allowed_go}") <(echo "${in_client}"))" +[[ -z "${extra}" ]] || { fail "client methods in ${GEN_DIR}/client.gen.go not on ${ALLOWLIST} (stale client? run make generate-api-client):"; echo "${extra}" >&2; } +missing="$(comm -23 <(echo "${allowed}") <(echo "${in_spec}"))" +[[ -z "${missing}" ]] || { fail "allow-listed operations missing from ${SPEC} (run make generate-api-client):"; echo "${missing}" >&2; } +missing="$(comm -23 <(echo "${allowed_go}") <(echo "${in_client}"))" +[[ -z "${missing}" ]] || { fail "allow-listed operations missing from ${GEN_DIR}/client.gen.go (run make generate-api-client):"; echo "${missing}" >&2; } + +# Keep the allow-list minimal: each operation must be called outside the +# generated package. +src="$(find internal cmd -name '*.go' -not -path "*/${GEN_DIR#internal/}/*" -print0 | xargs -0 cat)" +while IFS= read -r op; do + [[ -n "${op}" ]] || continue + if ! grep -qE "\b(New|Parse)?${op}(WithBody)?(WithResponse|Request|Response|JSONRequestBody|Params)?\b" <<<"${src}"; then + fail "allow-listed operation ${op} is not called by the CLI; remove it from ${ALLOWLIST}" + fi +done <<<"${allowed_go}" + +if [[ "${status}" -eq 0 ]]; then + echo "openapi-leak-check: ok" +fi +exit "${status}"