From 82dba9bdd3353b1b521f6aeb160c804ce642fcdc Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Sat, 5 Sep 2026 16:17:57 +0000 Subject: [PATCH 1/3] feat(sdk): v4.22.0 - Auto-generated from unified API spec Generated from unified API spec v4.22.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 22 + README.md | 22 +- composer.json | 2 +- composer.lock | 98 +- docs/Api/AIToolsApi.md | 61 + docs/Api/IdleSleepApi.md | 139 ++ docs/Api/ResourcesApi.md | 385 ++++ docs/Model/AttachOrgResourceRequest.md | 11 + docs/Model/CreateOrgResourceRequest.md | 11 + docs/Model/CreateOrgResourceRequestConfig.md | 9 + ...tGovernanceConfig200ResponseSpendLimits.md | 2 +- docs/Model/IdleSleepResponse.md | 12 + docs/Model/ListMcpServers200Response.md | 10 + .../ListMcpServers200ResponseServersInner.md | 13 + docs/Model/OrgResource.md | 17 + docs/Model/ResourceAttachment.md | 15 + docs/Model/SetIdleSleepRequest.md | 10 + src/Api/AIAgentsApi.php | 2 +- src/Api/AIApi.php | 2 +- src/Api/AICustomToolsApi.php | 2 +- src/Api/AIFileStorageApi.php | 2 +- src/Api/AIFilterPoliciesApi.php | 2 +- src/Api/AIGovernanceApi.php | 2 +- src/Api/AIInferenceApi.php | 2 +- src/Api/AIModelsApi.php | 2 +- src/Api/AIOrchestrationsApi.php | 2 +- src/Api/AISearchApi.php | 2 +- src/Api/AISessionsApi.php | 2 +- src/Api/AISkillsApi.php | 2 +- src/Api/AISlackBotsApi.php | 2 +- src/Api/AITaskManagementApi.php | 2 +- src/Api/AIToolsApi.php | 277 ++- src/Api/AIUsageApi.php | 2 +- src/Api/AIVectorDatabaseApi.php | 2 +- src/Api/ApplicationsApi.php | 2 +- src/Api/BackupManagementApi.php | 2 +- src/Api/CDNMetricsApi.php | 2 +- src/Api/CommandsApi.php | 2 +- src/Api/ComposeApi.php | 2 +- src/Api/ContainersApi.php | 2 +- src/Api/CrawlerSchedulesApi.php | 2 +- src/Api/CrawlersApi.php | 2 +- src/Api/CronApi.php | 2 +- src/Api/DomainsApi.php | 2 +- src/Api/EnvironmentsApi.php | 2 +- src/Api/HeadersApi.php | 2 +- src/Api/IdleSleepApi.php | 877 ++++++++ src/Api/KVApi.php | 2 +- src/Api/OpenAICompatibilityApi.php | 2 +- src/Api/OrganizationsApi.php | 2 +- src/Api/ProjectsApi.php | 2 +- src/Api/PurgeApi.php | 2 +- src/Api/ResourcesApi.php | 1909 +++++++++++++++++ src/Api/RestoreManagementApi.php | 2 +- src/Api/RulesApi.php | 2 +- src/Api/SSHAccessApi.php | 2 +- src/Api/ScalingPolicyApi.php | 2 +- src/Api/SubscriptionApi.php | 2 +- src/Api/TokensApi.php | 2 +- src/Api/VariablesApi.php | 2 +- src/Api/VolumesApi.php | 2 +- src/ApiException.php | 2 +- src/Configuration.php | 8 +- src/FormDataProcessor.php | 2 +- src/HeaderSelector.php | 2 +- src/Model/AiSearchChatRequest.php | 2 +- src/Model/AiSearchDeletePagesRequest.php | 2 +- src/Model/AiSearchEnableRequest.php | 2 +- src/Model/AiSearchIngestPagesRequest.php | 2 +- .../AiSearchIngestPagesRequestPagesInner.php | 2 +- src/Model/AiSearchSearchRequest.php | 2 +- src/Model/AiSearchTriggerCrawlRequest.php | 2 +- src/Model/AiSearchUpdateSettingsRequest.php | 2 +- src/Model/Application.php | 2 +- src/Model/ApplicationCache.php | 2 +- src/Model/ApplicationDatabase.php | 2 +- .../ApplicationDeploymentInformationInner.php | 2 +- src/Model/ApplicationFilesystem.php | 2 +- src/Model/ApplicationImageReference.php | 2 +- src/Model/AttachOrgResourceRequest.php | 483 +++++ .../BulkSetEnvironmentVariablesRequest.php | 2 +- ...onmentVariablesRequestEnvironmentInner.php | 2 +- src/Model/ChatInference200Response.php | 2 +- .../ChatInference200ResponseResponse.php | 2 +- ...hatInference200ResponseResponseToolUse.php | 2 +- ...ference200ResponseResponseToolUseOneOf.php | 2 +- ...e200ResponseResponseToolUseOneOf1Inner.php | 2 +- ...e200ResponseResponseToolUseOneOfResult.php | 2 +- src/Model/ChatInference200ResponseUsage.php | 2 +- src/Model/ChatInference202Response.php | 2 +- src/Model/ChatInferenceRequest.php | 2 +- src/Model/ChatInferenceRequestGuardrails.php | 2 +- .../ChatInferenceRequestMessagesInner.php | 2 +- ...atInferenceRequestMessagesInnerContent.php | 2 +- ...eRequestMessagesInnerContentOneOfInner.php | 2 +- ...estMessagesInnerContentOneOfInnerOneOf.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf1.php | 2 +- ...sagesInnerContentOneOfInnerOneOf1Image.php | 2 +- ...nnerContentOneOfInnerOneOf1ImageSource.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf2.php | 2 +- ...sagesInnerContentOneOfInnerOneOf2Video.php | 2 +- ...nnerContentOneOfInnerOneOf2VideoSource.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf3.php | 2 +- ...esInnerContentOneOfInnerOneOf3Document.php | 2 +- ...rContentOneOfInnerOneOf3DocumentSource.php | 2 +- .../ChatInferenceRequestResponseFormat.php | 2 +- src/Model/ChatInferenceRequestToolConfig.php | 2 +- ...atInferenceRequestToolConfigToolsInner.php | 2 +- ...nceRequestToolConfigToolsInnerToolSpec.php | 2 +- ...oolConfigToolsInnerToolSpecInputSchema.php | 2 +- src/Model/ChatInferenceStreamRequest.php | 2 +- ...hatInferenceStreamRequestMessagesInner.php | 2 +- ...renceStreamRequestMessagesInnerContent.php | 2 +- src/Model/ChatWithAIAgent200Response.php | 2 +- .../ChatWithAIAgent200ResponseResponse.php | 2 +- ...hatWithAIAgent200ResponseResponseUsage.php | 2 +- src/Model/ChatWithAIAgent202Response.php | 2 +- src/Model/ChatWithAIAgentRequest.php | 2 +- src/Model/Command.php | 2 +- src/Model/Compose.php | 2 +- src/Model/Container.php | 2 +- src/Model/ContainerDependsOnInner.php | 2 +- src/Model/ContainerEnvironmentInner.php | 2 +- src/Model/ContainerHealthCheck.php | 2 +- src/Model/ContainerImageReference.php | 2 +- src/Model/ContainerMountPointsInner.php | 2 +- src/Model/ContainerOriginProtectionConfig.php | 2 +- src/Model/ContainerSecretsInner.php | 2 +- src/Model/CrawlersRun200Response.php | 2 +- src/Model/CrawlersRunRequest.php | 2 +- src/Model/CreateAIAgent201Response.php | 2 +- src/Model/CreateAIAgentRequest.php | 2 +- src/Model/CreateAISession201Response.php | 2 +- src/Model/CreateAISessionRequest.php | 2 +- ...teAISessionRequestInitialMessagesInner.php | 2 +- src/Model/CreateApplication403Response.php | 2 +- src/Model/CreateApplicationRequest.php | 2 +- .../CreateApplicationRequestDatabase.php | 2 +- ...eateApplicationRequestEnvironmentInner.php | 2 +- .../CreateApplicationRequestFilesystem.php | 2 +- src/Model/CreateBackup202Response.php | 2 +- src/Model/CreateBackupRequest.php | 2 +- src/Model/CreateCommandRequest.php | 2 +- src/Model/CreateCronJobRequest.php | 2 +- src/Model/CreateCustomTool201Response.php | 2 +- src/Model/CreateCustomToolRequest.php | 2 +- src/Model/CreateEnvironment403Response.php | 2 +- src/Model/CreateEnvironmentRequest.php | 2 +- ...eateEnvironmentRequestEnvironmentInner.php | 2 +- src/Model/CreateFilterPolicyRequest.php | 2 +- .../CreateFilterPolicyRequestRulesInner.php | 2 +- ...eateFilterPolicyRequestRulesInnerMatch.php | 2 +- src/Model/CreateOrchestrationRequest.php | 2 +- .../CreateOrchestrationRequestInputSource.php | 2 +- ...reateOrchestrationRequestStopCondition.php | 2 +- src/Model/CreateOrgResourceRequest.php | 517 +++++ src/Model/CreateOrgResourceRequestConfig.php | 426 ++++ src/Model/CreateSkill201Response.php | 2 +- src/Model/CreateSkillRequest.php | 2 +- src/Model/CreateSlackBot201Response.php | 2 +- src/Model/CreateSlackBotRequest.php | 2 +- src/Model/CreateTask201Response.php | 2 +- src/Model/CreateTaskRequest.php | 2 +- .../CreateVectorCollection201Response.php | 2 +- ...eVectorCollection201ResponseCollection.php | 2 +- src/Model/CreateVectorCollectionRequest.php | 2 +- src/Model/CreateVolumeRequest.php | 2 +- src/Model/Cron.php | 2 +- src/Model/CronRun.php | 2 +- src/Model/DeleteAIAgent200Response.php | 2 +- src/Model/DeleteAISession200Response.php | 2 +- src/Model/DeleteAgentOverlay200Response.php | 2 +- src/Model/DeleteBackup200Response.php | 2 +- src/Model/DeleteCustomTool200Response.php | 2 +- src/Model/DeleteFile200Response.php | 2 +- src/Model/DeleteSkill200Response.php | 2 +- .../DeleteSkillCollection200Response.php | 2 +- src/Model/DeleteSlackBot200Response.php | 2 +- src/Model/DeleteTask200Response.php | 2 +- src/Model/DeleteTask409Response.php | 2 +- .../DeleteVectorDocuments200Response.php | 2 +- src/Model/DeleteVectorDocumentsRequest.php | 2 +- .../DeleteVectorDocumentsRequestMetadata.php | 2 +- src/Model/DownloadBackup200Response.php | 2 +- src/Model/Embeddings200Response.php | 2 +- src/Model/Embeddings200ResponseEmbeddings.php | 2 +- src/Model/Embeddings200ResponseUsage.php | 2 +- src/Model/EmbeddingsRequest.php | 2 +- src/Model/EmbeddingsRequestInput.php | 2 +- src/Model/Environment.php | 2 +- src/Model/EnvironmentResponse.php | 2 +- src/Model/EnvironmentSummary.php | 2 +- src/Model/ExtendAISession200Response.php | 2 +- src/Model/ExtendAISessionRequest.php | 2 +- src/Model/GetAIAgent200Response.php | 2 +- src/Model/GetAIAgent200ResponseAgent.php | 2 +- src/Model/GetAIModel200Response.php | 2 +- .../GetAIModel200ResponseCapabilities.php | 2 +- src/Model/GetAIModel200ResponsePricing.php | 2 +- src/Model/GetAIModel404Response.php | 2 +- .../GetAIOrchestrationStatus200Response.php | 2 +- ...chestrationStatus200ResponseToolsInner.php | 2 +- .../GetAIOrchestrationStatus404Response.php | 2 +- src/Model/GetAISession200Response.php | 2 +- .../GetAIToolExecutionStatus200Response.php | 2 +- ...AIToolExecutionStatus200ResponseResult.php | 2 +- .../GetAIToolExecutionStatus404Response.php | 2 +- src/Model/GetAgentOverlay200Response.php | 2 +- src/Model/GetAgentOverlay200ResponseBase.php | 2 +- .../GetAgentOverlay200ResponseOverlay.php | 2 +- src/Model/GetCustomTool200Response.php | 2 +- src/Model/GetCustomTool200ResponseTool.php | 2 +- src/Model/GetDependencyGraph200Response.php | 2 +- .../GetDurableExecutionStatus200Response.php | 2 +- ...DurableExecutionStatus200ResponseError.php | 2 +- ...tionStatus200ResponsePendingToolsInner.php | 2 +- ...urableExecutionStatus200ResponseResult.php | 2 +- ...ecutionStatus200ResponseResultResponse.php | 2 +- ...eExecutionStatus200ResponseResultUsage.php | 2 +- .../GetEcrLoginCredentials200Response.php | 2 +- src/Model/GetEnvironmentLogs200Response.php | 2 +- ...vironmentLogs200ResponseLogEventsInner.php | 2 +- src/Model/GetFile200Response.php | 2 +- src/Model/GetGovernanceConfig200Response.php | 2 +- ...GovernanceConfig200ResponseSpendLimits.php | 4 +- ...esponseSpendLimitsInterfaceLimitsValue.php | 2 +- ...0ResponseSpendLimitsUserOverridesValue.php | 2 +- src/Model/GetGovernanceSpend200Response.php | 2 +- .../GetGovernanceSpend200ResponseBudget.php | 2 +- ...tGovernanceSpend200ResponseDailyBudget.php | 2 +- .../GetGovernanceSpend200ResponseOrgTotal.php | 2 +- ...etGovernanceSpend200ResponseTodayTotal.php | 2 +- ...GetGovernanceSpend200ResponseUserTotal.php | 2 +- src/Model/GetMyUsage200Response.php | 2 +- src/Model/GetMyUsage200ResponseDaily.php | 2 +- src/Model/GetMyUsage200ResponseMonthly.php | 2 +- src/Model/GetMyUsage200ResponseQuota.php | 2 +- .../GetMyUsage200ResponseQuotaDailyLimit.php | 2 +- ...GetMyUsage200ResponseQuotaMonthlyLimit.php | 2 +- src/Model/GetRestoreStatus200Response.php | 2 +- src/Model/GetScalingPolicyResponse.php | 2 +- src/Model/GetSkill200Response.php | 2 +- src/Model/GetSkill200ResponseSkill.php | 2 +- src/Model/GetSlackBot200Response.php | 2 +- src/Model/GetSlackBot200ResponseBot.php | 2 +- .../GetSshAccessCredentials200Response.php | 2 +- ...ccessCredentials200ResponseCredentials.php | 2 +- src/Model/GetTask200Response.php | 2 +- src/Model/GetVectorCollection200Response.php | 2 +- ...tVectorCollection200ResponseCollection.php | 2 +- src/Model/IdleSleepResponse.php | 573 +++++ src/Model/ImageGeneration200Response.php | 2 +- src/Model/ImageGenerationRequest.php | 2 +- ...nerationRequestBackgroundRemovalParams.php | 2 +- ...tionRequestColorGuidedGenerationParams.php | 2 +- ...GenerationRequestImageGenerationConfig.php | 2 +- ...eGenerationRequestImageVariationParams.php | 2 +- ...ImageGenerationRequestInPaintingParams.php | 2 +- ...mageGenerationRequestOutPaintingParams.php | 2 +- ...mageGenerationRequestTextToImageParams.php | 2 +- src/Model/ImportSkill201Response.php | 2 +- .../ImportSkillCollection201Response.php | 2 +- src/Model/ImportSkillCollectionRequest.php | 2 +- .../ImportSkillCollectionRequestSource.php | 2 +- src/Model/ImportSkillRequest.php | 2 +- src/Model/ImportSkillRequestSource.php | 2 +- src/Model/KVItemsCreate200Response.php | 2 +- src/Model/KVItemsDelete200Response.php | 2 +- src/Model/KVItemsShow200Response.php | 2 +- src/Model/KVItemsShow200ResponseValue.php | 2 +- src/Model/KVLinkToProject200Response.php | 2 +- src/Model/KVLinkToProjectRequest.php | 2 +- src/Model/ListAIAgents200Response.php | 2 +- .../ListAIAgents200ResponseAgentsInner.php | 2 +- src/Model/ListAIModels200Response.php | 2 +- .../ListAIModels200ResponseModelsInner.php | 2 +- ...dels200ResponseModelsInnerCapabilities.php | 2 +- src/Model/ListAISessions200ResponseInner.php | 2 +- src/Model/ListAIToolExecutions200Response.php | 2 +- ...olExecutions200ResponseExecutionsInner.php | 2 +- src/Model/ListAIToolNames200Response.php | 2 +- src/Model/ListAITools200Response.php | 2 +- .../ListAITools200ResponseToolsInner.php | 2 +- ...stAITools200ResponseToolsInnerToolSpec.php | 2 +- ...0ResponseToolsInnerToolSpecInputSchema.php | 2 +- src/Model/ListBackups200Response.php | 2 +- .../ListBackups200ResponseBackupsInner.php | 2 +- src/Model/ListBackups422Response.php | 2 +- src/Model/ListCustomTools200Response.php | 2 +- .../ListCustomTools200ResponseToolsInner.php | 2 +- src/Model/ListFiles200Response.php | 2 +- src/Model/ListFiles200ResponseFilesInner.php | 2 +- src/Model/ListMcpServers200Response.php | 443 ++++ .../ListMcpServers200ResponseServersInner.php | 545 +++++ .../ListOrchestrationBatches200Response.php | 2 +- ...strationBatches200ResponseBatchesInner.php | 2 +- src/Model/ListOrchestrations200Response.php | 2 +- src/Model/ListSkillCollections200Response.php | 2 +- ...Collections200ResponseCollectionsInner.php | 2 +- src/Model/ListSkills200Response.php | 2 +- .../ListSkills200ResponseSkillsInner.php | 2 +- src/Model/ListSlackBots200Response.php | 2 +- .../ListSlackBots200ResponseBotsInner.php | 2 +- src/Model/ListTasks200Response.php | 2 +- src/Model/ListTasks200ResponseTasksInner.php | 2 +- .../ListVectorCollections200Response.php | 2 +- ...Collections200ResponseCollectionsInner.php | 2 +- src/Model/ModelInterface.php | 2 +- src/Model/OaiChatCompletions200Response.php | 2 +- ...ChatCompletions200ResponseChoicesInner.php | 2 +- ...pletions200ResponseChoicesInnerMessage.php | 2 +- .../OaiChatCompletions200ResponseUsage.php | 2 +- src/Model/OaiChatCompletionsRequest.php | 2 +- ...OaiChatCompletionsRequestMessagesInner.php | 2 +- src/Model/OaiEmbeddings200Response.php | 2 +- .../OaiEmbeddings200ResponseDataInner.php | 2 +- src/Model/OaiEmbeddings200ResponseUsage.php | 2 +- src/Model/OaiEmbeddingsRequest.php | 2 +- src/Model/OaiGetModel200Response.php | 2 +- src/Model/OaiListModels200Response.php | 2 +- .../OaiListModels200ResponseDataInner.php | 2 +- src/Model/OrgResource.php | 787 +++++++ .../OrganizationsList200ResponseInner.php | 2 +- .../PatchEnvironmentCompose202Response.php | 2 +- ...entCompose202ResponseSpotConfiguration.php | 2 +- .../PatchEnvironmentCompose400Response.php | 2 +- src/Model/PatchEnvironmentComposeRequest.php | 2 +- ...ronmentComposeRequestSpotConfiguration.php | 2 +- src/Model/PurgeCreateRequest.php | 2 +- .../QueryVectorCollection200Response.php | 2 +- ...yVectorCollection200ResponsePagination.php | 2 +- ...ectorCollection200ResponseResultsInner.php | 2 +- src/Model/QueryVectorCollectionRequest.php | 2 +- .../QueryVectorCollectionRequestFilter.php | 2 +- src/Model/ResourceAttachment.php | 613 ++++++ src/Model/RestoreDatabase202Response.php | 2 +- src/Model/RestoreDatabaseRequest.php | 2 +- src/Model/RestoreFilesystem202Response.php | 2 +- src/Model/RestoreFilesystemRequest.php | 2 +- src/Model/ScalingPolicyListResponse.php | 2 +- ...earchSlackWorkspaceChannels200Response.php | 2 +- ...rkspaceChannels200ResponseResultsInner.php | 2 +- .../SearchSlackWorkspaceUsers200Response.php | 2 +- ...kWorkspaceUsers200ResponseResultsInner.php | 2 +- src/Model/SetIdleSleepRequest.php | 462 ++++ src/Model/SetScalingPolicyRequest.php | 2 +- src/Model/SpotConfiguration.php | 2 +- src/Model/SubmitToolCallback200Response.php | 2 +- src/Model/SubmitToolCallbackRequest.php | 2 +- ...mitToolCallbackRequestToolResultsInner.php | 2 +- src/Model/SyncOperation.php | 2 +- src/Model/SyncSkillCollection200Response.php | 2 +- src/Model/SyncToEnvironmentRequest.php | 2 +- src/Model/TokensCreate201Response.php | 2 +- src/Model/TokensCreateRequest.php | 2 +- src/Model/TokensDelete200Response.php | 2 +- src/Model/TokensList200ResponseInner.php | 2 +- src/Model/UpdateAIAgent200Response.php | 2 +- src/Model/UpdateAIAgentRequest.php | 2 +- src/Model/UpdateAISession200Response.php | 2 +- src/Model/UpdateAISessionRequest.php | 2 +- ...UpdateAISessionRequestNewMessagesInner.php | 2 +- src/Model/UpdateCronJobRequest.php | 2 +- src/Model/UpdateEnvironmentRequest.php | 2 +- src/Model/UpdateEnvironmentStateRequest.php | 2 +- .../UpdateEnvironmentVariableRequest.php | 2 +- src/Model/UpdateFilterPolicyRequest.php | 2 +- .../UpdateGovernanceConfig200Response.php | 2 +- src/Model/UpdateGovernanceConfigRequest.php | 2 +- src/Model/UpdateSkill200Response.php | 2 +- src/Model/UpdateSkillRequest.php | 2 +- src/Model/UpdateSlackBotRequest.php | 2 +- src/Model/UpdateTask200Response.php | 2 +- src/Model/UpdateTaskRequest.php | 2 +- src/Model/UploadFile201Response.php | 2 +- src/Model/UploadFileRequest.php | 2 +- .../UploadVectorDocuments200Response.php | 2 +- src/Model/UploadVectorDocumentsRequest.php | 2 +- ...adVectorDocumentsRequestDocumentsInner.php | 2 +- ...DocumentsRequestDocumentsInnerMetadata.php | 2 +- src/Model/UpsertAgentOverlay200Response.php | 2 +- src/Model/UpsertAgentOverlayRequest.php | 2 +- src/Model/V1ContentItem.php | 2 +- src/Model/V1ContentListResponse.php | 2 +- src/Model/V1ContentRequest.php | 2 +- src/Model/V1DeleteResponse.php | 2 +- src/Model/V1Error.php | 2 +- src/Model/V1FormSubmissionItem.php | 2 +- src/Model/V1FormSubmissionListResponse.php | 2 +- src/Model/V1GetMetricSeriesResponse.php | 2 +- src/Model/V1GetMetricSeriesResponseData.php | 2 +- src/Model/V1GetMetricsResponse.php | 2 +- src/Model/V1GetMetricsResponseData.php | 2 +- src/Model/V1GlobalMetaResponse.php | 2 +- src/Model/V1GlobalMetaResponseGlobalMeta.php | 2 +- src/Model/V1Info.php | 2 +- src/Model/V1Meta.php | 2 +- src/Model/V1MetricDayStats.php | 2 +- src/Model/V1MetricMinuteStats.php | 2 +- src/Model/V1MetricMonthStats.php | 2 +- src/Model/V1PingResponse.php | 2 +- src/Model/V1ProxyItem.php | 2 +- src/Model/V1ProxyListResponse.php | 2 +- src/Model/V1RedirectItem.php | 2 +- src/Model/V1RedirectListResponse.php | 2 +- src/Model/V1RedirectRequest.php | 2 +- src/Model/V1RedirectResponse.php | 2 +- src/Model/V1Revision.php | 2 +- src/Model/V1RevisionsResponse.php | 2 +- src/Model/V1SearchHit.php | 2 +- src/Model/V1SearchItemsResponse.php | 2 +- src/Model/V1SearchMutationResponse.php | 2 +- src/Model/V1SearchRecord.php | 2 +- src/Model/V1SearchResponse.php | 2 +- src/Model/V1SeriesPointDay.php | 2 +- src/Model/V1SeriesPointMonth.php | 2 +- src/Model/V1Transition.php | 2 +- src/Model/V1UploadResponse.php | 2 +- src/Model/V1UrlMetaRequest.php | 2 +- src/Model/V1UrlMetaResponse.php | 2 +- src/Model/V1WafLogItem.php | 2 +- src/Model/V1WafLogListResponse.php | 2 +- src/Model/V2Crawler.php | 2 +- src/Model/V2CrawlerAssets.php | 2 +- src/Model/V2CrawlerAssetsNetworkIntercept.php | 2 +- src/Model/V2CrawlerAssetsParser.php | 2 +- src/Model/V2CrawlerRequest.php | 2 +- src/Model/V2CrawlerRun.php | 2 +- src/Model/V2CrawlerSchedule.php | 2 +- src/Model/V2CrawlerScheduleRequest.php | 2 +- src/Model/V2CrawlerSitemapInner.php | 2 +- src/Model/V2CustomHeaderRequest.php | 2 +- src/Model/V2Domain.php | 2 +- src/Model/V2DomainDnsGoLiveRecordsInner.php | 2 +- .../V2DomainDnsValidationRecordsInner.php | 2 +- src/Model/V2DomainRequest.php | 2 +- src/Model/V2Error.php | 2 +- src/Model/V2MetricData.php | 2 +- src/Model/V2MetricDataPoint.php | 2 +- src/Model/V2MetricDataPointTimestamp.php | 2 +- src/Model/V2MetricsMeta.php | 2 +- src/Model/V2MetricsResponse.php | 2 +- src/Model/V2Organization.php | 2 +- src/Model/V2OrganizationRequest.php | 2 +- src/Model/V2Project.php | 2 +- src/Model/V2ProjectRequest.php | 2 +- src/Model/V2Rule.php | 2 +- src/Model/V2RuleAuth.php | 2 +- src/Model/V2RuleAuthAction.php | 2 +- src/Model/V2RuleAuthRequest.php | 2 +- src/Model/V2RuleBotChallenge.php | 2 +- src/Model/V2RuleBotChallengeAction.php | 2 +- src/Model/V2RuleBotChallengeRequest.php | 2 +- src/Model/V2RuleContentFilter.php | 2 +- src/Model/V2RuleContentFilterAction.php | 2 +- src/Model/V2RuleContentFilterRequest.php | 2 +- src/Model/V2RuleCustomResponse.php | 2 +- src/Model/V2RuleCustomResponseAction.php | 2 +- src/Model/V2RuleCustomResponseRequest.php | 2 +- src/Model/V2RuleFunction.php | 2 +- src/Model/V2RuleFunctionAction.php | 2 +- src/Model/V2RuleFunctionRequest.php | 2 +- src/Model/V2RuleHeader.php | 2 +- src/Model/V2RuleHeaderAction.php | 2 +- src/Model/V2RuleHeaderRequest.php | 2 +- src/Model/V2RuleProxy.php | 2 +- src/Model/V2RuleProxyAction.php | 2 +- src/Model/V2RuleProxyActionNotifyConfig.php | 2 +- .../V2RuleProxyActionQuantCloudSelection.php | 2 +- src/Model/V2RuleProxyRequest.php | 2 +- src/Model/V2RuleRedirect.php | 2 +- src/Model/V2RuleRedirectAction.php | 2 +- src/Model/V2RuleRedirectRequest.php | 2 +- src/Model/V2RuleRequest.php | 2 +- src/Model/V2RuleServeStatic.php | 2 +- src/Model/V2RuleServeStaticAction.php | 2 +- src/Model/V2RuleServeStaticRequest.php | 2 +- src/Model/V2SecretStore.php | 2 +- src/Model/V2SecretStoreRequest.php | 2 +- src/Model/V2Store.php | 2 +- src/Model/V2StoreItem.php | 2 +- src/Model/V2StoreItemRequest.php | 2 +- src/Model/V2StoreItemUpdateRequest.php | 2 +- src/Model/V2StoreItemsListResponse.php | 2 +- src/Model/V2StoreRequest.php | 2 +- src/Model/ValidateCompose200Response.php | 2 +- src/Model/ValidateCompose422Response.php | 2 +- src/Model/ValidateComposeRequest.php | 2 +- src/Model/Variable.php | 2 +- src/Model/Volume.php | 2 +- src/Model/WafConfig.php | 2 +- src/Model/WafConfigBlockLists.php | 2 +- src/Model/WafConfigHttpbl.php | 2 +- src/Model/WafConfigThresholdsInner.php | 2 +- src/ObjectSerializer.php | 2 +- 495 files changed, 9167 insertions(+), 524 deletions(-) create mode 100644 docs/Api/IdleSleepApi.md create mode 100644 docs/Api/ResourcesApi.md create mode 100644 docs/Model/AttachOrgResourceRequest.md create mode 100644 docs/Model/CreateOrgResourceRequest.md create mode 100644 docs/Model/CreateOrgResourceRequestConfig.md create mode 100644 docs/Model/IdleSleepResponse.md create mode 100644 docs/Model/ListMcpServers200Response.md create mode 100644 docs/Model/ListMcpServers200ResponseServersInner.md create mode 100644 docs/Model/OrgResource.md create mode 100644 docs/Model/ResourceAttachment.md create mode 100644 docs/Model/SetIdleSleepRequest.md create mode 100644 src/Api/IdleSleepApi.php create mode 100644 src/Api/ResourcesApi.php create mode 100644 src/Model/AttachOrgResourceRequest.php create mode 100644 src/Model/CreateOrgResourceRequest.php create mode 100644 src/Model/CreateOrgResourceRequestConfig.php create mode 100644 src/Model/IdleSleepResponse.php create mode 100644 src/Model/ListMcpServers200Response.php create mode 100644 src/Model/ListMcpServers200ResponseServersInner.php create mode 100644 src/Model/OrgResource.php create mode 100644 src/Model/ResourceAttachment.php create mode 100644 src/Model/SetIdleSleepRequest.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 543fd552..1654fd90 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,11 +31,13 @@ docs/Api/CronApi.md docs/Api/DomainsApi.md docs/Api/EnvironmentsApi.md docs/Api/HeadersApi.md +docs/Api/IdleSleepApi.md docs/Api/KVApi.md docs/Api/OpenAICompatibilityApi.md docs/Api/OrganizationsApi.md docs/Api/ProjectsApi.md docs/Api/PurgeApi.md +docs/Api/ResourcesApi.md docs/Api/RestoreManagementApi.md docs/Api/RulesApi.md docs/Api/SSHAccessApi.md @@ -58,6 +60,7 @@ docs/Model/ApplicationDatabase.md docs/Model/ApplicationDeploymentInformationInner.md docs/Model/ApplicationFilesystem.md docs/Model/ApplicationImageReference.md +docs/Model/AttachOrgResourceRequest.md docs/Model/BulkSetEnvironmentVariablesRequest.md docs/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.md docs/Model/ChatInference200Response.md @@ -133,6 +136,8 @@ docs/Model/CreateFilterPolicyRequestRulesInnerMatch.md docs/Model/CreateOrchestrationRequest.md docs/Model/CreateOrchestrationRequestInputSource.md docs/Model/CreateOrchestrationRequestStopCondition.md +docs/Model/CreateOrgResourceRequest.md +docs/Model/CreateOrgResourceRequestConfig.md docs/Model/CreateSkill201Response.md docs/Model/CreateSkillRequest.md docs/Model/CreateSlackBot201Response.md @@ -226,6 +231,7 @@ docs/Model/GetSshAccessCredentials200ResponseCredentials.md docs/Model/GetTask200Response.md docs/Model/GetVectorCollection200Response.md docs/Model/GetVectorCollection200ResponseCollection.md +docs/Model/IdleSleepResponse.md docs/Model/ImageGeneration200Response.md docs/Model/ImageGenerationRequest.md docs/Model/ImageGenerationRequestBackgroundRemovalParams.md @@ -267,6 +273,8 @@ docs/Model/ListCustomTools200Response.md docs/Model/ListCustomTools200ResponseToolsInner.md docs/Model/ListFiles200Response.md docs/Model/ListFiles200ResponseFilesInner.md +docs/Model/ListMcpServers200Response.md +docs/Model/ListMcpServers200ResponseServersInner.md docs/Model/ListOrchestrationBatches200Response.md docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md docs/Model/ListOrchestrations200Response.md @@ -293,6 +301,7 @@ docs/Model/OaiEmbeddingsRequest.md docs/Model/OaiGetModel200Response.md docs/Model/OaiListModels200Response.md docs/Model/OaiListModels200ResponseDataInner.md +docs/Model/OrgResource.md docs/Model/OrganizationsList200ResponseInner.md docs/Model/PatchEnvironmentCompose202Response.md docs/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.md @@ -305,6 +314,7 @@ docs/Model/QueryVectorCollection200ResponsePagination.md docs/Model/QueryVectorCollection200ResponseResultsInner.md docs/Model/QueryVectorCollectionRequest.md docs/Model/QueryVectorCollectionRequestFilter.md +docs/Model/ResourceAttachment.md docs/Model/RestoreDatabase202Response.md docs/Model/RestoreDatabaseRequest.md docs/Model/RestoreFilesystem202Response.md @@ -314,6 +324,7 @@ docs/Model/SearchSlackWorkspaceChannels200Response.md docs/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.md docs/Model/SearchSlackWorkspaceUsers200Response.md docs/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.md +docs/Model/SetIdleSleepRequest.md docs/Model/SetScalingPolicyRequest.md docs/Model/SpotConfiguration.md docs/Model/SubmitToolCallback200Response.md @@ -494,11 +505,13 @@ src/Api/CronApi.php src/Api/DomainsApi.php src/Api/EnvironmentsApi.php src/Api/HeadersApi.php +src/Api/IdleSleepApi.php src/Api/KVApi.php src/Api/OpenAICompatibilityApi.php src/Api/OrganizationsApi.php src/Api/ProjectsApi.php src/Api/PurgeApi.php +src/Api/ResourcesApi.php src/Api/RestoreManagementApi.php src/Api/RulesApi.php src/Api/SSHAccessApi.php @@ -525,6 +538,7 @@ src/Model/ApplicationDatabase.php src/Model/ApplicationDeploymentInformationInner.php src/Model/ApplicationFilesystem.php src/Model/ApplicationImageReference.php +src/Model/AttachOrgResourceRequest.php src/Model/BulkSetEnvironmentVariablesRequest.php src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php src/Model/ChatInference200Response.php @@ -600,6 +614,8 @@ src/Model/CreateFilterPolicyRequestRulesInnerMatch.php src/Model/CreateOrchestrationRequest.php src/Model/CreateOrchestrationRequestInputSource.php src/Model/CreateOrchestrationRequestStopCondition.php +src/Model/CreateOrgResourceRequest.php +src/Model/CreateOrgResourceRequestConfig.php src/Model/CreateSkill201Response.php src/Model/CreateSkillRequest.php src/Model/CreateSlackBot201Response.php @@ -693,6 +709,7 @@ src/Model/GetSshAccessCredentials200ResponseCredentials.php src/Model/GetTask200Response.php src/Model/GetVectorCollection200Response.php src/Model/GetVectorCollection200ResponseCollection.php +src/Model/IdleSleepResponse.php src/Model/ImageGeneration200Response.php src/Model/ImageGenerationRequest.php src/Model/ImageGenerationRequestBackgroundRemovalParams.php @@ -734,6 +751,8 @@ src/Model/ListCustomTools200Response.php src/Model/ListCustomTools200ResponseToolsInner.php src/Model/ListFiles200Response.php src/Model/ListFiles200ResponseFilesInner.php +src/Model/ListMcpServers200Response.php +src/Model/ListMcpServers200ResponseServersInner.php src/Model/ListOrchestrationBatches200Response.php src/Model/ListOrchestrationBatches200ResponseBatchesInner.php src/Model/ListOrchestrations200Response.php @@ -761,6 +780,7 @@ src/Model/OaiEmbeddingsRequest.php src/Model/OaiGetModel200Response.php src/Model/OaiListModels200Response.php src/Model/OaiListModels200ResponseDataInner.php +src/Model/OrgResource.php src/Model/OrganizationsList200ResponseInner.php src/Model/PatchEnvironmentCompose202Response.php src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php @@ -773,6 +793,7 @@ src/Model/QueryVectorCollection200ResponsePagination.php src/Model/QueryVectorCollection200ResponseResultsInner.php src/Model/QueryVectorCollectionRequest.php src/Model/QueryVectorCollectionRequestFilter.php +src/Model/ResourceAttachment.php src/Model/RestoreDatabase202Response.php src/Model/RestoreDatabaseRequest.php src/Model/RestoreFilesystem202Response.php @@ -782,6 +803,7 @@ src/Model/SearchSlackWorkspaceChannels200Response.php src/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.php src/Model/SearchSlackWorkspaceUsers200Response.php src/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.php +src/Model/SetIdleSleepRequest.php src/Model/SetScalingPolicyRequest.php src/Model/SpotConfiguration.php src/Model/SubmitToolCallback200Response.php diff --git a/README.md b/README.md index 8a01c8db..76acca39 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,7 @@ Class | Method | HTTP request | Description *AIToolsApi* | [**listAIToolExecutions**](docs/Api/AIToolsApi.md#listaitoolexecutions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsApi* | [**listAIToolNames**](docs/Api/AIToolsApi.md#listaitoolnames) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) *AIToolsApi* | [**listAITools**](docs/Api/AIToolsApi.md#listaitools) | **GET** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling +*AIToolsApi* | [**listMcpServers**](docs/Api/AIToolsApi.md#listmcpservers) | **GET** /api/v3/organizations/{organisation}/ai/mcp-servers | List MCP servers with gateway URLs *AIUsageApi* | [**getMyUsage**](docs/Api/AIUsageApi.md#getmyusage) | **GET** /api/v3/organizations/{organisation}/ai/usage/me | Get AI usage summary for the authenticated user *AIVectorDatabaseApi* | [**createVectorCollection**](docs/Api/AIVectorDatabaseApi.md#createvectorcollection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection *AIVectorDatabaseApi* | [**deleteVectorCollection**](docs/Api/AIVectorDatabaseApi.md#deletevectorcollection) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection @@ -243,6 +244,8 @@ Class | Method | HTTP request | Description *HeadersApi* | [**headersCreate**](docs/Api/HeadersApi.md#headerscreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/custom-headers | Create or update custom headers *HeadersApi* | [**headersDelete**](docs/Api/HeadersApi.md#headersdelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/custom-headers | Delete custom headers *HeadersApi* | [**headersList**](docs/Api/HeadersApi.md#headerslist) | **GET** /api/v2/organizations/{organization}/projects/{project}/custom-headers | List custom headers for a project +*IdleSleepApi* | [**getIdleSleep**](docs/Api/IdleSleepApi.md#getidlesleep) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep | Get Idle Sleep Setting +*IdleSleepApi* | [**setIdleSleep**](docs/Api/IdleSleepApi.md#setidlesleep) | **PUT** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep | Set Idle Sleep Setting *KVApi* | [**kVCreate**](docs/Api/KVApi.md#kvcreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv | Add a kv store *KVApi* | [**kVDelete**](docs/Api/KVApi.md#kvdelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Delete a kv store *KVApi* | [**kVItemsCreate**](docs/Api/KVApi.md#kvitemscreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | Add an item to a kv store @@ -266,6 +269,12 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**projectsRead**](docs/Api/ProjectsApi.md#projectsread) | **GET** /api/v2/organizations/{organization}/projects/{project} | Get details of a single project *ProjectsApi* | [**projectsUpdate**](docs/Api/ProjectsApi.md#projectsupdate) | **PATCH** /api/v2/organizations/{organization}/projects/{project} | Update a project *PurgeApi* | [**purgeCreate**](docs/Api/PurgeApi.md#purgecreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/purge | Purge cache via URL or cache keys +*ResourcesApi* | [**attachOrgResource**](docs/Api/ResourcesApi.md#attachorgresource) | **POST** /api/v3/organizations/{organisation}/resources/{resource}/attachments | Attach a resource to an application environment +*ResourcesApi* | [**createOrgResource**](docs/Api/ResourcesApi.md#createorgresource) | **POST** /api/v3/organizations/{organisation}/resources | Create a shared resource +*ResourcesApi* | [**deleteOrgResource**](docs/Api/ResourcesApi.md#deleteorgresource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource} | Delete a shared resource +*ResourcesApi* | [**detachOrgResource**](docs/Api/ResourcesApi.md#detachorgresource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment} | Detach a resource from an application environment +*ResourcesApi* | [**getOrgResource**](docs/Api/ResourcesApi.md#getorgresource) | **GET** /api/v3/organizations/{organisation}/resources/{resource} | Get a shared resource and its attachments +*ResourcesApi* | [**listOrgResources**](docs/Api/ResourcesApi.md#listorgresources) | **GET** /api/v3/organizations/{organisation}/resources | List an organisation's shared resources *RestoreManagementApi* | [**getRestoreStatus**](docs/Api/RestoreManagementApi.md#getrestorestatus) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId} | Get the status of a restore operation *RestoreManagementApi* | [**restoreDatabase**](docs/Api/RestoreManagementApi.md#restoredatabase) | **POST** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database | Restore a database backup to a target environment *RestoreManagementApi* | [**restoreFilesystem**](docs/Api/RestoreManagementApi.md#restorefilesystem) | **POST** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem | Restore a filesystem backup to a target environment @@ -347,6 +356,7 @@ Class | Method | HTTP request | Description - [ApplicationDeploymentInformationInner](docs/Model/ApplicationDeploymentInformationInner.md) - [ApplicationFilesystem](docs/Model/ApplicationFilesystem.md) - [ApplicationImageReference](docs/Model/ApplicationImageReference.md) +- [AttachOrgResourceRequest](docs/Model/AttachOrgResourceRequest.md) - [BulkSetEnvironmentVariablesRequest](docs/Model/BulkSetEnvironmentVariablesRequest.md) - [BulkSetEnvironmentVariablesRequestEnvironmentInner](docs/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.md) - [ChatInference200Response](docs/Model/ChatInference200Response.md) @@ -422,6 +432,8 @@ Class | Method | HTTP request | Description - [CreateOrchestrationRequest](docs/Model/CreateOrchestrationRequest.md) - [CreateOrchestrationRequestInputSource](docs/Model/CreateOrchestrationRequestInputSource.md) - [CreateOrchestrationRequestStopCondition](docs/Model/CreateOrchestrationRequestStopCondition.md) +- [CreateOrgResourceRequest](docs/Model/CreateOrgResourceRequest.md) +- [CreateOrgResourceRequestConfig](docs/Model/CreateOrgResourceRequestConfig.md) - [CreateSkill201Response](docs/Model/CreateSkill201Response.md) - [CreateSkillRequest](docs/Model/CreateSkillRequest.md) - [CreateSlackBot201Response](docs/Model/CreateSlackBot201Response.md) @@ -515,6 +527,7 @@ Class | Method | HTTP request | Description - [GetTask200Response](docs/Model/GetTask200Response.md) - [GetVectorCollection200Response](docs/Model/GetVectorCollection200Response.md) - [GetVectorCollection200ResponseCollection](docs/Model/GetVectorCollection200ResponseCollection.md) +- [IdleSleepResponse](docs/Model/IdleSleepResponse.md) - [ImageGeneration200Response](docs/Model/ImageGeneration200Response.md) - [ImageGenerationRequest](docs/Model/ImageGenerationRequest.md) - [ImageGenerationRequestBackgroundRemovalParams](docs/Model/ImageGenerationRequestBackgroundRemovalParams.md) @@ -556,6 +569,8 @@ Class | Method | HTTP request | Description - [ListCustomTools200ResponseToolsInner](docs/Model/ListCustomTools200ResponseToolsInner.md) - [ListFiles200Response](docs/Model/ListFiles200Response.md) - [ListFiles200ResponseFilesInner](docs/Model/ListFiles200ResponseFilesInner.md) +- [ListMcpServers200Response](docs/Model/ListMcpServers200Response.md) +- [ListMcpServers200ResponseServersInner](docs/Model/ListMcpServers200ResponseServersInner.md) - [ListOrchestrationBatches200Response](docs/Model/ListOrchestrationBatches200Response.md) - [ListOrchestrationBatches200ResponseBatchesInner](docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md) - [ListOrchestrations200Response](docs/Model/ListOrchestrations200Response.md) @@ -582,6 +597,7 @@ Class | Method | HTTP request | Description - [OaiGetModel200Response](docs/Model/OaiGetModel200Response.md) - [OaiListModels200Response](docs/Model/OaiListModels200Response.md) - [OaiListModels200ResponseDataInner](docs/Model/OaiListModels200ResponseDataInner.md) +- [OrgResource](docs/Model/OrgResource.md) - [OrganizationsList200ResponseInner](docs/Model/OrganizationsList200ResponseInner.md) - [PatchEnvironmentCompose202Response](docs/Model/PatchEnvironmentCompose202Response.md) - [PatchEnvironmentCompose202ResponseSpotConfiguration](docs/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.md) @@ -594,6 +610,7 @@ Class | Method | HTTP request | Description - [QueryVectorCollection200ResponseResultsInner](docs/Model/QueryVectorCollection200ResponseResultsInner.md) - [QueryVectorCollectionRequest](docs/Model/QueryVectorCollectionRequest.md) - [QueryVectorCollectionRequestFilter](docs/Model/QueryVectorCollectionRequestFilter.md) +- [ResourceAttachment](docs/Model/ResourceAttachment.md) - [RestoreDatabase202Response](docs/Model/RestoreDatabase202Response.md) - [RestoreDatabaseRequest](docs/Model/RestoreDatabaseRequest.md) - [RestoreFilesystem202Response](docs/Model/RestoreFilesystem202Response.md) @@ -603,6 +620,7 @@ Class | Method | HTTP request | Description - [SearchSlackWorkspaceChannels200ResponseResultsInner](docs/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.md) - [SearchSlackWorkspaceUsers200Response](docs/Model/SearchSlackWorkspaceUsers200Response.md) - [SearchSlackWorkspaceUsers200ResponseResultsInner](docs/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.md) +- [SetIdleSleepRequest](docs/Model/SetIdleSleepRequest.md) - [SetScalingPolicyRequest](docs/Model/SetScalingPolicyRequest.md) - [SpotConfiguration](docs/Model/SpotConfiguration.md) - [SubmitToolCallback200Response](docs/Model/SubmitToolCallback200Response.md) @@ -777,7 +795,7 @@ vendor/bin/phpunit This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: `4.21.0` - - Package version: `4.21.0` +- API version: `4.22.0` + - Package version: `4.22.0` - Generator version: `7.13.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/composer.json b/composer.json index b2edc6cc..dcc6321d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "quantcdn/quant-php-client", - "version": "4.21.0", + "version": "4.22.0", "description": "Unified API for QuantCDN Admin and QuantCloud Platform services", "keywords": [ "openapitools", diff --git a/composer.lock b/composer.lock index 64b480b7..b58c856b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,26 +4,26 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da13d31fb7f1c3690a4af13ea2ea4826", + "content-hash": "979b227cda0f601f38c649392d81cd6c", "packages": [ { "name": "guzzlehttp/guzzle", - "version": "7.15.2", + "version": "7.15.5", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf" + "reference": "ee80339fd9177ba44c49cdb653ff02a4d1106b9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/744101956d78b7c1384d0cbf379db13e859167bf", - "reference": "744101956d78b7c1384d0cbf379db13e859167bf", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ee80339fd9177ba44c49cdb653ff02a4d1106b9a", + "reference": "ee80339fd9177ba44c49cdb653ff02a4d1106b9a", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^2.5.1", - "guzzlehttp/psr7": "^2.13", + "guzzlehttp/promises": "^2.5.3", + "guzzlehttp/psr7": "^2.13.1", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.5 || ^3.0", @@ -116,7 +116,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.15.2" + "source": "https://github.com/guzzle/guzzle/tree/7.15.5" }, "funding": [ { @@ -132,20 +132,20 @@ "type": "tidelift" } ], - "time": "2026-07-26T23:23:20+00:00" + "time": "2026-08-24T09:21:06+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.5.2", + "version": "2.5.3", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce" + "reference": "cde49999552d185d64715fe9c1f77a2aadd2f9f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/2823687acff28b2dbe67b2508a6b300e2c3fa4ce", - "reference": "2823687acff28b2dbe67b2508a6b300e2c3fa4ce", + "url": "https://api.github.com/repos/guzzle/promises/zipball/cde49999552d185d64715fe9c1f77a2aadd2f9f1", + "reference": "cde49999552d185d64715fe9c1f77a2aadd2f9f1", "shasum": "" }, "require": { @@ -200,7 +200,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.5.2" + "source": "https://github.com/guzzle/promises/tree/2.5.3" }, "funding": [ { @@ -216,20 +216,20 @@ "type": "tidelift" } ], - "time": "2026-08-05T19:30:54+00:00" + "time": "2026-08-24T09:11:28+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.13.0", + "version": "2.13.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "dad89620b7a6edb60c15858442eb2e408b45d8f4" + "reference": "95e7828100de18b4e269fb1703be530082d5166d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/dad89620b7a6edb60c15858442eb2e408b45d8f4", - "reference": "dad89620b7a6edb60c15858442eb2e408b45d8f4", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/95e7828100de18b4e269fb1703be530082d5166d", + "reference": "95e7828100de18b4e269fb1703be530082d5166d", "shasum": "" }, "require": { @@ -319,7 +319,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.13.0" + "source": "https://github.com/guzzle/psr7/tree/2.13.1" }, "funding": [ { @@ -335,7 +335,7 @@ "type": "tidelift" } ], - "time": "2026-07-16T22:23:49+00:00" + "time": "2026-08-24T09:13:11+00:00" }, { "name": "psr/http-client", @@ -770,20 +770,20 @@ }, { "name": "myclabs/deep-copy", - "version": "1.13.4", + "version": "1.14.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.0" }, "conflict": { "doctrine/collections": "<1.6.8", @@ -818,15 +818,15 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" }, "funding": [ { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" + "url": "https://github.com/mnapoli", + "type": "github" } ], - "time": "2025-08-01T08:46:24+00:00" + "time": "2026-08-11T10:17:44+00:00" }, { "name": "nikic/php-parser", @@ -1324,16 +1324,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.35", + "version": "9.6.36", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0edba2f3a0c48df3553cb9b640810b30df60302b" + "reference": "abab27ed286d3e1246fbbfe6b56bfd732d945ec9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0edba2f3a0c48df3553cb9b640810b30df60302b", - "reference": "0edba2f3a0c48df3553cb9b640810b30df60302b", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/abab27ed286d3e1246fbbfe6b56bfd732d945ec9", + "reference": "abab27ed286d3e1246fbbfe6b56bfd732d945ec9", "shasum": "" }, "require": { @@ -1358,7 +1358,7 @@ "sebastian/comparator": "^4.0.10", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", - "sebastian/exporter": "^4.0.8", + "sebastian/exporter": "^4.0.9", "sebastian/global-state": "^5.0.8", "sebastian/object-enumerator": "^4.0.4", "sebastian/resource-operations": "^3.0.4", @@ -1407,7 +1407,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.35" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.36" }, "funding": [ { @@ -1415,7 +1415,7 @@ "type": "other" } ], - "time": "2026-07-06T14:48:07+00:00" + "time": "2026-08-11T06:25:15+00:00" }, { "name": "sebastian/cli-parser", @@ -1858,16 +1858,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.8", + "version": "4.0.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c" + "reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/14c6ba52f95a36c3d27c835d65efc7123c446e8c", - "reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/4352c1a3df741a7ba9e61af6fed51d1fee41cbf7", + "reference": "4352c1a3df741a7ba9e61af6fed51d1fee41cbf7", "shasum": "" }, "require": { @@ -1923,7 +1923,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.9" }, "funding": [ { @@ -1943,7 +1943,7 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:03:27+00:00" + "time": "2026-08-11T04:55:59+00:00" }, { "name": "sebastian/global-state", @@ -2192,16 +2192,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.6", + "version": "4.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "539c6691e0623af6dc6f9c20384c120f963465a0" + "reference": "c85be6922b7fd365942b986b9a50397d65407611" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0", - "reference": "539c6691e0623af6dc6f9c20384c120f963465a0", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/c85be6922b7fd365942b986b9a50397d65407611", + "reference": "c85be6922b7fd365942b986b9a50397d65407611", "shasum": "" }, "require": { @@ -2243,7 +2243,7 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.7" }, "funding": [ { @@ -2263,7 +2263,7 @@ "type": "tidelift" } ], - "time": "2025-08-10T06:57:39+00:00" + "time": "2026-08-11T05:25:24+00:00" }, { "name": "sebastian/resource-operations", diff --git a/docs/Api/AIToolsApi.md b/docs/Api/AIToolsApi.md index 018d1e2e..7963fcc9 100644 --- a/docs/Api/AIToolsApi.md +++ b/docs/Api/AIToolsApi.md @@ -9,6 +9,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**listAIToolExecutions()**](AIToolsApi.md#listAIToolExecutions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging | | [**listAIToolNames()**](AIToolsApi.md#listAIToolNames) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) | | [**listAITools()**](AIToolsApi.md#listAITools) | **GET** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling | +| [**listMcpServers()**](AIToolsApi.md#listMcpServers) | **GET** /api/v3/organizations/{organisation}/ai/mcp-servers | List MCP servers with gateway URLs | ## `getAIOrchestrationStatus()` @@ -318,3 +319,63 @@ try { [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) + +## `listMcpServers()` + +```php +listMcpServers($organisation): \QuantClient\Model\ListMcpServers200Response +``` + +List MCP servers with gateway URLs + +Lists the organization's registered MCP servers for CLI sync (QuantCode). Each server's `url` is the FULL MCP gateway URL on the AI API host — clients connect there, never to the origin server. Credentials are never exposed. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIToolsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID + +try { + $result = $apiInstance->listMcpServers($organisation); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIToolsApi->listMcpServers: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | + +### Return type + +[**\QuantClient\Model\ListMcpServers200Response**](../Model/ListMcpServers200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/IdleSleepApi.md b/docs/Api/IdleSleepApi.md new file mode 100644 index 00000000..006c1cdb --- /dev/null +++ b/docs/Api/IdleSleepApi.md @@ -0,0 +1,139 @@ +# QuantClient\IdleSleepApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getIdleSleep()**](IdleSleepApi.md#getIdleSleep) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep | Get Idle Sleep Setting | +| [**setIdleSleep()**](IdleSleepApi.md#setIdleSleep) | **PUT** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep | Set Idle Sleep Setting | + + +## `getIdleSleep()` + +```php +getIdleSleep($organisation, $application, $environment): \QuantClient\Model\IdleSleepResponse +``` + +Get Idle Sleep Setting + +Retrieves the idle sleep setting and the current sleep state for the environment. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\IdleSleepApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string +$application = 'application_example'; // string +$environment = 'environment_example'; // string + +try { + $result = $apiInstance->getIdleSleep($organisation, $application, $environment); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IdleSleepApi->getIdleSleep: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| | | +| **application** | **string**| | | +| **environment** | **string**| | | + +### Return type + +[**\QuantClient\Model\IdleSleepResponse**](../Model/IdleSleepResponse.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `setIdleSleep()` + +```php +setIdleSleep($organisation, $application, $environment, $set_idle_sleep_request): \QuantClient\Model\IdleSleepResponse +``` + +Set Idle Sleep Setting + +Enable or disable idle sleep. Only Fargate compute sleeps. Disabling a sleeping environment wakes it first; a 202 means it is still waking. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\IdleSleepApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string +$application = 'application_example'; // string +$environment = 'environment_example'; // string +$set_idle_sleep_request = new \QuantClient\Model\SetIdleSleepRequest(); // \QuantClient\Model\SetIdleSleepRequest + +try { + $result = $apiInstance->setIdleSleep($organisation, $application, $environment, $set_idle_sleep_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IdleSleepApi->setIdleSleep: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| | | +| **application** | **string**| | | +| **environment** | **string**| | | +| **set_idle_sleep_request** | [**\QuantClient\Model\SetIdleSleepRequest**](../Model/SetIdleSleepRequest.md)| | | + +### Return type + +[**\QuantClient\Model\IdleSleepResponse**](../Model/IdleSleepResponse.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/ResourcesApi.md b/docs/Api/ResourcesApi.md new file mode 100644 index 00000000..9cb583a0 --- /dev/null +++ b/docs/Api/ResourcesApi.md @@ -0,0 +1,385 @@ +# QuantClient\ResourcesApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**attachOrgResource()**](ResourcesApi.md#attachOrgResource) | **POST** /api/v3/organizations/{organisation}/resources/{resource}/attachments | Attach a resource to an application environment | +| [**createOrgResource()**](ResourcesApi.md#createOrgResource) | **POST** /api/v3/organizations/{organisation}/resources | Create a shared resource | +| [**deleteOrgResource()**](ResourcesApi.md#deleteOrgResource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource} | Delete a shared resource | +| [**detachOrgResource()**](ResourcesApi.md#detachOrgResource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment} | Detach a resource from an application environment | +| [**getOrgResource()**](ResourcesApi.md#getOrgResource) | **GET** /api/v3/organizations/{organisation}/resources/{resource} | Get a shared resource and its attachments | +| [**listOrgResources()**](ResourcesApi.md#listOrgResources) | **GET** /api/v3/organizations/{organisation}/resources | List an organisation's shared resources | + + +## `attachOrgResource()` + +```php +attachOrgResource($organisation, $resource, $attach_org_resource_request): \QuantClient\Model\ResourceAttachment +``` + +Attach a resource to an application environment + +Object storage credentials are written immediately and take effect on the environment's next deploy. Cache variables are rendered at the next deploy, so a cache may be attached while it is still provisioning. An environment accepts one attachment per resource type. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = res-abc123; // string | The resource ID +$attach_org_resource_request = new \QuantClient\Model\AttachOrgResourceRequest(); // \QuantClient\Model\AttachOrgResourceRequest + +try { + $result = $apiInstance->attachOrgResource($organisation, $resource, $attach_org_resource_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->attachOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | +| **attach_org_resource_request** | [**\QuantClient\Model\AttachOrgResourceRequest**](../Model/AttachOrgResourceRequest.md)| | | + +### Return type + +[**\QuantClient\Model\ResourceAttachment**](../Model/ResourceAttachment.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `createOrgResource()` + +```php +createOrgResource($organisation, $create_org_resource_request): \QuantClient\Model\OrgResource +``` + +Create a shared resource + +Object storage is provisioned synchronously and returns status available. A Valkey cache is asynchronous and returns status provisioning; poll the show endpoint until it reports available. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$create_org_resource_request = new \QuantClient\Model\CreateOrgResourceRequest(); // \QuantClient\Model\CreateOrgResourceRequest + +try { + $result = $apiInstance->createOrgResource($organisation, $create_org_resource_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->createOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **create_org_resource_request** | [**\QuantClient\Model\CreateOrgResourceRequest**](../Model/CreateOrgResourceRequest.md)| | | + +### Return type + +[**\QuantClient\Model\OrgResource**](../Model/OrgResource.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deleteOrgResource()` + +```php +deleteOrgResource($organisation, $resource, $force) +``` + +Delete a shared resource + +Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = res-abc123; // string | The resource ID +$force = True; // bool | Delete even if the resource is attached or in an error state + +try { + $apiInstance->deleteOrgResource($organisation, $resource, $force); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->deleteOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | +| **force** | **bool**| Delete even if the resource is attached or in an error state | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `detachOrgResource()` + +```php +detachOrgResource($organisation, $resource, $application, $environment) +``` + +Detach a resource from an application environment + +Removes the injected credentials and redeploys the environment so that it stops referencing them, which interrupts the environment briefly. The resource and its contents are not deleted. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = res-abc123; // string | The resource ID +$application = test-app; // string | The application ID +$environment = production; // string | The environment ID + +try { + $apiInstance->detachOrgResource($organisation, $resource, $application, $environment); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->detachOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | +| **application** | **string**| The application ID | | +| **environment** | **string**| The environment ID | | + +### Return type + +void (empty response body) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `getOrgResource()` + +```php +getOrgResource($organisation, $resource): \QuantClient\Model\OrgResource +``` + +Get a shared resource and its attachments + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = res-abc123; // string | The resource ID + +try { + $result = $apiInstance->getOrgResource($organisation, $resource); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->getOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | + +### Return type + +[**\QuantClient\Model\OrgResource**](../Model/OrgResource.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listOrgResources()` + +```php +listOrgResources($organisation): \QuantClient\Model\OrgResource[] +``` + +List an organisation's shared resources + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID + +try { + $result = $apiInstance->listOrgResources($organisation); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->listOrgResources: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | + +### Return type + +[**\QuantClient\Model\OrgResource[]**](../Model/OrgResource.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Model/AttachOrgResourceRequest.md b/docs/Model/AttachOrgResourceRequest.md new file mode 100644 index 00000000..dc66e29c --- /dev/null +++ b/docs/Model/AttachOrgResourceRequest.md @@ -0,0 +1,11 @@ +# # AttachOrgResourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application** | **string** | | +**environment** | **string** | | +**env_var_prefix** | **string** | Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreateOrgResourceRequest.md b/docs/Model/CreateOrgResourceRequest.md new file mode 100644 index 00000000..ec12c0b4 --- /dev/null +++ b/docs/Model/CreateOrgResourceRequest.md @@ -0,0 +1,11 @@ +# # CreateOrgResourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | +**name** | **string** | Lowercase letters, numbers and hyphens, 2-41 characters, starting with a letter or number | +**config** | [**\QuantClient\Model\CreateOrgResourceRequestConfig**](CreateOrgResourceRequestConfig.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreateOrgResourceRequestConfig.md b/docs/Model/CreateOrgResourceRequestConfig.md new file mode 100644 index 00000000..e05de5a7 --- /dev/null +++ b/docs/Model/CreateOrgResourceRequestConfig.md @@ -0,0 +1,9 @@ +# # CreateOrgResourceRequestConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_storage_max_gb** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetGovernanceConfig200ResponseSpendLimits.md b/docs/Model/GetGovernanceConfig200ResponseSpendLimits.md index feb4f410..5e24f311 100644 --- a/docs/Model/GetGovernanceConfig200ResponseSpendLimits.md +++ b/docs/Model/GetGovernanceConfig200ResponseSpendLimits.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **per_user_monthly_budget_cents** | **int** | | [optional] **per_user_daily_budget_cents** | **int** | | [optional] **warning_threshold_percent** | **int** | | [optional] -**interface_limits** | [**array**](GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md) | Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels. | [optional] +**interface_limits** | [**array**](GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md) | Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket, durable, orchestration, workflow, embedding, ai-search). Keys are interface labels. | [optional] **user_overrides** | [**array**](GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md) | Per-user budget overrides keyed by userId (numeric portal id, slack-<id>, or system:code-agent). Replaces the flat per-user budget for that user; unlimited=true exempts them. | [optional] **per_token_monthly_budget_cents** | **int** | Flat monthly cap in cents applied to every API token without a named override | [optional] **per_token_daily_budget_cents** | **int** | Flat daily cap in cents applied to every API token without a named override | [optional] diff --git a/docs/Model/IdleSleepResponse.md b/docs/Model/IdleSleepResponse.md new file mode 100644 index 00000000..daad4ac1 --- /dev/null +++ b/docs/Model/IdleSleepResponse.md @@ -0,0 +1,12 @@ +# # IdleSleepResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | +**idle_minutes** | **int** | | +**state** | **string** | | +**state_changed_at** | **\DateTime** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListMcpServers200Response.md b/docs/Model/ListMcpServers200Response.md new file mode 100644 index 00000000..c41b1b6b --- /dev/null +++ b/docs/Model/ListMcpServers200Response.md @@ -0,0 +1,10 @@ +# # ListMcpServers200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gateway_base_url** | **string** | Origin of the MCP gateway host (scheme://host[:port]) — clients treat gateway URLs on this origin as bearer-authenticated with the end user's Quant token | [optional] +**servers** | [**\QuantClient\Model\ListMcpServers200ResponseServersInner[]**](ListMcpServers200ResponseServersInner.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListMcpServers200ResponseServersInner.md b/docs/Model/ListMcpServers200ResponseServersInner.md new file mode 100644 index 00000000..39766895 --- /dev/null +++ b/docs/Model/ListMcpServers200ResponseServersInner.md @@ -0,0 +1,13 @@ +# # ListMcpServers200ResponseServersInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**server_name** | **string** | | [optional] +**display_name** | **string** | | [optional] +**url** | **string** | MCP gateway URL | [optional] +**enabled** | **bool** | | [optional] +**tool_allowlist** | **string[]** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/OrgResource.md b/docs/Model/OrgResource.md new file mode 100644 index 00000000..6e6c9d49 --- /dev/null +++ b/docs/Model/OrgResource.md @@ -0,0 +1,17 @@ +# # OrgResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**org_name** | **string** | | [optional] +**resource_id** | **string** | | [optional] +**type** | **string** | | [optional] +**name** | **string** | | [optional] +**status** | **string** | | [optional] +**scope** | **string** | org for resources managed by these endpoints. app rows are compatibility records for an application-managed cache and cannot be mutated here. | [optional] +**config** | **object** | Type-specific settings, such as dataStorageMaxGb for a cache | [optional] +**physical** | **object** | Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache | [optional] +**created_at** | **\DateTime** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ResourceAttachment.md b/docs/Model/ResourceAttachment.md new file mode 100644 index 00000000..9c01be4a --- /dev/null +++ b/docs/Model/ResourceAttachment.md @@ -0,0 +1,15 @@ +# # ResourceAttachment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_name** | **string** | | [optional] +**env_name** | **string** | | [optional] +**env_var_prefix** | **string** | Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET | [optional] +**access_key_id** | **string** | Object storage only. The secret half is written to the environment's secrets and never returned. | [optional] +**injected_keys** | **string[]** | The exact variable names this attachment wrote, removed precisely on detach | [optional] +**created_at** | **\DateTime** | | [optional] +**note** | **string** | When the credentials take effect | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SetIdleSleepRequest.md b/docs/Model/SetIdleSleepRequest.md new file mode 100644 index 00000000..dd7ef67e --- /dev/null +++ b/docs/Model/SetIdleSleepRequest.md @@ -0,0 +1,10 @@ +# # SetIdleSleepRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Whether the environment sleeps when idle. | +**idle_minutes** | **int** | Minutes with no requests before compute sleeps. | [optional] [default to 30] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/src/Api/AIAgentsApi.php b/src/Api/AIAgentsApi.php index 538b673a..e7628cbb 100644 --- a/src/Api/AIAgentsApi.php +++ b/src/Api/AIAgentsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIApi.php b/src/Api/AIApi.php index f6fca9e0..8575af95 100644 --- a/src/Api/AIApi.php +++ b/src/Api/AIApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AICustomToolsApi.php b/src/Api/AICustomToolsApi.php index f2e28e03..00ec92a2 100644 --- a/src/Api/AICustomToolsApi.php +++ b/src/Api/AICustomToolsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIFileStorageApi.php b/src/Api/AIFileStorageApi.php index afe76a60..21c0ea47 100644 --- a/src/Api/AIFileStorageApi.php +++ b/src/Api/AIFileStorageApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIFilterPoliciesApi.php b/src/Api/AIFilterPoliciesApi.php index 93aef91c..551783c7 100644 --- a/src/Api/AIFilterPoliciesApi.php +++ b/src/Api/AIFilterPoliciesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIGovernanceApi.php b/src/Api/AIGovernanceApi.php index ea110527..f874379b 100644 --- a/src/Api/AIGovernanceApi.php +++ b/src/Api/AIGovernanceApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIInferenceApi.php b/src/Api/AIInferenceApi.php index 4cdbb054..faba9ddb 100644 --- a/src/Api/AIInferenceApi.php +++ b/src/Api/AIInferenceApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIModelsApi.php b/src/Api/AIModelsApi.php index 7281aa19..1949668d 100644 --- a/src/Api/AIModelsApi.php +++ b/src/Api/AIModelsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIOrchestrationsApi.php b/src/Api/AIOrchestrationsApi.php index 3a353ab3..0aca0253 100644 --- a/src/Api/AIOrchestrationsApi.php +++ b/src/Api/AIOrchestrationsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AISearchApi.php b/src/Api/AISearchApi.php index a1f8182b..18466a00 100644 --- a/src/Api/AISearchApi.php +++ b/src/Api/AISearchApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AISessionsApi.php b/src/Api/AISessionsApi.php index e4ac7a0f..be4f6adc 100644 --- a/src/Api/AISessionsApi.php +++ b/src/Api/AISessionsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AISkillsApi.php b/src/Api/AISkillsApi.php index e1f70e13..0a1f3451 100644 --- a/src/Api/AISkillsApi.php +++ b/src/Api/AISkillsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AISlackBotsApi.php b/src/Api/AISlackBotsApi.php index 7be1d276..fb895543 100644 --- a/src/Api/AISlackBotsApi.php +++ b/src/Api/AISlackBotsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AITaskManagementApi.php b/src/Api/AITaskManagementApi.php index e53b040d..4dca441a 100644 --- a/src/Api/AITaskManagementApi.php +++ b/src/Api/AITaskManagementApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIToolsApi.php b/src/Api/AIToolsApi.php index d1b238d3..379206c0 100644 --- a/src/Api/AIToolsApi.php +++ b/src/Api/AIToolsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -89,6 +89,9 @@ class AIToolsApi 'listAITools' => [ 'application/json', ], + 'listMcpServers' => [ + 'application/json', + ], ]; /** @@ -1540,6 +1543,278 @@ public function listAIToolsRequest($organisation, string $contentType = self::co + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listMcpServers + * + * List MCP servers with gateway URLs + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMcpServers'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\ListMcpServers200Response + */ + public function listMcpServers($organisation, string $contentType = self::contentTypes['listMcpServers'][0]) + { + list($response) = $this->listMcpServersWithHttpInfo($organisation, $contentType); + return $response; + } + + /** + * Operation listMcpServersWithHttpInfo + * + * List MCP servers with gateway URLs + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMcpServers'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\ListMcpServers200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function listMcpServersWithHttpInfo($organisation, string $contentType = self::contentTypes['listMcpServers'][0]) + { + $request = $this->listMcpServersRequest($organisation, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListMcpServers200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListMcpServers200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ListMcpServers200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listMcpServersAsync + * + * List MCP servers with gateway URLs + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMcpServers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMcpServersAsync($organisation, string $contentType = self::contentTypes['listMcpServers'][0]) + { + return $this->listMcpServersAsyncWithHttpInfo($organisation, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listMcpServersAsyncWithHttpInfo + * + * List MCP servers with gateway URLs + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMcpServers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMcpServersAsyncWithHttpInfo($organisation, string $contentType = self::contentTypes['listMcpServers'][0]) + { + $returnType = '\QuantClient\Model\ListMcpServers200Response'; + $request = $this->listMcpServersRequest($organisation, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listMcpServers' + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMcpServers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listMcpServersRequest($organisation, string $contentType = self::contentTypes['listMcpServers'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling listMcpServers' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/mcp-servers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params if ($organisation !== null) { $resourcePath = str_replace( diff --git a/src/Api/AIUsageApi.php b/src/Api/AIUsageApi.php index 07fc63f7..1d69364d 100644 --- a/src/Api/AIUsageApi.php +++ b/src/Api/AIUsageApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIVectorDatabaseApi.php b/src/Api/AIVectorDatabaseApi.php index 76ac1b67..d150f8ff 100644 --- a/src/Api/AIVectorDatabaseApi.php +++ b/src/Api/AIVectorDatabaseApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ApplicationsApi.php b/src/Api/ApplicationsApi.php index a6f8ffce..57c088b4 100644 --- a/src/Api/ApplicationsApi.php +++ b/src/Api/ApplicationsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/BackupManagementApi.php b/src/Api/BackupManagementApi.php index 59eaea16..70d26910 100644 --- a/src/Api/BackupManagementApi.php +++ b/src/Api/BackupManagementApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CDNMetricsApi.php b/src/Api/CDNMetricsApi.php index b975ef5b..067c22b5 100644 --- a/src/Api/CDNMetricsApi.php +++ b/src/Api/CDNMetricsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CommandsApi.php b/src/Api/CommandsApi.php index 879b9a82..6970d161 100644 --- a/src/Api/CommandsApi.php +++ b/src/Api/CommandsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ComposeApi.php b/src/Api/ComposeApi.php index 35d7428e..4f7fbe44 100644 --- a/src/Api/ComposeApi.php +++ b/src/Api/ComposeApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ContainersApi.php b/src/Api/ContainersApi.php index 3dbab3e9..a25db60d 100644 --- a/src/Api/ContainersApi.php +++ b/src/Api/ContainersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CrawlerSchedulesApi.php b/src/Api/CrawlerSchedulesApi.php index 1a78bc1e..eb85a984 100644 --- a/src/Api/CrawlerSchedulesApi.php +++ b/src/Api/CrawlerSchedulesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CrawlersApi.php b/src/Api/CrawlersApi.php index 3a46a877..6cc8da32 100644 --- a/src/Api/CrawlersApi.php +++ b/src/Api/CrawlersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CronApi.php b/src/Api/CronApi.php index 2022c4c0..a13374f8 100644 --- a/src/Api/CronApi.php +++ b/src/Api/CronApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/DomainsApi.php b/src/Api/DomainsApi.php index 06bd0b27..4dffc5bc 100644 --- a/src/Api/DomainsApi.php +++ b/src/Api/DomainsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/EnvironmentsApi.php b/src/Api/EnvironmentsApi.php index 7897b65a..ed703b56 100644 --- a/src/Api/EnvironmentsApi.php +++ b/src/Api/EnvironmentsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/HeadersApi.php b/src/Api/HeadersApi.php index 97769e87..59852799 100644 --- a/src/Api/HeadersApi.php +++ b/src/Api/HeadersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/IdleSleepApi.php b/src/Api/IdleSleepApi.php new file mode 100644 index 00000000..d1c96704 --- /dev/null +++ b/src/Api/IdleSleepApi.php @@ -0,0 +1,877 @@ + [ + 'application/json', + ], + 'setIdleSleep' => [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getIdleSleep + * + * Get Idle Sleep Setting + * + * @param string $organisation organisation (required) + * @param string $application application (required) + * @param string $environment environment (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getIdleSleep'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\IdleSleepResponse + */ + public function getIdleSleep($organisation, $application, $environment, string $contentType = self::contentTypes['getIdleSleep'][0]) + { + list($response) = $this->getIdleSleepWithHttpInfo($organisation, $application, $environment, $contentType); + return $response; + } + + /** + * Operation getIdleSleepWithHttpInfo + * + * Get Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getIdleSleep'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\IdleSleepResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getIdleSleepWithHttpInfo($organisation, $application, $environment, string $contentType = self::contentTypes['getIdleSleep'][0]) + { + $request = $this->getIdleSleepRequest($organisation, $application, $environment, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\IdleSleepResponse', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\IdleSleepResponse', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\IdleSleepResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getIdleSleepAsync + * + * Get Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIdleSleepAsync($organisation, $application, $environment, string $contentType = self::contentTypes['getIdleSleep'][0]) + { + return $this->getIdleSleepAsyncWithHttpInfo($organisation, $application, $environment, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getIdleSleepAsyncWithHttpInfo + * + * Get Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getIdleSleepAsyncWithHttpInfo($organisation, $application, $environment, string $contentType = self::contentTypes['getIdleSleep'][0]) + { + $returnType = '\QuantClient\Model\IdleSleepResponse'; + $request = $this->getIdleSleepRequest($organisation, $application, $environment, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getIdleSleep' + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getIdleSleepRequest($organisation, $application, $environment, string $contentType = self::contentTypes['getIdleSleep'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getIdleSleep' + ); + } + + // verify the required parameter 'application' is set + if ($application === null || (is_array($application) && count($application) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $application when calling getIdleSleep' + ); + } + + // verify the required parameter 'environment' is set + if ($environment === null || (is_array($environment) && count($environment) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $environment when calling getIdleSleep' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($application !== null) { + $resourcePath = str_replace( + '{' . 'application' . '}', + ObjectSerializer::toPathValue($application), + $resourcePath + ); + } + // path params + if ($environment !== null) { + $resourcePath = str_replace( + '{' . 'environment' . '}', + ObjectSerializer::toPathValue($environment), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation setIdleSleep + * + * Set Idle Sleep Setting + * + * @param string $organisation organisation (required) + * @param string $application application (required) + * @param string $environment environment (required) + * @param \QuantClient\Model\SetIdleSleepRequest $set_idle_sleep_request set_idle_sleep_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setIdleSleep'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\IdleSleepResponse|\QuantClient\Model\IdleSleepResponse|\QuantClient\Model\DeleteAISession200Response|\QuantClient\Model\PatchEnvironmentCompose400Response + */ + public function setIdleSleep($organisation, $application, $environment, $set_idle_sleep_request, string $contentType = self::contentTypes['setIdleSleep'][0]) + { + list($response) = $this->setIdleSleepWithHttpInfo($organisation, $application, $environment, $set_idle_sleep_request, $contentType); + return $response; + } + + /** + * Operation setIdleSleepWithHttpInfo + * + * Set Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param \QuantClient\Model\SetIdleSleepRequest $set_idle_sleep_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setIdleSleep'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\IdleSleepResponse|\QuantClient\Model\IdleSleepResponse|\QuantClient\Model\DeleteAISession200Response|\QuantClient\Model\PatchEnvironmentCompose400Response, HTTP status code, HTTP response headers (array of strings) + */ + public function setIdleSleepWithHttpInfo($organisation, $application, $environment, $set_idle_sleep_request, string $contentType = self::contentTypes['setIdleSleep'][0]) + { + $request = $this->setIdleSleepRequest($organisation, $application, $environment, $set_idle_sleep_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\IdleSleepResponse', + $request, + $response, + ); + case 202: + return $this->handleResponseWithDataType( + '\QuantClient\Model\IdleSleepResponse', + $request, + $response, + ); + case 400: + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteAISession200Response', + $request, + $response, + ); + case 422: + return $this->handleResponseWithDataType( + '\QuantClient\Model\PatchEnvironmentCompose400Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\IdleSleepResponse', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\IdleSleepResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 202: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\IdleSleepResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\DeleteAISession200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\PatchEnvironmentCompose400Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation setIdleSleepAsync + * + * Set Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param \QuantClient\Model\SetIdleSleepRequest $set_idle_sleep_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setIdleSleepAsync($organisation, $application, $environment, $set_idle_sleep_request, string $contentType = self::contentTypes['setIdleSleep'][0]) + { + return $this->setIdleSleepAsyncWithHttpInfo($organisation, $application, $environment, $set_idle_sleep_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation setIdleSleepAsyncWithHttpInfo + * + * Set Idle Sleep Setting + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param \QuantClient\Model\SetIdleSleepRequest $set_idle_sleep_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setIdleSleepAsyncWithHttpInfo($organisation, $application, $environment, $set_idle_sleep_request, string $contentType = self::contentTypes['setIdleSleep'][0]) + { + $returnType = '\QuantClient\Model\IdleSleepResponse'; + $request = $this->setIdleSleepRequest($organisation, $application, $environment, $set_idle_sleep_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'setIdleSleep' + * + * @param string $organisation (required) + * @param string $application (required) + * @param string $environment (required) + * @param \QuantClient\Model\SetIdleSleepRequest $set_idle_sleep_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setIdleSleep'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function setIdleSleepRequest($organisation, $application, $environment, $set_idle_sleep_request, string $contentType = self::contentTypes['setIdleSleep'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling setIdleSleep' + ); + } + + // verify the required parameter 'application' is set + if ($application === null || (is_array($application) && count($application) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $application when calling setIdleSleep' + ); + } + + // verify the required parameter 'environment' is set + if ($environment === null || (is_array($environment) && count($environment) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $environment when calling setIdleSleep' + ); + } + + // verify the required parameter 'set_idle_sleep_request' is set + if ($set_idle_sleep_request === null || (is_array($set_idle_sleep_request) && count($set_idle_sleep_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $set_idle_sleep_request when calling setIdleSleep' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/idle-sleep'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($application !== null) { + $resourcePath = str_replace( + '{' . 'application' . '}', + ObjectSerializer::toPathValue($application), + $resourcePath + ); + } + // path params + if ($environment !== null) { + $resourcePath = str_replace( + '{' . 'environment' . '}', + ObjectSerializer::toPathValue($environment), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($set_idle_sleep_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($set_idle_sleep_request)); + } else { + $httpBody = $set_idle_sleep_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'PUT', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/src/Api/KVApi.php b/src/Api/KVApi.php index 85b116ae..c01d13ce 100644 --- a/src/Api/KVApi.php +++ b/src/Api/KVApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/OpenAICompatibilityApi.php b/src/Api/OpenAICompatibilityApi.php index 03b2ac8e..7ffcd779 100644 --- a/src/Api/OpenAICompatibilityApi.php +++ b/src/Api/OpenAICompatibilityApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/OrganizationsApi.php b/src/Api/OrganizationsApi.php index 584cfca8..58c5f3f0 100644 --- a/src/Api/OrganizationsApi.php +++ b/src/Api/OrganizationsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ProjectsApi.php b/src/Api/ProjectsApi.php index a11d965d..16d470a3 100644 --- a/src/Api/ProjectsApi.php +++ b/src/Api/ProjectsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/PurgeApi.php b/src/Api/PurgeApi.php index 3af3b802..a817bab1 100644 --- a/src/Api/PurgeApi.php +++ b/src/Api/PurgeApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ResourcesApi.php b/src/Api/ResourcesApi.php new file mode 100644 index 00000000..77d7914a --- /dev/null +++ b/src/Api/ResourcesApi.php @@ -0,0 +1,1909 @@ + [ + 'application/json', + ], + 'createOrgResource' => [ + 'application/json', + ], + 'deleteOrgResource' => [ + 'application/json', + ], + 'detachOrgResource' => [ + 'application/json', + ], + 'getOrgResource' => [ + 'application/json', + ], + 'listOrgResources' => [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation attachOrgResource + * + * Attach a resource to an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\AttachOrgResourceRequest $attach_org_resource_request attach_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['attachOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\ResourceAttachment + */ + public function attachOrgResource($organisation, $resource, $attach_org_resource_request, string $contentType = self::contentTypes['attachOrgResource'][0]) + { + list($response) = $this->attachOrgResourceWithHttpInfo($organisation, $resource, $attach_org_resource_request, $contentType); + return $response; + } + + /** + * Operation attachOrgResourceWithHttpInfo + * + * Attach a resource to an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\AttachOrgResourceRequest $attach_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['attachOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\ResourceAttachment, HTTP status code, HTTP response headers (array of strings) + */ + public function attachOrgResourceWithHttpInfo($organisation, $resource, $attach_org_resource_request, string $contentType = self::contentTypes['attachOrgResource'][0]) + { + $request = $this->attachOrgResourceRequest($organisation, $resource, $attach_org_resource_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ResourceAttachment', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\ResourceAttachment', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ResourceAttachment', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation attachOrgResourceAsync + * + * Attach a resource to an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\AttachOrgResourceRequest $attach_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['attachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function attachOrgResourceAsync($organisation, $resource, $attach_org_resource_request, string $contentType = self::contentTypes['attachOrgResource'][0]) + { + return $this->attachOrgResourceAsyncWithHttpInfo($organisation, $resource, $attach_org_resource_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation attachOrgResourceAsyncWithHttpInfo + * + * Attach a resource to an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\AttachOrgResourceRequest $attach_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['attachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function attachOrgResourceAsyncWithHttpInfo($organisation, $resource, $attach_org_resource_request, string $contentType = self::contentTypes['attachOrgResource'][0]) + { + $returnType = '\QuantClient\Model\ResourceAttachment'; + $request = $this->attachOrgResourceRequest($organisation, $resource, $attach_org_resource_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'attachOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\AttachOrgResourceRequest $attach_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['attachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function attachOrgResourceRequest($organisation, $resource, $attach_org_resource_request, string $contentType = self::contentTypes['attachOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling attachOrgResource' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling attachOrgResource' + ); + } + + // verify the required parameter 'attach_org_resource_request' is set + if ($attach_org_resource_request === null || (is_array($attach_org_resource_request) && count($attach_org_resource_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $attach_org_resource_request when calling attachOrgResource' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}/attachments'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($attach_org_resource_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($attach_org_resource_request)); + } else { + $httpBody = $attach_org_resource_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createOrgResource + * + * Create a shared resource + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateOrgResourceRequest $create_org_resource_request create_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\OrgResource + */ + public function createOrgResource($organisation, $create_org_resource_request, string $contentType = self::contentTypes['createOrgResource'][0]) + { + list($response) = $this->createOrgResourceWithHttpInfo($organisation, $create_org_resource_request, $contentType); + return $response; + } + + /** + * Operation createOrgResourceWithHttpInfo + * + * Create a shared resource + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateOrgResourceRequest $create_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\OrgResource, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrgResourceWithHttpInfo($organisation, $create_org_resource_request, string $contentType = self::contentTypes['createOrgResource'][0]) + { + $request = $this->createOrgResourceRequest($organisation, $create_org_resource_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 201: + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\OrgResource', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation createOrgResourceAsync + * + * Create a shared resource + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateOrgResourceRequest $create_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrgResourceAsync($organisation, $create_org_resource_request, string $contentType = self::contentTypes['createOrgResource'][0]) + { + return $this->createOrgResourceAsyncWithHttpInfo($organisation, $create_org_resource_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createOrgResourceAsyncWithHttpInfo + * + * Create a shared resource + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateOrgResourceRequest $create_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrgResourceAsyncWithHttpInfo($organisation, $create_org_resource_request, string $contentType = self::contentTypes['createOrgResource'][0]) + { + $returnType = '\QuantClient\Model\OrgResource'; + $request = $this->createOrgResourceRequest($organisation, $create_org_resource_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateOrgResourceRequest $create_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createOrgResourceRequest($organisation, $create_org_resource_request, string $contentType = self::contentTypes['createOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling createOrgResource' + ); + } + + // verify the required parameter 'create_org_resource_request' is set + if ($create_org_resource_request === null || (is_array($create_org_resource_request) && count($create_org_resource_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $create_org_resource_request when calling createOrgResource' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($create_org_resource_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_org_resource_request)); + } else { + $httpBody = $create_org_resource_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteOrgResource + * + * Delete a shared resource + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param bool|null $force Delete even if the resource is attached or in an error state (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return void + */ + public function deleteOrgResource($organisation, $resource, $force = null, string $contentType = self::contentTypes['deleteOrgResource'][0]) + { + $this->deleteOrgResourceWithHttpInfo($organisation, $resource, $force, $contentType); + } + + /** + * Operation deleteOrgResourceWithHttpInfo + * + * Delete a shared resource + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param bool|null $force Delete even if the resource is attached or in an error state (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteOrgResourceWithHttpInfo($organisation, $resource, $force = null, string $contentType = self::contentTypes['deleteOrgResource'][0]) + { + $request = $this->deleteOrgResourceRequest($organisation, $resource, $force, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { + switch ($e->getCode()) { + } + + + throw $e; + } + } + + /** + * Operation deleteOrgResourceAsync + * + * Delete a shared resource + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param bool|null $force Delete even if the resource is attached or in an error state (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOrgResourceAsync($organisation, $resource, $force = null, string $contentType = self::contentTypes['deleteOrgResource'][0]) + { + return $this->deleteOrgResourceAsyncWithHttpInfo($organisation, $resource, $force, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteOrgResourceAsyncWithHttpInfo + * + * Delete a shared resource + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param bool|null $force Delete even if the resource is attached or in an error state (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOrgResourceAsyncWithHttpInfo($organisation, $resource, $force = null, string $contentType = self::contentTypes['deleteOrgResource'][0]) + { + $returnType = ''; + $request = $this->deleteOrgResourceRequest($organisation, $resource, $force, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param bool|null $force Delete even if the resource is attached or in an error state (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteOrgResourceRequest($organisation, $resource, $force = null, string $contentType = self::contentTypes['deleteOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling deleteOrgResource' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling deleteOrgResource' + ); + } + + + + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $force, + 'force', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + [], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation detachOrgResource + * + * Detach a resource from an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['detachOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return void + */ + public function detachOrgResource($organisation, $resource, $application, $environment, string $contentType = self::contentTypes['detachOrgResource'][0]) + { + $this->detachOrgResourceWithHttpInfo($organisation, $resource, $application, $environment, $contentType); + } + + /** + * Operation detachOrgResourceWithHttpInfo + * + * Detach a resource from an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['detachOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function detachOrgResourceWithHttpInfo($organisation, $resource, $application, $environment, string $contentType = self::contentTypes['detachOrgResource'][0]) + { + $request = $this->detachOrgResourceRequest($organisation, $resource, $application, $environment, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { + switch ($e->getCode()) { + } + + + throw $e; + } + } + + /** + * Operation detachOrgResourceAsync + * + * Detach a resource from an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['detachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function detachOrgResourceAsync($organisation, $resource, $application, $environment, string $contentType = self::contentTypes['detachOrgResource'][0]) + { + return $this->detachOrgResourceAsyncWithHttpInfo($organisation, $resource, $application, $environment, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation detachOrgResourceAsyncWithHttpInfo + * + * Detach a resource from an application environment + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['detachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function detachOrgResourceAsyncWithHttpInfo($organisation, $resource, $application, $environment, string $contentType = self::contentTypes['detachOrgResource'][0]) + { + $returnType = ''; + $request = $this->detachOrgResourceRequest($organisation, $resource, $application, $environment, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'detachOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['detachOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function detachOrgResourceRequest($organisation, $resource, $application, $environment, string $contentType = self::contentTypes['detachOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling detachOrgResource' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling detachOrgResource' + ); + } + + // verify the required parameter 'application' is set + if ($application === null || (is_array($application) && count($application) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $application when calling detachOrgResource' + ); + } + + // verify the required parameter 'environment' is set + if ($environment === null || (is_array($environment) && count($environment) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $environment when calling detachOrgResource' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } + // path params + if ($application !== null) { + $resourcePath = str_replace( + '{' . 'application' . '}', + ObjectSerializer::toPathValue($application), + $resourcePath + ); + } + // path params + if ($environment !== null) { + $resourcePath = str_replace( + '{' . 'environment' . '}', + ObjectSerializer::toPathValue($environment), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + [], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOrgResource + * + * Get a shared resource and its attachments + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\OrgResource + */ + public function getOrgResource($organisation, $resource, string $contentType = self::contentTypes['getOrgResource'][0]) + { + list($response) = $this->getOrgResourceWithHttpInfo($organisation, $resource, $contentType); + return $response; + } + + /** + * Operation getOrgResourceWithHttpInfo + * + * Get a shared resource and its attachments + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\OrgResource, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrgResourceWithHttpInfo($organisation, $resource, string $contentType = self::contentTypes['getOrgResource'][0]) + { + $request = $this->getOrgResourceRequest($organisation, $resource, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\OrgResource', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getOrgResourceAsync + * + * Get a shared resource and its attachments + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrgResourceAsync($organisation, $resource, string $contentType = self::contentTypes['getOrgResource'][0]) + { + return $this->getOrgResourceAsyncWithHttpInfo($organisation, $resource, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOrgResourceAsyncWithHttpInfo + * + * Get a shared resource and its attachments + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrgResourceAsyncWithHttpInfo($organisation, $resource, string $contentType = self::contentTypes['getOrgResource'][0]) + { + $returnType = '\QuantClient\Model\OrgResource'; + $request = $this->getOrgResourceRequest($organisation, $resource, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getOrgResourceRequest($organisation, $resource, string $contentType = self::contentTypes['getOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getOrgResource' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling getOrgResource' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listOrgResources + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\OrgResource[] + */ + public function listOrgResources($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + list($response) = $this->listOrgResourcesWithHttpInfo($organisation, $contentType); + return $response; + } + + /** + * Operation listOrgResourcesWithHttpInfo + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\OrgResource[], HTTP status code, HTTP response headers (array of strings) + */ + public function listOrgResourcesWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + $request = $this->listOrgResourcesRequest($organisation, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource[]', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource[]', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\OrgResource[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listOrgResourcesAsync + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrgResourcesAsync($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + return $this->listOrgResourcesAsyncWithHttpInfo($organisation, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listOrgResourcesAsyncWithHttpInfo + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrgResourcesAsyncWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + $returnType = '\QuantClient\Model\OrgResource[]'; + $request = $this->listOrgResourcesRequest($organisation, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listOrgResources' + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listOrgResourcesRequest($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling listOrgResources' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/src/Api/RestoreManagementApi.php b/src/Api/RestoreManagementApi.php index c005afe9..38d34fbc 100644 --- a/src/Api/RestoreManagementApi.php +++ b/src/Api/RestoreManagementApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/RulesApi.php b/src/Api/RulesApi.php index 5416493e..c1b5e43a 100644 --- a/src/Api/RulesApi.php +++ b/src/Api/RulesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/SSHAccessApi.php b/src/Api/SSHAccessApi.php index 2e21dee0..8f6234a1 100644 --- a/src/Api/SSHAccessApi.php +++ b/src/Api/SSHAccessApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ScalingPolicyApi.php b/src/Api/ScalingPolicyApi.php index cdbe511c..3c3469f8 100644 --- a/src/Api/ScalingPolicyApi.php +++ b/src/Api/ScalingPolicyApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/SubscriptionApi.php b/src/Api/SubscriptionApi.php index e9ba0268..88bd18c9 100644 --- a/src/Api/SubscriptionApi.php +++ b/src/Api/SubscriptionApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/TokensApi.php b/src/Api/TokensApi.php index 016d3fe0..5c67f9ca 100644 --- a/src/Api/TokensApi.php +++ b/src/Api/TokensApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/VariablesApi.php b/src/Api/VariablesApi.php index dcf78279..34db17ab 100644 --- a/src/Api/VariablesApi.php +++ b/src/Api/VariablesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/VolumesApi.php b/src/Api/VolumesApi.php index 6ac4517c..bac917e0 100644 --- a/src/Api/VolumesApi.php +++ b/src/Api/VolumesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ApiException.php b/src/ApiException.php index c412d681..a0fcfe48 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Configuration.php b/src/Configuration.php index 6d2b5e26..e0a361ec 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/4.21.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/4.22.0/PHP'; /** * Debug switch (default set to false) @@ -432,8 +432,8 @@ public static function toDebugReport() $report = 'PHP SDK (QuantClient) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 4.21.0' . PHP_EOL; - $report .= ' SDK Package Version: 4.21.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 4.22.0' . PHP_EOL; + $report .= ' SDK Package Version: 4.22.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/FormDataProcessor.php b/src/FormDataProcessor.php index a14e6d1f..2f3dfd31 100644 --- a/src/FormDataProcessor.php +++ b/src/FormDataProcessor.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index da6e8a9b..a26fa617 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchChatRequest.php b/src/Model/AiSearchChatRequest.php index dca896a3..ce9f6135 100644 --- a/src/Model/AiSearchChatRequest.php +++ b/src/Model/AiSearchChatRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchDeletePagesRequest.php b/src/Model/AiSearchDeletePagesRequest.php index 39b1b09f..d70ce25e 100644 --- a/src/Model/AiSearchDeletePagesRequest.php +++ b/src/Model/AiSearchDeletePagesRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchEnableRequest.php b/src/Model/AiSearchEnableRequest.php index 8709a65e..a2a07652 100644 --- a/src/Model/AiSearchEnableRequest.php +++ b/src/Model/AiSearchEnableRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchIngestPagesRequest.php b/src/Model/AiSearchIngestPagesRequest.php index d1dff889..fe6934e5 100644 --- a/src/Model/AiSearchIngestPagesRequest.php +++ b/src/Model/AiSearchIngestPagesRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchIngestPagesRequestPagesInner.php b/src/Model/AiSearchIngestPagesRequestPagesInner.php index cbb00503..d75566af 100644 --- a/src/Model/AiSearchIngestPagesRequestPagesInner.php +++ b/src/Model/AiSearchIngestPagesRequestPagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchSearchRequest.php b/src/Model/AiSearchSearchRequest.php index 8fd93ebd..f1d00654 100644 --- a/src/Model/AiSearchSearchRequest.php +++ b/src/Model/AiSearchSearchRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchTriggerCrawlRequest.php b/src/Model/AiSearchTriggerCrawlRequest.php index 85c48d6b..aafac618 100644 --- a/src/Model/AiSearchTriggerCrawlRequest.php +++ b/src/Model/AiSearchTriggerCrawlRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AiSearchUpdateSettingsRequest.php b/src/Model/AiSearchUpdateSettingsRequest.php index fe578a62..0c8b34af 100644 --- a/src/Model/AiSearchUpdateSettingsRequest.php +++ b/src/Model/AiSearchUpdateSettingsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Application.php b/src/Model/Application.php index 54bca78a..11446d92 100644 --- a/src/Model/Application.php +++ b/src/Model/Application.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationCache.php b/src/Model/ApplicationCache.php index 2f33566a..62a255f6 100644 --- a/src/Model/ApplicationCache.php +++ b/src/Model/ApplicationCache.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationDatabase.php b/src/Model/ApplicationDatabase.php index 9ae55db8..a401ef8a 100644 --- a/src/Model/ApplicationDatabase.php +++ b/src/Model/ApplicationDatabase.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationDeploymentInformationInner.php b/src/Model/ApplicationDeploymentInformationInner.php index 949deed5..fef6da79 100644 --- a/src/Model/ApplicationDeploymentInformationInner.php +++ b/src/Model/ApplicationDeploymentInformationInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationFilesystem.php b/src/Model/ApplicationFilesystem.php index 32625eea..54374f24 100644 --- a/src/Model/ApplicationFilesystem.php +++ b/src/Model/ApplicationFilesystem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationImageReference.php b/src/Model/ApplicationImageReference.php index 1aa8e3df..cc47f4c1 100644 --- a/src/Model/ApplicationImageReference.php +++ b/src/Model/ApplicationImageReference.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/AttachOrgResourceRequest.php b/src/Model/AttachOrgResourceRequest.php new file mode 100644 index 00000000..af176826 --- /dev/null +++ b/src/Model/AttachOrgResourceRequest.php @@ -0,0 +1,483 @@ + + */ +class AttachOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'attachOrgResource_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'application' => 'string', + 'environment' => 'string', + 'env_var_prefix' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'application' => null, + 'environment' => null, + 'env_var_prefix' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'application' => false, + 'environment' => false, + 'env_var_prefix' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'application' => 'application', + 'environment' => 'environment', + 'env_var_prefix' => 'envVarPrefix' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'application' => 'setApplication', + 'environment' => 'setEnvironment', + 'env_var_prefix' => 'setEnvVarPrefix' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'application' => 'getApplication', + 'environment' => 'getEnvironment', + 'env_var_prefix' => 'getEnvVarPrefix' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('application', $data ?? [], null); + $this->setIfExists('environment', $data ?? [], null); + $this->setIfExists('env_var_prefix', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['application'] === null) { + $invalidProperties[] = "'application' can't be null"; + } + if ($this->container['environment'] === null) { + $invalidProperties[] = "'environment' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets application + * + * @return string + */ + public function getApplication() + { + return $this->container['application']; + } + + /** + * Sets application + * + * @param string $application application + * + * @return self + */ + public function setApplication($application) + { + if (is_null($application)) { + throw new \InvalidArgumentException('non-nullable application cannot be null'); + } + $this->container['application'] = $application; + + return $this; + } + + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string $environment environment + * + * @return self + */ + public function setEnvironment($environment) + { + if (is_null($environment)) { + throw new \InvalidArgumentException('non-nullable environment cannot be null'); + } + $this->container['environment'] = $environment; + + return $this; + } + + /** + * Gets env_var_prefix + * + * @return string|null + */ + public function getEnvVarPrefix() + { + return $this->container['env_var_prefix']; + } + + /** + * Sets env_var_prefix + * + * @param string|null $env_var_prefix Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET + * + * @return self + */ + public function setEnvVarPrefix($env_var_prefix) + { + if (is_null($env_var_prefix)) { + throw new \InvalidArgumentException('non-nullable env_var_prefix cannot be null'); + } + $this->container['env_var_prefix'] = $env_var_prefix; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/BulkSetEnvironmentVariablesRequest.php b/src/Model/BulkSetEnvironmentVariablesRequest.php index 7b53ec88..81a5ce1a 100644 --- a/src/Model/BulkSetEnvironmentVariablesRequest.php +++ b/src/Model/BulkSetEnvironmentVariablesRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php b/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php index df137cea..6ec8cad9 100644 --- a/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php +++ b/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200Response.php b/src/Model/ChatInference200Response.php index 01bb06b6..87c4050d 100644 --- a/src/Model/ChatInference200Response.php +++ b/src/Model/ChatInference200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponse.php b/src/Model/ChatInference200ResponseResponse.php index 25892823..50f2b8b2 100644 --- a/src/Model/ChatInference200ResponseResponse.php +++ b/src/Model/ChatInference200ResponseResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUse.php b/src/Model/ChatInference200ResponseResponseToolUse.php index e5927d9c..ab047064 100644 --- a/src/Model/ChatInference200ResponseResponseToolUse.php +++ b/src/Model/ChatInference200ResponseResponseToolUse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOf.php b/src/Model/ChatInference200ResponseResponseToolUseOneOf.php index 1bfe96dd..aef93eeb 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOf.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOf.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php b/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php index db2cb216..90ae7694 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php b/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php index 263c0cc1..02b2f8ed 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseUsage.php b/src/Model/ChatInference200ResponseUsage.php index 451fc72b..9a8257d8 100644 --- a/src/Model/ChatInference200ResponseUsage.php +++ b/src/Model/ChatInference200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference202Response.php b/src/Model/ChatInference202Response.php index 285bda7a..f83776e4 100644 --- a/src/Model/ChatInference202Response.php +++ b/src/Model/ChatInference202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequest.php b/src/Model/ChatInferenceRequest.php index 7f35296e..60e27adf 100644 --- a/src/Model/ChatInferenceRequest.php +++ b/src/Model/ChatInferenceRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestGuardrails.php b/src/Model/ChatInferenceRequestGuardrails.php index 31adec70..9f2aae11 100644 --- a/src/Model/ChatInferenceRequestGuardrails.php +++ b/src/Model/ChatInferenceRequestGuardrails.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInner.php b/src/Model/ChatInferenceRequestMessagesInner.php index 13bb4186..1c025dc5 100644 --- a/src/Model/ChatInferenceRequestMessagesInner.php +++ b/src/Model/ChatInferenceRequestMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContent.php b/src/Model/ChatInferenceRequestMessagesInnerContent.php index 239a58df..ec27b32d 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContent.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php index 7cf7517e..0f27a0a5 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php index c3a6a16a..df540c52 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php index 4dd44771..84c99d58 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php index b5132443..2a293e9f 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php index bf9080a9..45198ee1 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php index 88fabd1b..f3ec7f03 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php index 788c1795..25908e70 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php index e0a99404..d51d1854 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php index 5ba3eccb..1a290a6d 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php index 7c5f2e73..90a83981 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php index 88d57956..46b04813 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestResponseFormat.php b/src/Model/ChatInferenceRequestResponseFormat.php index 07b8e5af..3374b1c1 100644 --- a/src/Model/ChatInferenceRequestResponseFormat.php +++ b/src/Model/ChatInferenceRequestResponseFormat.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfig.php b/src/Model/ChatInferenceRequestToolConfig.php index 48872780..29f3d7e2 100644 --- a/src/Model/ChatInferenceRequestToolConfig.php +++ b/src/Model/ChatInferenceRequestToolConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInner.php b/src/Model/ChatInferenceRequestToolConfigToolsInner.php index f939dda4..5a5b8719 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInner.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php index 4f289801..01f8fa97 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php index 9d4102d9..7237864b 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceStreamRequest.php b/src/Model/ChatInferenceStreamRequest.php index 4b5b7815..d3ee3abd 100644 --- a/src/Model/ChatInferenceStreamRequest.php +++ b/src/Model/ChatInferenceStreamRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceStreamRequestMessagesInner.php b/src/Model/ChatInferenceStreamRequestMessagesInner.php index b0f095d9..d9d4e7dd 100644 --- a/src/Model/ChatInferenceStreamRequestMessagesInner.php +++ b/src/Model/ChatInferenceStreamRequestMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php b/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php index 01242c2f..7599f5d4 100644 --- a/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php +++ b/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200Response.php b/src/Model/ChatWithAIAgent200Response.php index af58813d..f70ab31c 100644 --- a/src/Model/ChatWithAIAgent200Response.php +++ b/src/Model/ChatWithAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200ResponseResponse.php b/src/Model/ChatWithAIAgent200ResponseResponse.php index 2c6472c7..5fceacea 100644 --- a/src/Model/ChatWithAIAgent200ResponseResponse.php +++ b/src/Model/ChatWithAIAgent200ResponseResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200ResponseResponseUsage.php b/src/Model/ChatWithAIAgent200ResponseResponseUsage.php index ce3df593..aead955b 100644 --- a/src/Model/ChatWithAIAgent200ResponseResponseUsage.php +++ b/src/Model/ChatWithAIAgent200ResponseResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent202Response.php b/src/Model/ChatWithAIAgent202Response.php index b4ef5fa4..d4b7252f 100644 --- a/src/Model/ChatWithAIAgent202Response.php +++ b/src/Model/ChatWithAIAgent202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgentRequest.php b/src/Model/ChatWithAIAgentRequest.php index 6274b73b..50afb8a8 100644 --- a/src/Model/ChatWithAIAgentRequest.php +++ b/src/Model/ChatWithAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Command.php b/src/Model/Command.php index b1442bf8..7dfd3019 100644 --- a/src/Model/Command.php +++ b/src/Model/Command.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Compose.php b/src/Model/Compose.php index 69143d14..44a13b8b 100644 --- a/src/Model/Compose.php +++ b/src/Model/Compose.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Container.php b/src/Model/Container.php index b4b303fe..1c1cab95 100644 --- a/src/Model/Container.php +++ b/src/Model/Container.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerDependsOnInner.php b/src/Model/ContainerDependsOnInner.php index 761c29f4..c75757a6 100644 --- a/src/Model/ContainerDependsOnInner.php +++ b/src/Model/ContainerDependsOnInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerEnvironmentInner.php b/src/Model/ContainerEnvironmentInner.php index d035b284..e320f253 100644 --- a/src/Model/ContainerEnvironmentInner.php +++ b/src/Model/ContainerEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerHealthCheck.php b/src/Model/ContainerHealthCheck.php index 9df6a974..07d216ce 100644 --- a/src/Model/ContainerHealthCheck.php +++ b/src/Model/ContainerHealthCheck.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerImageReference.php b/src/Model/ContainerImageReference.php index c6699f01..7a8ae097 100644 --- a/src/Model/ContainerImageReference.php +++ b/src/Model/ContainerImageReference.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerMountPointsInner.php b/src/Model/ContainerMountPointsInner.php index ebe35b00..421eb8e5 100644 --- a/src/Model/ContainerMountPointsInner.php +++ b/src/Model/ContainerMountPointsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerOriginProtectionConfig.php b/src/Model/ContainerOriginProtectionConfig.php index 501e7ec3..4c28ea51 100644 --- a/src/Model/ContainerOriginProtectionConfig.php +++ b/src/Model/ContainerOriginProtectionConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerSecretsInner.php b/src/Model/ContainerSecretsInner.php index 2a681af9..f1b8b534 100644 --- a/src/Model/ContainerSecretsInner.php +++ b/src/Model/ContainerSecretsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CrawlersRun200Response.php b/src/Model/CrawlersRun200Response.php index 5788a659..7a59d9ab 100644 --- a/src/Model/CrawlersRun200Response.php +++ b/src/Model/CrawlersRun200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CrawlersRunRequest.php b/src/Model/CrawlersRunRequest.php index 9e1a3a59..a7639a7a 100644 --- a/src/Model/CrawlersRunRequest.php +++ b/src/Model/CrawlersRunRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAIAgent201Response.php b/src/Model/CreateAIAgent201Response.php index e4329f61..b7fdd476 100644 --- a/src/Model/CreateAIAgent201Response.php +++ b/src/Model/CreateAIAgent201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAIAgentRequest.php b/src/Model/CreateAIAgentRequest.php index 32d86d90..fe12a4c9 100644 --- a/src/Model/CreateAIAgentRequest.php +++ b/src/Model/CreateAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISession201Response.php b/src/Model/CreateAISession201Response.php index 09d88a35..a61543a2 100644 --- a/src/Model/CreateAISession201Response.php +++ b/src/Model/CreateAISession201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISessionRequest.php b/src/Model/CreateAISessionRequest.php index 309b30af..5fe85c00 100644 --- a/src/Model/CreateAISessionRequest.php +++ b/src/Model/CreateAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISessionRequestInitialMessagesInner.php b/src/Model/CreateAISessionRequestInitialMessagesInner.php index c1a4f1f4..49074bd6 100644 --- a/src/Model/CreateAISessionRequestInitialMessagesInner.php +++ b/src/Model/CreateAISessionRequestInitialMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplication403Response.php b/src/Model/CreateApplication403Response.php index 08645d84..4a979c66 100644 --- a/src/Model/CreateApplication403Response.php +++ b/src/Model/CreateApplication403Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequest.php b/src/Model/CreateApplicationRequest.php index 1b2c7df1..74f00854 100644 --- a/src/Model/CreateApplicationRequest.php +++ b/src/Model/CreateApplicationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestDatabase.php b/src/Model/CreateApplicationRequestDatabase.php index 6cad7ef0..ba441ccd 100644 --- a/src/Model/CreateApplicationRequestDatabase.php +++ b/src/Model/CreateApplicationRequestDatabase.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestEnvironmentInner.php b/src/Model/CreateApplicationRequestEnvironmentInner.php index 8273449e..3f324553 100644 --- a/src/Model/CreateApplicationRequestEnvironmentInner.php +++ b/src/Model/CreateApplicationRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestFilesystem.php b/src/Model/CreateApplicationRequestFilesystem.php index 6d92a824..cffca030 100644 --- a/src/Model/CreateApplicationRequestFilesystem.php +++ b/src/Model/CreateApplicationRequestFilesystem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateBackup202Response.php b/src/Model/CreateBackup202Response.php index 74bfa1e8..ac58ec53 100644 --- a/src/Model/CreateBackup202Response.php +++ b/src/Model/CreateBackup202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateBackupRequest.php b/src/Model/CreateBackupRequest.php index 3a453573..558ca6c5 100644 --- a/src/Model/CreateBackupRequest.php +++ b/src/Model/CreateBackupRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCommandRequest.php b/src/Model/CreateCommandRequest.php index 91b91af2..01e25ec9 100644 --- a/src/Model/CreateCommandRequest.php +++ b/src/Model/CreateCommandRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCronJobRequest.php b/src/Model/CreateCronJobRequest.php index 5ced9d04..a2282cf6 100644 --- a/src/Model/CreateCronJobRequest.php +++ b/src/Model/CreateCronJobRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCustomTool201Response.php b/src/Model/CreateCustomTool201Response.php index 3356c8c6..87b74998 100644 --- a/src/Model/CreateCustomTool201Response.php +++ b/src/Model/CreateCustomTool201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCustomToolRequest.php b/src/Model/CreateCustomToolRequest.php index bdc35f82..512a1102 100644 --- a/src/Model/CreateCustomToolRequest.php +++ b/src/Model/CreateCustomToolRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironment403Response.php b/src/Model/CreateEnvironment403Response.php index 91fa5ab5..1f50722a 100644 --- a/src/Model/CreateEnvironment403Response.php +++ b/src/Model/CreateEnvironment403Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironmentRequest.php b/src/Model/CreateEnvironmentRequest.php index 74a5efe7..ca0076b4 100644 --- a/src/Model/CreateEnvironmentRequest.php +++ b/src/Model/CreateEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironmentRequestEnvironmentInner.php b/src/Model/CreateEnvironmentRequestEnvironmentInner.php index 6b97fd6a..5efee3b3 100644 --- a/src/Model/CreateEnvironmentRequestEnvironmentInner.php +++ b/src/Model/CreateEnvironmentRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateFilterPolicyRequest.php b/src/Model/CreateFilterPolicyRequest.php index d299940c..153c3c0a 100644 --- a/src/Model/CreateFilterPolicyRequest.php +++ b/src/Model/CreateFilterPolicyRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateFilterPolicyRequestRulesInner.php b/src/Model/CreateFilterPolicyRequestRulesInner.php index 44eb6a2a..47c8af94 100644 --- a/src/Model/CreateFilterPolicyRequestRulesInner.php +++ b/src/Model/CreateFilterPolicyRequestRulesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateFilterPolicyRequestRulesInnerMatch.php b/src/Model/CreateFilterPolicyRequestRulesInnerMatch.php index 6a9a41e6..4e29e7c5 100644 --- a/src/Model/CreateFilterPolicyRequestRulesInnerMatch.php +++ b/src/Model/CreateFilterPolicyRequestRulesInnerMatch.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateOrchestrationRequest.php b/src/Model/CreateOrchestrationRequest.php index 2f436ab6..9c3c4415 100644 --- a/src/Model/CreateOrchestrationRequest.php +++ b/src/Model/CreateOrchestrationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateOrchestrationRequestInputSource.php b/src/Model/CreateOrchestrationRequestInputSource.php index 6b1ef8e7..ac063328 100644 --- a/src/Model/CreateOrchestrationRequestInputSource.php +++ b/src/Model/CreateOrchestrationRequestInputSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateOrchestrationRequestStopCondition.php b/src/Model/CreateOrchestrationRequestStopCondition.php index ed3a2fca..0721c2b8 100644 --- a/src/Model/CreateOrchestrationRequestStopCondition.php +++ b/src/Model/CreateOrchestrationRequestStopCondition.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateOrgResourceRequest.php b/src/Model/CreateOrgResourceRequest.php new file mode 100644 index 00000000..b60b4519 --- /dev/null +++ b/src/Model/CreateOrgResourceRequest.php @@ -0,0 +1,517 @@ + + */ +class CreateOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createOrgResource_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'name' => 'string', + 'config' => '\QuantClient\Model\CreateOrgResourceRequestConfig' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'name' => null, + 'config' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'type' => false, + 'name' => false, + 'config' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'name' => 'name', + 'config' => 'config' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'name' => 'setName', + 'config' => 'setConfig' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'name' => 'getName', + 'config' => 'getConfig' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const TYPE_OBJECT_STORAGE = 'object-storage'; + public const TYPE_VALKEY = 'valkey'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_OBJECT_STORAGE, + self::TYPE_VALKEY, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('config', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name Lowercase letters, numbers and hyphens, 2-41 characters, starting with a letter or number + * + * @return self + */ + public function setName($name) + { + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); + } + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets config + * + * @return \QuantClient\Model\CreateOrgResourceRequestConfig|null + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \QuantClient\Model\CreateOrgResourceRequestConfig|null $config config + * + * @return self + */ + public function setConfig($config) + { + if (is_null($config)) { + throw new \InvalidArgumentException('non-nullable config cannot be null'); + } + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CreateOrgResourceRequestConfig.php b/src/Model/CreateOrgResourceRequestConfig.php new file mode 100644 index 00000000..b08b26f6 --- /dev/null +++ b/src/Model/CreateOrgResourceRequestConfig.php @@ -0,0 +1,426 @@ + + */ +class CreateOrgResourceRequestConfig implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createOrgResource_request_config'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'data_storage_max_gb' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'data_storage_max_gb' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'data_storage_max_gb' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_storage_max_gb' => 'dataStorageMaxGb' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_storage_max_gb' => 'setDataStorageMaxGb' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_storage_max_gb' => 'getDataStorageMaxGb' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('data_storage_max_gb', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['data_storage_max_gb']) && ($this->container['data_storage_max_gb'] > 50)) { + $invalidProperties[] = "invalid value for 'data_storage_max_gb', must be smaller than or equal to 50."; + } + + if (!is_null($this->container['data_storage_max_gb']) && ($this->container['data_storage_max_gb'] < 1)) { + $invalidProperties[] = "invalid value for 'data_storage_max_gb', must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets data_storage_max_gb + * + * @return int|null + */ + public function getDataStorageMaxGb() + { + return $this->container['data_storage_max_gb']; + } + + /** + * Sets data_storage_max_gb + * + * @param int|null $data_storage_max_gb data_storage_max_gb + * + * @return self + */ + public function setDataStorageMaxGb($data_storage_max_gb) + { + if (is_null($data_storage_max_gb)) { + throw new \InvalidArgumentException('non-nullable data_storage_max_gb cannot be null'); + } + + if (($data_storage_max_gb > 50)) { + throw new \InvalidArgumentException('invalid value for $data_storage_max_gb when calling CreateOrgResourceRequestConfig., must be smaller than or equal to 50.'); + } + if (($data_storage_max_gb < 1)) { + throw new \InvalidArgumentException('invalid value for $data_storage_max_gb when calling CreateOrgResourceRequestConfig., must be bigger than or equal to 1.'); + } + + $this->container['data_storage_max_gb'] = $data_storage_max_gb; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CreateSkill201Response.php b/src/Model/CreateSkill201Response.php index a337af42..c7bd2ba9 100644 --- a/src/Model/CreateSkill201Response.php +++ b/src/Model/CreateSkill201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateSkillRequest.php b/src/Model/CreateSkillRequest.php index a45de999..0218123d 100644 --- a/src/Model/CreateSkillRequest.php +++ b/src/Model/CreateSkillRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateSlackBot201Response.php b/src/Model/CreateSlackBot201Response.php index f9d5e02a..be576a88 100644 --- a/src/Model/CreateSlackBot201Response.php +++ b/src/Model/CreateSlackBot201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateSlackBotRequest.php b/src/Model/CreateSlackBotRequest.php index 69efc4de..0d3e2ae2 100644 --- a/src/Model/CreateSlackBotRequest.php +++ b/src/Model/CreateSlackBotRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateTask201Response.php b/src/Model/CreateTask201Response.php index 6e9cef7a..8cb0411b 100644 --- a/src/Model/CreateTask201Response.php +++ b/src/Model/CreateTask201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateTaskRequest.php b/src/Model/CreateTaskRequest.php index 2e9a6c7d..47a22d79 100644 --- a/src/Model/CreateTaskRequest.php +++ b/src/Model/CreateTaskRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVectorCollection201Response.php b/src/Model/CreateVectorCollection201Response.php index c3404c6e..14682556 100644 --- a/src/Model/CreateVectorCollection201Response.php +++ b/src/Model/CreateVectorCollection201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVectorCollection201ResponseCollection.php b/src/Model/CreateVectorCollection201ResponseCollection.php index 89beafac..3512c3db 100644 --- a/src/Model/CreateVectorCollection201ResponseCollection.php +++ b/src/Model/CreateVectorCollection201ResponseCollection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVectorCollectionRequest.php b/src/Model/CreateVectorCollectionRequest.php index 39f06578..f3ab06d4 100644 --- a/src/Model/CreateVectorCollectionRequest.php +++ b/src/Model/CreateVectorCollectionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVolumeRequest.php b/src/Model/CreateVolumeRequest.php index 214b49d2..161eb882 100644 --- a/src/Model/CreateVolumeRequest.php +++ b/src/Model/CreateVolumeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Cron.php b/src/Model/Cron.php index ce6a6040..ac172d98 100644 --- a/src/Model/Cron.php +++ b/src/Model/Cron.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CronRun.php b/src/Model/CronRun.php index 04d10b82..62579bfa 100644 --- a/src/Model/CronRun.php +++ b/src/Model/CronRun.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteAIAgent200Response.php b/src/Model/DeleteAIAgent200Response.php index aa2aa241..01d6fda1 100644 --- a/src/Model/DeleteAIAgent200Response.php +++ b/src/Model/DeleteAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteAISession200Response.php b/src/Model/DeleteAISession200Response.php index 2f3bf3a1..6f5bdba9 100644 --- a/src/Model/DeleteAISession200Response.php +++ b/src/Model/DeleteAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteAgentOverlay200Response.php b/src/Model/DeleteAgentOverlay200Response.php index 6a10553b..c0ad3be0 100644 --- a/src/Model/DeleteAgentOverlay200Response.php +++ b/src/Model/DeleteAgentOverlay200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteBackup200Response.php b/src/Model/DeleteBackup200Response.php index e39d6b1c..4c20e4e8 100644 --- a/src/Model/DeleteBackup200Response.php +++ b/src/Model/DeleteBackup200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteCustomTool200Response.php b/src/Model/DeleteCustomTool200Response.php index 913d76a3..e3adaf1a 100644 --- a/src/Model/DeleteCustomTool200Response.php +++ b/src/Model/DeleteCustomTool200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteFile200Response.php b/src/Model/DeleteFile200Response.php index d59fbd5b..39b26673 100644 --- a/src/Model/DeleteFile200Response.php +++ b/src/Model/DeleteFile200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteSkill200Response.php b/src/Model/DeleteSkill200Response.php index 34324886..98b4183d 100644 --- a/src/Model/DeleteSkill200Response.php +++ b/src/Model/DeleteSkill200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteSkillCollection200Response.php b/src/Model/DeleteSkillCollection200Response.php index 3de3e25e..2a04234e 100644 --- a/src/Model/DeleteSkillCollection200Response.php +++ b/src/Model/DeleteSkillCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteSlackBot200Response.php b/src/Model/DeleteSlackBot200Response.php index 58118310..b453343d 100644 --- a/src/Model/DeleteSlackBot200Response.php +++ b/src/Model/DeleteSlackBot200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteTask200Response.php b/src/Model/DeleteTask200Response.php index df621e4b..3252059a 100644 --- a/src/Model/DeleteTask200Response.php +++ b/src/Model/DeleteTask200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteTask409Response.php b/src/Model/DeleteTask409Response.php index cdcbe1b4..79dc8a0d 100644 --- a/src/Model/DeleteTask409Response.php +++ b/src/Model/DeleteTask409Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteVectorDocuments200Response.php b/src/Model/DeleteVectorDocuments200Response.php index ad139993..386f945d 100644 --- a/src/Model/DeleteVectorDocuments200Response.php +++ b/src/Model/DeleteVectorDocuments200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteVectorDocumentsRequest.php b/src/Model/DeleteVectorDocumentsRequest.php index 4974da8e..8a193827 100644 --- a/src/Model/DeleteVectorDocumentsRequest.php +++ b/src/Model/DeleteVectorDocumentsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteVectorDocumentsRequestMetadata.php b/src/Model/DeleteVectorDocumentsRequestMetadata.php index 5e7d949d..ee8501fa 100644 --- a/src/Model/DeleteVectorDocumentsRequestMetadata.php +++ b/src/Model/DeleteVectorDocumentsRequestMetadata.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DownloadBackup200Response.php b/src/Model/DownloadBackup200Response.php index afaed98a..b79b7089 100644 --- a/src/Model/DownloadBackup200Response.php +++ b/src/Model/DownloadBackup200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200Response.php b/src/Model/Embeddings200Response.php index 30f3833a..9c053974 100644 --- a/src/Model/Embeddings200Response.php +++ b/src/Model/Embeddings200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200ResponseEmbeddings.php b/src/Model/Embeddings200ResponseEmbeddings.php index d572cac0..877879d4 100644 --- a/src/Model/Embeddings200ResponseEmbeddings.php +++ b/src/Model/Embeddings200ResponseEmbeddings.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200ResponseUsage.php b/src/Model/Embeddings200ResponseUsage.php index ea745d18..33fbb308 100644 --- a/src/Model/Embeddings200ResponseUsage.php +++ b/src/Model/Embeddings200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EmbeddingsRequest.php b/src/Model/EmbeddingsRequest.php index 97b4c98b..7a435c0b 100644 --- a/src/Model/EmbeddingsRequest.php +++ b/src/Model/EmbeddingsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EmbeddingsRequestInput.php b/src/Model/EmbeddingsRequestInput.php index 5ebd8a3c..f9503c7a 100644 --- a/src/Model/EmbeddingsRequestInput.php +++ b/src/Model/EmbeddingsRequestInput.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Environment.php b/src/Model/Environment.php index c8aadf83..54df66c5 100644 --- a/src/Model/Environment.php +++ b/src/Model/Environment.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EnvironmentResponse.php b/src/Model/EnvironmentResponse.php index 1f2f5094..7e52471e 100644 --- a/src/Model/EnvironmentResponse.php +++ b/src/Model/EnvironmentResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EnvironmentSummary.php b/src/Model/EnvironmentSummary.php index 7bb87643..7ff9e6b2 100644 --- a/src/Model/EnvironmentSummary.php +++ b/src/Model/EnvironmentSummary.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ExtendAISession200Response.php b/src/Model/ExtendAISession200Response.php index 335c13d6..fd0a9f03 100644 --- a/src/Model/ExtendAISession200Response.php +++ b/src/Model/ExtendAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ExtendAISessionRequest.php b/src/Model/ExtendAISessionRequest.php index cbb94558..b30b2779 100644 --- a/src/Model/ExtendAISessionRequest.php +++ b/src/Model/ExtendAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIAgent200Response.php b/src/Model/GetAIAgent200Response.php index f97ac3e8..283c7c3b 100644 --- a/src/Model/GetAIAgent200Response.php +++ b/src/Model/GetAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIAgent200ResponseAgent.php b/src/Model/GetAIAgent200ResponseAgent.php index 1d5902a1..1da1ae51 100644 --- a/src/Model/GetAIAgent200ResponseAgent.php +++ b/src/Model/GetAIAgent200ResponseAgent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200Response.php b/src/Model/GetAIModel200Response.php index 3d6b3f7f..9cd0c6e7 100644 --- a/src/Model/GetAIModel200Response.php +++ b/src/Model/GetAIModel200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200ResponseCapabilities.php b/src/Model/GetAIModel200ResponseCapabilities.php index 65d95a98..f2c8661f 100644 --- a/src/Model/GetAIModel200ResponseCapabilities.php +++ b/src/Model/GetAIModel200ResponseCapabilities.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200ResponsePricing.php b/src/Model/GetAIModel200ResponsePricing.php index 428ff71a..0931ecb5 100644 --- a/src/Model/GetAIModel200ResponsePricing.php +++ b/src/Model/GetAIModel200ResponsePricing.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel404Response.php b/src/Model/GetAIModel404Response.php index 27771b86..0232c627 100644 --- a/src/Model/GetAIModel404Response.php +++ b/src/Model/GetAIModel404Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIOrchestrationStatus200Response.php b/src/Model/GetAIOrchestrationStatus200Response.php index a02638a3..da8b0035 100644 --- a/src/Model/GetAIOrchestrationStatus200Response.php +++ b/src/Model/GetAIOrchestrationStatus200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php b/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php index a68bd8f1..b5acd87b 100644 --- a/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php +++ b/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIOrchestrationStatus404Response.php b/src/Model/GetAIOrchestrationStatus404Response.php index 1f073611..04a88c66 100644 --- a/src/Model/GetAIOrchestrationStatus404Response.php +++ b/src/Model/GetAIOrchestrationStatus404Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAISession200Response.php b/src/Model/GetAISession200Response.php index b4b37d73..45dd0c0d 100644 --- a/src/Model/GetAISession200Response.php +++ b/src/Model/GetAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus200Response.php b/src/Model/GetAIToolExecutionStatus200Response.php index 591e8172..2cc12b55 100644 --- a/src/Model/GetAIToolExecutionStatus200Response.php +++ b/src/Model/GetAIToolExecutionStatus200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus200ResponseResult.php b/src/Model/GetAIToolExecutionStatus200ResponseResult.php index 1c13e586..05692dfe 100644 --- a/src/Model/GetAIToolExecutionStatus200ResponseResult.php +++ b/src/Model/GetAIToolExecutionStatus200ResponseResult.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus404Response.php b/src/Model/GetAIToolExecutionStatus404Response.php index 34cacd72..21947192 100644 --- a/src/Model/GetAIToolExecutionStatus404Response.php +++ b/src/Model/GetAIToolExecutionStatus404Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAgentOverlay200Response.php b/src/Model/GetAgentOverlay200Response.php index 2e56084b..374ad1eb 100644 --- a/src/Model/GetAgentOverlay200Response.php +++ b/src/Model/GetAgentOverlay200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAgentOverlay200ResponseBase.php b/src/Model/GetAgentOverlay200ResponseBase.php index 500afd3b..b902e15b 100644 --- a/src/Model/GetAgentOverlay200ResponseBase.php +++ b/src/Model/GetAgentOverlay200ResponseBase.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAgentOverlay200ResponseOverlay.php b/src/Model/GetAgentOverlay200ResponseOverlay.php index f40e8ef7..ec2ad37e 100644 --- a/src/Model/GetAgentOverlay200ResponseOverlay.php +++ b/src/Model/GetAgentOverlay200ResponseOverlay.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetCustomTool200Response.php b/src/Model/GetCustomTool200Response.php index 4e7d872b..b6da20a2 100644 --- a/src/Model/GetCustomTool200Response.php +++ b/src/Model/GetCustomTool200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetCustomTool200ResponseTool.php b/src/Model/GetCustomTool200ResponseTool.php index 9984ecf2..c3986afd 100644 --- a/src/Model/GetCustomTool200ResponseTool.php +++ b/src/Model/GetCustomTool200ResponseTool.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDependencyGraph200Response.php b/src/Model/GetDependencyGraph200Response.php index 043581ea..b4e76abb 100644 --- a/src/Model/GetDependencyGraph200Response.php +++ b/src/Model/GetDependencyGraph200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200Response.php b/src/Model/GetDurableExecutionStatus200Response.php index 1505b31b..6842c001 100644 --- a/src/Model/GetDurableExecutionStatus200Response.php +++ b/src/Model/GetDurableExecutionStatus200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200ResponseError.php b/src/Model/GetDurableExecutionStatus200ResponseError.php index 9ea0b463..a8ba67bb 100644 --- a/src/Model/GetDurableExecutionStatus200ResponseError.php +++ b/src/Model/GetDurableExecutionStatus200ResponseError.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php b/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php index 4b0342ac..a3be6d8d 100644 --- a/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php +++ b/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200ResponseResult.php b/src/Model/GetDurableExecutionStatus200ResponseResult.php index 8fa4969b..e9eef797 100644 --- a/src/Model/GetDurableExecutionStatus200ResponseResult.php +++ b/src/Model/GetDurableExecutionStatus200ResponseResult.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php b/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php index 73b1e897..eaaae788 100644 --- a/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php +++ b/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php b/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php index bdd9dbe8..1e7e5702 100644 --- a/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php +++ b/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetEcrLoginCredentials200Response.php b/src/Model/GetEcrLoginCredentials200Response.php index 80ac4d48..7296270d 100644 --- a/src/Model/GetEcrLoginCredentials200Response.php +++ b/src/Model/GetEcrLoginCredentials200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetEnvironmentLogs200Response.php b/src/Model/GetEnvironmentLogs200Response.php index f1ad68bf..d9e8e120 100644 --- a/src/Model/GetEnvironmentLogs200Response.php +++ b/src/Model/GetEnvironmentLogs200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php index a11be5cf..f64d3e38 100644 --- a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php +++ b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetFile200Response.php b/src/Model/GetFile200Response.php index 645ccbcc..40cd684d 100644 --- a/src/Model/GetFile200Response.php +++ b/src/Model/GetFile200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceConfig200Response.php b/src/Model/GetGovernanceConfig200Response.php index 7d1510ba..cf9f0f94 100644 --- a/src/Model/GetGovernanceConfig200Response.php +++ b/src/Model/GetGovernanceConfig200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceConfig200ResponseSpendLimits.php b/src/Model/GetGovernanceConfig200ResponseSpendLimits.php index c90a1693..9cc96287 100644 --- a/src/Model/GetGovernanceConfig200ResponseSpendLimits.php +++ b/src/Model/GetGovernanceConfig200ResponseSpendLimits.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -535,7 +535,7 @@ public function getInterfaceLimits() /** * Sets interface_limits * - * @param array|null $interface_limits Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels. + * @param array|null $interface_limits Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket, durable, orchestration, workflow, embedding, ai-search). Keys are interface labels. * * @return self */ diff --git a/src/Model/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.php b/src/Model/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.php index 5906c6cf..06ba0e86 100644 --- a/src/Model/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.php +++ b/src/Model/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.php b/src/Model/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.php index 66e82c4d..bd4ada1f 100644 --- a/src/Model/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.php +++ b/src/Model/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200Response.php b/src/Model/GetGovernanceSpend200Response.php index 599d06a7..69edaee4 100644 --- a/src/Model/GetGovernanceSpend200Response.php +++ b/src/Model/GetGovernanceSpend200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200ResponseBudget.php b/src/Model/GetGovernanceSpend200ResponseBudget.php index 623b6ea4..4ec2ccb6 100644 --- a/src/Model/GetGovernanceSpend200ResponseBudget.php +++ b/src/Model/GetGovernanceSpend200ResponseBudget.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200ResponseDailyBudget.php b/src/Model/GetGovernanceSpend200ResponseDailyBudget.php index 1ab37cc0..5e238213 100644 --- a/src/Model/GetGovernanceSpend200ResponseDailyBudget.php +++ b/src/Model/GetGovernanceSpend200ResponseDailyBudget.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200ResponseOrgTotal.php b/src/Model/GetGovernanceSpend200ResponseOrgTotal.php index 76923e4e..18a26436 100644 --- a/src/Model/GetGovernanceSpend200ResponseOrgTotal.php +++ b/src/Model/GetGovernanceSpend200ResponseOrgTotal.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200ResponseTodayTotal.php b/src/Model/GetGovernanceSpend200ResponseTodayTotal.php index a0b0a49d..c2e9da4d 100644 --- a/src/Model/GetGovernanceSpend200ResponseTodayTotal.php +++ b/src/Model/GetGovernanceSpend200ResponseTodayTotal.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetGovernanceSpend200ResponseUserTotal.php b/src/Model/GetGovernanceSpend200ResponseUserTotal.php index 1817652f..10fe0060 100644 --- a/src/Model/GetGovernanceSpend200ResponseUserTotal.php +++ b/src/Model/GetGovernanceSpend200ResponseUserTotal.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200Response.php b/src/Model/GetMyUsage200Response.php index 38611773..b7e330aa 100644 --- a/src/Model/GetMyUsage200Response.php +++ b/src/Model/GetMyUsage200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200ResponseDaily.php b/src/Model/GetMyUsage200ResponseDaily.php index 395f712c..029ff257 100644 --- a/src/Model/GetMyUsage200ResponseDaily.php +++ b/src/Model/GetMyUsage200ResponseDaily.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200ResponseMonthly.php b/src/Model/GetMyUsage200ResponseMonthly.php index bbcd4951..31968569 100644 --- a/src/Model/GetMyUsage200ResponseMonthly.php +++ b/src/Model/GetMyUsage200ResponseMonthly.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200ResponseQuota.php b/src/Model/GetMyUsage200ResponseQuota.php index 88a31ba5..352d9258 100644 --- a/src/Model/GetMyUsage200ResponseQuota.php +++ b/src/Model/GetMyUsage200ResponseQuota.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200ResponseQuotaDailyLimit.php b/src/Model/GetMyUsage200ResponseQuotaDailyLimit.php index ae286f00..4db784f6 100644 --- a/src/Model/GetMyUsage200ResponseQuotaDailyLimit.php +++ b/src/Model/GetMyUsage200ResponseQuotaDailyLimit.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetMyUsage200ResponseQuotaMonthlyLimit.php b/src/Model/GetMyUsage200ResponseQuotaMonthlyLimit.php index 24424a6c..fd3cac22 100644 --- a/src/Model/GetMyUsage200ResponseQuotaMonthlyLimit.php +++ b/src/Model/GetMyUsage200ResponseQuotaMonthlyLimit.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetRestoreStatus200Response.php b/src/Model/GetRestoreStatus200Response.php index 06368c32..6d328eef 100644 --- a/src/Model/GetRestoreStatus200Response.php +++ b/src/Model/GetRestoreStatus200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetScalingPolicyResponse.php b/src/Model/GetScalingPolicyResponse.php index 8cecb8fd..c7053d29 100644 --- a/src/Model/GetScalingPolicyResponse.php +++ b/src/Model/GetScalingPolicyResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSkill200Response.php b/src/Model/GetSkill200Response.php index bc895d3a..25ff1704 100644 --- a/src/Model/GetSkill200Response.php +++ b/src/Model/GetSkill200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSkill200ResponseSkill.php b/src/Model/GetSkill200ResponseSkill.php index 7c46f89c..6b11791f 100644 --- a/src/Model/GetSkill200ResponseSkill.php +++ b/src/Model/GetSkill200ResponseSkill.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSlackBot200Response.php b/src/Model/GetSlackBot200Response.php index f080b3ac..ef92673e 100644 --- a/src/Model/GetSlackBot200Response.php +++ b/src/Model/GetSlackBot200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSlackBot200ResponseBot.php b/src/Model/GetSlackBot200ResponseBot.php index 737a45db..1235b01d 100644 --- a/src/Model/GetSlackBot200ResponseBot.php +++ b/src/Model/GetSlackBot200ResponseBot.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSshAccessCredentials200Response.php b/src/Model/GetSshAccessCredentials200Response.php index d67d3a0d..f97cc0bf 100644 --- a/src/Model/GetSshAccessCredentials200Response.php +++ b/src/Model/GetSshAccessCredentials200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSshAccessCredentials200ResponseCredentials.php b/src/Model/GetSshAccessCredentials200ResponseCredentials.php index cb2a1d28..b85d0b5a 100644 --- a/src/Model/GetSshAccessCredentials200ResponseCredentials.php +++ b/src/Model/GetSshAccessCredentials200ResponseCredentials.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetTask200Response.php b/src/Model/GetTask200Response.php index b3aece49..9461a524 100644 --- a/src/Model/GetTask200Response.php +++ b/src/Model/GetTask200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetVectorCollection200Response.php b/src/Model/GetVectorCollection200Response.php index fba9a892..a5ab18a5 100644 --- a/src/Model/GetVectorCollection200Response.php +++ b/src/Model/GetVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetVectorCollection200ResponseCollection.php b/src/Model/GetVectorCollection200ResponseCollection.php index 0fa6e497..d02c8af4 100644 --- a/src/Model/GetVectorCollection200ResponseCollection.php +++ b/src/Model/GetVectorCollection200ResponseCollection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/IdleSleepResponse.php b/src/Model/IdleSleepResponse.php new file mode 100644 index 00000000..339ff4d5 --- /dev/null +++ b/src/Model/IdleSleepResponse.php @@ -0,0 +1,573 @@ + + */ +class IdleSleepResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'IdleSleepResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'enabled' => 'bool', + 'idle_minutes' => 'int', + 'state' => 'string', + 'state_changed_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'enabled' => null, + 'idle_minutes' => null, + 'state' => null, + 'state_changed_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'enabled' => false, + 'idle_minutes' => true, + 'state' => false, + 'state_changed_at' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'enabled' => 'enabled', + 'idle_minutes' => 'idleMinutes', + 'state' => 'state', + 'state_changed_at' => 'stateChangedAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'enabled' => 'setEnabled', + 'idle_minutes' => 'setIdleMinutes', + 'state' => 'setState', + 'state_changed_at' => 'setStateChangedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'enabled' => 'getEnabled', + 'idle_minutes' => 'getIdleMinutes', + 'state' => 'getState', + 'state_changed_at' => 'getStateChangedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATE_AWAKE = 'awake'; + public const STATE_SLEEPING = 'sleeping'; + public const STATE_WAKING = 'waking'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_AWAKE, + self::STATE_SLEEPING, + self::STATE_WAKING, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('enabled', $data ?? [], null); + $this->setIfExists('idle_minutes', $data ?? [], null); + $this->setIfExists('state', $data ?? [], null); + $this->setIfExists('state_changed_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['enabled'] === null) { + $invalidProperties[] = "'enabled' can't be null"; + } + if ($this->container['idle_minutes'] === null) { + $invalidProperties[] = "'idle_minutes' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($this->container['state']) && !in_array($this->container['state'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'state', must be one of '%s'", + $this->container['state'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['state_changed_at'] === null) { + $invalidProperties[] = "'state_changed_at' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets enabled + * + * @return bool + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool $enabled enabled + * + * @return self + */ + public function setEnabled($enabled) + { + if (is_null($enabled)) { + throw new \InvalidArgumentException('non-nullable enabled cannot be null'); + } + $this->container['enabled'] = $enabled; + + return $this; + } + + /** + * Gets idle_minutes + * + * @return int + */ + public function getIdleMinutes() + { + return $this->container['idle_minutes']; + } + + /** + * Sets idle_minutes + * + * @param int $idle_minutes idle_minutes + * + * @return self + */ + public function setIdleMinutes($idle_minutes) + { + if (is_null($idle_minutes)) { + array_push($this->openAPINullablesSetToNull, 'idle_minutes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('idle_minutes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['idle_minutes'] = $idle_minutes; + + return $this; + } + + /** + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state state + * + * @return self + */ + public function setState($state) + { + if (is_null($state)) { + throw new \InvalidArgumentException('non-nullable state cannot be null'); + } + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'state', must be one of '%s'", + $state, + implode("', '", $allowedValues) + ) + ); + } + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets state_changed_at + * + * @return \DateTime + */ + public function getStateChangedAt() + { + return $this->container['state_changed_at']; + } + + /** + * Sets state_changed_at + * + * @param \DateTime $state_changed_at state_changed_at + * + * @return self + */ + public function setStateChangedAt($state_changed_at) + { + if (is_null($state_changed_at)) { + array_push($this->openAPINullablesSetToNull, 'state_changed_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('state_changed_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['state_changed_at'] = $state_changed_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ImageGeneration200Response.php b/src/Model/ImageGeneration200Response.php index 96b5b200..385dcbeb 100644 --- a/src/Model/ImageGeneration200Response.php +++ b/src/Model/ImageGeneration200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequest.php b/src/Model/ImageGenerationRequest.php index 9c4e4ffb..02f176d6 100644 --- a/src/Model/ImageGenerationRequest.php +++ b/src/Model/ImageGenerationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestBackgroundRemovalParams.php b/src/Model/ImageGenerationRequestBackgroundRemovalParams.php index fea3aca6..2564b7ac 100644 --- a/src/Model/ImageGenerationRequestBackgroundRemovalParams.php +++ b/src/Model/ImageGenerationRequestBackgroundRemovalParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php b/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php index 0d3bd362..ec32a8f9 100644 --- a/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php +++ b/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestImageGenerationConfig.php b/src/Model/ImageGenerationRequestImageGenerationConfig.php index ded5d3d3..0ab31817 100644 --- a/src/Model/ImageGenerationRequestImageGenerationConfig.php +++ b/src/Model/ImageGenerationRequestImageGenerationConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestImageVariationParams.php b/src/Model/ImageGenerationRequestImageVariationParams.php index 9c9c3a33..809b6e0f 100644 --- a/src/Model/ImageGenerationRequestImageVariationParams.php +++ b/src/Model/ImageGenerationRequestImageVariationParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestInPaintingParams.php b/src/Model/ImageGenerationRequestInPaintingParams.php index 978b5f29..bf997510 100644 --- a/src/Model/ImageGenerationRequestInPaintingParams.php +++ b/src/Model/ImageGenerationRequestInPaintingParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestOutPaintingParams.php b/src/Model/ImageGenerationRequestOutPaintingParams.php index cd967cbe..42d90a99 100644 --- a/src/Model/ImageGenerationRequestOutPaintingParams.php +++ b/src/Model/ImageGenerationRequestOutPaintingParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestTextToImageParams.php b/src/Model/ImageGenerationRequestTextToImageParams.php index fd373ad9..83facac5 100644 --- a/src/Model/ImageGenerationRequestTextToImageParams.php +++ b/src/Model/ImageGenerationRequestTextToImageParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkill201Response.php b/src/Model/ImportSkill201Response.php index 35ba03fd..6bd1ea32 100644 --- a/src/Model/ImportSkill201Response.php +++ b/src/Model/ImportSkill201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkillCollection201Response.php b/src/Model/ImportSkillCollection201Response.php index 87266f35..41cdd97f 100644 --- a/src/Model/ImportSkillCollection201Response.php +++ b/src/Model/ImportSkillCollection201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkillCollectionRequest.php b/src/Model/ImportSkillCollectionRequest.php index dff95a4b..2f291bd8 100644 --- a/src/Model/ImportSkillCollectionRequest.php +++ b/src/Model/ImportSkillCollectionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkillCollectionRequestSource.php b/src/Model/ImportSkillCollectionRequestSource.php index 7b5b8b7b..c76cd784 100644 --- a/src/Model/ImportSkillCollectionRequestSource.php +++ b/src/Model/ImportSkillCollectionRequestSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkillRequest.php b/src/Model/ImportSkillRequest.php index 53bb44dd..5d7b1631 100644 --- a/src/Model/ImportSkillRequest.php +++ b/src/Model/ImportSkillRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImportSkillRequestSource.php b/src/Model/ImportSkillRequestSource.php index 9ad635f5..283721d0 100644 --- a/src/Model/ImportSkillRequestSource.php +++ b/src/Model/ImportSkillRequestSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsCreate200Response.php b/src/Model/KVItemsCreate200Response.php index f2ad0864..501f8b88 100644 --- a/src/Model/KVItemsCreate200Response.php +++ b/src/Model/KVItemsCreate200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsDelete200Response.php b/src/Model/KVItemsDelete200Response.php index fa295dff..8ebff81f 100644 --- a/src/Model/KVItemsDelete200Response.php +++ b/src/Model/KVItemsDelete200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsShow200Response.php b/src/Model/KVItemsShow200Response.php index 09bc298f..712c8cc6 100644 --- a/src/Model/KVItemsShow200Response.php +++ b/src/Model/KVItemsShow200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsShow200ResponseValue.php b/src/Model/KVItemsShow200ResponseValue.php index adac4728..fbabe06d 100644 --- a/src/Model/KVItemsShow200ResponseValue.php +++ b/src/Model/KVItemsShow200ResponseValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVLinkToProject200Response.php b/src/Model/KVLinkToProject200Response.php index 59885ac0..f1e5f9f2 100644 --- a/src/Model/KVLinkToProject200Response.php +++ b/src/Model/KVLinkToProject200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVLinkToProjectRequest.php b/src/Model/KVLinkToProjectRequest.php index 75768a46..6d0a8435 100644 --- a/src/Model/KVLinkToProjectRequest.php +++ b/src/Model/KVLinkToProjectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIAgents200Response.php b/src/Model/ListAIAgents200Response.php index da2c573a..e14bcc7b 100644 --- a/src/Model/ListAIAgents200Response.php +++ b/src/Model/ListAIAgents200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIAgents200ResponseAgentsInner.php b/src/Model/ListAIAgents200ResponseAgentsInner.php index b4f4e124..29ee701e 100644 --- a/src/Model/ListAIAgents200ResponseAgentsInner.php +++ b/src/Model/ListAIAgents200ResponseAgentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200Response.php b/src/Model/ListAIModels200Response.php index 73d93c36..cbe4cf0c 100644 --- a/src/Model/ListAIModels200Response.php +++ b/src/Model/ListAIModels200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200ResponseModelsInner.php b/src/Model/ListAIModels200ResponseModelsInner.php index f27560ff..f1206a8b 100644 --- a/src/Model/ListAIModels200ResponseModelsInner.php +++ b/src/Model/ListAIModels200ResponseModelsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php b/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php index 48e07516..f52e4baf 100644 --- a/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php +++ b/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAISessions200ResponseInner.php b/src/Model/ListAISessions200ResponseInner.php index b5e183c9..4b365f17 100644 --- a/src/Model/ListAISessions200ResponseInner.php +++ b/src/Model/ListAISessions200ResponseInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolExecutions200Response.php b/src/Model/ListAIToolExecutions200Response.php index d6b27c69..37ba07ba 100644 --- a/src/Model/ListAIToolExecutions200Response.php +++ b/src/Model/ListAIToolExecutions200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php b/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php index 47fe4f1c..e2c79e93 100644 --- a/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php +++ b/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolNames200Response.php b/src/Model/ListAIToolNames200Response.php index a2317538..011d3890 100644 --- a/src/Model/ListAIToolNames200Response.php +++ b/src/Model/ListAIToolNames200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200Response.php b/src/Model/ListAITools200Response.php index 8ef1a1aa..1cefbb66 100644 --- a/src/Model/ListAITools200Response.php +++ b/src/Model/ListAITools200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInner.php b/src/Model/ListAITools200ResponseToolsInner.php index 9c1b101f..5fdc69f9 100644 --- a/src/Model/ListAITools200ResponseToolsInner.php +++ b/src/Model/ListAITools200ResponseToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInnerToolSpec.php b/src/Model/ListAITools200ResponseToolsInnerToolSpec.php index dac2b5e3..f7a9e679 100644 --- a/src/Model/ListAITools200ResponseToolsInnerToolSpec.php +++ b/src/Model/ListAITools200ResponseToolsInnerToolSpec.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php b/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php index 32ef3e9b..c6b2c1d8 100644 --- a/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php +++ b/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups200Response.php b/src/Model/ListBackups200Response.php index af22c10d..bc7bce27 100644 --- a/src/Model/ListBackups200Response.php +++ b/src/Model/ListBackups200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups200ResponseBackupsInner.php b/src/Model/ListBackups200ResponseBackupsInner.php index 047e45ca..5b8cc731 100644 --- a/src/Model/ListBackups200ResponseBackupsInner.php +++ b/src/Model/ListBackups200ResponseBackupsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups422Response.php b/src/Model/ListBackups422Response.php index 5fcbf8f9..1db5b2dd 100644 --- a/src/Model/ListBackups422Response.php +++ b/src/Model/ListBackups422Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListCustomTools200Response.php b/src/Model/ListCustomTools200Response.php index f93886cc..333fbad3 100644 --- a/src/Model/ListCustomTools200Response.php +++ b/src/Model/ListCustomTools200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListCustomTools200ResponseToolsInner.php b/src/Model/ListCustomTools200ResponseToolsInner.php index 831bf38e..46e228eb 100644 --- a/src/Model/ListCustomTools200ResponseToolsInner.php +++ b/src/Model/ListCustomTools200ResponseToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListFiles200Response.php b/src/Model/ListFiles200Response.php index 91c2880d..eece992c 100644 --- a/src/Model/ListFiles200Response.php +++ b/src/Model/ListFiles200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListFiles200ResponseFilesInner.php b/src/Model/ListFiles200ResponseFilesInner.php index ac83c733..56e6010c 100644 --- a/src/Model/ListFiles200ResponseFilesInner.php +++ b/src/Model/ListFiles200ResponseFilesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListMcpServers200Response.php b/src/Model/ListMcpServers200Response.php new file mode 100644 index 00000000..384d1945 --- /dev/null +++ b/src/Model/ListMcpServers200Response.php @@ -0,0 +1,443 @@ + + */ +class ListMcpServers200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listMcpServers_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'gateway_base_url' => 'string', + 'servers' => '\QuantClient\Model\ListMcpServers200ResponseServersInner[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'gateway_base_url' => null, + 'servers' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'gateway_base_url' => false, + 'servers' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'gateway_base_url' => 'gatewayBaseUrl', + 'servers' => 'servers' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'gateway_base_url' => 'setGatewayBaseUrl', + 'servers' => 'setServers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'gateway_base_url' => 'getGatewayBaseUrl', + 'servers' => 'getServers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('gateway_base_url', $data ?? [], null); + $this->setIfExists('servers', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets gateway_base_url + * + * @return string|null + */ + public function getGatewayBaseUrl() + { + return $this->container['gateway_base_url']; + } + + /** + * Sets gateway_base_url + * + * @param string|null $gateway_base_url Origin of the MCP gateway host (scheme://host[:port]) — clients treat gateway URLs on this origin as bearer-authenticated with the end user's Quant token + * + * @return self + */ + public function setGatewayBaseUrl($gateway_base_url) + { + if (is_null($gateway_base_url)) { + throw new \InvalidArgumentException('non-nullable gateway_base_url cannot be null'); + } + $this->container['gateway_base_url'] = $gateway_base_url; + + return $this; + } + + /** + * Gets servers + * + * @return \QuantClient\Model\ListMcpServers200ResponseServersInner[]|null + */ + public function getServers() + { + return $this->container['servers']; + } + + /** + * Sets servers + * + * @param \QuantClient\Model\ListMcpServers200ResponseServersInner[]|null $servers servers + * + * @return self + */ + public function setServers($servers) + { + if (is_null($servers)) { + throw new \InvalidArgumentException('non-nullable servers cannot be null'); + } + $this->container['servers'] = $servers; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListMcpServers200ResponseServersInner.php b/src/Model/ListMcpServers200ResponseServersInner.php new file mode 100644 index 00000000..771f766c --- /dev/null +++ b/src/Model/ListMcpServers200ResponseServersInner.php @@ -0,0 +1,545 @@ + + */ +class ListMcpServers200ResponseServersInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listMcpServers_200_response_servers_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'server_name' => 'string', + 'display_name' => 'string', + 'url' => 'string', + 'enabled' => 'bool', + 'tool_allowlist' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'server_name' => null, + 'display_name' => null, + 'url' => null, + 'enabled' => null, + 'tool_allowlist' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'server_name' => false, + 'display_name' => false, + 'url' => false, + 'enabled' => false, + 'tool_allowlist' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'server_name' => 'serverName', + 'display_name' => 'displayName', + 'url' => 'url', + 'enabled' => 'enabled', + 'tool_allowlist' => 'toolAllowlist' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'server_name' => 'setServerName', + 'display_name' => 'setDisplayName', + 'url' => 'setUrl', + 'enabled' => 'setEnabled', + 'tool_allowlist' => 'setToolAllowlist' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'server_name' => 'getServerName', + 'display_name' => 'getDisplayName', + 'url' => 'getUrl', + 'enabled' => 'getEnabled', + 'tool_allowlist' => 'getToolAllowlist' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('server_name', $data ?? [], null); + $this->setIfExists('display_name', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('enabled', $data ?? [], null); + $this->setIfExists('tool_allowlist', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets server_name + * + * @return string|null + */ + public function getServerName() + { + return $this->container['server_name']; + } + + /** + * Sets server_name + * + * @param string|null $server_name server_name + * + * @return self + */ + public function setServerName($server_name) + { + if (is_null($server_name)) { + throw new \InvalidArgumentException('non-nullable server_name cannot be null'); + } + $this->container['server_name'] = $server_name; + + return $this; + } + + /** + * Gets display_name + * + * @return string|null + */ + public function getDisplayName() + { + return $this->container['display_name']; + } + + /** + * Sets display_name + * + * @param string|null $display_name display_name + * + * @return self + */ + public function setDisplayName($display_name) + { + if (is_null($display_name)) { + throw new \InvalidArgumentException('non-nullable display_name cannot be null'); + } + $this->container['display_name'] = $display_name; + + return $this; + } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url MCP gateway URL + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets enabled + * + * @return bool|null + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool|null $enabled enabled + * + * @return self + */ + public function setEnabled($enabled) + { + if (is_null($enabled)) { + throw new \InvalidArgumentException('non-nullable enabled cannot be null'); + } + $this->container['enabled'] = $enabled; + + return $this; + } + + /** + * Gets tool_allowlist + * + * @return string[]|null + */ + public function getToolAllowlist() + { + return $this->container['tool_allowlist']; + } + + /** + * Sets tool_allowlist + * + * @param string[]|null $tool_allowlist tool_allowlist + * + * @return self + */ + public function setToolAllowlist($tool_allowlist) + { + if (is_null($tool_allowlist)) { + throw new \InvalidArgumentException('non-nullable tool_allowlist cannot be null'); + } + $this->container['tool_allowlist'] = $tool_allowlist; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListOrchestrationBatches200Response.php b/src/Model/ListOrchestrationBatches200Response.php index 56ef7d83..38a4b4f6 100644 --- a/src/Model/ListOrchestrationBatches200Response.php +++ b/src/Model/ListOrchestrationBatches200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php b/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php index aa6eb82c..a69d17bb 100644 --- a/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php +++ b/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListOrchestrations200Response.php b/src/Model/ListOrchestrations200Response.php index 5470830f..b5464ca9 100644 --- a/src/Model/ListOrchestrations200Response.php +++ b/src/Model/ListOrchestrations200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSkillCollections200Response.php b/src/Model/ListSkillCollections200Response.php index 6577b8f2..536727bb 100644 --- a/src/Model/ListSkillCollections200Response.php +++ b/src/Model/ListSkillCollections200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSkillCollections200ResponseCollectionsInner.php b/src/Model/ListSkillCollections200ResponseCollectionsInner.php index ea16745d..b4cb8e4c 100644 --- a/src/Model/ListSkillCollections200ResponseCollectionsInner.php +++ b/src/Model/ListSkillCollections200ResponseCollectionsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSkills200Response.php b/src/Model/ListSkills200Response.php index 4959d739..7192d4b0 100644 --- a/src/Model/ListSkills200Response.php +++ b/src/Model/ListSkills200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSkills200ResponseSkillsInner.php b/src/Model/ListSkills200ResponseSkillsInner.php index db8602d1..e302d639 100644 --- a/src/Model/ListSkills200ResponseSkillsInner.php +++ b/src/Model/ListSkills200ResponseSkillsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSlackBots200Response.php b/src/Model/ListSlackBots200Response.php index c056f379..d23cccfb 100644 --- a/src/Model/ListSlackBots200Response.php +++ b/src/Model/ListSlackBots200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListSlackBots200ResponseBotsInner.php b/src/Model/ListSlackBots200ResponseBotsInner.php index 2c1a63d3..6ca6b366 100644 --- a/src/Model/ListSlackBots200ResponseBotsInner.php +++ b/src/Model/ListSlackBots200ResponseBotsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListTasks200Response.php b/src/Model/ListTasks200Response.php index 588fe910..46ccbfc9 100644 --- a/src/Model/ListTasks200Response.php +++ b/src/Model/ListTasks200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListTasks200ResponseTasksInner.php b/src/Model/ListTasks200ResponseTasksInner.php index 02997e9c..94bd4dae 100644 --- a/src/Model/ListTasks200ResponseTasksInner.php +++ b/src/Model/ListTasks200ResponseTasksInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListVectorCollections200Response.php b/src/Model/ListVectorCollections200Response.php index 803d50c0..240194a8 100644 --- a/src/Model/ListVectorCollections200Response.php +++ b/src/Model/ListVectorCollections200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListVectorCollections200ResponseCollectionsInner.php b/src/Model/ListVectorCollections200ResponseCollectionsInner.php index 4accd3ea..49576ba1 100644 --- a/src/Model/ListVectorCollections200ResponseCollectionsInner.php +++ b/src/Model/ListVectorCollections200ResponseCollectionsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 639562b2..17499639 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletions200Response.php b/src/Model/OaiChatCompletions200Response.php index 41ca1301..ca9e6b9f 100644 --- a/src/Model/OaiChatCompletions200Response.php +++ b/src/Model/OaiChatCompletions200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletions200ResponseChoicesInner.php b/src/Model/OaiChatCompletions200ResponseChoicesInner.php index e22cbda7..f06d955e 100644 --- a/src/Model/OaiChatCompletions200ResponseChoicesInner.php +++ b/src/Model/OaiChatCompletions200ResponseChoicesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletions200ResponseChoicesInnerMessage.php b/src/Model/OaiChatCompletions200ResponseChoicesInnerMessage.php index 92052a18..853af537 100644 --- a/src/Model/OaiChatCompletions200ResponseChoicesInnerMessage.php +++ b/src/Model/OaiChatCompletions200ResponseChoicesInnerMessage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletions200ResponseUsage.php b/src/Model/OaiChatCompletions200ResponseUsage.php index 428b09ce..6f01140d 100644 --- a/src/Model/OaiChatCompletions200ResponseUsage.php +++ b/src/Model/OaiChatCompletions200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletionsRequest.php b/src/Model/OaiChatCompletionsRequest.php index 813794ca..40b1c232 100644 --- a/src/Model/OaiChatCompletionsRequest.php +++ b/src/Model/OaiChatCompletionsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiChatCompletionsRequestMessagesInner.php b/src/Model/OaiChatCompletionsRequestMessagesInner.php index a316a25c..10022fb7 100644 --- a/src/Model/OaiChatCompletionsRequestMessagesInner.php +++ b/src/Model/OaiChatCompletionsRequestMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiEmbeddings200Response.php b/src/Model/OaiEmbeddings200Response.php index 216f0914..88fb0a87 100644 --- a/src/Model/OaiEmbeddings200Response.php +++ b/src/Model/OaiEmbeddings200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiEmbeddings200ResponseDataInner.php b/src/Model/OaiEmbeddings200ResponseDataInner.php index 3cd32bf1..8c894006 100644 --- a/src/Model/OaiEmbeddings200ResponseDataInner.php +++ b/src/Model/OaiEmbeddings200ResponseDataInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiEmbeddings200ResponseUsage.php b/src/Model/OaiEmbeddings200ResponseUsage.php index 5d673b58..97c132e9 100644 --- a/src/Model/OaiEmbeddings200ResponseUsage.php +++ b/src/Model/OaiEmbeddings200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiEmbeddingsRequest.php b/src/Model/OaiEmbeddingsRequest.php index d3f6e128..0a7e9f9e 100644 --- a/src/Model/OaiEmbeddingsRequest.php +++ b/src/Model/OaiEmbeddingsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiGetModel200Response.php b/src/Model/OaiGetModel200Response.php index 2de7b9f6..2b577cb6 100644 --- a/src/Model/OaiGetModel200Response.php +++ b/src/Model/OaiGetModel200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiListModels200Response.php b/src/Model/OaiListModels200Response.php index f2939849..415024fe 100644 --- a/src/Model/OaiListModels200Response.php +++ b/src/Model/OaiListModels200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OaiListModels200ResponseDataInner.php b/src/Model/OaiListModels200ResponseDataInner.php index 02d33015..39885525 100644 --- a/src/Model/OaiListModels200ResponseDataInner.php +++ b/src/Model/OaiListModels200ResponseDataInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OrgResource.php b/src/Model/OrgResource.php new file mode 100644 index 00000000..830b7f51 --- /dev/null +++ b/src/Model/OrgResource.php @@ -0,0 +1,787 @@ + + */ +class OrgResource implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'OrgResource'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'org_name' => 'string', + 'resource_id' => 'string', + 'type' => 'string', + 'name' => 'string', + 'status' => 'string', + 'scope' => 'string', + 'config' => 'object', + 'physical' => 'object', + 'created_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'org_name' => null, + 'resource_id' => null, + 'type' => null, + 'name' => null, + 'status' => null, + 'scope' => null, + 'config' => null, + 'physical' => null, + 'created_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'org_name' => false, + 'resource_id' => false, + 'type' => false, + 'name' => false, + 'status' => false, + 'scope' => false, + 'config' => false, + 'physical' => false, + 'created_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'org_name' => 'orgName', + 'resource_id' => 'resourceId', + 'type' => 'type', + 'name' => 'name', + 'status' => 'status', + 'scope' => 'scope', + 'config' => 'config', + 'physical' => 'physical', + 'created_at' => 'createdAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'org_name' => 'setOrgName', + 'resource_id' => 'setResourceId', + 'type' => 'setType', + 'name' => 'setName', + 'status' => 'setStatus', + 'scope' => 'setScope', + 'config' => 'setConfig', + 'physical' => 'setPhysical', + 'created_at' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'org_name' => 'getOrgName', + 'resource_id' => 'getResourceId', + 'type' => 'getType', + 'name' => 'getName', + 'status' => 'getStatus', + 'scope' => 'getScope', + 'config' => 'getConfig', + 'physical' => 'getPhysical', + 'created_at' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const TYPE_OBJECT_STORAGE = 'object-storage'; + public const TYPE_VALKEY = 'valkey'; + public const STATUS_PROVISIONING = 'provisioning'; + public const STATUS_AVAILABLE = 'available'; + public const STATUS_DELETING = 'deleting'; + public const STATUS_ERROR = 'error'; + public const SCOPE_ORG = 'org'; + public const SCOPE_APP = 'app'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_OBJECT_STORAGE, + self::TYPE_VALKEY, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PROVISIONING, + self::STATUS_AVAILABLE, + self::STATUS_DELETING, + self::STATUS_ERROR, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getScopeAllowableValues() + { + return [ + self::SCOPE_ORG, + self::SCOPE_APP, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('org_name', $data ?? [], null); + $this->setIfExists('resource_id', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('scope', $data ?? [], null); + $this->setIfExists('config', $data ?? [], null); + $this->setIfExists('physical', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getScopeAllowableValues(); + if (!is_null($this->container['scope']) && !in_array($this->container['scope'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'scope', must be one of '%s'", + $this->container['scope'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets org_name + * + * @return string|null + */ + public function getOrgName() + { + return $this->container['org_name']; + } + + /** + * Sets org_name + * + * @param string|null $org_name org_name + * + * @return self + */ + public function setOrgName($org_name) + { + if (is_null($org_name)) { + throw new \InvalidArgumentException('non-nullable org_name cannot be null'); + } + $this->container['org_name'] = $org_name; + + return $this; + } + + /** + * Gets resource_id + * + * @return string|null + */ + public function getResourceId() + { + return $this->container['resource_id']; + } + + /** + * Sets resource_id + * + * @param string|null $resource_id resource_id + * + * @return self + */ + public function setResourceId($resource_id) + { + if (is_null($resource_id)) { + throw new \InvalidArgumentException('non-nullable resource_id cannot be null'); + } + $this->container['resource_id'] = $resource_id; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets name + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name name + * + * @return self + */ + public function setName($name) + { + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); + } + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets scope + * + * @return string|null + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param string|null $scope org for resources managed by these endpoints. app rows are compatibility records for an application-managed cache and cannot be mutated here. + * + * @return self + */ + public function setScope($scope) + { + if (is_null($scope)) { + throw new \InvalidArgumentException('non-nullable scope cannot be null'); + } + $allowedValues = $this->getScopeAllowableValues(); + if (!in_array($scope, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'scope', must be one of '%s'", + $scope, + implode("', '", $allowedValues) + ) + ); + } + $this->container['scope'] = $scope; + + return $this; + } + + /** + * Gets config + * + * @return object|null + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param object|null $config Type-specific settings, such as dataStorageMaxGb for a cache + * + * @return self + */ + public function setConfig($config) + { + if (is_null($config)) { + throw new \InvalidArgumentException('non-nullable config cannot be null'); + } + $this->container['config'] = $config; + + return $this; + } + + /** + * Gets physical + * + * @return object|null + */ + public function getPhysical() + { + return $this->container['physical']; + } + + /** + * Sets physical + * + * @param object|null $physical Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache + * + * @return self + */ + public function setPhysical($physical) + { + if (is_null($physical)) { + throw new \InvalidArgumentException('non-nullable physical cannot be null'); + } + $this->container['physical'] = $physical; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/OrganizationsList200ResponseInner.php b/src/Model/OrganizationsList200ResponseInner.php index d4f95ab5..27da2d51 100644 --- a/src/Model/OrganizationsList200ResponseInner.php +++ b/src/Model/OrganizationsList200ResponseInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose202Response.php b/src/Model/PatchEnvironmentCompose202Response.php index c67d0204..7a719c87 100644 --- a/src/Model/PatchEnvironmentCompose202Response.php +++ b/src/Model/PatchEnvironmentCompose202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php b/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php index bf29ad47..b29a9133 100644 --- a/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php +++ b/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose400Response.php b/src/Model/PatchEnvironmentCompose400Response.php index aa208a7d..213c299c 100644 --- a/src/Model/PatchEnvironmentCompose400Response.php +++ b/src/Model/PatchEnvironmentCompose400Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentComposeRequest.php b/src/Model/PatchEnvironmentComposeRequest.php index ec40f989..18b9cc1f 100644 --- a/src/Model/PatchEnvironmentComposeRequest.php +++ b/src/Model/PatchEnvironmentComposeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php b/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php index 2a661382..b5f0cf3f 100644 --- a/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php +++ b/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PurgeCreateRequest.php b/src/Model/PurgeCreateRequest.php index 704e92df..ce0efd01 100644 --- a/src/Model/PurgeCreateRequest.php +++ b/src/Model/PurgeCreateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollection200Response.php b/src/Model/QueryVectorCollection200Response.php index dfb087ef..bce47079 100644 --- a/src/Model/QueryVectorCollection200Response.php +++ b/src/Model/QueryVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollection200ResponsePagination.php b/src/Model/QueryVectorCollection200ResponsePagination.php index d17188f1..924b91ba 100644 --- a/src/Model/QueryVectorCollection200ResponsePagination.php +++ b/src/Model/QueryVectorCollection200ResponsePagination.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollection200ResponseResultsInner.php b/src/Model/QueryVectorCollection200ResponseResultsInner.php index 31a9e0a7..60c70d3e 100644 --- a/src/Model/QueryVectorCollection200ResponseResultsInner.php +++ b/src/Model/QueryVectorCollection200ResponseResultsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollectionRequest.php b/src/Model/QueryVectorCollectionRequest.php index cc9978e7..b669cac8 100644 --- a/src/Model/QueryVectorCollectionRequest.php +++ b/src/Model/QueryVectorCollectionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollectionRequestFilter.php b/src/Model/QueryVectorCollectionRequestFilter.php index 9c9e2338..9e68b5f9 100644 --- a/src/Model/QueryVectorCollectionRequestFilter.php +++ b/src/Model/QueryVectorCollectionRequestFilter.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ResourceAttachment.php b/src/Model/ResourceAttachment.php new file mode 100644 index 00000000..b66d850b --- /dev/null +++ b/src/Model/ResourceAttachment.php @@ -0,0 +1,613 @@ + + */ +class ResourceAttachment implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ResourceAttachment'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'app_name' => 'string', + 'env_name' => 'string', + 'env_var_prefix' => 'string', + 'access_key_id' => 'string', + 'injected_keys' => 'string[]', + 'created_at' => '\DateTime', + 'note' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'app_name' => null, + 'env_name' => null, + 'env_var_prefix' => null, + 'access_key_id' => null, + 'injected_keys' => null, + 'created_at' => 'date-time', + 'note' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'app_name' => false, + 'env_name' => false, + 'env_var_prefix' => false, + 'access_key_id' => false, + 'injected_keys' => false, + 'created_at' => false, + 'note' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_name' => 'appName', + 'env_name' => 'envName', + 'env_var_prefix' => 'envVarPrefix', + 'access_key_id' => 'accessKeyId', + 'injected_keys' => 'injectedKeys', + 'created_at' => 'createdAt', + 'note' => 'note' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_name' => 'setAppName', + 'env_name' => 'setEnvName', + 'env_var_prefix' => 'setEnvVarPrefix', + 'access_key_id' => 'setAccessKeyId', + 'injected_keys' => 'setInjectedKeys', + 'created_at' => 'setCreatedAt', + 'note' => 'setNote' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_name' => 'getAppName', + 'env_name' => 'getEnvName', + 'env_var_prefix' => 'getEnvVarPrefix', + 'access_key_id' => 'getAccessKeyId', + 'injected_keys' => 'getInjectedKeys', + 'created_at' => 'getCreatedAt', + 'note' => 'getNote' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('app_name', $data ?? [], null); + $this->setIfExists('env_name', $data ?? [], null); + $this->setIfExists('env_var_prefix', $data ?? [], null); + $this->setIfExists('access_key_id', $data ?? [], null); + $this->setIfExists('injected_keys', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + $this->setIfExists('note', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets app_name + * + * @return string|null + */ + public function getAppName() + { + return $this->container['app_name']; + } + + /** + * Sets app_name + * + * @param string|null $app_name app_name + * + * @return self + */ + public function setAppName($app_name) + { + if (is_null($app_name)) { + throw new \InvalidArgumentException('non-nullable app_name cannot be null'); + } + $this->container['app_name'] = $app_name; + + return $this; + } + + /** + * Gets env_name + * + * @return string|null + */ + public function getEnvName() + { + return $this->container['env_name']; + } + + /** + * Sets env_name + * + * @param string|null $env_name env_name + * + * @return self + */ + public function setEnvName($env_name) + { + if (is_null($env_name)) { + throw new \InvalidArgumentException('non-nullable env_name cannot be null'); + } + $this->container['env_name'] = $env_name; + + return $this; + } + + /** + * Gets env_var_prefix + * + * @return string|null + */ + public function getEnvVarPrefix() + { + return $this->container['env_var_prefix']; + } + + /** + * Sets env_var_prefix + * + * @param string|null $env_var_prefix Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET + * + * @return self + */ + public function setEnvVarPrefix($env_var_prefix) + { + if (is_null($env_var_prefix)) { + throw new \InvalidArgumentException('non-nullable env_var_prefix cannot be null'); + } + $this->container['env_var_prefix'] = $env_var_prefix; + + return $this; + } + + /** + * Gets access_key_id + * + * @return string|null + */ + public function getAccessKeyId() + { + return $this->container['access_key_id']; + } + + /** + * Sets access_key_id + * + * @param string|null $access_key_id Object storage only. The secret half is written to the environment's secrets and never returned. + * + * @return self + */ + public function setAccessKeyId($access_key_id) + { + if (is_null($access_key_id)) { + throw new \InvalidArgumentException('non-nullable access_key_id cannot be null'); + } + $this->container['access_key_id'] = $access_key_id; + + return $this; + } + + /** + * Gets injected_keys + * + * @return string[]|null + */ + public function getInjectedKeys() + { + return $this->container['injected_keys']; + } + + /** + * Sets injected_keys + * + * @param string[]|null $injected_keys The exact variable names this attachment wrote, removed precisely on detach + * + * @return self + */ + public function setInjectedKeys($injected_keys) + { + if (is_null($injected_keys)) { + throw new \InvalidArgumentException('non-nullable injected_keys cannot be null'); + } + $this->container['injected_keys'] = $injected_keys; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets note + * + * @return string|null + */ + public function getNote() + { + return $this->container['note']; + } + + /** + * Sets note + * + * @param string|null $note When the credentials take effect + * + * @return self + */ + public function setNote($note) + { + if (is_null($note)) { + throw new \InvalidArgumentException('non-nullable note cannot be null'); + } + $this->container['note'] = $note; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/RestoreDatabase202Response.php b/src/Model/RestoreDatabase202Response.php index 9ac0d91b..aa02787e 100644 --- a/src/Model/RestoreDatabase202Response.php +++ b/src/Model/RestoreDatabase202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/RestoreDatabaseRequest.php b/src/Model/RestoreDatabaseRequest.php index 5b4de8dc..e68a4219 100644 --- a/src/Model/RestoreDatabaseRequest.php +++ b/src/Model/RestoreDatabaseRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/RestoreFilesystem202Response.php b/src/Model/RestoreFilesystem202Response.php index 6aa760cb..d73970c4 100644 --- a/src/Model/RestoreFilesystem202Response.php +++ b/src/Model/RestoreFilesystem202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/RestoreFilesystemRequest.php b/src/Model/RestoreFilesystemRequest.php index 62a17584..78198827 100644 --- a/src/Model/RestoreFilesystemRequest.php +++ b/src/Model/RestoreFilesystemRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ScalingPolicyListResponse.php b/src/Model/ScalingPolicyListResponse.php index 38bee384..7e5f4bfc 100644 --- a/src/Model/ScalingPolicyListResponse.php +++ b/src/Model/ScalingPolicyListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SearchSlackWorkspaceChannels200Response.php b/src/Model/SearchSlackWorkspaceChannels200Response.php index 267a601a..6e2e3a04 100644 --- a/src/Model/SearchSlackWorkspaceChannels200Response.php +++ b/src/Model/SearchSlackWorkspaceChannels200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.php b/src/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.php index 9aa3940c..a81b0fd2 100644 --- a/src/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.php +++ b/src/Model/SearchSlackWorkspaceChannels200ResponseResultsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SearchSlackWorkspaceUsers200Response.php b/src/Model/SearchSlackWorkspaceUsers200Response.php index 77caa6d7..8620455c 100644 --- a/src/Model/SearchSlackWorkspaceUsers200Response.php +++ b/src/Model/SearchSlackWorkspaceUsers200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.php b/src/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.php index 979ac2b9..27d77271 100644 --- a/src/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.php +++ b/src/Model/SearchSlackWorkspaceUsers200ResponseResultsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SetIdleSleepRequest.php b/src/Model/SetIdleSleepRequest.php new file mode 100644 index 00000000..bb10cdb3 --- /dev/null +++ b/src/Model/SetIdleSleepRequest.php @@ -0,0 +1,462 @@ + + */ +class SetIdleSleepRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'SetIdleSleepRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'enabled' => 'bool', + 'idle_minutes' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'enabled' => null, + 'idle_minutes' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'enabled' => false, + 'idle_minutes' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'enabled' => 'enabled', + 'idle_minutes' => 'idleMinutes' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'enabled' => 'setEnabled', + 'idle_minutes' => 'setIdleMinutes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'enabled' => 'getEnabled', + 'idle_minutes' => 'getIdleMinutes' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('enabled', $data ?? [], null); + $this->setIfExists('idle_minutes', $data ?? [], 30); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['enabled'] === null) { + $invalidProperties[] = "'enabled' can't be null"; + } + if (!is_null($this->container['idle_minutes']) && ($this->container['idle_minutes'] > 1440)) { + $invalidProperties[] = "invalid value for 'idle_minutes', must be smaller than or equal to 1440."; + } + + if (!is_null($this->container['idle_minutes']) && ($this->container['idle_minutes'] < 10)) { + $invalidProperties[] = "invalid value for 'idle_minutes', must be bigger than or equal to 10."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets enabled + * + * @return bool + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool $enabled Whether the environment sleeps when idle. + * + * @return self + */ + public function setEnabled($enabled) + { + if (is_null($enabled)) { + throw new \InvalidArgumentException('non-nullable enabled cannot be null'); + } + $this->container['enabled'] = $enabled; + + return $this; + } + + /** + * Gets idle_minutes + * + * @return int|null + */ + public function getIdleMinutes() + { + return $this->container['idle_minutes']; + } + + /** + * Sets idle_minutes + * + * @param int|null $idle_minutes Minutes with no requests before compute sleeps. + * + * @return self + */ + public function setIdleMinutes($idle_minutes) + { + if (is_null($idle_minutes)) { + throw new \InvalidArgumentException('non-nullable idle_minutes cannot be null'); + } + + if (($idle_minutes > 1440)) { + throw new \InvalidArgumentException('invalid value for $idle_minutes when calling SetIdleSleepRequest., must be smaller than or equal to 1440.'); + } + if (($idle_minutes < 10)) { + throw new \InvalidArgumentException('invalid value for $idle_minutes when calling SetIdleSleepRequest., must be bigger than or equal to 10.'); + } + + $this->container['idle_minutes'] = $idle_minutes; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/SetScalingPolicyRequest.php b/src/Model/SetScalingPolicyRequest.php index f2fd536f..179b2fbd 100644 --- a/src/Model/SetScalingPolicyRequest.php +++ b/src/Model/SetScalingPolicyRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SpotConfiguration.php b/src/Model/SpotConfiguration.php index d02a45c1..c25099d1 100644 --- a/src/Model/SpotConfiguration.php +++ b/src/Model/SpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SubmitToolCallback200Response.php b/src/Model/SubmitToolCallback200Response.php index 41c43e50..8c33e511 100644 --- a/src/Model/SubmitToolCallback200Response.php +++ b/src/Model/SubmitToolCallback200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SubmitToolCallbackRequest.php b/src/Model/SubmitToolCallbackRequest.php index e85ef012..4a35f455 100644 --- a/src/Model/SubmitToolCallbackRequest.php +++ b/src/Model/SubmitToolCallbackRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SubmitToolCallbackRequestToolResultsInner.php b/src/Model/SubmitToolCallbackRequestToolResultsInner.php index a710655e..8fc19b45 100644 --- a/src/Model/SubmitToolCallbackRequestToolResultsInner.php +++ b/src/Model/SubmitToolCallbackRequestToolResultsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SyncOperation.php b/src/Model/SyncOperation.php index b7cd9fbf..6a5f1f91 100644 --- a/src/Model/SyncOperation.php +++ b/src/Model/SyncOperation.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SyncSkillCollection200Response.php b/src/Model/SyncSkillCollection200Response.php index e71f78ff..2e3291dd 100644 --- a/src/Model/SyncSkillCollection200Response.php +++ b/src/Model/SyncSkillCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SyncToEnvironmentRequest.php b/src/Model/SyncToEnvironmentRequest.php index ae3fb659..ea77d076 100644 --- a/src/Model/SyncToEnvironmentRequest.php +++ b/src/Model/SyncToEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/TokensCreate201Response.php b/src/Model/TokensCreate201Response.php index 4184082d..c09f653a 100644 --- a/src/Model/TokensCreate201Response.php +++ b/src/Model/TokensCreate201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/TokensCreateRequest.php b/src/Model/TokensCreateRequest.php index ff954bd7..ea1ac0c5 100644 --- a/src/Model/TokensCreateRequest.php +++ b/src/Model/TokensCreateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/TokensDelete200Response.php b/src/Model/TokensDelete200Response.php index da8c2657..ec20dd54 100644 --- a/src/Model/TokensDelete200Response.php +++ b/src/Model/TokensDelete200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/TokensList200ResponseInner.php b/src/Model/TokensList200ResponseInner.php index 274a4b8b..b9106938 100644 --- a/src/Model/TokensList200ResponseInner.php +++ b/src/Model/TokensList200ResponseInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAIAgent200Response.php b/src/Model/UpdateAIAgent200Response.php index c5149793..800be3ec 100644 --- a/src/Model/UpdateAIAgent200Response.php +++ b/src/Model/UpdateAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAIAgentRequest.php b/src/Model/UpdateAIAgentRequest.php index 566daaab..4c74a5a2 100644 --- a/src/Model/UpdateAIAgentRequest.php +++ b/src/Model/UpdateAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISession200Response.php b/src/Model/UpdateAISession200Response.php index 2bceb91c..a8be3cd5 100644 --- a/src/Model/UpdateAISession200Response.php +++ b/src/Model/UpdateAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISessionRequest.php b/src/Model/UpdateAISessionRequest.php index c199d26f..a46d14fd 100644 --- a/src/Model/UpdateAISessionRequest.php +++ b/src/Model/UpdateAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISessionRequestNewMessagesInner.php b/src/Model/UpdateAISessionRequestNewMessagesInner.php index 000cbf88..7fea6d02 100644 --- a/src/Model/UpdateAISessionRequestNewMessagesInner.php +++ b/src/Model/UpdateAISessionRequestNewMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateCronJobRequest.php b/src/Model/UpdateCronJobRequest.php index ed5783fc..c43c7752 100644 --- a/src/Model/UpdateCronJobRequest.php +++ b/src/Model/UpdateCronJobRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentRequest.php b/src/Model/UpdateEnvironmentRequest.php index c3c849a2..f3d84333 100644 --- a/src/Model/UpdateEnvironmentRequest.php +++ b/src/Model/UpdateEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentStateRequest.php b/src/Model/UpdateEnvironmentStateRequest.php index ead25739..c0b3844b 100644 --- a/src/Model/UpdateEnvironmentStateRequest.php +++ b/src/Model/UpdateEnvironmentStateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentVariableRequest.php b/src/Model/UpdateEnvironmentVariableRequest.php index d594d41c..99a173e0 100644 --- a/src/Model/UpdateEnvironmentVariableRequest.php +++ b/src/Model/UpdateEnvironmentVariableRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateFilterPolicyRequest.php b/src/Model/UpdateFilterPolicyRequest.php index 828582dc..18168887 100644 --- a/src/Model/UpdateFilterPolicyRequest.php +++ b/src/Model/UpdateFilterPolicyRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateGovernanceConfig200Response.php b/src/Model/UpdateGovernanceConfig200Response.php index dbe3e4d6..39f6f546 100644 --- a/src/Model/UpdateGovernanceConfig200Response.php +++ b/src/Model/UpdateGovernanceConfig200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateGovernanceConfigRequest.php b/src/Model/UpdateGovernanceConfigRequest.php index 3be74ef3..850a122b 100644 --- a/src/Model/UpdateGovernanceConfigRequest.php +++ b/src/Model/UpdateGovernanceConfigRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateSkill200Response.php b/src/Model/UpdateSkill200Response.php index b1fc3255..e3d5c33e 100644 --- a/src/Model/UpdateSkill200Response.php +++ b/src/Model/UpdateSkill200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateSkillRequest.php b/src/Model/UpdateSkillRequest.php index 79cca3bc..dcc64ac6 100644 --- a/src/Model/UpdateSkillRequest.php +++ b/src/Model/UpdateSkillRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateSlackBotRequest.php b/src/Model/UpdateSlackBotRequest.php index 361953bc..d08bee42 100644 --- a/src/Model/UpdateSlackBotRequest.php +++ b/src/Model/UpdateSlackBotRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateTask200Response.php b/src/Model/UpdateTask200Response.php index 0ec6d0d7..5492611e 100644 --- a/src/Model/UpdateTask200Response.php +++ b/src/Model/UpdateTask200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateTaskRequest.php b/src/Model/UpdateTaskRequest.php index 737caae0..75b94d56 100644 --- a/src/Model/UpdateTaskRequest.php +++ b/src/Model/UpdateTaskRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadFile201Response.php b/src/Model/UploadFile201Response.php index ca009b4b..f9cf40b2 100644 --- a/src/Model/UploadFile201Response.php +++ b/src/Model/UploadFile201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadFileRequest.php b/src/Model/UploadFileRequest.php index 9689298f..019062cc 100644 --- a/src/Model/UploadFileRequest.php +++ b/src/Model/UploadFileRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocuments200Response.php b/src/Model/UploadVectorDocuments200Response.php index f667e6c8..9489d7b1 100644 --- a/src/Model/UploadVectorDocuments200Response.php +++ b/src/Model/UploadVectorDocuments200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequest.php b/src/Model/UploadVectorDocumentsRequest.php index ede20b04..f0f4a2f2 100644 --- a/src/Model/UploadVectorDocumentsRequest.php +++ b/src/Model/UploadVectorDocumentsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequestDocumentsInner.php b/src/Model/UploadVectorDocumentsRequestDocumentsInner.php index c9e5cfa9..71d2b274 100644 --- a/src/Model/UploadVectorDocumentsRequestDocumentsInner.php +++ b/src/Model/UploadVectorDocumentsRequestDocumentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php b/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php index ba626553..dc09a647 100644 --- a/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php +++ b/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpsertAgentOverlay200Response.php b/src/Model/UpsertAgentOverlay200Response.php index e4a94fef..1fb8806f 100644 --- a/src/Model/UpsertAgentOverlay200Response.php +++ b/src/Model/UpsertAgentOverlay200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpsertAgentOverlayRequest.php b/src/Model/UpsertAgentOverlayRequest.php index 4dc15570..908f2459 100644 --- a/src/Model/UpsertAgentOverlayRequest.php +++ b/src/Model/UpsertAgentOverlayRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentItem.php b/src/Model/V1ContentItem.php index 58891f58..8f881b65 100644 --- a/src/Model/V1ContentItem.php +++ b/src/Model/V1ContentItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentListResponse.php b/src/Model/V1ContentListResponse.php index 43360ab1..30101e2d 100644 --- a/src/Model/V1ContentListResponse.php +++ b/src/Model/V1ContentListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentRequest.php b/src/Model/V1ContentRequest.php index c3759cac..dd53cc60 100644 --- a/src/Model/V1ContentRequest.php +++ b/src/Model/V1ContentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1DeleteResponse.php b/src/Model/V1DeleteResponse.php index a7831e85..d79084ae 100644 --- a/src/Model/V1DeleteResponse.php +++ b/src/Model/V1DeleteResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Error.php b/src/Model/V1Error.php index 2db09756..b7ee25b6 100644 --- a/src/Model/V1Error.php +++ b/src/Model/V1Error.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1FormSubmissionItem.php b/src/Model/V1FormSubmissionItem.php index ad38f010..e08233e9 100644 --- a/src/Model/V1FormSubmissionItem.php +++ b/src/Model/V1FormSubmissionItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1FormSubmissionListResponse.php b/src/Model/V1FormSubmissionListResponse.php index 8f44e797..df5e6753 100644 --- a/src/Model/V1FormSubmissionListResponse.php +++ b/src/Model/V1FormSubmissionListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricSeriesResponse.php b/src/Model/V1GetMetricSeriesResponse.php index 0dbd7fa7..4cc5ca6a 100644 --- a/src/Model/V1GetMetricSeriesResponse.php +++ b/src/Model/V1GetMetricSeriesResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricSeriesResponseData.php b/src/Model/V1GetMetricSeriesResponseData.php index 9efc1906..7f43645f 100644 --- a/src/Model/V1GetMetricSeriesResponseData.php +++ b/src/Model/V1GetMetricSeriesResponseData.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricsResponse.php b/src/Model/V1GetMetricsResponse.php index 31e21f43..b3c7ddc2 100644 --- a/src/Model/V1GetMetricsResponse.php +++ b/src/Model/V1GetMetricsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricsResponseData.php b/src/Model/V1GetMetricsResponseData.php index eae211ff..bdae8ef0 100644 --- a/src/Model/V1GetMetricsResponseData.php +++ b/src/Model/V1GetMetricsResponseData.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GlobalMetaResponse.php b/src/Model/V1GlobalMetaResponse.php index 0eab2d27..70945ef6 100644 --- a/src/Model/V1GlobalMetaResponse.php +++ b/src/Model/V1GlobalMetaResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GlobalMetaResponseGlobalMeta.php b/src/Model/V1GlobalMetaResponseGlobalMeta.php index cf559f19..df4e6748 100644 --- a/src/Model/V1GlobalMetaResponseGlobalMeta.php +++ b/src/Model/V1GlobalMetaResponseGlobalMeta.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Info.php b/src/Model/V1Info.php index 4cc90af2..7436f31d 100644 --- a/src/Model/V1Info.php +++ b/src/Model/V1Info.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Meta.php b/src/Model/V1Meta.php index 265ad9c4..273ad8a8 100644 --- a/src/Model/V1Meta.php +++ b/src/Model/V1Meta.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricDayStats.php b/src/Model/V1MetricDayStats.php index 535fffc4..222b467e 100644 --- a/src/Model/V1MetricDayStats.php +++ b/src/Model/V1MetricDayStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricMinuteStats.php b/src/Model/V1MetricMinuteStats.php index e5819cea..b5f48bf0 100644 --- a/src/Model/V1MetricMinuteStats.php +++ b/src/Model/V1MetricMinuteStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricMonthStats.php b/src/Model/V1MetricMonthStats.php index 712176bf..df7161ff 100644 --- a/src/Model/V1MetricMonthStats.php +++ b/src/Model/V1MetricMonthStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1PingResponse.php b/src/Model/V1PingResponse.php index bcd2b6e1..7cabc752 100644 --- a/src/Model/V1PingResponse.php +++ b/src/Model/V1PingResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ProxyItem.php b/src/Model/V1ProxyItem.php index e6333ac6..ca231aa1 100644 --- a/src/Model/V1ProxyItem.php +++ b/src/Model/V1ProxyItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ProxyListResponse.php b/src/Model/V1ProxyListResponse.php index 5ee9554c..fec6c46d 100644 --- a/src/Model/V1ProxyListResponse.php +++ b/src/Model/V1ProxyListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectItem.php b/src/Model/V1RedirectItem.php index eaf034bc..83ace766 100644 --- a/src/Model/V1RedirectItem.php +++ b/src/Model/V1RedirectItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectListResponse.php b/src/Model/V1RedirectListResponse.php index a84099f9..e0042f20 100644 --- a/src/Model/V1RedirectListResponse.php +++ b/src/Model/V1RedirectListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectRequest.php b/src/Model/V1RedirectRequest.php index eae86726..21854487 100644 --- a/src/Model/V1RedirectRequest.php +++ b/src/Model/V1RedirectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectResponse.php b/src/Model/V1RedirectResponse.php index c7c41909..cd02650a 100644 --- a/src/Model/V1RedirectResponse.php +++ b/src/Model/V1RedirectResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Revision.php b/src/Model/V1Revision.php index d23d2006..db26cf8e 100644 --- a/src/Model/V1Revision.php +++ b/src/Model/V1Revision.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RevisionsResponse.php b/src/Model/V1RevisionsResponse.php index e3cc6b6f..bdcd3856 100644 --- a/src/Model/V1RevisionsResponse.php +++ b/src/Model/V1RevisionsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchHit.php b/src/Model/V1SearchHit.php index 2a7d62f6..0b0de0e8 100644 --- a/src/Model/V1SearchHit.php +++ b/src/Model/V1SearchHit.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchItemsResponse.php b/src/Model/V1SearchItemsResponse.php index 5e128092..43b6e699 100644 --- a/src/Model/V1SearchItemsResponse.php +++ b/src/Model/V1SearchItemsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchMutationResponse.php b/src/Model/V1SearchMutationResponse.php index 33f13552..64b8942a 100644 --- a/src/Model/V1SearchMutationResponse.php +++ b/src/Model/V1SearchMutationResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchRecord.php b/src/Model/V1SearchRecord.php index e002042f..9b1f46ba 100644 --- a/src/Model/V1SearchRecord.php +++ b/src/Model/V1SearchRecord.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchResponse.php b/src/Model/V1SearchResponse.php index 122e5865..ec17960c 100644 --- a/src/Model/V1SearchResponse.php +++ b/src/Model/V1SearchResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SeriesPointDay.php b/src/Model/V1SeriesPointDay.php index 9ddfc92b..fc0b7dc7 100644 --- a/src/Model/V1SeriesPointDay.php +++ b/src/Model/V1SeriesPointDay.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SeriesPointMonth.php b/src/Model/V1SeriesPointMonth.php index 17743519..4fdbe6a1 100644 --- a/src/Model/V1SeriesPointMonth.php +++ b/src/Model/V1SeriesPointMonth.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Transition.php b/src/Model/V1Transition.php index 05fcaf36..2f4af190 100644 --- a/src/Model/V1Transition.php +++ b/src/Model/V1Transition.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UploadResponse.php b/src/Model/V1UploadResponse.php index a619bf2a..d25222b5 100644 --- a/src/Model/V1UploadResponse.php +++ b/src/Model/V1UploadResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UrlMetaRequest.php b/src/Model/V1UrlMetaRequest.php index 8ba28bef..452c03e6 100644 --- a/src/Model/V1UrlMetaRequest.php +++ b/src/Model/V1UrlMetaRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UrlMetaResponse.php b/src/Model/V1UrlMetaResponse.php index 3c86eb3f..cedd37bd 100644 --- a/src/Model/V1UrlMetaResponse.php +++ b/src/Model/V1UrlMetaResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1WafLogItem.php b/src/Model/V1WafLogItem.php index 81f8eee3..c5975212 100644 --- a/src/Model/V1WafLogItem.php +++ b/src/Model/V1WafLogItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1WafLogListResponse.php b/src/Model/V1WafLogListResponse.php index f7f920a5..b7bd5c63 100644 --- a/src/Model/V1WafLogListResponse.php +++ b/src/Model/V1WafLogListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Crawler.php b/src/Model/V2Crawler.php index 6a6702b6..21808af8 100644 --- a/src/Model/V2Crawler.php +++ b/src/Model/V2Crawler.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssets.php b/src/Model/V2CrawlerAssets.php index e726ffd6..5984875a 100644 --- a/src/Model/V2CrawlerAssets.php +++ b/src/Model/V2CrawlerAssets.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssetsNetworkIntercept.php b/src/Model/V2CrawlerAssetsNetworkIntercept.php index e63ceb2d..cf635b4f 100644 --- a/src/Model/V2CrawlerAssetsNetworkIntercept.php +++ b/src/Model/V2CrawlerAssetsNetworkIntercept.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssetsParser.php b/src/Model/V2CrawlerAssetsParser.php index bb352bb4..7d779d25 100644 --- a/src/Model/V2CrawlerAssetsParser.php +++ b/src/Model/V2CrawlerAssetsParser.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerRequest.php b/src/Model/V2CrawlerRequest.php index d4464937..301aefc9 100644 --- a/src/Model/V2CrawlerRequest.php +++ b/src/Model/V2CrawlerRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerRun.php b/src/Model/V2CrawlerRun.php index d252cd93..8bf3977f 100644 --- a/src/Model/V2CrawlerRun.php +++ b/src/Model/V2CrawlerRun.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerSchedule.php b/src/Model/V2CrawlerSchedule.php index 920b8c05..1f49ceef 100644 --- a/src/Model/V2CrawlerSchedule.php +++ b/src/Model/V2CrawlerSchedule.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerScheduleRequest.php b/src/Model/V2CrawlerScheduleRequest.php index d141fdf4..00cc151d 100644 --- a/src/Model/V2CrawlerScheduleRequest.php +++ b/src/Model/V2CrawlerScheduleRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerSitemapInner.php b/src/Model/V2CrawlerSitemapInner.php index 5534dfdf..8753ac72 100644 --- a/src/Model/V2CrawlerSitemapInner.php +++ b/src/Model/V2CrawlerSitemapInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CustomHeaderRequest.php b/src/Model/V2CustomHeaderRequest.php index 20908aec..9e052421 100644 --- a/src/Model/V2CustomHeaderRequest.php +++ b/src/Model/V2CustomHeaderRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Domain.php b/src/Model/V2Domain.php index 09df367a..8cda3a6d 100644 --- a/src/Model/V2Domain.php +++ b/src/Model/V2Domain.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainDnsGoLiveRecordsInner.php b/src/Model/V2DomainDnsGoLiveRecordsInner.php index 84aaf28d..2c496a70 100644 --- a/src/Model/V2DomainDnsGoLiveRecordsInner.php +++ b/src/Model/V2DomainDnsGoLiveRecordsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainDnsValidationRecordsInner.php b/src/Model/V2DomainDnsValidationRecordsInner.php index 3da3c9c6..6aad8d5f 100644 --- a/src/Model/V2DomainDnsValidationRecordsInner.php +++ b/src/Model/V2DomainDnsValidationRecordsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainRequest.php b/src/Model/V2DomainRequest.php index 6615bcd6..3b1dc2e5 100644 --- a/src/Model/V2DomainRequest.php +++ b/src/Model/V2DomainRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Error.php b/src/Model/V2Error.php index df977f08..a65c405b 100644 --- a/src/Model/V2Error.php +++ b/src/Model/V2Error.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricData.php b/src/Model/V2MetricData.php index 50b06534..b2b82769 100644 --- a/src/Model/V2MetricData.php +++ b/src/Model/V2MetricData.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricDataPoint.php b/src/Model/V2MetricDataPoint.php index c0e52bba..3fab0fa2 100644 --- a/src/Model/V2MetricDataPoint.php +++ b/src/Model/V2MetricDataPoint.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricDataPointTimestamp.php b/src/Model/V2MetricDataPointTimestamp.php index c856cc4c..81ee24af 100644 --- a/src/Model/V2MetricDataPointTimestamp.php +++ b/src/Model/V2MetricDataPointTimestamp.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricsMeta.php b/src/Model/V2MetricsMeta.php index fcec6164..094086cb 100644 --- a/src/Model/V2MetricsMeta.php +++ b/src/Model/V2MetricsMeta.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricsResponse.php b/src/Model/V2MetricsResponse.php index 6839124f..e0eb6925 100644 --- a/src/Model/V2MetricsResponse.php +++ b/src/Model/V2MetricsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Organization.php b/src/Model/V2Organization.php index 0fc5c985..037c626c 100644 --- a/src/Model/V2Organization.php +++ b/src/Model/V2Organization.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2OrganizationRequest.php b/src/Model/V2OrganizationRequest.php index 56030d90..c15d67ad 100644 --- a/src/Model/V2OrganizationRequest.php +++ b/src/Model/V2OrganizationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Project.php b/src/Model/V2Project.php index 00caa0d6..1683828d 100644 --- a/src/Model/V2Project.php +++ b/src/Model/V2Project.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2ProjectRequest.php b/src/Model/V2ProjectRequest.php index aec8f534..1ebeb3cd 100644 --- a/src/Model/V2ProjectRequest.php +++ b/src/Model/V2ProjectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Rule.php b/src/Model/V2Rule.php index 028f6206..a1e83a6c 100644 --- a/src/Model/V2Rule.php +++ b/src/Model/V2Rule.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuth.php b/src/Model/V2RuleAuth.php index 7c188375..5b63e566 100644 --- a/src/Model/V2RuleAuth.php +++ b/src/Model/V2RuleAuth.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuthAction.php b/src/Model/V2RuleAuthAction.php index cd9117bb..2364e35b 100644 --- a/src/Model/V2RuleAuthAction.php +++ b/src/Model/V2RuleAuthAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuthRequest.php b/src/Model/V2RuleAuthRequest.php index 83577876..2905e621 100644 --- a/src/Model/V2RuleAuthRequest.php +++ b/src/Model/V2RuleAuthRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallenge.php b/src/Model/V2RuleBotChallenge.php index b33ac70d..13c7bbea 100644 --- a/src/Model/V2RuleBotChallenge.php +++ b/src/Model/V2RuleBotChallenge.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallengeAction.php b/src/Model/V2RuleBotChallengeAction.php index 1d66a641..51e1566e 100644 --- a/src/Model/V2RuleBotChallengeAction.php +++ b/src/Model/V2RuleBotChallengeAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallengeRequest.php b/src/Model/V2RuleBotChallengeRequest.php index b5ec3cde..94ebf1e5 100644 --- a/src/Model/V2RuleBotChallengeRequest.php +++ b/src/Model/V2RuleBotChallengeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilter.php b/src/Model/V2RuleContentFilter.php index 76b66662..f08e11ea 100644 --- a/src/Model/V2RuleContentFilter.php +++ b/src/Model/V2RuleContentFilter.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilterAction.php b/src/Model/V2RuleContentFilterAction.php index bef584cb..349f3009 100644 --- a/src/Model/V2RuleContentFilterAction.php +++ b/src/Model/V2RuleContentFilterAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilterRequest.php b/src/Model/V2RuleContentFilterRequest.php index 5de00a88..6aaf6afb 100644 --- a/src/Model/V2RuleContentFilterRequest.php +++ b/src/Model/V2RuleContentFilterRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponse.php b/src/Model/V2RuleCustomResponse.php index 603b0653..a42a53b7 100644 --- a/src/Model/V2RuleCustomResponse.php +++ b/src/Model/V2RuleCustomResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponseAction.php b/src/Model/V2RuleCustomResponseAction.php index f4ecba42..ff7f2121 100644 --- a/src/Model/V2RuleCustomResponseAction.php +++ b/src/Model/V2RuleCustomResponseAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponseRequest.php b/src/Model/V2RuleCustomResponseRequest.php index 576b1b4d..c278be87 100644 --- a/src/Model/V2RuleCustomResponseRequest.php +++ b/src/Model/V2RuleCustomResponseRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunction.php b/src/Model/V2RuleFunction.php index a73e7015..c3a1fadb 100644 --- a/src/Model/V2RuleFunction.php +++ b/src/Model/V2RuleFunction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunctionAction.php b/src/Model/V2RuleFunctionAction.php index afd2b7a1..c7d2a845 100644 --- a/src/Model/V2RuleFunctionAction.php +++ b/src/Model/V2RuleFunctionAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunctionRequest.php b/src/Model/V2RuleFunctionRequest.php index 3eacfa5d..dfda037f 100644 --- a/src/Model/V2RuleFunctionRequest.php +++ b/src/Model/V2RuleFunctionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeader.php b/src/Model/V2RuleHeader.php index dda664d7..bdde7aa3 100644 --- a/src/Model/V2RuleHeader.php +++ b/src/Model/V2RuleHeader.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeaderAction.php b/src/Model/V2RuleHeaderAction.php index c7f1436a..52b305c4 100644 --- a/src/Model/V2RuleHeaderAction.php +++ b/src/Model/V2RuleHeaderAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeaderRequest.php b/src/Model/V2RuleHeaderRequest.php index 60040594..ebc70f43 100644 --- a/src/Model/V2RuleHeaderRequest.php +++ b/src/Model/V2RuleHeaderRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxy.php b/src/Model/V2RuleProxy.php index ca0343fd..304f48a3 100644 --- a/src/Model/V2RuleProxy.php +++ b/src/Model/V2RuleProxy.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyAction.php b/src/Model/V2RuleProxyAction.php index 16c6d185..bce14f82 100644 --- a/src/Model/V2RuleProxyAction.php +++ b/src/Model/V2RuleProxyAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyActionNotifyConfig.php b/src/Model/V2RuleProxyActionNotifyConfig.php index 5e59f323..7fc71193 100644 --- a/src/Model/V2RuleProxyActionNotifyConfig.php +++ b/src/Model/V2RuleProxyActionNotifyConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyActionQuantCloudSelection.php b/src/Model/V2RuleProxyActionQuantCloudSelection.php index a15a2b64..428b987e 100644 --- a/src/Model/V2RuleProxyActionQuantCloudSelection.php +++ b/src/Model/V2RuleProxyActionQuantCloudSelection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyRequest.php b/src/Model/V2RuleProxyRequest.php index c4c2cedc..d22e290c 100644 --- a/src/Model/V2RuleProxyRequest.php +++ b/src/Model/V2RuleProxyRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirect.php b/src/Model/V2RuleRedirect.php index af3a6f47..16d767e7 100644 --- a/src/Model/V2RuleRedirect.php +++ b/src/Model/V2RuleRedirect.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirectAction.php b/src/Model/V2RuleRedirectAction.php index b1ab2b06..3cf7235d 100644 --- a/src/Model/V2RuleRedirectAction.php +++ b/src/Model/V2RuleRedirectAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirectRequest.php b/src/Model/V2RuleRedirectRequest.php index 9708d7cd..5ff7df8a 100644 --- a/src/Model/V2RuleRedirectRequest.php +++ b/src/Model/V2RuleRedirectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRequest.php b/src/Model/V2RuleRequest.php index 24c8e51c..8ae6cd0e 100644 --- a/src/Model/V2RuleRequest.php +++ b/src/Model/V2RuleRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStatic.php b/src/Model/V2RuleServeStatic.php index b494426a..66c46550 100644 --- a/src/Model/V2RuleServeStatic.php +++ b/src/Model/V2RuleServeStatic.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStaticAction.php b/src/Model/V2RuleServeStaticAction.php index 46d74735..ca429e69 100644 --- a/src/Model/V2RuleServeStaticAction.php +++ b/src/Model/V2RuleServeStaticAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStaticRequest.php b/src/Model/V2RuleServeStaticRequest.php index d435e0b0..4e64f567 100644 --- a/src/Model/V2RuleServeStaticRequest.php +++ b/src/Model/V2RuleServeStaticRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2SecretStore.php b/src/Model/V2SecretStore.php index 5d4a5935..0d5b96fc 100644 --- a/src/Model/V2SecretStore.php +++ b/src/Model/V2SecretStore.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2SecretStoreRequest.php b/src/Model/V2SecretStoreRequest.php index a566748d..2155f9d6 100644 --- a/src/Model/V2SecretStoreRequest.php +++ b/src/Model/V2SecretStoreRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Store.php b/src/Model/V2Store.php index bf2d680e..120c4fdf 100644 --- a/src/Model/V2Store.php +++ b/src/Model/V2Store.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItem.php b/src/Model/V2StoreItem.php index eb5e012c..781277b1 100644 --- a/src/Model/V2StoreItem.php +++ b/src/Model/V2StoreItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemRequest.php b/src/Model/V2StoreItemRequest.php index f1bbe6ed..a209c3c5 100644 --- a/src/Model/V2StoreItemRequest.php +++ b/src/Model/V2StoreItemRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemUpdateRequest.php b/src/Model/V2StoreItemUpdateRequest.php index 6dd333e7..72c57fe4 100644 --- a/src/Model/V2StoreItemUpdateRequest.php +++ b/src/Model/V2StoreItemUpdateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemsListResponse.php b/src/Model/V2StoreItemsListResponse.php index 364f6c9f..ba803559 100644 --- a/src/Model/V2StoreItemsListResponse.php +++ b/src/Model/V2StoreItemsListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreRequest.php b/src/Model/V2StoreRequest.php index 5dbf6a50..629129d6 100644 --- a/src/Model/V2StoreRequest.php +++ b/src/Model/V2StoreRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateCompose200Response.php b/src/Model/ValidateCompose200Response.php index 60530b10..08412aeb 100644 --- a/src/Model/ValidateCompose200Response.php +++ b/src/Model/ValidateCompose200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateCompose422Response.php b/src/Model/ValidateCompose422Response.php index ce40a99d..816ec2f9 100644 --- a/src/Model/ValidateCompose422Response.php +++ b/src/Model/ValidateCompose422Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateComposeRequest.php b/src/Model/ValidateComposeRequest.php index 8787a435..186410ab 100644 --- a/src/Model/ValidateComposeRequest.php +++ b/src/Model/ValidateComposeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Variable.php b/src/Model/Variable.php index 8835d329..03111edc 100644 --- a/src/Model/Variable.php +++ b/src/Model/Variable.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Volume.php b/src/Model/Volume.php index f40e4424..caab93d0 100644 --- a/src/Model/Volume.php +++ b/src/Model/Volume.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfig.php b/src/Model/WafConfig.php index 78358b3c..aeab7778 100644 --- a/src/Model/WafConfig.php +++ b/src/Model/WafConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigBlockLists.php b/src/Model/WafConfigBlockLists.php index 791ad721..3c872e8d 100644 --- a/src/Model/WafConfigBlockLists.php +++ b/src/Model/WafConfigBlockLists.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigHttpbl.php b/src/Model/WafConfigHttpbl.php index fa14547f..c75aa819 100644 --- a/src/Model/WafConfigHttpbl.php +++ b/src/Model/WafConfigHttpbl.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigThresholdsInner.php b/src/Model/WafConfigThresholdsInner.php index 4eff148f..02f7a17c 100644 --- a/src/Model/WafConfigThresholdsInner.php +++ b/src/Model/WafConfigThresholdsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index ee47d7a8..ba72e7ea 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.21.0 + * The version of the OpenAPI document: 4.22.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ From 514a1fe7296a85553646ede85331614e0cec50df Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Mon, 7 Sep 2026 20:57:08 +0000 Subject: [PATCH 2/3] feat(sdk): v4.22.0 - Auto-generated from unified API spec Generated from unified API spec v4.22.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 20 + README.md | 14 + docs/Api/EnvironmentsApi.md | 22 +- docs/Api/KVApi.md | 75 +- docs/Api/ProjectsApi.md | 75 ++ docs/Api/ResourcesApi.md | 128 +++ docs/Model/AttachOrgResourceRequest.md | 1 + docs/Model/GetEnvironmentLogs200Response.md | 4 +- ...nvironmentLogs200ResponseLogEventsInner.md | 2 + ...GetEnvironmentLogs200ResponsePagination.md | 13 + .../GetOrgResourceCredentials200Response.md | 14 + docs/Model/GetProjectLogs200Response.md | 11 + .../GetProjectLogs200ResponseLogsInner.md | 19 + docs/Model/GetProjectLogs400Response.md | 10 + docs/Model/KVDelete409Response.md | 11 + docs/Model/KVItemsPurge200Response.md | 11 + docs/Model/KVItemsPurge202Response.md | 11 + docs/Model/PurgeOrgResource200Response.md | 14 + docs/Model/PurgeOrgResourceRequest.md | 13 + docs/Model/ResourceAttachment.md | 2 + src/Api/EnvironmentsApi.php | 82 +- src/Api/KVApi.php | 428 ++++++++- src/Api/ProjectsApi.php | 419 +++++++++ src/Api/ResourcesApi.php | 671 +++++++++++++- src/Model/AttachOrgResourceRequest.php | 80 +- src/Model/GetEnvironmentLogs200Response.php | 77 +- ...vironmentLogs200ResponseLogEventsInner.php | 96 +- ...etEnvironmentLogs200ResponsePagination.php | 566 ++++++++++++ .../GetOrgResourceCredentials200Response.php | 579 ++++++++++++ src/Model/GetProjectLogs200Response.php | 484 ++++++++++ .../GetProjectLogs200ResponseLogsInner.php | 826 ++++++++++++++++++ src/Model/GetProjectLogs400Response.php | 443 ++++++++++ src/Model/KVDelete409Response.php | 477 ++++++++++ src/Model/KVItemsPurge200Response.php | 477 ++++++++++ src/Model/KVItemsPurge202Response.php | 477 ++++++++++ src/Model/PurgeOrgResource200Response.php | 579 ++++++++++++ src/Model/PurgeOrgResourceRequest.php | 582 ++++++++++++ src/Model/ResourceAttachment.php | 102 +++ 38 files changed, 7823 insertions(+), 92 deletions(-) create mode 100644 docs/Model/GetEnvironmentLogs200ResponsePagination.md create mode 100644 docs/Model/GetOrgResourceCredentials200Response.md create mode 100644 docs/Model/GetProjectLogs200Response.md create mode 100644 docs/Model/GetProjectLogs200ResponseLogsInner.md create mode 100644 docs/Model/GetProjectLogs400Response.md create mode 100644 docs/Model/KVDelete409Response.md create mode 100644 docs/Model/KVItemsPurge200Response.md create mode 100644 docs/Model/KVItemsPurge202Response.md create mode 100644 docs/Model/PurgeOrgResource200Response.md create mode 100644 docs/Model/PurgeOrgResourceRequest.md create mode 100644 src/Model/GetEnvironmentLogs200ResponsePagination.php create mode 100644 src/Model/GetOrgResourceCredentials200Response.php create mode 100644 src/Model/GetProjectLogs200Response.php create mode 100644 src/Model/GetProjectLogs200ResponseLogsInner.php create mode 100644 src/Model/GetProjectLogs400Response.php create mode 100644 src/Model/KVDelete409Response.php create mode 100644 src/Model/KVItemsPurge200Response.php create mode 100644 src/Model/KVItemsPurge202Response.php create mode 100644 src/Model/PurgeOrgResource200Response.php create mode 100644 src/Model/PurgeOrgResourceRequest.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 1654fd90..196abfba 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -203,6 +203,7 @@ docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md docs/Model/GetEcrLoginCredentials200Response.md docs/Model/GetEnvironmentLogs200Response.md docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md +docs/Model/GetEnvironmentLogs200ResponsePagination.md docs/Model/GetFile200Response.md docs/Model/GetGovernanceConfig200Response.md docs/Model/GetGovernanceConfig200ResponseSpendLimits.md @@ -220,6 +221,10 @@ docs/Model/GetMyUsage200ResponseMonthly.md docs/Model/GetMyUsage200ResponseQuota.md docs/Model/GetMyUsage200ResponseQuotaDailyLimit.md docs/Model/GetMyUsage200ResponseQuotaMonthlyLimit.md +docs/Model/GetOrgResourceCredentials200Response.md +docs/Model/GetProjectLogs200Response.md +docs/Model/GetProjectLogs200ResponseLogsInner.md +docs/Model/GetProjectLogs400Response.md docs/Model/GetRestoreStatus200Response.md docs/Model/GetScalingPolicyResponse.md docs/Model/GetSkill200Response.md @@ -247,8 +252,11 @@ docs/Model/ImportSkillCollectionRequest.md docs/Model/ImportSkillCollectionRequestSource.md docs/Model/ImportSkillRequest.md docs/Model/ImportSkillRequestSource.md +docs/Model/KVDelete409Response.md docs/Model/KVItemsCreate200Response.md docs/Model/KVItemsDelete200Response.md +docs/Model/KVItemsPurge200Response.md +docs/Model/KVItemsPurge202Response.md docs/Model/KVItemsShow200Response.md docs/Model/KVItemsShow200ResponseValue.md docs/Model/KVLinkToProject200Response.md @@ -309,6 +317,8 @@ docs/Model/PatchEnvironmentCompose400Response.md docs/Model/PatchEnvironmentComposeRequest.md docs/Model/PatchEnvironmentComposeRequestSpotConfiguration.md docs/Model/PurgeCreateRequest.md +docs/Model/PurgeOrgResource200Response.md +docs/Model/PurgeOrgResourceRequest.md docs/Model/QueryVectorCollection200Response.md docs/Model/QueryVectorCollection200ResponsePagination.md docs/Model/QueryVectorCollection200ResponseResultsInner.md @@ -681,6 +691,7 @@ src/Model/GetDurableExecutionStatus200ResponseResultUsage.php src/Model/GetEcrLoginCredentials200Response.php src/Model/GetEnvironmentLogs200Response.php src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php +src/Model/GetEnvironmentLogs200ResponsePagination.php src/Model/GetFile200Response.php src/Model/GetGovernanceConfig200Response.php src/Model/GetGovernanceConfig200ResponseSpendLimits.php @@ -698,6 +709,10 @@ src/Model/GetMyUsage200ResponseMonthly.php src/Model/GetMyUsage200ResponseQuota.php src/Model/GetMyUsage200ResponseQuotaDailyLimit.php src/Model/GetMyUsage200ResponseQuotaMonthlyLimit.php +src/Model/GetOrgResourceCredentials200Response.php +src/Model/GetProjectLogs200Response.php +src/Model/GetProjectLogs200ResponseLogsInner.php +src/Model/GetProjectLogs400Response.php src/Model/GetRestoreStatus200Response.php src/Model/GetScalingPolicyResponse.php src/Model/GetSkill200Response.php @@ -725,8 +740,11 @@ src/Model/ImportSkillCollectionRequest.php src/Model/ImportSkillCollectionRequestSource.php src/Model/ImportSkillRequest.php src/Model/ImportSkillRequestSource.php +src/Model/KVDelete409Response.php src/Model/KVItemsCreate200Response.php src/Model/KVItemsDelete200Response.php +src/Model/KVItemsPurge200Response.php +src/Model/KVItemsPurge202Response.php src/Model/KVItemsShow200Response.php src/Model/KVItemsShow200ResponseValue.php src/Model/KVLinkToProject200Response.php @@ -788,6 +806,8 @@ src/Model/PatchEnvironmentCompose400Response.php src/Model/PatchEnvironmentComposeRequest.php src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php src/Model/PurgeCreateRequest.php +src/Model/PurgeOrgResource200Response.php +src/Model/PurgeOrgResourceRequest.php src/Model/QueryVectorCollection200Response.php src/Model/QueryVectorCollection200ResponsePagination.php src/Model/QueryVectorCollection200ResponseResultsInner.php diff --git a/README.md b/README.md index 76acca39..8f6beba2 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,7 @@ Class | Method | HTTP request | Description *KVApi* | [**kVItemsCreate**](docs/Api/KVApi.md#kvitemscreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | Add an item to a kv store *KVApi* | [**kVItemsDelete**](docs/Api/KVApi.md#kvitemsdelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Delete an item from a kv store *KVApi* | [**kVItemsList**](docs/Api/KVApi.md#kvitemslist) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store +*KVApi* | [**kVItemsPurge**](docs/Api/KVApi.md#kvitemspurge) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | Delete items in bulk by prefix and/or age *KVApi* | [**kVItemsShow**](docs/Api/KVApi.md#kvitemsshow) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store *KVApi* | [**kVItemsUpdate**](docs/Api/KVApi.md#kvitemsupdate) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store *KVApi* | [**kVLinkToProject**](docs/Api/KVApi.md#kvlinktoproject) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project @@ -263,6 +264,7 @@ Class | Method | HTTP request | Description *OpenAICompatibilityApi* | [**oaiListModels**](docs/Api/OpenAICompatibilityApi.md#oailistmodels) | **GET** /oai/v1/models | List available models (OpenAI-compatible) *OrganizationsApi* | [**organizationsList**](docs/Api/OrganizationsApi.md#organizationslist) | **GET** /api/v2/organizations | Retrieve all organizations *OrganizationsApi* | [**organizationsRead**](docs/Api/OrganizationsApi.md#organizationsread) | **GET** /api/v2/organizations/{organization} | Get details of a single organization +*ProjectsApi* | [**getProjectLogs**](docs/Api/ProjectsApi.md#getprojectlogs) | **GET** /api/v2/organizations/{organization}/projects/{project}/logs | Get CDN access logs for a project *ProjectsApi* | [**projectsCreate**](docs/Api/ProjectsApi.md#projectscreate) | **POST** /api/v2/organizations/{organization}/projects | Create a new project *ProjectsApi* | [**projectsDelete**](docs/Api/ProjectsApi.md#projectsdelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project} | Delete a project *ProjectsApi* | [**projectsList**](docs/Api/ProjectsApi.md#projectslist) | **GET** /api/v2/organizations/{organization}/projects | Retrieve all projects for an organization @@ -274,7 +276,9 @@ Class | Method | HTTP request | Description *ResourcesApi* | [**deleteOrgResource**](docs/Api/ResourcesApi.md#deleteorgresource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource} | Delete a shared resource *ResourcesApi* | [**detachOrgResource**](docs/Api/ResourcesApi.md#detachorgresource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment} | Detach a resource from an application environment *ResourcesApi* | [**getOrgResource**](docs/Api/ResourcesApi.md#getorgresource) | **GET** /api/v3/organizations/{organisation}/resources/{resource} | Get a shared resource and its attachments +*ResourcesApi* | [**getOrgResourceCredentials**](docs/Api/ResourcesApi.md#getorgresourcecredentials) | **GET** /api/v3/organizations/{organisation}/resources/{resource}/credentials | Get a cache's administrative credential *ResourcesApi* | [**listOrgResources**](docs/Api/ResourcesApi.md#listorgresources) | **GET** /api/v3/organizations/{organisation}/resources | List an organisation's shared resources +*ResourcesApi* | [**purgeOrgResource**](docs/Api/ResourcesApi.md#purgeorgresource) | **POST** /api/v3/organizations/{organisation}/resources/{resource}/purge | Purge keys from a cache *RestoreManagementApi* | [**getRestoreStatus**](docs/Api/RestoreManagementApi.md#getrestorestatus) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId} | Get the status of a restore operation *RestoreManagementApi* | [**restoreDatabase**](docs/Api/RestoreManagementApi.md#restoredatabase) | **POST** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database | Restore a database backup to a target environment *RestoreManagementApi* | [**restoreFilesystem**](docs/Api/RestoreManagementApi.md#restorefilesystem) | **POST** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem | Restore a filesystem backup to a target environment @@ -499,6 +503,7 @@ Class | Method | HTTP request | Description - [GetEcrLoginCredentials200Response](docs/Model/GetEcrLoginCredentials200Response.md) - [GetEnvironmentLogs200Response](docs/Model/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md) +- [GetEnvironmentLogs200ResponsePagination](docs/Model/GetEnvironmentLogs200ResponsePagination.md) - [GetFile200Response](docs/Model/GetFile200Response.md) - [GetGovernanceConfig200Response](docs/Model/GetGovernanceConfig200Response.md) - [GetGovernanceConfig200ResponseSpendLimits](docs/Model/GetGovernanceConfig200ResponseSpendLimits.md) @@ -516,6 +521,10 @@ Class | Method | HTTP request | Description - [GetMyUsage200ResponseQuota](docs/Model/GetMyUsage200ResponseQuota.md) - [GetMyUsage200ResponseQuotaDailyLimit](docs/Model/GetMyUsage200ResponseQuotaDailyLimit.md) - [GetMyUsage200ResponseQuotaMonthlyLimit](docs/Model/GetMyUsage200ResponseQuotaMonthlyLimit.md) +- [GetOrgResourceCredentials200Response](docs/Model/GetOrgResourceCredentials200Response.md) +- [GetProjectLogs200Response](docs/Model/GetProjectLogs200Response.md) +- [GetProjectLogs200ResponseLogsInner](docs/Model/GetProjectLogs200ResponseLogsInner.md) +- [GetProjectLogs400Response](docs/Model/GetProjectLogs400Response.md) - [GetRestoreStatus200Response](docs/Model/GetRestoreStatus200Response.md) - [GetScalingPolicyResponse](docs/Model/GetScalingPolicyResponse.md) - [GetSkill200Response](docs/Model/GetSkill200Response.md) @@ -543,8 +552,11 @@ Class | Method | HTTP request | Description - [ImportSkillCollectionRequestSource](docs/Model/ImportSkillCollectionRequestSource.md) - [ImportSkillRequest](docs/Model/ImportSkillRequest.md) - [ImportSkillRequestSource](docs/Model/ImportSkillRequestSource.md) +- [KVDelete409Response](docs/Model/KVDelete409Response.md) - [KVItemsCreate200Response](docs/Model/KVItemsCreate200Response.md) - [KVItemsDelete200Response](docs/Model/KVItemsDelete200Response.md) +- [KVItemsPurge200Response](docs/Model/KVItemsPurge200Response.md) +- [KVItemsPurge202Response](docs/Model/KVItemsPurge202Response.md) - [KVItemsShow200Response](docs/Model/KVItemsShow200Response.md) - [KVItemsShow200ResponseValue](docs/Model/KVItemsShow200ResponseValue.md) - [KVLinkToProject200Response](docs/Model/KVLinkToProject200Response.md) @@ -605,6 +617,8 @@ Class | Method | HTTP request | Description - [PatchEnvironmentComposeRequest](docs/Model/PatchEnvironmentComposeRequest.md) - [PatchEnvironmentComposeRequestSpotConfiguration](docs/Model/PatchEnvironmentComposeRequestSpotConfiguration.md) - [PurgeCreateRequest](docs/Model/PurgeCreateRequest.md) +- [PurgeOrgResource200Response](docs/Model/PurgeOrgResource200Response.md) +- [PurgeOrgResourceRequest](docs/Model/PurgeOrgResourceRequest.md) - [QueryVectorCollection200Response](docs/Model/QueryVectorCollection200Response.md) - [QueryVectorCollection200ResponsePagination](docs/Model/QueryVectorCollection200ResponsePagination.md) - [QueryVectorCollection200ResponseResultsInner](docs/Model/QueryVectorCollection200ResponseResultsInner.md) diff --git a/docs/Api/EnvironmentsApi.md b/docs/Api/EnvironmentsApi.md index 6da75835..c90dfc75 100644 --- a/docs/Api/EnvironmentsApi.md +++ b/docs/Api/EnvironmentsApi.md @@ -204,12 +204,12 @@ try { ## `getEnvironmentLogs()` ```php -getEnvironmentLogs($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token): \QuantClient\Model\GetEnvironmentLogs200Response +getEnvironmentLogs($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total): \QuantClient\Model\GetEnvironmentLogs200Response ``` Get the logs for an environment -Retrieves logs from CloudWatch for the specified environment with optional filtering by time range, container, and pattern matching. Supports pagination via nextToken. +Retrieves logs from CloudWatch for the specified environment with optional filtering by time range, container, and literal text. Newest-first by default; pass the nextToken from the previous response to fetch the next page. ### Example @@ -234,12 +234,14 @@ $environment = test-env; // string | The environment ID $start_time = 'start_time_example'; // string | Start time for log retrieval (ISO 8601 format or Unix timestamp) $end_time = 'end_time_example'; // string | End time for log retrieval (ISO 8601 format or Unix timestamp) $container_name = 'container_name_example'; // string | Filter logs by specific container name -$filter_pattern = 'filter_pattern_example'; // string | CloudWatch Logs filter pattern for searching log content -$limit = 56; // int | Maximum number of log entries to return per page -$next_token = 'next_token_example'; // string | Pagination token from previous response for retrieving next page of results +$filter_pattern = 'filter_pattern_example'; // string | Literal, case-sensitive text to match anywhere in the log message +$limit = 50; // int | Maximum number of log entries to return per page (default 50) +$next_token = 'next_token_example'; // string | Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. +$order = 'desc'; // string | Sort order. desc returns newest first, asc returns oldest first. +$include_total = false; // bool | When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. try { - $result = $apiInstance->getEnvironmentLogs($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token); + $result = $apiInstance->getEnvironmentLogs($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total); print_r($result); } catch (Exception $e) { echo 'Exception when calling EnvironmentsApi->getEnvironmentLogs: ', $e->getMessage(), PHP_EOL; @@ -256,9 +258,11 @@ try { | **start_time** | **string**| Start time for log retrieval (ISO 8601 format or Unix timestamp) | [optional] | | **end_time** | **string**| End time for log retrieval (ISO 8601 format or Unix timestamp) | [optional] | | **container_name** | **string**| Filter logs by specific container name | [optional] | -| **filter_pattern** | **string**| CloudWatch Logs filter pattern for searching log content | [optional] | -| **limit** | **int**| Maximum number of log entries to return per page | [optional] | -| **next_token** | **string**| Pagination token from previous response for retrieving next page of results | [optional] | +| **filter_pattern** | **string**| Literal, case-sensitive text to match anywhere in the log message | [optional] | +| **limit** | **int**| Maximum number of log entries to return per page (default 50) | [optional] [default to 50] | +| **next_token** | **string**| Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. | [optional] | +| **order** | **string**| Sort order. desc returns newest first, asc returns oldest first. | [optional] [default to 'desc'] | +| **include_total** | **bool**| When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. | [optional] [default to false] | ### Return type diff --git a/docs/Api/KVApi.md b/docs/Api/KVApi.md index 0f2e81df..1d68cd8e 100644 --- a/docs/Api/KVApi.md +++ b/docs/Api/KVApi.md @@ -9,6 +9,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**kVItemsCreate()**](KVApi.md#kVItemsCreate) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | Add an item to a kv store | | [**kVItemsDelete()**](KVApi.md#kVItemsDelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Delete an item from a kv store | | [**kVItemsList()**](KVApi.md#kVItemsList) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store | +| [**kVItemsPurge()**](KVApi.md#kVItemsPurge) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | Delete items in bulk by prefix and/or age | | [**kVItemsShow()**](KVApi.md#kVItemsShow) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store | | [**kVItemsUpdate()**](KVApi.md#kVItemsUpdate) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store | | [**kVLinkToProject()**](KVApi.md#kVLinkToProject) | **POST** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project | @@ -82,7 +83,7 @@ try { ## `kVDelete()` ```php -kVDelete($organization, $project, $store_id) +kVDelete($organization, $project, $store_id, $force) ``` Delete a kv store @@ -107,9 +108,10 @@ $apiInstance = new QuantClient\Api\KVApi( $organization = test-org; // string | Organization identifier $project = test-project; // string | Project identifier $store_id = 0000; // string +$force = false; // bool | Delete the store even if it still holds keys. Without it a non-empty store returns 409. try { - $apiInstance->kVDelete($organization, $project, $store_id); + $apiInstance->kVDelete($organization, $project, $store_id, $force); } catch (Exception $e) { echo 'Exception when calling KVApi->kVDelete: ', $e->getMessage(), PHP_EOL; } @@ -122,6 +124,7 @@ try { | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | | **store_id** | **string**| | | +| **force** | **bool**| Delete the store even if it still holds keys. Without it a non-empty store returns 409. | [optional] [default to false] | ### Return type @@ -338,6 +341,74 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `kVItemsPurge()` + +```php +kVItemsPurge($organization, $project, $store_id, $prefix, $older_than): \QuantClient\Model\KVItemsPurge200Response +``` + +Delete items in bulk by prefix and/or age + +Deletes every item matching the filters. With no filters the whole store is cleared. A small purge finishes in the request and returns 200; a large one returns 202 with the counts so far and continues in the background. Idempotent. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\KVApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string +$prefix = oauth_state:; // string | Only delete keys that start with this string. +$older_than = 24h; // string | Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. + +try { + $result = $apiInstance->kVItemsPurge($organization, $project, $store_id, $prefix, $older_than); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling KVApi->kVItemsPurge: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | +| **store_id** | **string**| | | +| **prefix** | **string**| Only delete keys that start with this string. | [optional] | +| **older_than** | **string**| Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. | [optional] | + +### Return type + +[**\QuantClient\Model\KVItemsPurge200Response**](../Model/KVItemsPurge200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `kVItemsShow()` ```php diff --git a/docs/Api/ProjectsApi.md b/docs/Api/ProjectsApi.md index 42258092..76903015 100644 --- a/docs/Api/ProjectsApi.md +++ b/docs/Api/ProjectsApi.md @@ -4,6 +4,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**getProjectLogs()**](ProjectsApi.md#getProjectLogs) | **GET** /api/v2/organizations/{organization}/projects/{project}/logs | Get CDN access logs for a project | | [**projectsCreate()**](ProjectsApi.md#projectsCreate) | **POST** /api/v2/organizations/{organization}/projects | Create a new project | | [**projectsDelete()**](ProjectsApi.md#projectsDelete) | **DELETE** /api/v2/organizations/{organization}/projects/{project} | Delete a project | | [**projectsList()**](ProjectsApi.md#projectsList) | **GET** /api/v2/organizations/{organization}/projects | Retrieve all projects for an organization | @@ -11,6 +12,80 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**projectsUpdate()**](ProjectsApi.md#projectsUpdate) | **PATCH** /api/v2/organizations/{organization}/projects/{project} | Update a project | +## `getProjectLogs()` + +```php +getProjectLogs($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token): \QuantClient\Model\GetProjectLogs200Response +``` + +Get CDN access logs for a project + +Retrieves CloudFront access log entries for an AWS-platform project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ProjectsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organization = test-org; // string | The organization machine name +$project = test-project; // string | The project machine name +$limit = 100; // int | Maximum number of log entries to return per page (default 100) +$start_time = 2024-11-16T00:00:00Z; // string | Start of the time range. ISO 8601 or Unix epoch milliseconds. +$end_time = 2024-11-16T23:59:59Z; // string | End of the time range. ISO 8601 or Unix epoch milliseconds. +$filter = $.status_code = 404; // string | CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. +$domain = www.example.com; // string | Only return entries for this domain +$next_token = 'next_token_example'; // string | Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. + +try { + $result = $apiInstance->getProjectLogs($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ProjectsApi->getProjectLogs: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| The organization machine name | | +| **project** | **string**| The project machine name | | +| **limit** | **int**| Maximum number of log entries to return per page (default 100) | [optional] [default to 100] | +| **start_time** | **string**| Start of the time range. ISO 8601 or Unix epoch milliseconds. | [optional] | +| **end_time** | **string**| End of the time range. ISO 8601 or Unix epoch milliseconds. | [optional] | +| **filter** | **string**| CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. | [optional] | +| **domain** | **string**| Only return entries for this domain | [optional] | +| **next_token** | **string**| Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. | [optional] | + +### Return type + +[**\QuantClient\Model\GetProjectLogs200Response**](../Model/GetProjectLogs200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `projectsCreate()` ```php diff --git a/docs/Api/ResourcesApi.md b/docs/Api/ResourcesApi.md index 9cb583a0..57cd6860 100644 --- a/docs/Api/ResourcesApi.md +++ b/docs/Api/ResourcesApi.md @@ -9,7 +9,9 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**deleteOrgResource()**](ResourcesApi.md#deleteOrgResource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource} | Delete a shared resource | | [**detachOrgResource()**](ResourcesApi.md#detachOrgResource) | **DELETE** /api/v3/organizations/{organisation}/resources/{resource}/attachments/{application}/{environment} | Detach a resource from an application environment | | [**getOrgResource()**](ResourcesApi.md#getOrgResource) | **GET** /api/v3/organizations/{organisation}/resources/{resource} | Get a shared resource and its attachments | +| [**getOrgResourceCredentials()**](ResourcesApi.md#getOrgResourceCredentials) | **GET** /api/v3/organizations/{organisation}/resources/{resource}/credentials | Get a cache's administrative credential | | [**listOrgResources()**](ResourcesApi.md#listOrgResources) | **GET** /api/v3/organizations/{organisation}/resources | List an organisation's shared resources | +| [**purgeOrgResource()**](ResourcesApi.md#purgeOrgResource) | **POST** /api/v3/organizations/{organisation}/resources/{resource}/purge | Purge keys from a cache | ## `attachOrgResource()` @@ -326,6 +328,68 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `getOrgResourceCredentials()` + +```php +getOrgResourceCredentials($organisation, $resource): \QuantClient\Model\GetOrgResourceCredentials200Response +``` + +Get a cache's administrative credential + +Cache resources only. Returns the cache-wide user (every key, every command, including FLUSHDB) with host and port. Environments attached to the cache use their own scoped users; this credential is for operators who genuinely need unrestricted access. Every read is audit-logged against the requesting user. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = vk-sessions; // string | The resource ID + +try { + $result = $apiInstance->getOrgResourceCredentials($organisation, $resource); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->getOrgResourceCredentials: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | + +### Return type + +[**\QuantClient\Model\GetOrgResourceCredentials200Response**](../Model/GetOrgResourceCredentials200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `listOrgResources()` ```php @@ -383,3 +447,67 @@ try { [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) + +## `purgeOrgResource()` + +```php +purgeOrgResource($organisation, $resource, $purge_org_resource_request): \QuantClient\Model\PurgeOrgResource200Response +``` + +Purge keys from a cache + +Cache resources only. scope environment deletes that environment's keys, using the CACHE_PREFIX recorded on its attachment rather than anything in the request. scope all flushes every key for every attached environment and requires confirm=true. A large environment purge may return complete=false with a cursor to resume. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\ResourcesApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = test-org; // string | The organisation ID +$resource = vk-sessions; // string | The resource ID +$purge_org_resource_request = new \QuantClient\Model\PurgeOrgResourceRequest(); // \QuantClient\Model\PurgeOrgResourceRequest + +try { + $result = $apiInstance->purgeOrgResource($organisation, $resource, $purge_org_resource_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ResourcesApi->purgeOrgResource: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **resource** | **string**| The resource ID | | +| **purge_org_resource_request** | [**\QuantClient\Model\PurgeOrgResourceRequest**](../Model/PurgeOrgResourceRequest.md)| | | + +### Return type + +[**\QuantClient\Model\PurgeOrgResource200Response**](../Model/PurgeOrgResource200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Model/AttachOrgResourceRequest.md b/docs/Model/AttachOrgResourceRequest.md index dc66e29c..12bedfc9 100644 --- a/docs/Model/AttachOrgResourceRequest.md +++ b/docs/Model/AttachOrgResourceRequest.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **application** | **string** | | **environment** | **string** | | **env_var_prefix** | **string** | Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET | [optional] +**access_level** | **string** | Cache only. scoped injects an RBAC user limited to this environment's CACHE_PREFIX (plain and {hash-tag} forms) with FLUSHALL and FLUSHDB denied. admin injects the cache-wide credential for integrations that require FLUSHDB, such as Laravel Cache::flush() or the WordPress object cache without selective flush; it can read, write and flush every attached environment's keys. | [optional] [default to 'scoped'] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetEnvironmentLogs200Response.md b/docs/Model/GetEnvironmentLogs200Response.md index ac6969f8..77d90b6b 100644 --- a/docs/Model/GetEnvironmentLogs200Response.md +++ b/docs/Model/GetEnvironmentLogs200Response.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **log_events** | [**\QuantClient\Model\GetEnvironmentLogs200ResponseLogEventsInner[]**](GetEnvironmentLogs200ResponseLogEventsInner.md) | Array of log events | [optional] -**next_token** | **string** | Token for fetching next page of results (null if no more pages) | [optional] +**log_group_name** | **string** | CloudWatch log group the events were read from | [optional] +**pagination** | [**\QuantClient\Model\GetEnvironmentLogs200ResponsePagination**](GetEnvironmentLogs200ResponsePagination.md) | | [optional] +**next_token** | **string** | Same as pagination.nextToken; kept for backward compatibility | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md b/docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md index 401154a9..b9463b47 100644 --- a/docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md +++ b/docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md @@ -6,5 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timestamp** | **int** | Unix timestamp in milliseconds | [optional] **message** | **string** | Log message content | [optional] +**ingestion_time** | **int** | Unix timestamp in milliseconds when CloudWatch ingested the event | [optional] +**log_stream_name** | **string** | CloudWatch log stream, named container/container/taskId | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetEnvironmentLogs200ResponsePagination.md b/docs/Model/GetEnvironmentLogs200ResponsePagination.md new file mode 100644 index 00000000..6c202664 --- /dev/null +++ b/docs/Model/GetEnvironmentLogs200ResponsePagination.md @@ -0,0 +1,13 @@ +# # GetEnvironmentLogs200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **int** | Page size that was applied | [optional] +**has_more** | **bool** | True when another page is available | [optional] +**next_token** | **string** | Token for the next page. Present only when hasMore is true. | [optional] +**total** | **int** | Total events in the time range. Present only when includeTotal=true. | [optional] +**total_pages** | **int** | ceil(total / limit). Present only when includeTotal=true. | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetOrgResourceCredentials200Response.md b/docs/Model/GetOrgResourceCredentials200Response.md new file mode 100644 index 00000000..2f65be10 --- /dev/null +++ b/docs/Model/GetOrgResourceCredentials200Response.md @@ -0,0 +1,14 @@ +# # GetOrgResourceCredentials200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**host** | **string** | | [optional] +**port** | **int** | | [optional] +**tls** | **bool** | | [optional] +**username** | **string** | | [optional] +**password** | **string** | | [optional] +**note** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetProjectLogs200Response.md b/docs/Model/GetProjectLogs200Response.md new file mode 100644 index 00000000..2e7632dc --- /dev/null +++ b/docs/Model/GetProjectLogs200Response.md @@ -0,0 +1,11 @@ +# # GetProjectLogs200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**\QuantClient\Model\GetProjectLogs200ResponseLogsInner[]**](GetProjectLogs200ResponseLogsInner.md) | Structured CloudFront access log entries. Each entry carries request, response, timing and cache fields as emitted by the edge. | [optional] +**count** | **int** | Number of entries in this response | [optional] +**next_token** | **string** | Token for the next page, or null when there are no more entries | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetProjectLogs200ResponseLogsInner.md b/docs/Model/GetProjectLogs200ResponseLogsInner.md new file mode 100644 index 00000000..ba84084a --- /dev/null +++ b/docs/Model/GetProjectLogs200ResponseLogsInner.md @@ -0,0 +1,19 @@ +# # GetProjectLogs200ResponseLogsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timestamp** | **\DateTime** | | [optional] +**project** | **string** | | [optional] +**domain** | **string** | | [optional] +**method** | **string** | | [optional] +**uri** | **string** | | [optional] +**status_code** | **int** | | [optional] +**cache_status** | **string** | | [optional] +**client_ip** | **string** | | [optional] +**user_agent** | **string** | | [optional] +**bytes** | **int** | | [optional] +**time_taken** | **float** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetProjectLogs400Response.md b/docs/Model/GetProjectLogs400Response.md new file mode 100644 index 00000000..e1106e81 --- /dev/null +++ b/docs/Model/GetProjectLogs400Response.md @@ -0,0 +1,10 @@ +# # GetProjectLogs400Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **bool** | | [optional] +**message** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/KVDelete409Response.md b/docs/Model/KVDelete409Response.md new file mode 100644 index 00000000..ab52aaa4 --- /dev/null +++ b/docs/Model/KVDelete409Response.md @@ -0,0 +1,11 @@ +# # KVDelete409Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **bool** | | [optional] +**message** | **string** | | [optional] +**hint** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/KVItemsPurge200Response.md b/docs/Model/KVItemsPurge200Response.md new file mode 100644 index 00000000..38d177d5 --- /dev/null +++ b/docs/Model/KVItemsPurge200Response.md @@ -0,0 +1,11 @@ +# # KVItemsPurge200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **string** | | [optional] +**deleted** | **int** | | [optional] +**scanned** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/KVItemsPurge202Response.md b/docs/Model/KVItemsPurge202Response.md new file mode 100644 index 00000000..75e4d117 --- /dev/null +++ b/docs/Model/KVItemsPurge202Response.md @@ -0,0 +1,11 @@ +# # KVItemsPurge202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **string** | | [optional] +**deleted** | **int** | | [optional] +**scanned** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PurgeOrgResource200Response.md b/docs/Model/PurgeOrgResource200Response.md new file mode 100644 index 00000000..9b48b980 --- /dev/null +++ b/docs/Model/PurgeOrgResource200Response.md @@ -0,0 +1,14 @@ +# # PurgeOrgResource200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **string** | | [optional] +**prefix** | **string** | | [optional] +**deleted_keys** | **int** | | [optional] +**complete** | **bool** | | [optional] +**cursor** | **string** | | [optional] +**flushed** | **bool** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PurgeOrgResourceRequest.md b/docs/Model/PurgeOrgResourceRequest.md new file mode 100644 index 00000000..a8639947 --- /dev/null +++ b/docs/Model/PurgeOrgResourceRequest.md @@ -0,0 +1,13 @@ +# # PurgeOrgResourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **string** | | +**application** | **string** | scope environment only | [optional] +**environment** | **string** | scope environment only | [optional] +**confirm** | **bool** | scope all only; must be true | [optional] +**cursor** | **string** | scope environment only; resume a partial purge | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ResourceAttachment.md b/docs/Model/ResourceAttachment.md index 9c01be4a..a3da8007 100644 --- a/docs/Model/ResourceAttachment.md +++ b/docs/Model/ResourceAttachment.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **env_name** | **string** | | [optional] **env_var_prefix** | **string** | Namespaces every injected variable, so MEDIA yields MEDIA_S3_BUCKET | [optional] **access_key_id** | **string** | Object storage only. The secret half is written to the environment's secrets and never returned. | [optional] +**cache_user_id** | **string** | Cache only. This environment's own RBAC user, limited to its CACHE_PREFIX with FLUSHALL and FLUSHDB denied, so it cannot touch another environment's keys. | [optional] +**access_level** | **string** | Cache only. scoped: the environment holds its own RBAC user. admin: it holds the cache-wide credential and can read, write and flush every attached environment's keys. Absent on attachments made before access levels existed (treated as scoped). | [optional] **injected_keys** | **string[]** | The exact variable names this attachment wrote, removed precisely on detach | [optional] **created_at** | **\DateTime** | | [optional] **note** | **string** | When the credentials take effect | [optional] diff --git a/src/Api/EnvironmentsApi.php b/src/Api/EnvironmentsApi.php index ed703b56..9df80629 100644 --- a/src/Api/EnvironmentsApi.php +++ b/src/Api/EnvironmentsApi.php @@ -1062,18 +1062,20 @@ public function getEnvironmentRequest($organisation, $application, $environment, * @param string|null $start_time Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $end_time End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $container_name Filter logs by specific container name (optional) - * @param string|null $filter_pattern CloudWatch Logs filter pattern for searching log content (optional) - * @param int|null $limit Maximum number of log entries to return per page (optional) - * @param string|null $next_token Pagination token from previous response for retrieving next page of results (optional) + * @param string|null $filter_pattern Literal, case-sensitive text to match anywhere in the log message (optional) + * @param int|null $limit Maximum number of log entries to return per page (default 50) (optional, default to 50) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string|null $order Sort order. desc returns newest first, asc returns oldest first. (optional, default to 'desc') + * @param bool|null $include_total When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getEnvironmentLogs'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return \QuantClient\Model\GetEnvironmentLogs200Response */ - public function getEnvironmentLogs($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = null, $next_token = null, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) + public function getEnvironmentLogs($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = 50, $next_token = null, $order = 'desc', $include_total = false, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) { - list($response) = $this->getEnvironmentLogsWithHttpInfo($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $contentType); + list($response) = $this->getEnvironmentLogsWithHttpInfo($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total, $contentType); return $response; } @@ -1088,18 +1090,20 @@ public function getEnvironmentLogs($organisation, $application, $environment, $s * @param string|null $start_time Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $end_time End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $container_name Filter logs by specific container name (optional) - * @param string|null $filter_pattern CloudWatch Logs filter pattern for searching log content (optional) - * @param int|null $limit Maximum number of log entries to return per page (optional) - * @param string|null $next_token Pagination token from previous response for retrieving next page of results (optional) + * @param string|null $filter_pattern Literal, case-sensitive text to match anywhere in the log message (optional) + * @param int|null $limit Maximum number of log entries to return per page (default 50) (optional, default to 50) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string|null $order Sort order. desc returns newest first, asc returns oldest first. (optional, default to 'desc') + * @param bool|null $include_total When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getEnvironmentLogs'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of \QuantClient\Model\GetEnvironmentLogs200Response, HTTP status code, HTTP response headers (array of strings) */ - public function getEnvironmentLogsWithHttpInfo($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = null, $next_token = null, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) + public function getEnvironmentLogsWithHttpInfo($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = 50, $next_token = null, $order = 'desc', $include_total = false, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) { - $request = $this->getEnvironmentLogsRequest($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $contentType); + $request = $this->getEnvironmentLogsRequest($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -1181,17 +1185,19 @@ public function getEnvironmentLogsWithHttpInfo($organisation, $application, $env * @param string|null $start_time Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $end_time End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $container_name Filter logs by specific container name (optional) - * @param string|null $filter_pattern CloudWatch Logs filter pattern for searching log content (optional) - * @param int|null $limit Maximum number of log entries to return per page (optional) - * @param string|null $next_token Pagination token from previous response for retrieving next page of results (optional) + * @param string|null $filter_pattern Literal, case-sensitive text to match anywhere in the log message (optional) + * @param int|null $limit Maximum number of log entries to return per page (default 50) (optional, default to 50) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string|null $order Sort order. desc returns newest first, asc returns oldest first. (optional, default to 'desc') + * @param bool|null $include_total When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getEnvironmentLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEnvironmentLogsAsync($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = null, $next_token = null, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) + public function getEnvironmentLogsAsync($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = 50, $next_token = null, $order = 'desc', $include_total = false, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) { - return $this->getEnvironmentLogsAsyncWithHttpInfo($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $contentType) + return $this->getEnvironmentLogsAsyncWithHttpInfo($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total, $contentType) ->then( function ($response) { return $response[0]; @@ -1210,18 +1216,20 @@ function ($response) { * @param string|null $start_time Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $end_time End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $container_name Filter logs by specific container name (optional) - * @param string|null $filter_pattern CloudWatch Logs filter pattern for searching log content (optional) - * @param int|null $limit Maximum number of log entries to return per page (optional) - * @param string|null $next_token Pagination token from previous response for retrieving next page of results (optional) + * @param string|null $filter_pattern Literal, case-sensitive text to match anywhere in the log message (optional) + * @param int|null $limit Maximum number of log entries to return per page (default 50) (optional, default to 50) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string|null $order Sort order. desc returns newest first, asc returns oldest first. (optional, default to 'desc') + * @param bool|null $include_total When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getEnvironmentLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEnvironmentLogsAsyncWithHttpInfo($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = null, $next_token = null, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) + public function getEnvironmentLogsAsyncWithHttpInfo($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = 50, $next_token = null, $order = 'desc', $include_total = false, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) { $returnType = '\QuantClient\Model\GetEnvironmentLogs200Response'; - $request = $this->getEnvironmentLogsRequest($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $contentType); + $request = $this->getEnvironmentLogsRequest($organisation, $application, $environment, $start_time, $end_time, $container_name, $filter_pattern, $limit, $next_token, $order, $include_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1268,15 +1276,17 @@ function ($exception) { * @param string|null $start_time Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $end_time End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) * @param string|null $container_name Filter logs by specific container name (optional) - * @param string|null $filter_pattern CloudWatch Logs filter pattern for searching log content (optional) - * @param int|null $limit Maximum number of log entries to return per page (optional) - * @param string|null $next_token Pagination token from previous response for retrieving next page of results (optional) + * @param string|null $filter_pattern Literal, case-sensitive text to match anywhere in the log message (optional) + * @param int|null $limit Maximum number of log entries to return per page (default 50) (optional, default to 50) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string|null $order Sort order. desc returns newest first, asc returns oldest first. (optional, default to 'desc') + * @param bool|null $include_total When true, the response pagination object includes the total log count for the time range. Adds 1-2 seconds of latency. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getEnvironmentLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getEnvironmentLogsRequest($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = null, $next_token = null, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) + public function getEnvironmentLogsRequest($organisation, $application, $environment, $start_time = null, $end_time = null, $container_name = null, $filter_pattern = null, $limit = 50, $next_token = null, $order = 'desc', $include_total = false, string $contentType = self::contentTypes['getEnvironmentLogs'][0]) { // verify the required parameter 'organisation' is set @@ -1304,8 +1314,8 @@ public function getEnvironmentLogsRequest($organisation, $application, $environm - if ($limit !== null && $limit > 10000) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling EnvironmentsApi.getEnvironmentLogs, must be smaller than or equal to 10000.'); + if ($limit !== null && $limit > 1000) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling EnvironmentsApi.getEnvironmentLogs, must be smaller than or equal to 1000.'); } if ($limit !== null && $limit < 1) { throw new \InvalidArgumentException('invalid value for "$limit" when calling EnvironmentsApi.getEnvironmentLogs, must be bigger than or equal to 1.'); @@ -1313,6 +1323,8 @@ public function getEnvironmentLogsRequest($organisation, $application, $environm + + $resourcePath = '/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs'; $formParams = []; $queryParams = []; @@ -1374,6 +1386,24 @@ public function getEnvironmentLogsRequest($organisation, $application, $environm true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $order, + 'order', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $include_total, + 'includeTotal', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params diff --git a/src/Api/KVApi.php b/src/Api/KVApi.php index c01d13ce..e1282867 100644 --- a/src/Api/KVApi.php +++ b/src/Api/KVApi.php @@ -89,6 +89,9 @@ class KVApi 'kVItemsList' => [ 'application/json', ], + 'kVItemsPurge' => [ + 'application/json', + ], 'kVItemsShow' => [ 'application/json', ], @@ -502,15 +505,16 @@ public function kVCreateRequest($organization, $project, $v2_store_request, stri * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $store_id store_id (required) + * @param bool|null $force Delete the store even if it still holds keys. Without it a non-empty store returns 409. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return void */ - public function kVDelete($organization, $project, $store_id, string $contentType = self::contentTypes['kVDelete'][0]) + public function kVDelete($organization, $project, $store_id, $force = false, string $contentType = self::contentTypes['kVDelete'][0]) { - $this->kVDeleteWithHttpInfo($organization, $project, $store_id, $contentType); + $this->kVDeleteWithHttpInfo($organization, $project, $store_id, $force, $contentType); } /** @@ -521,15 +525,16 @@ public function kVDelete($organization, $project, $store_id, string $contentType * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $store_id (required) + * @param bool|null $force Delete the store even if it still holds keys. Without it a non-empty store returns 409. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function kVDeleteWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVDelete'][0]) + public function kVDeleteWithHttpInfo($organization, $project, $store_id, $force = false, string $contentType = self::contentTypes['kVDelete'][0]) { - $request = $this->kVDeleteRequest($organization, $project, $store_id, $contentType); + $request = $this->kVDeleteRequest($organization, $project, $store_id, $force, $contentType); try { $options = $this->createHttpClientOption(); @@ -565,6 +570,14 @@ public function kVDeleteWithHttpInfo($organization, $project, $store_id, string ); $e->setResponseObject($data); throw $e; + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\KVDelete409Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -588,14 +601,15 @@ public function kVDeleteWithHttpInfo($organization, $project, $store_id, string * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $store_id (required) + * @param bool|null $force Delete the store even if it still holds keys. Without it a non-empty store returns 409. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVDeleteAsync($organization, $project, $store_id, string $contentType = self::contentTypes['kVDelete'][0]) + public function kVDeleteAsync($organization, $project, $store_id, $force = false, string $contentType = self::contentTypes['kVDelete'][0]) { - return $this->kVDeleteAsyncWithHttpInfo($organization, $project, $store_id, $contentType) + return $this->kVDeleteAsyncWithHttpInfo($organization, $project, $store_id, $force, $contentType) ->then( function ($response) { return $response[0]; @@ -611,15 +625,16 @@ function ($response) { * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $store_id (required) + * @param bool|null $force Delete the store even if it still holds keys. Without it a non-empty store returns 409. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVDeleteAsyncWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVDelete'][0]) + public function kVDeleteAsyncWithHttpInfo($organization, $project, $store_id, $force = false, string $contentType = self::contentTypes['kVDelete'][0]) { $returnType = ''; - $request = $this->kVDeleteRequest($organization, $project, $store_id, $contentType); + $request = $this->kVDeleteRequest($organization, $project, $store_id, $force, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -650,12 +665,13 @@ function ($exception) { * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $store_id (required) + * @param bool|null $force Delete the store even if it still holds keys. Without it a non-empty store returns 409. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function kVDeleteRequest($organization, $project, $store_id, string $contentType = self::contentTypes['kVDelete'][0]) + public function kVDeleteRequest($organization, $project, $store_id, $force = false, string $contentType = self::contentTypes['kVDelete'][0]) { // verify the required parameter 'organization' is set @@ -680,6 +696,7 @@ public function kVDeleteRequest($organization, $project, $store_id, string $cont } + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}'; $formParams = []; $queryParams = []; @@ -687,6 +704,15 @@ public function kVDeleteRequest($organization, $project, $store_id, string $cont $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $force, + 'force', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -1905,6 +1931,390 @@ public function kVItemsListRequest($organization, $project, $store_id, $cursor = ); } + /** + * Operation kVItemsPurge + * + * Delete items in bulk by prefix and/or age + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id store_id (required) + * @param string|null $prefix Only delete keys that start with this string. (optional) + * @param string|null $older_than Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsPurge'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\KVItemsPurge200Response|\QuantClient\Model\KVItemsPurge202Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + */ + public function kVItemsPurge($organization, $project, $store_id, $prefix = null, $older_than = null, string $contentType = self::contentTypes['kVItemsPurge'][0]) + { + list($response) = $this->kVItemsPurgeWithHttpInfo($organization, $project, $store_id, $prefix, $older_than, $contentType); + return $response; + } + + /** + * Operation kVItemsPurgeWithHttpInfo + * + * Delete items in bulk by prefix and/or age + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string|null $prefix Only delete keys that start with this string. (optional) + * @param string|null $older_than Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsPurge'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\KVItemsPurge200Response|\QuantClient\Model\KVItemsPurge202Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + */ + public function kVItemsPurgeWithHttpInfo($organization, $project, $store_id, $prefix = null, $older_than = null, string $contentType = self::contentTypes['kVItemsPurge'][0]) + { + $request = $this->kVItemsPurgeRequest($organization, $project, $store_id, $prefix, $older_than, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\KVItemsPurge200Response', + $request, + $response, + ); + case 202: + return $this->handleResponseWithDataType( + '\QuantClient\Model\KVItemsPurge202Response', + $request, + $response, + ); + case 400: + return $this->handleResponseWithDataType( + '\QuantClient\Model\V2Error', + $request, + $response, + ); + case 403: + return $this->handleResponseWithDataType( + '\QuantClient\Model\V2Error', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\KVItemsPurge200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\KVItemsPurge200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 202: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\KVItemsPurge202Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2Error', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2Error', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation kVItemsPurgeAsync + * + * Delete items in bulk by prefix and/or age + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string|null $prefix Only delete keys that start with this string. (optional) + * @param string|null $older_than Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsPurge'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVItemsPurgeAsync($organization, $project, $store_id, $prefix = null, $older_than = null, string $contentType = self::contentTypes['kVItemsPurge'][0]) + { + return $this->kVItemsPurgeAsyncWithHttpInfo($organization, $project, $store_id, $prefix, $older_than, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation kVItemsPurgeAsyncWithHttpInfo + * + * Delete items in bulk by prefix and/or age + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string|null $prefix Only delete keys that start with this string. (optional) + * @param string|null $older_than Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsPurge'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVItemsPurgeAsyncWithHttpInfo($organization, $project, $store_id, $prefix = null, $older_than = null, string $contentType = self::contentTypes['kVItemsPurge'][0]) + { + $returnType = '\QuantClient\Model\KVItemsPurge200Response'; + $request = $this->kVItemsPurgeRequest($organization, $project, $store_id, $prefix, $older_than, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'kVItemsPurge' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string|null $prefix Only delete keys that start with this string. (optional) + * @param string|null $older_than Only delete keys last updated before this instant. ISO 8601, or a duration with unit s, m, h or d. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsPurge'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function kVItemsPurgeRequest($organization, $project, $store_id, $prefix = null, $older_than = null, string $contentType = self::contentTypes['kVItemsPurge'][0]) + { + + // verify the required parameter 'organization' is set + if ($organization === null || (is_array($organization) && count($organization) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organization when calling kVItemsPurge' + ); + } + + // verify the required parameter 'project' is set + if ($project === null || (is_array($project) && count($project) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $project when calling kVItemsPurge' + ); + } + + // verify the required parameter 'store_id' is set + if ($store_id === null || (is_array($store_id) && count($store_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $store_id when calling kVItemsPurge' + ); + } + + + + + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $prefix, + 'prefix', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $older_than, + 'older_than', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organization !== null) { + $resourcePath = str_replace( + '{' . 'organization' . '}', + ObjectSerializer::toPathValue($organization), + $resourcePath + ); + } + // path params + if ($project !== null) { + $resourcePath = str_replace( + '{' . 'project' . '}', + ObjectSerializer::toPathValue($project), + $resourcePath + ); + } + // path params + if ($store_id !== null) { + $resourcePath = str_replace( + '{' . 'store_id' . '}', + ObjectSerializer::toPathValue($store_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation kVItemsShow * diff --git a/src/Api/ProjectsApi.php b/src/Api/ProjectsApi.php index 16d470a3..6a0c0e86 100644 --- a/src/Api/ProjectsApi.php +++ b/src/Api/ProjectsApi.php @@ -74,6 +74,9 @@ class ProjectsApi /** @var string[] $contentTypes **/ public const contentTypes = [ + 'getProjectLogs' => [ + 'application/json', + ], 'projectsCreate' => [ 'application/json', ], @@ -137,6 +140,422 @@ public function getConfig() return $this->config; } + /** + * Operation getProjectLogs + * + * Get CDN access logs for a project + * + * @param string $organization The organization machine name (required) + * @param string $project The project machine name (required) + * @param int|null $limit Maximum number of log entries to return per page (default 100) (optional, default to 100) + * @param string|null $start_time Start of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $end_time End of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $filter CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. (optional) + * @param string|null $domain Only return entries for this domain (optional) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getProjectLogs'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetProjectLogs200Response|\QuantClient\Model\GetProjectLogs400Response|\QuantClient\Model\GetProjectLogs400Response + */ + public function getProjectLogs($organization, $project, $limit = 100, $start_time = null, $end_time = null, $filter = null, $domain = null, $next_token = null, string $contentType = self::contentTypes['getProjectLogs'][0]) + { + list($response) = $this->getProjectLogsWithHttpInfo($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token, $contentType); + return $response; + } + + /** + * Operation getProjectLogsWithHttpInfo + * + * Get CDN access logs for a project + * + * @param string $organization The organization machine name (required) + * @param string $project The project machine name (required) + * @param int|null $limit Maximum number of log entries to return per page (default 100) (optional, default to 100) + * @param string|null $start_time Start of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $end_time End of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $filter CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. (optional) + * @param string|null $domain Only return entries for this domain (optional) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getProjectLogs'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetProjectLogs200Response|\QuantClient\Model\GetProjectLogs400Response|\QuantClient\Model\GetProjectLogs400Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getProjectLogsWithHttpInfo($organization, $project, $limit = 100, $start_time = null, $end_time = null, $filter = null, $domain = null, $next_token = null, string $contentType = self::contentTypes['getProjectLogs'][0]) + { + $request = $this->getProjectLogsRequest($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetProjectLogs200Response', + $request, + $response, + ); + case 400: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetProjectLogs400Response', + $request, + $response, + ); + case 404: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetProjectLogs400Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetProjectLogs200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetProjectLogs200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetProjectLogs400Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetProjectLogs400Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getProjectLogsAsync + * + * Get CDN access logs for a project + * + * @param string $organization The organization machine name (required) + * @param string $project The project machine name (required) + * @param int|null $limit Maximum number of log entries to return per page (default 100) (optional, default to 100) + * @param string|null $start_time Start of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $end_time End of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $filter CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. (optional) + * @param string|null $domain Only return entries for this domain (optional) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getProjectLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProjectLogsAsync($organization, $project, $limit = 100, $start_time = null, $end_time = null, $filter = null, $domain = null, $next_token = null, string $contentType = self::contentTypes['getProjectLogs'][0]) + { + return $this->getProjectLogsAsyncWithHttpInfo($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getProjectLogsAsyncWithHttpInfo + * + * Get CDN access logs for a project + * + * @param string $organization The organization machine name (required) + * @param string $project The project machine name (required) + * @param int|null $limit Maximum number of log entries to return per page (default 100) (optional, default to 100) + * @param string|null $start_time Start of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $end_time End of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $filter CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. (optional) + * @param string|null $domain Only return entries for this domain (optional) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getProjectLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getProjectLogsAsyncWithHttpInfo($organization, $project, $limit = 100, $start_time = null, $end_time = null, $filter = null, $domain = null, $next_token = null, string $contentType = self::contentTypes['getProjectLogs'][0]) + { + $returnType = '\QuantClient\Model\GetProjectLogs200Response'; + $request = $this->getProjectLogsRequest($organization, $project, $limit, $start_time, $end_time, $filter, $domain, $next_token, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getProjectLogs' + * + * @param string $organization The organization machine name (required) + * @param string $project The project machine name (required) + * @param int|null $limit Maximum number of log entries to return per page (default 100) (optional, default to 100) + * @param string|null $start_time Start of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $end_time End of the time range. ISO 8601 or Unix epoch milliseconds. (optional) + * @param string|null $filter CloudWatch JSON filter expression AND-ed with the project constraint, e.g. $.status_code = 404. Outer braces are optional; nested braces are rejected. (optional) + * @param string|null $domain Only return entries for this domain (optional) + * @param string|null $next_token Opaque pagination token from the previous response. Pass back unchanged to fetch the next page. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getProjectLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getProjectLogsRequest($organization, $project, $limit = 100, $start_time = null, $end_time = null, $filter = null, $domain = null, $next_token = null, string $contentType = self::contentTypes['getProjectLogs'][0]) + { + + // verify the required parameter 'organization' is set + if ($organization === null || (is_array($organization) && count($organization) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organization when calling getProjectLogs' + ); + } + + // verify the required parameter 'project' is set + if ($project === null || (is_array($project) && count($project) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $project when calling getProjectLogs' + ); + } + + if ($limit !== null && $limit > 10000) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling ProjectsApi.getProjectLogs, must be smaller than or equal to 10000.'); + } + if ($limit !== null && $limit < 1) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling ProjectsApi.getProjectLogs, must be bigger than or equal to 1.'); + } + + + + + + + + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/logs'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $limit, + 'limit', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start_time, + 'startTime', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end_time, + 'endTime', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $filter, + 'filter', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $domain, + 'domain', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $next_token, + 'nextToken', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organization !== null) { + $resourcePath = str_replace( + '{' . 'organization' . '}', + ObjectSerializer::toPathValue($organization), + $resourcePath + ); + } + // path params + if ($project !== null) { + $resourcePath = str_replace( + '{' . 'project' . '}', + ObjectSerializer::toPathValue($project), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation projectsCreate * diff --git a/src/Api/ResourcesApi.php b/src/Api/ResourcesApi.php index 77d7914a..c33d0007 100644 --- a/src/Api/ResourcesApi.php +++ b/src/Api/ResourcesApi.php @@ -89,9 +89,15 @@ class ResourcesApi 'getOrgResource' => [ 'application/json', ], + 'getOrgResourceCredentials' => [ + 'application/json', + ], 'listOrgResources' => [ 'application/json', ], + 'purgeOrgResource' => [ + 'application/json', + ], ]; /** @@ -1574,38 +1580,40 @@ public function getOrgResourceRequest($organisation, $resource, string $contentT } /** - * Operation listOrgResources + * Operation getOrgResourceCredentials * - * List an organisation's shared resources + * Get a cache's administrative credential * * @param string $organisation The organisation ID (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResourceCredentials'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\OrgResource[] + * @return \QuantClient\Model\GetOrgResourceCredentials200Response */ - public function listOrgResources($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + public function getOrgResourceCredentials($organisation, $resource, string $contentType = self::contentTypes['getOrgResourceCredentials'][0]) { - list($response) = $this->listOrgResourcesWithHttpInfo($organisation, $contentType); + list($response) = $this->getOrgResourceCredentialsWithHttpInfo($organisation, $resource, $contentType); return $response; } /** - * Operation listOrgResourcesWithHttpInfo + * Operation getOrgResourceCredentialsWithHttpInfo * - * List an organisation's shared resources + * Get a cache's administrative credential * * @param string $organisation The organisation ID (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResourceCredentials'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\OrgResource[], HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\GetOrgResourceCredentials200Response, HTTP status code, HTTP response headers (array of strings) */ - public function listOrgResourcesWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + public function getOrgResourceCredentialsWithHttpInfo($organisation, $resource, string $contentType = self::contentTypes['getOrgResourceCredentials'][0]) { - $request = $this->listOrgResourcesRequest($organisation, $contentType); + $request = $this->getOrgResourceCredentialsRequest($organisation, $resource, $contentType); try { $options = $this->createHttpClientOption(); @@ -1633,7 +1641,7 @@ public function listOrgResourcesWithHttpInfo($organisation, string $contentType switch($statusCode) { case 200: return $this->handleResponseWithDataType( - '\QuantClient\Model\OrgResource[]', + '\QuantClient\Model\GetOrgResourceCredentials200Response', $request, $response, ); @@ -1655,7 +1663,7 @@ public function listOrgResourcesWithHttpInfo($organisation, string $contentType } return $this->handleResponseWithDataType( - '\QuantClient\Model\OrgResource[]', + '\QuantClient\Model\GetOrgResourceCredentials200Response', $request, $response, ); @@ -1664,7 +1672,7 @@ public function listOrgResourcesWithHttpInfo($organisation, string $contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\QuantClient\Model\OrgResource[]', + '\QuantClient\Model\GetOrgResourceCredentials200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1677,19 +1685,20 @@ public function listOrgResourcesWithHttpInfo($organisation, string $contentType } /** - * Operation listOrgResourcesAsync + * Operation getOrgResourceCredentialsAsync * - * List an organisation's shared resources + * Get a cache's administrative credential * * @param string $organisation The organisation ID (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResourceCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listOrgResourcesAsync($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + public function getOrgResourceCredentialsAsync($organisation, $resource, string $contentType = self::contentTypes['getOrgResourceCredentials'][0]) { - return $this->listOrgResourcesAsyncWithHttpInfo($organisation, $contentType) + return $this->getOrgResourceCredentialsAsyncWithHttpInfo($organisation, $resource, $contentType) ->then( function ($response) { return $response[0]; @@ -1698,20 +1707,21 @@ function ($response) { } /** - * Operation listOrgResourcesAsyncWithHttpInfo + * Operation getOrgResourceCredentialsAsyncWithHttpInfo * - * List an organisation's shared resources + * Get a cache's administrative credential * * @param string $organisation The organisation ID (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResourceCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listOrgResourcesAsyncWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + public function getOrgResourceCredentialsAsyncWithHttpInfo($organisation, $resource, string $contentType = self::contentTypes['getOrgResourceCredentials'][0]) { - $returnType = '\QuantClient\Model\OrgResource[]'; - $request = $this->listOrgResourcesRequest($organisation, $contentType); + $returnType = '\QuantClient\Model\GetOrgResourceCredentials200Response'; + $request = $this->getOrgResourceCredentialsRequest($organisation, $resource, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1750,26 +1760,34 @@ function ($exception) { } /** - * Create request for operation 'listOrgResources' + * Create request for operation 'getOrgResourceCredentials' * * @param string $organisation The organisation ID (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * @param string $resource The resource ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrgResourceCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listOrgResourcesRequest($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + public function getOrgResourceCredentialsRequest($organisation, $resource, string $contentType = self::contentTypes['getOrgResourceCredentials'][0]) { // verify the required parameter 'organisation' is set if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $organisation when calling listOrgResources' + 'Missing the required parameter $organisation when calling getOrgResourceCredentials' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling getOrgResourceCredentials' ); } - $resourcePath = '/api/v3/organizations/{organisation}/resources'; + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}/credentials'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1786,6 +1804,14 @@ public function listOrgResourcesRequest($organisation, string $contentType = sel $resourcePath ); } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -1845,6 +1871,589 @@ public function listOrgResourcesRequest($organisation, string $contentType = sel ); } + /** + * Operation listOrgResources + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\OrgResource[] + */ + public function listOrgResources($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + list($response) = $this->listOrgResourcesWithHttpInfo($organisation, $contentType); + return $response; + } + + /** + * Operation listOrgResourcesWithHttpInfo + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\OrgResource[], HTTP status code, HTTP response headers (array of strings) + */ + public function listOrgResourcesWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + $request = $this->listOrgResourcesRequest($organisation, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource[]', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\OrgResource[]', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\OrgResource[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listOrgResourcesAsync + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrgResourcesAsync($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + return $this->listOrgResourcesAsyncWithHttpInfo($organisation, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listOrgResourcesAsyncWithHttpInfo + * + * List an organisation's shared resources + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrgResourcesAsyncWithHttpInfo($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + $returnType = '\QuantClient\Model\OrgResource[]'; + $request = $this->listOrgResourcesRequest($organisation, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listOrgResources' + * + * @param string $organisation The organisation ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrgResources'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listOrgResourcesRequest($organisation, string $contentType = self::contentTypes['listOrgResources'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling listOrgResources' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation purgeOrgResource + * + * Purge keys from a cache + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\PurgeOrgResourceRequest $purge_org_resource_request purge_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\PurgeOrgResource200Response + */ + public function purgeOrgResource($organisation, $resource, $purge_org_resource_request, string $contentType = self::contentTypes['purgeOrgResource'][0]) + { + list($response) = $this->purgeOrgResourceWithHttpInfo($organisation, $resource, $purge_org_resource_request, $contentType); + return $response; + } + + /** + * Operation purgeOrgResourceWithHttpInfo + * + * Purge keys from a cache + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\PurgeOrgResourceRequest $purge_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeOrgResource'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\PurgeOrgResource200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function purgeOrgResourceWithHttpInfo($organisation, $resource, $purge_org_resource_request, string $contentType = self::contentTypes['purgeOrgResource'][0]) + { + $request = $this->purgeOrgResourceRequest($organisation, $resource, $purge_org_resource_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\PurgeOrgResource200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\PurgeOrgResource200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\PurgeOrgResource200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation purgeOrgResourceAsync + * + * Purge keys from a cache + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\PurgeOrgResourceRequest $purge_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function purgeOrgResourceAsync($organisation, $resource, $purge_org_resource_request, string $contentType = self::contentTypes['purgeOrgResource'][0]) + { + return $this->purgeOrgResourceAsyncWithHttpInfo($organisation, $resource, $purge_org_resource_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation purgeOrgResourceAsyncWithHttpInfo + * + * Purge keys from a cache + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\PurgeOrgResourceRequest $purge_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function purgeOrgResourceAsyncWithHttpInfo($organisation, $resource, $purge_org_resource_request, string $contentType = self::contentTypes['purgeOrgResource'][0]) + { + $returnType = '\QuantClient\Model\PurgeOrgResource200Response'; + $request = $this->purgeOrgResourceRequest($organisation, $resource, $purge_org_resource_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'purgeOrgResource' + * + * @param string $organisation The organisation ID (required) + * @param string $resource The resource ID (required) + * @param \QuantClient\Model\PurgeOrgResourceRequest $purge_org_resource_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeOrgResource'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function purgeOrgResourceRequest($organisation, $resource, $purge_org_resource_request, string $contentType = self::contentTypes['purgeOrgResource'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling purgeOrgResource' + ); + } + + // verify the required parameter 'resource' is set + if ($resource === null || (is_array($resource) && count($resource) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $resource when calling purgeOrgResource' + ); + } + + // verify the required parameter 'purge_org_resource_request' is set + if ($purge_org_resource_request === null || (is_array($purge_org_resource_request) && count($purge_org_resource_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $purge_org_resource_request when calling purgeOrgResource' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/resources/{resource}/purge'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($resource !== null) { + $resourcePath = str_replace( + '{' . 'resource' . '}', + ObjectSerializer::toPathValue($resource), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($purge_org_resource_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($purge_org_resource_request)); + } else { + $httpBody = $purge_org_resource_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Create http client option * diff --git a/src/Model/AttachOrgResourceRequest.php b/src/Model/AttachOrgResourceRequest.php index af176826..9c65149c 100644 --- a/src/Model/AttachOrgResourceRequest.php +++ b/src/Model/AttachOrgResourceRequest.php @@ -59,7 +59,8 @@ class AttachOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static $openAPITypes = [ 'application' => 'string', 'environment' => 'string', - 'env_var_prefix' => 'string' + 'env_var_prefix' => 'string', + 'access_level' => 'string' ]; /** @@ -72,7 +73,8 @@ class AttachOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static $openAPIFormats = [ 'application' => null, 'environment' => null, - 'env_var_prefix' => null + 'env_var_prefix' => null, + 'access_level' => null ]; /** @@ -83,7 +85,8 @@ class AttachOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static array $openAPINullables = [ 'application' => false, 'environment' => false, - 'env_var_prefix' => false + 'env_var_prefix' => false, + 'access_level' => false ]; /** @@ -174,7 +177,8 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'application' => 'application', 'environment' => 'environment', - 'env_var_prefix' => 'envVarPrefix' + 'env_var_prefix' => 'envVarPrefix', + 'access_level' => 'accessLevel' ]; /** @@ -185,7 +189,8 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'application' => 'setApplication', 'environment' => 'setEnvironment', - 'env_var_prefix' => 'setEnvVarPrefix' + 'env_var_prefix' => 'setEnvVarPrefix', + 'access_level' => 'setAccessLevel' ]; /** @@ -196,7 +201,8 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'application' => 'getApplication', 'environment' => 'getEnvironment', - 'env_var_prefix' => 'getEnvVarPrefix' + 'env_var_prefix' => 'getEnvVarPrefix', + 'access_level' => 'getAccessLevel' ]; /** @@ -240,6 +246,21 @@ public function getModelName() return self::$openAPIModelName; } + public const ACCESS_LEVEL_SCOPED = 'scoped'; + public const ACCESS_LEVEL_ADMIN = 'admin'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessLevelAllowableValues() + { + return [ + self::ACCESS_LEVEL_SCOPED, + self::ACCESS_LEVEL_ADMIN, + ]; + } /** * Associative array for storing property values @@ -259,6 +280,7 @@ public function __construct(?array $data = null) $this->setIfExists('application', $data ?? [], null); $this->setIfExists('environment', $data ?? [], null); $this->setIfExists('env_var_prefix', $data ?? [], null); + $this->setIfExists('access_level', $data ?? [], 'scoped'); } /** @@ -294,6 +316,15 @@ public function listInvalidProperties() if ($this->container['environment'] === null) { $invalidProperties[] = "'environment' can't be null"; } + $allowedValues = $this->getAccessLevelAllowableValues(); + if (!is_null($this->container['access_level']) && !in_array($this->container['access_level'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'access_level', must be one of '%s'", + $this->container['access_level'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -389,6 +420,43 @@ public function setEnvVarPrefix($env_var_prefix) return $this; } + + /** + * Gets access_level + * + * @return string|null + */ + public function getAccessLevel() + { + return $this->container['access_level']; + } + + /** + * Sets access_level + * + * @param string|null $access_level Cache only. scoped injects an RBAC user limited to this environment's CACHE_PREFIX (plain and {hash-tag} forms) with FLUSHALL and FLUSHDB denied. admin injects the cache-wide credential for integrations that require FLUSHDB, such as Laravel Cache::flush() or the WordPress object cache without selective flush; it can read, write and flush every attached environment's keys. + * + * @return self + */ + public function setAccessLevel($access_level) + { + if (is_null($access_level)) { + throw new \InvalidArgumentException('non-nullable access_level cannot be null'); + } + $allowedValues = $this->getAccessLevelAllowableValues(); + if (!in_array($access_level, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'access_level', must be one of '%s'", + $access_level, + implode("', '", $allowedValues) + ) + ); + } + $this->container['access_level'] = $access_level; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/GetEnvironmentLogs200Response.php b/src/Model/GetEnvironmentLogs200Response.php index d9e8e120..e70f2324 100644 --- a/src/Model/GetEnvironmentLogs200Response.php +++ b/src/Model/GetEnvironmentLogs200Response.php @@ -58,6 +58,8 @@ class GetEnvironmentLogs200Response implements ModelInterface, ArrayAccess, \Jso */ protected static $openAPITypes = [ 'log_events' => '\QuantClient\Model\GetEnvironmentLogs200ResponseLogEventsInner[]', + 'log_group_name' => 'string', + 'pagination' => '\QuantClient\Model\GetEnvironmentLogs200ResponsePagination', 'next_token' => 'string' ]; @@ -70,6 +72,8 @@ class GetEnvironmentLogs200Response implements ModelInterface, ArrayAccess, \Jso */ protected static $openAPIFormats = [ 'log_events' => null, + 'log_group_name' => null, + 'pagination' => null, 'next_token' => null ]; @@ -80,6 +84,8 @@ class GetEnvironmentLogs200Response implements ModelInterface, ArrayAccess, \Jso */ protected static array $openAPINullables = [ 'log_events' => false, + 'log_group_name' => true, + 'pagination' => false, 'next_token' => true ]; @@ -170,6 +176,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'log_events' => 'logEvents', + 'log_group_name' => 'logGroupName', + 'pagination' => 'pagination', 'next_token' => 'nextToken' ]; @@ -180,6 +188,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'log_events' => 'setLogEvents', + 'log_group_name' => 'setLogGroupName', + 'pagination' => 'setPagination', 'next_token' => 'setNextToken' ]; @@ -190,6 +200,8 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'log_events' => 'getLogEvents', + 'log_group_name' => 'getLogGroupName', + 'pagination' => 'getPagination', 'next_token' => 'getNextToken' ]; @@ -251,6 +263,8 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('log_events', $data ?? [], null); + $this->setIfExists('log_group_name', $data ?? [], null); + $this->setIfExists('pagination', $data ?? [], null); $this->setIfExists('next_token', $data ?? [], null); } @@ -323,6 +337,67 @@ public function setLogEvents($log_events) return $this; } + /** + * Gets log_group_name + * + * @return string|null + */ + public function getLogGroupName() + { + return $this->container['log_group_name']; + } + + /** + * Sets log_group_name + * + * @param string|null $log_group_name CloudWatch log group the events were read from + * + * @return self + */ + public function setLogGroupName($log_group_name) + { + if (is_null($log_group_name)) { + array_push($this->openAPINullablesSetToNull, 'log_group_name'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('log_group_name', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['log_group_name'] = $log_group_name; + + return $this; + } + + /** + * Gets pagination + * + * @return \QuantClient\Model\GetEnvironmentLogs200ResponsePagination|null + */ + public function getPagination() + { + return $this->container['pagination']; + } + + /** + * Sets pagination + * + * @param \QuantClient\Model\GetEnvironmentLogs200ResponsePagination|null $pagination pagination + * + * @return self + */ + public function setPagination($pagination) + { + if (is_null($pagination)) { + throw new \InvalidArgumentException('non-nullable pagination cannot be null'); + } + $this->container['pagination'] = $pagination; + + return $this; + } + /** * Gets next_token * @@ -336,7 +411,7 @@ public function getNextToken() /** * Sets next_token * - * @param string|null $next_token Token for fetching next page of results (null if no more pages) + * @param string|null $next_token Same as pagination.nextToken; kept for backward compatibility * * @return self */ diff --git a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php index f64d3e38..b613f35c 100644 --- a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php +++ b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php @@ -58,7 +58,9 @@ class GetEnvironmentLogs200ResponseLogEventsInner implements ModelInterface, Arr */ protected static $openAPITypes = [ 'timestamp' => 'int', - 'message' => 'string' + 'message' => 'string', + 'ingestion_time' => 'int', + 'log_stream_name' => 'string' ]; /** @@ -69,8 +71,10 @@ class GetEnvironmentLogs200ResponseLogEventsInner implements ModelInterface, Arr * @psalm-var array */ protected static $openAPIFormats = [ - 'timestamp' => null, - 'message' => null + 'timestamp' => 'int64', + 'message' => null, + 'ingestion_time' => 'int64', + 'log_stream_name' => null ]; /** @@ -80,7 +84,9 @@ class GetEnvironmentLogs200ResponseLogEventsInner implements ModelInterface, Arr */ protected static array $openAPINullables = [ 'timestamp' => false, - 'message' => false + 'message' => false, + 'ingestion_time' => true, + 'log_stream_name' => true ]; /** @@ -170,7 +176,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'timestamp' => 'timestamp', - 'message' => 'message' + 'message' => 'message', + 'ingestion_time' => 'ingestionTime', + 'log_stream_name' => 'logStreamName' ]; /** @@ -180,7 +188,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'timestamp' => 'setTimestamp', - 'message' => 'setMessage' + 'message' => 'setMessage', + 'ingestion_time' => 'setIngestionTime', + 'log_stream_name' => 'setLogStreamName' ]; /** @@ -190,7 +200,9 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'timestamp' => 'getTimestamp', - 'message' => 'getMessage' + 'message' => 'getMessage', + 'ingestion_time' => 'getIngestionTime', + 'log_stream_name' => 'getLogStreamName' ]; /** @@ -252,6 +264,8 @@ public function __construct(?array $data = null) { $this->setIfExists('timestamp', $data ?? [], null); $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('ingestion_time', $data ?? [], null); + $this->setIfExists('log_stream_name', $data ?? [], null); } /** @@ -349,6 +363,74 @@ public function setMessage($message) return $this; } + + /** + * Gets ingestion_time + * + * @return int|null + */ + public function getIngestionTime() + { + return $this->container['ingestion_time']; + } + + /** + * Sets ingestion_time + * + * @param int|null $ingestion_time Unix timestamp in milliseconds when CloudWatch ingested the event + * + * @return self + */ + public function setIngestionTime($ingestion_time) + { + if (is_null($ingestion_time)) { + array_push($this->openAPINullablesSetToNull, 'ingestion_time'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('ingestion_time', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['ingestion_time'] = $ingestion_time; + + return $this; + } + + /** + * Gets log_stream_name + * + * @return string|null + */ + public function getLogStreamName() + { + return $this->container['log_stream_name']; + } + + /** + * Sets log_stream_name + * + * @param string|null $log_stream_name CloudWatch log stream, named container/container/taskId + * + * @return self + */ + public function setLogStreamName($log_stream_name) + { + if (is_null($log_stream_name)) { + array_push($this->openAPINullablesSetToNull, 'log_stream_name'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('log_stream_name', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['log_stream_name'] = $log_stream_name; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/GetEnvironmentLogs200ResponsePagination.php b/src/Model/GetEnvironmentLogs200ResponsePagination.php new file mode 100644 index 00000000..abde585b --- /dev/null +++ b/src/Model/GetEnvironmentLogs200ResponsePagination.php @@ -0,0 +1,566 @@ + + */ +class GetEnvironmentLogs200ResponsePagination implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getEnvironmentLogs_200_response_pagination'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'limit' => 'int', + 'has_more' => 'bool', + 'next_token' => 'string', + 'total' => 'int', + 'total_pages' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'limit' => null, + 'has_more' => null, + 'next_token' => null, + 'total' => null, + 'total_pages' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'limit' => false, + 'has_more' => false, + 'next_token' => true, + 'total' => true, + 'total_pages' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'limit' => 'limit', + 'has_more' => 'hasMore', + 'next_token' => 'nextToken', + 'total' => 'total', + 'total_pages' => 'totalPages' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'limit' => 'setLimit', + 'has_more' => 'setHasMore', + 'next_token' => 'setNextToken', + 'total' => 'setTotal', + 'total_pages' => 'setTotalPages' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'limit' => 'getLimit', + 'has_more' => 'getHasMore', + 'next_token' => 'getNextToken', + 'total' => 'getTotal', + 'total_pages' => 'getTotalPages' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('limit', $data ?? [], null); + $this->setIfExists('has_more', $data ?? [], null); + $this->setIfExists('next_token', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); + $this->setIfExists('total_pages', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets limit + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit Page size that was applied + * + * @return self + */ + public function setLimit($limit) + { + if (is_null($limit)) { + throw new \InvalidArgumentException('non-nullable limit cannot be null'); + } + $this->container['limit'] = $limit; + + return $this; + } + + /** + * Gets has_more + * + * @return bool|null + */ + public function getHasMore() + { + return $this->container['has_more']; + } + + /** + * Sets has_more + * + * @param bool|null $has_more True when another page is available + * + * @return self + */ + public function setHasMore($has_more) + { + if (is_null($has_more)) { + throw new \InvalidArgumentException('non-nullable has_more cannot be null'); + } + $this->container['has_more'] = $has_more; + + return $this; + } + + /** + * Gets next_token + * + * @return string|null + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string|null $next_token Token for the next page. Present only when hasMore is true. + * + * @return self + */ + public function setNextToken($next_token) + { + if (is_null($next_token)) { + array_push($this->openAPINullablesSetToNull, 'next_token'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_token', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets total + * + * @return int|null + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int|null $total Total events in the time range. Present only when includeTotal=true. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + array_push($this->openAPINullablesSetToNull, 'total'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('total', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['total'] = $total; + + return $this; + } + + /** + * Gets total_pages + * + * @return int|null + */ + public function getTotalPages() + { + return $this->container['total_pages']; + } + + /** + * Sets total_pages + * + * @param int|null $total_pages ceil(total / limit). Present only when includeTotal=true. + * + * @return self + */ + public function setTotalPages($total_pages) + { + if (is_null($total_pages)) { + array_push($this->openAPINullablesSetToNull, 'total_pages'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('total_pages', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['total_pages'] = $total_pages; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetOrgResourceCredentials200Response.php b/src/Model/GetOrgResourceCredentials200Response.php new file mode 100644 index 00000000..de0cb1b5 --- /dev/null +++ b/src/Model/GetOrgResourceCredentials200Response.php @@ -0,0 +1,579 @@ + + */ +class GetOrgResourceCredentials200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getOrgResourceCredentials_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'host' => 'string', + 'port' => 'int', + 'tls' => 'bool', + 'username' => 'string', + 'password' => 'string', + 'note' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'host' => null, + 'port' => null, + 'tls' => null, + 'username' => null, + 'password' => null, + 'note' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'host' => false, + 'port' => false, + 'tls' => false, + 'username' => false, + 'password' => false, + 'note' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'host' => 'host', + 'port' => 'port', + 'tls' => 'tls', + 'username' => 'username', + 'password' => 'password', + 'note' => 'note' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'host' => 'setHost', + 'port' => 'setPort', + 'tls' => 'setTls', + 'username' => 'setUsername', + 'password' => 'setPassword', + 'note' => 'setNote' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'host' => 'getHost', + 'port' => 'getPort', + 'tls' => 'getTls', + 'username' => 'getUsername', + 'password' => 'getPassword', + 'note' => 'getNote' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('host', $data ?? [], null); + $this->setIfExists('port', $data ?? [], null); + $this->setIfExists('tls', $data ?? [], null); + $this->setIfExists('username', $data ?? [], null); + $this->setIfExists('password', $data ?? [], null); + $this->setIfExists('note', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets host + * + * @return string|null + */ + public function getHost() + { + return $this->container['host']; + } + + /** + * Sets host + * + * @param string|null $host host + * + * @return self + */ + public function setHost($host) + { + if (is_null($host)) { + throw new \InvalidArgumentException('non-nullable host cannot be null'); + } + $this->container['host'] = $host; + + return $this; + } + + /** + * Gets port + * + * @return int|null + */ + public function getPort() + { + return $this->container['port']; + } + + /** + * Sets port + * + * @param int|null $port port + * + * @return self + */ + public function setPort($port) + { + if (is_null($port)) { + throw new \InvalidArgumentException('non-nullable port cannot be null'); + } + $this->container['port'] = $port; + + return $this; + } + + /** + * Gets tls + * + * @return bool|null + */ + public function getTls() + { + return $this->container['tls']; + } + + /** + * Sets tls + * + * @param bool|null $tls tls + * + * @return self + */ + public function setTls($tls) + { + if (is_null($tls)) { + throw new \InvalidArgumentException('non-nullable tls cannot be null'); + } + $this->container['tls'] = $tls; + + return $this; + } + + /** + * Gets username + * + * @return string|null + */ + public function getUsername() + { + return $this->container['username']; + } + + /** + * Sets username + * + * @param string|null $username username + * + * @return self + */ + public function setUsername($username) + { + if (is_null($username)) { + throw new \InvalidArgumentException('non-nullable username cannot be null'); + } + $this->container['username'] = $username; + + return $this; + } + + /** + * Gets password + * + * @return string|null + */ + public function getPassword() + { + return $this->container['password']; + } + + /** + * Sets password + * + * @param string|null $password password + * + * @return self + */ + public function setPassword($password) + { + if (is_null($password)) { + throw new \InvalidArgumentException('non-nullable password cannot be null'); + } + $this->container['password'] = $password; + + return $this; + } + + /** + * Gets note + * + * @return string|null + */ + public function getNote() + { + return $this->container['note']; + } + + /** + * Sets note + * + * @param string|null $note note + * + * @return self + */ + public function setNote($note) + { + if (is_null($note)) { + throw new \InvalidArgumentException('non-nullable note cannot be null'); + } + $this->container['note'] = $note; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetProjectLogs200Response.php b/src/Model/GetProjectLogs200Response.php new file mode 100644 index 00000000..3f94165d --- /dev/null +++ b/src/Model/GetProjectLogs200Response.php @@ -0,0 +1,484 @@ + + */ +class GetProjectLogs200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getProjectLogs_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'logs' => '\QuantClient\Model\GetProjectLogs200ResponseLogsInner[]', + 'count' => 'int', + 'next_token' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'logs' => null, + 'count' => null, + 'next_token' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'logs' => false, + 'count' => false, + 'next_token' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'logs' => 'logs', + 'count' => 'count', + 'next_token' => 'nextToken' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'logs' => 'setLogs', + 'count' => 'setCount', + 'next_token' => 'setNextToken' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'logs' => 'getLogs', + 'count' => 'getCount', + 'next_token' => 'getNextToken' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('logs', $data ?? [], null); + $this->setIfExists('count', $data ?? [], null); + $this->setIfExists('next_token', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets logs + * + * @return \QuantClient\Model\GetProjectLogs200ResponseLogsInner[]|null + */ + public function getLogs() + { + return $this->container['logs']; + } + + /** + * Sets logs + * + * @param \QuantClient\Model\GetProjectLogs200ResponseLogsInner[]|null $logs Structured CloudFront access log entries. Each entry carries request, response, timing and cache fields as emitted by the edge. + * + * @return self + */ + public function setLogs($logs) + { + if (is_null($logs)) { + throw new \InvalidArgumentException('non-nullable logs cannot be null'); + } + $this->container['logs'] = $logs; + + return $this; + } + + /** + * Gets count + * + * @return int|null + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int|null $count Number of entries in this response + * + * @return self + */ + public function setCount($count) + { + if (is_null($count)) { + throw new \InvalidArgumentException('non-nullable count cannot be null'); + } + $this->container['count'] = $count; + + return $this; + } + + /** + * Gets next_token + * + * @return string|null + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string|null $next_token Token for the next page, or null when there are no more entries + * + * @return self + */ + public function setNextToken($next_token) + { + if (is_null($next_token)) { + array_push($this->openAPINullablesSetToNull, 'next_token'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_token', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_token'] = $next_token; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetProjectLogs200ResponseLogsInner.php b/src/Model/GetProjectLogs200ResponseLogsInner.php new file mode 100644 index 00000000..5ce91983 --- /dev/null +++ b/src/Model/GetProjectLogs200ResponseLogsInner.php @@ -0,0 +1,826 @@ + + */ +class GetProjectLogs200ResponseLogsInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getProjectLogs_200_response_logs_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'timestamp' => '\DateTime', + 'project' => 'string', + 'domain' => 'string', + 'method' => 'string', + 'uri' => 'string', + 'status_code' => 'int', + 'cache_status' => 'string', + 'client_ip' => 'string', + 'user_agent' => 'string', + 'bytes' => 'int', + 'time_taken' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'timestamp' => 'date-time', + 'project' => null, + 'domain' => null, + 'method' => null, + 'uri' => null, + 'status_code' => null, + 'cache_status' => null, + 'client_ip' => null, + 'user_agent' => null, + 'bytes' => null, + 'time_taken' => 'float' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'timestamp' => true, + 'project' => true, + 'domain' => true, + 'method' => true, + 'uri' => true, + 'status_code' => true, + 'cache_status' => true, + 'client_ip' => true, + 'user_agent' => true, + 'bytes' => true, + 'time_taken' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'timestamp' => 'timestamp', + 'project' => 'project', + 'domain' => 'domain', + 'method' => 'method', + 'uri' => 'uri', + 'status_code' => 'status_code', + 'cache_status' => 'cache_status', + 'client_ip' => 'client_ip', + 'user_agent' => 'user_agent', + 'bytes' => 'bytes', + 'time_taken' => 'time_taken' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'timestamp' => 'setTimestamp', + 'project' => 'setProject', + 'domain' => 'setDomain', + 'method' => 'setMethod', + 'uri' => 'setUri', + 'status_code' => 'setStatusCode', + 'cache_status' => 'setCacheStatus', + 'client_ip' => 'setClientIp', + 'user_agent' => 'setUserAgent', + 'bytes' => 'setBytes', + 'time_taken' => 'setTimeTaken' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'timestamp' => 'getTimestamp', + 'project' => 'getProject', + 'domain' => 'getDomain', + 'method' => 'getMethod', + 'uri' => 'getUri', + 'status_code' => 'getStatusCode', + 'cache_status' => 'getCacheStatus', + 'client_ip' => 'getClientIp', + 'user_agent' => 'getUserAgent', + 'bytes' => 'getBytes', + 'time_taken' => 'getTimeTaken' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('timestamp', $data ?? [], null); + $this->setIfExists('project', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('method', $data ?? [], null); + $this->setIfExists('uri', $data ?? [], null); + $this->setIfExists('status_code', $data ?? [], null); + $this->setIfExists('cache_status', $data ?? [], null); + $this->setIfExists('client_ip', $data ?? [], null); + $this->setIfExists('user_agent', $data ?? [], null); + $this->setIfExists('bytes', $data ?? [], null); + $this->setIfExists('time_taken', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets timestamp + * + * @return \DateTime|null + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime|null $timestamp timestamp + * + * @return self + */ + public function setTimestamp($timestamp) + { + if (is_null($timestamp)) { + array_push($this->openAPINullablesSetToNull, 'timestamp'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('timestamp', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets project + * + * @return string|null + */ + public function getProject() + { + return $this->container['project']; + } + + /** + * Sets project + * + * @param string|null $project project + * + * @return self + */ + public function setProject($project) + { + if (is_null($project)) { + array_push($this->openAPINullablesSetToNull, 'project'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('project', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['project'] = $project; + + return $this; + } + + /** + * Gets domain + * + * @return string|null + */ + public function getDomain() + { + return $this->container['domain']; + } + + /** + * Sets domain + * + * @param string|null $domain domain + * + * @return self + */ + public function setDomain($domain) + { + if (is_null($domain)) { + array_push($this->openAPINullablesSetToNull, 'domain'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('domain', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['domain'] = $domain; + + return $this; + } + + /** + * Gets method + * + * @return string|null + */ + public function getMethod() + { + return $this->container['method']; + } + + /** + * Sets method + * + * @param string|null $method method + * + * @return self + */ + public function setMethod($method) + { + if (is_null($method)) { + array_push($this->openAPINullablesSetToNull, 'method'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('method', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['method'] = $method; + + return $this; + } + + /** + * Gets uri + * + * @return string|null + */ + public function getUri() + { + return $this->container['uri']; + } + + /** + * Sets uri + * + * @param string|null $uri uri + * + * @return self + */ + public function setUri($uri) + { + if (is_null($uri)) { + array_push($this->openAPINullablesSetToNull, 'uri'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('uri', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['uri'] = $uri; + + return $this; + } + + /** + * Gets status_code + * + * @return int|null + */ + public function getStatusCode() + { + return $this->container['status_code']; + } + + /** + * Sets status_code + * + * @param int|null $status_code status_code + * + * @return self + */ + public function setStatusCode($status_code) + { + if (is_null($status_code)) { + array_push($this->openAPINullablesSetToNull, 'status_code'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('status_code', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['status_code'] = $status_code; + + return $this; + } + + /** + * Gets cache_status + * + * @return string|null + */ + public function getCacheStatus() + { + return $this->container['cache_status']; + } + + /** + * Sets cache_status + * + * @param string|null $cache_status cache_status + * + * @return self + */ + public function setCacheStatus($cache_status) + { + if (is_null($cache_status)) { + array_push($this->openAPINullablesSetToNull, 'cache_status'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('cache_status', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['cache_status'] = $cache_status; + + return $this; + } + + /** + * Gets client_ip + * + * @return string|null + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string|null $client_ip client_ip + * + * @return self + */ + public function setClientIp($client_ip) + { + if (is_null($client_ip)) { + array_push($this->openAPINullablesSetToNull, 'client_ip'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('client_ip', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets user_agent + * + * @return string|null + */ + public function getUserAgent() + { + return $this->container['user_agent']; + } + + /** + * Sets user_agent + * + * @param string|null $user_agent user_agent + * + * @return self + */ + public function setUserAgent($user_agent) + { + if (is_null($user_agent)) { + array_push($this->openAPINullablesSetToNull, 'user_agent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('user_agent', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['user_agent'] = $user_agent; + + return $this; + } + + /** + * Gets bytes + * + * @return int|null + */ + public function getBytes() + { + return $this->container['bytes']; + } + + /** + * Sets bytes + * + * @param int|null $bytes bytes + * + * @return self + */ + public function setBytes($bytes) + { + if (is_null($bytes)) { + array_push($this->openAPINullablesSetToNull, 'bytes'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('bytes', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['bytes'] = $bytes; + + return $this; + } + + /** + * Gets time_taken + * + * @return float|null + */ + public function getTimeTaken() + { + return $this->container['time_taken']; + } + + /** + * Sets time_taken + * + * @param float|null $time_taken time_taken + * + * @return self + */ + public function setTimeTaken($time_taken) + { + if (is_null($time_taken)) { + array_push($this->openAPINullablesSetToNull, 'time_taken'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('time_taken', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['time_taken'] = $time_taken; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetProjectLogs400Response.php b/src/Model/GetProjectLogs400Response.php new file mode 100644 index 00000000..0cf671af --- /dev/null +++ b/src/Model/GetProjectLogs400Response.php @@ -0,0 +1,443 @@ + + */ +class GetProjectLogs400Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getProjectLogs_400_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'error' => 'bool', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'error' => null, + 'message' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'error' => false, + 'message' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'message' => 'getMessage' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return bool|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param bool|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/KVDelete409Response.php b/src/Model/KVDelete409Response.php new file mode 100644 index 00000000..f2b3337e --- /dev/null +++ b/src/Model/KVDelete409Response.php @@ -0,0 +1,477 @@ + + */ +class KVDelete409Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'KV_delete_409_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'error' => 'bool', + 'message' => 'string', + 'hint' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'error' => null, + 'message' => null, + 'hint' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'error' => false, + 'message' => false, + 'hint' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'message' => 'message', + 'hint' => 'hint' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'message' => 'setMessage', + 'hint' => 'setHint' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'message' => 'getMessage', + 'hint' => 'getHint' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('hint', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return bool|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param bool|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets hint + * + * @return string|null + */ + public function getHint() + { + return $this->container['hint']; + } + + /** + * Sets hint + * + * @param string|null $hint hint + * + * @return self + */ + public function setHint($hint) + { + if (is_null($hint)) { + throw new \InvalidArgumentException('non-nullable hint cannot be null'); + } + $this->container['hint'] = $hint; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/KVItemsPurge200Response.php b/src/Model/KVItemsPurge200Response.php new file mode 100644 index 00000000..f0a35dad --- /dev/null +++ b/src/Model/KVItemsPurge200Response.php @@ -0,0 +1,477 @@ + + */ +class KVItemsPurge200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'KV_items_purge_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'status' => 'string', + 'deleted' => 'int', + 'scanned' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'status' => null, + 'deleted' => null, + 'scanned' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'status' => false, + 'deleted' => false, + 'scanned' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status', + 'deleted' => 'deleted', + 'scanned' => 'scanned' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'deleted' => 'setDeleted', + 'scanned' => 'setScanned' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'deleted' => 'getDeleted', + 'scanned' => 'getScanned' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('deleted', $data ?? [], null); + $this->setIfExists('scanned', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets deleted + * + * @return int|null + */ + public function getDeleted() + { + return $this->container['deleted']; + } + + /** + * Sets deleted + * + * @param int|null $deleted deleted + * + * @return self + */ + public function setDeleted($deleted) + { + if (is_null($deleted)) { + throw new \InvalidArgumentException('non-nullable deleted cannot be null'); + } + $this->container['deleted'] = $deleted; + + return $this; + } + + /** + * Gets scanned + * + * @return int|null + */ + public function getScanned() + { + return $this->container['scanned']; + } + + /** + * Sets scanned + * + * @param int|null $scanned scanned + * + * @return self + */ + public function setScanned($scanned) + { + if (is_null($scanned)) { + throw new \InvalidArgumentException('non-nullable scanned cannot be null'); + } + $this->container['scanned'] = $scanned; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/KVItemsPurge202Response.php b/src/Model/KVItemsPurge202Response.php new file mode 100644 index 00000000..7ee08226 --- /dev/null +++ b/src/Model/KVItemsPurge202Response.php @@ -0,0 +1,477 @@ + + */ +class KVItemsPurge202Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'KV_items_purge_202_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'status' => 'string', + 'deleted' => 'int', + 'scanned' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'status' => null, + 'deleted' => null, + 'scanned' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'status' => false, + 'deleted' => false, + 'scanned' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status', + 'deleted' => 'deleted', + 'scanned' => 'scanned' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'deleted' => 'setDeleted', + 'scanned' => 'setScanned' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'deleted' => 'getDeleted', + 'scanned' => 'getScanned' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('deleted', $data ?? [], null); + $this->setIfExists('scanned', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets deleted + * + * @return int|null + */ + public function getDeleted() + { + return $this->container['deleted']; + } + + /** + * Sets deleted + * + * @param int|null $deleted deleted + * + * @return self + */ + public function setDeleted($deleted) + { + if (is_null($deleted)) { + throw new \InvalidArgumentException('non-nullable deleted cannot be null'); + } + $this->container['deleted'] = $deleted; + + return $this; + } + + /** + * Gets scanned + * + * @return int|null + */ + public function getScanned() + { + return $this->container['scanned']; + } + + /** + * Sets scanned + * + * @param int|null $scanned scanned + * + * @return self + */ + public function setScanned($scanned) + { + if (is_null($scanned)) { + throw new \InvalidArgumentException('non-nullable scanned cannot be null'); + } + $this->container['scanned'] = $scanned; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/PurgeOrgResource200Response.php b/src/Model/PurgeOrgResource200Response.php new file mode 100644 index 00000000..d175590f --- /dev/null +++ b/src/Model/PurgeOrgResource200Response.php @@ -0,0 +1,579 @@ + + */ +class PurgeOrgResource200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'purgeOrgResource_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'scope' => 'string', + 'prefix' => 'string', + 'deleted_keys' => 'int', + 'complete' => 'bool', + 'cursor' => 'string', + 'flushed' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'scope' => null, + 'prefix' => null, + 'deleted_keys' => null, + 'complete' => null, + 'cursor' => null, + 'flushed' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'scope' => false, + 'prefix' => false, + 'deleted_keys' => false, + 'complete' => false, + 'cursor' => false, + 'flushed' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'scope' => 'scope', + 'prefix' => 'prefix', + 'deleted_keys' => 'deletedKeys', + 'complete' => 'complete', + 'cursor' => 'cursor', + 'flushed' => 'flushed' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'scope' => 'setScope', + 'prefix' => 'setPrefix', + 'deleted_keys' => 'setDeletedKeys', + 'complete' => 'setComplete', + 'cursor' => 'setCursor', + 'flushed' => 'setFlushed' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'scope' => 'getScope', + 'prefix' => 'getPrefix', + 'deleted_keys' => 'getDeletedKeys', + 'complete' => 'getComplete', + 'cursor' => 'getCursor', + 'flushed' => 'getFlushed' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('scope', $data ?? [], null); + $this->setIfExists('prefix', $data ?? [], null); + $this->setIfExists('deleted_keys', $data ?? [], null); + $this->setIfExists('complete', $data ?? [], null); + $this->setIfExists('cursor', $data ?? [], null); + $this->setIfExists('flushed', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets scope + * + * @return string|null + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param string|null $scope scope + * + * @return self + */ + public function setScope($scope) + { + if (is_null($scope)) { + throw new \InvalidArgumentException('non-nullable scope cannot be null'); + } + $this->container['scope'] = $scope; + + return $this; + } + + /** + * Gets prefix + * + * @return string|null + */ + public function getPrefix() + { + return $this->container['prefix']; + } + + /** + * Sets prefix + * + * @param string|null $prefix prefix + * + * @return self + */ + public function setPrefix($prefix) + { + if (is_null($prefix)) { + throw new \InvalidArgumentException('non-nullable prefix cannot be null'); + } + $this->container['prefix'] = $prefix; + + return $this; + } + + /** + * Gets deleted_keys + * + * @return int|null + */ + public function getDeletedKeys() + { + return $this->container['deleted_keys']; + } + + /** + * Sets deleted_keys + * + * @param int|null $deleted_keys deleted_keys + * + * @return self + */ + public function setDeletedKeys($deleted_keys) + { + if (is_null($deleted_keys)) { + throw new \InvalidArgumentException('non-nullable deleted_keys cannot be null'); + } + $this->container['deleted_keys'] = $deleted_keys; + + return $this; + } + + /** + * Gets complete + * + * @return bool|null + */ + public function getComplete() + { + return $this->container['complete']; + } + + /** + * Sets complete + * + * @param bool|null $complete complete + * + * @return self + */ + public function setComplete($complete) + { + if (is_null($complete)) { + throw new \InvalidArgumentException('non-nullable complete cannot be null'); + } + $this->container['complete'] = $complete; + + return $this; + } + + /** + * Gets cursor + * + * @return string|null + */ + public function getCursor() + { + return $this->container['cursor']; + } + + /** + * Sets cursor + * + * @param string|null $cursor cursor + * + * @return self + */ + public function setCursor($cursor) + { + if (is_null($cursor)) { + throw new \InvalidArgumentException('non-nullable cursor cannot be null'); + } + $this->container['cursor'] = $cursor; + + return $this; + } + + /** + * Gets flushed + * + * @return bool|null + */ + public function getFlushed() + { + return $this->container['flushed']; + } + + /** + * Sets flushed + * + * @param bool|null $flushed flushed + * + * @return self + */ + public function setFlushed($flushed) + { + if (is_null($flushed)) { + throw new \InvalidArgumentException('non-nullable flushed cannot be null'); + } + $this->container['flushed'] = $flushed; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/PurgeOrgResourceRequest.php b/src/Model/PurgeOrgResourceRequest.php new file mode 100644 index 00000000..21789a23 --- /dev/null +++ b/src/Model/PurgeOrgResourceRequest.php @@ -0,0 +1,582 @@ + + */ +class PurgeOrgResourceRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'purgeOrgResource_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'scope' => 'string', + 'application' => 'string', + 'environment' => 'string', + 'confirm' => 'bool', + 'cursor' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'scope' => null, + 'application' => null, + 'environment' => null, + 'confirm' => null, + 'cursor' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'scope' => false, + 'application' => false, + 'environment' => false, + 'confirm' => false, + 'cursor' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'scope' => 'scope', + 'application' => 'application', + 'environment' => 'environment', + 'confirm' => 'confirm', + 'cursor' => 'cursor' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'scope' => 'setScope', + 'application' => 'setApplication', + 'environment' => 'setEnvironment', + 'confirm' => 'setConfirm', + 'cursor' => 'setCursor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'scope' => 'getScope', + 'application' => 'getApplication', + 'environment' => 'getEnvironment', + 'confirm' => 'getConfirm', + 'cursor' => 'getCursor' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const SCOPE_ENVIRONMENT = 'environment'; + public const SCOPE_ALL = 'all'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getScopeAllowableValues() + { + return [ + self::SCOPE_ENVIRONMENT, + self::SCOPE_ALL, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('scope', $data ?? [], null); + $this->setIfExists('application', $data ?? [], null); + $this->setIfExists('environment', $data ?? [], null); + $this->setIfExists('confirm', $data ?? [], null); + $this->setIfExists('cursor', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['scope'] === null) { + $invalidProperties[] = "'scope' can't be null"; + } + $allowedValues = $this->getScopeAllowableValues(); + if (!is_null($this->container['scope']) && !in_array($this->container['scope'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'scope', must be one of '%s'", + $this->container['scope'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets scope + * + * @return string + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param string $scope scope + * + * @return self + */ + public function setScope($scope) + { + if (is_null($scope)) { + throw new \InvalidArgumentException('non-nullable scope cannot be null'); + } + $allowedValues = $this->getScopeAllowableValues(); + if (!in_array($scope, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'scope', must be one of '%s'", + $scope, + implode("', '", $allowedValues) + ) + ); + } + $this->container['scope'] = $scope; + + return $this; + } + + /** + * Gets application + * + * @return string|null + */ + public function getApplication() + { + return $this->container['application']; + } + + /** + * Sets application + * + * @param string|null $application scope environment only + * + * @return self + */ + public function setApplication($application) + { + if (is_null($application)) { + throw new \InvalidArgumentException('non-nullable application cannot be null'); + } + $this->container['application'] = $application; + + return $this; + } + + /** + * Gets environment + * + * @return string|null + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string|null $environment scope environment only + * + * @return self + */ + public function setEnvironment($environment) + { + if (is_null($environment)) { + throw new \InvalidArgumentException('non-nullable environment cannot be null'); + } + $this->container['environment'] = $environment; + + return $this; + } + + /** + * Gets confirm + * + * @return bool|null + */ + public function getConfirm() + { + return $this->container['confirm']; + } + + /** + * Sets confirm + * + * @param bool|null $confirm scope all only; must be true + * + * @return self + */ + public function setConfirm($confirm) + { + if (is_null($confirm)) { + throw new \InvalidArgumentException('non-nullable confirm cannot be null'); + } + $this->container['confirm'] = $confirm; + + return $this; + } + + /** + * Gets cursor + * + * @return string|null + */ + public function getCursor() + { + return $this->container['cursor']; + } + + /** + * Sets cursor + * + * @param string|null $cursor scope environment only; resume a partial purge + * + * @return self + */ + public function setCursor($cursor) + { + if (is_null($cursor)) { + throw new \InvalidArgumentException('non-nullable cursor cannot be null'); + } + $this->container['cursor'] = $cursor; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ResourceAttachment.php b/src/Model/ResourceAttachment.php index b66d850b..223880ba 100644 --- a/src/Model/ResourceAttachment.php +++ b/src/Model/ResourceAttachment.php @@ -61,6 +61,8 @@ class ResourceAttachment implements ModelInterface, ArrayAccess, \JsonSerializab 'env_name' => 'string', 'env_var_prefix' => 'string', 'access_key_id' => 'string', + 'cache_user_id' => 'string', + 'access_level' => 'string', 'injected_keys' => 'string[]', 'created_at' => '\DateTime', 'note' => 'string' @@ -78,6 +80,8 @@ class ResourceAttachment implements ModelInterface, ArrayAccess, \JsonSerializab 'env_name' => null, 'env_var_prefix' => null, 'access_key_id' => null, + 'cache_user_id' => null, + 'access_level' => null, 'injected_keys' => null, 'created_at' => 'date-time', 'note' => null @@ -93,6 +97,8 @@ class ResourceAttachment implements ModelInterface, ArrayAccess, \JsonSerializab 'env_name' => false, 'env_var_prefix' => false, 'access_key_id' => false, + 'cache_user_id' => false, + 'access_level' => false, 'injected_keys' => false, 'created_at' => false, 'note' => false @@ -188,6 +194,8 @@ public function isNullableSetToNull(string $property): bool 'env_name' => 'envName', 'env_var_prefix' => 'envVarPrefix', 'access_key_id' => 'accessKeyId', + 'cache_user_id' => 'cacheUserId', + 'access_level' => 'accessLevel', 'injected_keys' => 'injectedKeys', 'created_at' => 'createdAt', 'note' => 'note' @@ -203,6 +211,8 @@ public function isNullableSetToNull(string $property): bool 'env_name' => 'setEnvName', 'env_var_prefix' => 'setEnvVarPrefix', 'access_key_id' => 'setAccessKeyId', + 'cache_user_id' => 'setCacheUserId', + 'access_level' => 'setAccessLevel', 'injected_keys' => 'setInjectedKeys', 'created_at' => 'setCreatedAt', 'note' => 'setNote' @@ -218,6 +228,8 @@ public function isNullableSetToNull(string $property): bool 'env_name' => 'getEnvName', 'env_var_prefix' => 'getEnvVarPrefix', 'access_key_id' => 'getAccessKeyId', + 'cache_user_id' => 'getCacheUserId', + 'access_level' => 'getAccessLevel', 'injected_keys' => 'getInjectedKeys', 'created_at' => 'getCreatedAt', 'note' => 'getNote' @@ -264,6 +276,21 @@ public function getModelName() return self::$openAPIModelName; } + public const ACCESS_LEVEL_SCOPED = 'scoped'; + public const ACCESS_LEVEL_ADMIN = 'admin'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAccessLevelAllowableValues() + { + return [ + self::ACCESS_LEVEL_SCOPED, + self::ACCESS_LEVEL_ADMIN, + ]; + } /** * Associative array for storing property values @@ -284,6 +311,8 @@ public function __construct(?array $data = null) $this->setIfExists('env_name', $data ?? [], null); $this->setIfExists('env_var_prefix', $data ?? [], null); $this->setIfExists('access_key_id', $data ?? [], null); + $this->setIfExists('cache_user_id', $data ?? [], null); + $this->setIfExists('access_level', $data ?? [], null); $this->setIfExists('injected_keys', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('note', $data ?? [], null); @@ -316,6 +345,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getAccessLevelAllowableValues(); + if (!is_null($this->container['access_level']) && !in_array($this->container['access_level'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'access_level', must be one of '%s'", + $this->container['access_level'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -439,6 +477,70 @@ public function setAccessKeyId($access_key_id) return $this; } + /** + * Gets cache_user_id + * + * @return string|null + */ + public function getCacheUserId() + { + return $this->container['cache_user_id']; + } + + /** + * Sets cache_user_id + * + * @param string|null $cache_user_id Cache only. This environment's own RBAC user, limited to its CACHE_PREFIX with FLUSHALL and FLUSHDB denied, so it cannot touch another environment's keys. + * + * @return self + */ + public function setCacheUserId($cache_user_id) + { + if (is_null($cache_user_id)) { + throw new \InvalidArgumentException('non-nullable cache_user_id cannot be null'); + } + $this->container['cache_user_id'] = $cache_user_id; + + return $this; + } + + /** + * Gets access_level + * + * @return string|null + */ + public function getAccessLevel() + { + return $this->container['access_level']; + } + + /** + * Sets access_level + * + * @param string|null $access_level Cache only. scoped: the environment holds its own RBAC user. admin: it holds the cache-wide credential and can read, write and flush every attached environment's keys. Absent on attachments made before access levels existed (treated as scoped). + * + * @return self + */ + public function setAccessLevel($access_level) + { + if (is_null($access_level)) { + throw new \InvalidArgumentException('non-nullable access_level cannot be null'); + } + $allowedValues = $this->getAccessLevelAllowableValues(); + if (!in_array($access_level, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'access_level', must be one of '%s'", + $access_level, + implode("', '", $allowedValues) + ) + ); + } + $this->container['access_level'] = $access_level; + + return $this; + } + /** * Gets injected_keys * From 13796b4f691ae80c04d36ed84b8a63d94db51d70 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Thu, 10 Sep 2026 20:27:53 +0000 Subject: [PATCH 3/3] feat(sdk): v4.22.0 - Auto-generated from unified API spec Generated from unified API spec v4.22.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- docs/Model/V2CrawlerRequest.md | 2 +- src/Model/V2CrawlerRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Model/V2CrawlerRequest.md b/docs/Model/V2CrawlerRequest.md index e9f4660f..dd957cd2 100644 --- a/docs/Model/V2CrawlerRequest.md +++ b/docs/Model/V2CrawlerRequest.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **status_ok** | **int[]** | HTTP status codes that will result in content being captured and pushed to Quant | [optional] **sitemap** | [**\QuantClient\Model\V2CrawlerSitemapInner[]**](V2CrawlerSitemapInner.md) | Sitemap configuration | [optional] **allowed_domains** | **string[]** | Allowed domains for multi-domain crawling, automatically enables merge_domains | [optional] -**user_agent** | **string** | Custom user agent, only when browser_mode is false | [optional] +**user_agent** | **string** | Custom user agent. Valid with or without browser_mode. | [optional] **assets** | [**\QuantClient\Model\V2CrawlerAssets**](V2CrawlerAssets.md) | | [optional] **max_errors** | **int** | Maximum errors before stopping crawl | [optional] diff --git a/src/Model/V2CrawlerRequest.php b/src/Model/V2CrawlerRequest.php index 301aefc9..18184f9f 100644 --- a/src/Model/V2CrawlerRequest.php +++ b/src/Model/V2CrawlerRequest.php @@ -1028,7 +1028,7 @@ public function getUserAgent() /** * Sets user_agent * - * @param string|null $user_agent Custom user agent, only when browser_mode is false + * @param string|null $user_agent Custom user agent. Valid with or without browser_mode. * * @return self */