From 5386f2959118b26272205364300a90ea2344c037 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Thu, 12 Feb 2026 03:20:56 +0000 Subject: [PATCH] feat(sdk): v4.10.0 - Auto-generated from unified API spec Generated from unified API spec v4.10.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 38 + README.md | 40 +- composer.json | 2 +- composer.lock | 2 +- docs/Api/AIOrchestrationsApi.md | 581 ++++ docs/Api/AIToolsApi.md | 6 +- docs/Api/AIVectorDatabaseApi.md | 65 + docs/Api/CDNMetricsApi.md | 214 ++ docs/Api/KVApi.md | 132 + docs/Api/OrchestrationApi.md | 6 +- docs/Model/ChatInferenceRequest.md | 2 + docs/Model/ChatInferenceRequestGuardrails.md | 11 + docs/Model/ChatInferenceStreamRequest.md | 2 + docs/Model/CreateOrchestrationRequest.md | 19 + .../CreateOrchestrationRequestInputSource.md | 12 + ...CreateOrchestrationRequestStopCondition.md | 11 + .../Model/DeleteVectorDocuments200Response.md | 11 + docs/Model/DeleteVectorDocumentsRequest.md | 11 + .../DeleteVectorDocumentsRequestMetadata.md | 10 + docs/Model/KVLinkToProject200Response.md | 10 + docs/Model/KVLinkToProjectRequest.md | 9 + .../ListOrchestrationBatches200Response.md | 10 + ...estrationBatches200ResponseBatchesInner.md | 18 + docs/Model/ListOrchestrations200Response.md | 10 + docs/Model/V2CrawlerSchedule.md | 2 +- docs/Model/V2CrawlerScheduleRequest.md | 4 +- docs/Model/V2MetricData.md | 12 + docs/Model/V2MetricDataPoint.md | 10 + docs/Model/V2MetricDataPointTimestamp.md | 8 + docs/Model/V2MetricsMeta.md | 14 + docs/Model/V2MetricsResponse.md | 10 + src/Api/AIAgentsApi.php | 2 +- src/Api/AICustomToolsApi.php | 2 +- src/Api/AIFileStorageApi.php | 2 +- src/Api/AIInferenceApi.php | 2 +- src/Api/AIModelsApi.php | 2 +- src/Api/AIMonitoringApi.php | 2 +- src/Api/AIOrchestrationsApi.php | 2857 +++++++++++++++++ src/Api/AISessionsApi.php | 2 +- src/Api/AITaskManagementApi.php | 2 +- src/Api/AIToolsApi.php | 10 +- src/Api/AIVectorDatabaseApi.php | 316 +- src/Api/ApplicationsApi.php | 2 +- src/Api/BackupManagementApi.php | 2 +- src/Api/CDNMetricsApi.php | 1206 +++++++ 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/KVApi.php | 907 +++++- src/Api/OrchestrationApi.php | 10 +- src/Api/OrganizationsApi.php | 2 +- src/Api/ProjectsApi.php | 2 +- src/Api/PurgeApi.php | 2 +- src/Api/RulesApi.php | 2 +- src/Api/SSHAccessApi.php | 2 +- src/Api/ScalingPolicyApi.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/Application.php | 2 +- src/Model/ApplicationDatabase.php | 2 +- .../ApplicationDeploymentInformationInner.php | 2 +- src/Model/ApplicationEnvironmentsInner.php | 2 +- src/Model/ApplicationFilesystem.php | 2 +- src/Model/ApplicationImageReference.php | 2 +- .../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 | 82 +- src/Model/ChatInferenceRequestGuardrails.php | 512 +++ .../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 | 82 +- ...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/CreateOrchestrationRequest.php | 815 +++++ .../CreateOrchestrationRequestInputSource.php | 550 ++++ ...reateOrchestrationRequestStopCondition.php | 524 +++ 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/DeleteBackup200Response.php | 2 +- src/Model/DeleteCustomTool200Response.php | 2 +- src/Model/DeleteFile200Response.php | 2 +- src/Model/DeleteTask200Response.php | 2 +- src/Model/DeleteTask409Response.php | 2 +- .../DeleteVectorCollection200Response.php | 2 +- .../DeleteVectorDocuments200Response.php | 477 +++ src/Model/DeleteVectorDocumentsRequest.php | 477 +++ .../DeleteVectorDocumentsRequestMetadata.php | 443 +++ 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/GetAIUsageStats200Response.php | 2 +- ...GetAIUsageStats200ResponseByModelValue.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 +- .../GetSshAccessCredentials200Response.php | 2 +- ...ccessCredentials200ResponseCredentials.php | 2 +- src/Model/GetTask200Response.php | 2 +- src/Model/GetVectorCollection200Response.php | 2 +- ...tVectorCollection200ResponseCollection.php | 2 +- 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/KVItemsCreate200Response.php | 2 +- src/Model/KVItemsDelete200Response.php | 2 +- src/Model/KVItemsShow200Response.php | 2 +- src/Model/KVItemsShow200ResponseValue.php | 2 +- src/Model/KVLinkToProject200Response.php | 443 +++ src/Model/KVLinkToProjectRequest.php | 412 +++ 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 +- .../ListOrchestrationBatches200Response.php | 450 +++ ...strationBatches200ResponseBatchesInner.php | 760 +++++ src/Model/ListOrchestrations200Response.php | 450 +++ src/Model/ListTasks200Response.php | 2 +- src/Model/ListTasks200ResponseTasksInner.php | 2 +- .../ListVectorCollections200Response.php | 2 +- ...Collections200ResponseCollectionsInner.php | 2 +- src/Model/ModelInterface.php | 2 +- .../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/ScalingPolicy.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/SyncToEnvironmentRequest.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/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/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 | 4 +- src/Model/V2CrawlerScheduleRequest.php | 11 +- 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 | 523 +++ src/Model/V2MetricDataPoint.php | 449 +++ src/Model/V2MetricDataPointTimestamp.php | 382 +++ src/Model/V2MetricsMeta.php | 673 ++++ src/Model/V2MetricsResponse.php | 449 +++ 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 +- 399 files changed, 15767 insertions(+), 487 deletions(-) create mode 100644 docs/Api/AIOrchestrationsApi.md create mode 100644 docs/Api/CDNMetricsApi.md create mode 100644 docs/Model/ChatInferenceRequestGuardrails.md create mode 100644 docs/Model/CreateOrchestrationRequest.md create mode 100644 docs/Model/CreateOrchestrationRequestInputSource.md create mode 100644 docs/Model/CreateOrchestrationRequestStopCondition.md create mode 100644 docs/Model/DeleteVectorDocuments200Response.md create mode 100644 docs/Model/DeleteVectorDocumentsRequest.md create mode 100644 docs/Model/DeleteVectorDocumentsRequestMetadata.md create mode 100644 docs/Model/KVLinkToProject200Response.md create mode 100644 docs/Model/KVLinkToProjectRequest.md create mode 100644 docs/Model/ListOrchestrationBatches200Response.md create mode 100644 docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md create mode 100644 docs/Model/ListOrchestrations200Response.md create mode 100644 docs/Model/V2MetricData.md create mode 100644 docs/Model/V2MetricDataPoint.md create mode 100644 docs/Model/V2MetricDataPointTimestamp.md create mode 100644 docs/Model/V2MetricsMeta.md create mode 100644 docs/Model/V2MetricsResponse.md create mode 100644 src/Api/AIOrchestrationsApi.php create mode 100644 src/Api/CDNMetricsApi.php create mode 100644 src/Model/ChatInferenceRequestGuardrails.php create mode 100644 src/Model/CreateOrchestrationRequest.php create mode 100644 src/Model/CreateOrchestrationRequestInputSource.php create mode 100644 src/Model/CreateOrchestrationRequestStopCondition.php create mode 100644 src/Model/DeleteVectorDocuments200Response.php create mode 100644 src/Model/DeleteVectorDocumentsRequest.php create mode 100644 src/Model/DeleteVectorDocumentsRequestMetadata.php create mode 100644 src/Model/KVLinkToProject200Response.php create mode 100644 src/Model/KVLinkToProjectRequest.php create mode 100644 src/Model/ListOrchestrationBatches200Response.php create mode 100644 src/Model/ListOrchestrationBatches200ResponseBatchesInner.php create mode 100644 src/Model/ListOrchestrations200Response.php create mode 100644 src/Model/V2MetricData.php create mode 100644 src/Model/V2MetricDataPoint.php create mode 100644 src/Model/V2MetricDataPointTimestamp.php create mode 100644 src/Model/V2MetricsMeta.php create mode 100644 src/Model/V2MetricsResponse.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c2443d1..e158258 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -8,12 +8,14 @@ docs/Api/AIFileStorageApi.md docs/Api/AIInferenceApi.md docs/Api/AIModelsApi.md docs/Api/AIMonitoringApi.md +docs/Api/AIOrchestrationsApi.md docs/Api/AISessionsApi.md docs/Api/AITaskManagementApi.md docs/Api/AIToolsApi.md docs/Api/AIVectorDatabaseApi.md docs/Api/ApplicationsApi.md docs/Api/BackupManagementApi.md +docs/Api/CDNMetricsApi.md docs/Api/CommandsApi.md docs/Api/ComposeApi.md docs/Api/ContainersApi.md @@ -50,6 +52,7 @@ docs/Model/ChatInference200ResponseResponseToolUseOneOfResult.md docs/Model/ChatInference200ResponseUsage.md docs/Model/ChatInference202Response.md docs/Model/ChatInferenceRequest.md +docs/Model/ChatInferenceRequestGuardrails.md docs/Model/ChatInferenceRequestMessagesInner.md docs/Model/ChatInferenceRequestMessagesInnerContent.md docs/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.md @@ -107,6 +110,9 @@ docs/Model/CreateCustomToolRequest.md docs/Model/CreateEnvironment403Response.md docs/Model/CreateEnvironmentRequest.md docs/Model/CreateEnvironmentRequestEnvironmentInner.md +docs/Model/CreateOrchestrationRequest.md +docs/Model/CreateOrchestrationRequestInputSource.md +docs/Model/CreateOrchestrationRequestStopCondition.md docs/Model/CreateTask201Response.md docs/Model/CreateTaskRequest.md docs/Model/CreateVectorCollection201Response.md @@ -123,6 +129,9 @@ docs/Model/DeleteFile200Response.md docs/Model/DeleteTask200Response.md docs/Model/DeleteTask409Response.md docs/Model/DeleteVectorCollection200Response.md +docs/Model/DeleteVectorDocuments200Response.md +docs/Model/DeleteVectorDocumentsRequest.md +docs/Model/DeleteVectorDocumentsRequestMetadata.md docs/Model/DownloadBackup200Response.md docs/Model/Embeddings200Response.md docs/Model/Embeddings200ResponseEmbeddings.md @@ -178,6 +187,8 @@ docs/Model/KVItemsCreate200Response.md docs/Model/KVItemsDelete200Response.md docs/Model/KVItemsShow200Response.md docs/Model/KVItemsShow200ResponseValue.md +docs/Model/KVLinkToProject200Response.md +docs/Model/KVLinkToProjectRequest.md docs/Model/ListAIAgents200Response.md docs/Model/ListAIAgents200ResponseAgentsInner.md docs/Model/ListAIModels200Response.md @@ -198,6 +209,9 @@ docs/Model/ListCustomTools200Response.md docs/Model/ListCustomTools200ResponseToolsInner.md docs/Model/ListFiles200Response.md docs/Model/ListFiles200ResponseFilesInner.md +docs/Model/ListOrchestrationBatches200Response.md +docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md +docs/Model/ListOrchestrations200Response.md docs/Model/ListTasks200Response.md docs/Model/ListTasks200ResponseTasksInner.md docs/Model/ListVectorCollections200Response.md @@ -293,6 +307,11 @@ docs/Model/V2DomainDnsGoLiveRecordsInner.md docs/Model/V2DomainDnsValidationRecordsInner.md docs/Model/V2DomainRequest.md docs/Model/V2Error.md +docs/Model/V2MetricData.md +docs/Model/V2MetricDataPoint.md +docs/Model/V2MetricDataPointTimestamp.md +docs/Model/V2MetricsMeta.md +docs/Model/V2MetricsResponse.md docs/Model/V2Organization.md docs/Model/V2OrganizationRequest.md docs/Model/V2Project.md @@ -353,12 +372,14 @@ src/Api/AIFileStorageApi.php src/Api/AIInferenceApi.php src/Api/AIModelsApi.php src/Api/AIMonitoringApi.php +src/Api/AIOrchestrationsApi.php src/Api/AISessionsApi.php src/Api/AITaskManagementApi.php src/Api/AIToolsApi.php src/Api/AIVectorDatabaseApi.php src/Api/ApplicationsApi.php src/Api/BackupManagementApi.php +src/Api/CDNMetricsApi.php src/Api/CommandsApi.php src/Api/ComposeApi.php src/Api/ContainersApi.php @@ -399,6 +420,7 @@ src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php src/Model/ChatInference200ResponseUsage.php src/Model/ChatInference202Response.php src/Model/ChatInferenceRequest.php +src/Model/ChatInferenceRequestGuardrails.php src/Model/ChatInferenceRequestMessagesInner.php src/Model/ChatInferenceRequestMessagesInnerContent.php src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php @@ -456,6 +478,9 @@ src/Model/CreateCustomToolRequest.php src/Model/CreateEnvironment403Response.php src/Model/CreateEnvironmentRequest.php src/Model/CreateEnvironmentRequestEnvironmentInner.php +src/Model/CreateOrchestrationRequest.php +src/Model/CreateOrchestrationRequestInputSource.php +src/Model/CreateOrchestrationRequestStopCondition.php src/Model/CreateTask201Response.php src/Model/CreateTaskRequest.php src/Model/CreateVectorCollection201Response.php @@ -472,6 +497,9 @@ src/Model/DeleteFile200Response.php src/Model/DeleteTask200Response.php src/Model/DeleteTask409Response.php src/Model/DeleteVectorCollection200Response.php +src/Model/DeleteVectorDocuments200Response.php +src/Model/DeleteVectorDocumentsRequest.php +src/Model/DeleteVectorDocumentsRequestMetadata.php src/Model/DownloadBackup200Response.php src/Model/Embeddings200Response.php src/Model/Embeddings200ResponseEmbeddings.php @@ -527,6 +555,8 @@ src/Model/KVItemsCreate200Response.php src/Model/KVItemsDelete200Response.php src/Model/KVItemsShow200Response.php src/Model/KVItemsShow200ResponseValue.php +src/Model/KVLinkToProject200Response.php +src/Model/KVLinkToProjectRequest.php src/Model/ListAIAgents200Response.php src/Model/ListAIAgents200ResponseAgentsInner.php src/Model/ListAIModels200Response.php @@ -547,6 +577,9 @@ src/Model/ListCustomTools200Response.php src/Model/ListCustomTools200ResponseToolsInner.php src/Model/ListFiles200Response.php src/Model/ListFiles200ResponseFilesInner.php +src/Model/ListOrchestrationBatches200Response.php +src/Model/ListOrchestrationBatches200ResponseBatchesInner.php +src/Model/ListOrchestrations200Response.php src/Model/ListTasks200Response.php src/Model/ListTasks200ResponseTasksInner.php src/Model/ListVectorCollections200Response.php @@ -643,6 +676,11 @@ src/Model/V2DomainDnsGoLiveRecordsInner.php src/Model/V2DomainDnsValidationRecordsInner.php src/Model/V2DomainRequest.php src/Model/V2Error.php +src/Model/V2MetricData.php +src/Model/V2MetricDataPoint.php +src/Model/V2MetricDataPointTimestamp.php +src/Model/V2MetricsMeta.php +src/Model/V2MetricsResponse.php src/Model/V2Organization.php src/Model/V2OrganizationRequest.php src/Model/V2Project.php diff --git a/README.md b/README.md index 6f5f058..c8ddf5a 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,15 @@ Class | Method | HTTP request | Description *AIModelsApi* | [**getAIModel**](docs/Api/AIModelsApi.md#getaimodel) | **GET** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsApi* | [**listAIModels**](docs/Api/AIModelsApi.md#listaimodels) | **GET** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringApi* | [**getAIUsageStats**](docs/Api/AIMonitoringApi.md#getaiusagestats) | **GET** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics +*AIOrchestrationsApi* | [**cancelOrchestration**](docs/Api/AIOrchestrationsApi.md#cancelorchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration +*AIOrchestrationsApi* | [**createOrchestration**](docs/Api/AIOrchestrationsApi.md#createorchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration +*AIOrchestrationsApi* | [**deleteOrchestration**](docs/Api/AIOrchestrationsApi.md#deleteorchestration) | **DELETE** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration +*AIOrchestrationsApi* | [**getOrchestration**](docs/Api/AIOrchestrationsApi.md#getorchestration) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration +*AIOrchestrationsApi* | [**listOrchestrationBatches**](docs/Api/AIOrchestrationsApi.md#listorchestrationbatches) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches +*AIOrchestrationsApi* | [**listOrchestrations**](docs/Api/AIOrchestrationsApi.md#listorchestrations) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations +*AIOrchestrationsApi* | [**pauseOrchestration**](docs/Api/AIOrchestrationsApi.md#pauseorchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration +*AIOrchestrationsApi* | [**resumeOrchestration**](docs/Api/AIOrchestrationsApi.md#resumeorchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration +*AIOrchestrationsApi* | [**startOrchestration**](docs/Api/AIOrchestrationsApi.md#startorchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration *AISessionsApi* | [**createAISession**](docs/Api/AISessionsApi.md#createaisession) | **POST** /api/v3/organizations/{organisation}/ai/sessions | Create a new chat session with multi-tenant isolation *AISessionsApi* | [**deleteAISession**](docs/Api/AISessionsApi.md#deleteaisession) | **DELETE** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Delete a chat session *AISessionsApi* | [**extendAISession**](docs/Api/AISessionsApi.md#extendaisession) | **PUT** /api/v3/organizations/{organisation}/ai/sessions/{sessionId}/extend | Extend Session Expiration @@ -111,13 +120,14 @@ Class | Method | HTTP request | Description *AITaskManagementApi* | [**getTask**](docs/Api/AITaskManagementApi.md#gettask) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details *AITaskManagementApi* | [**listTasks**](docs/Api/AITaskManagementApi.md#listtasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering *AITaskManagementApi* | [**updateTask**](docs/Api/AITaskManagementApi.md#updatetask) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task -*AIToolsApi* | [**getAIOrchestrationStatus**](docs/Api/AIToolsApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*AIToolsApi* | [**getAIOrchestrationStatus**](docs/Api/AIToolsApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *AIToolsApi* | [**getAIToolExecutionStatus**](docs/Api/AIToolsApi.md#getaitoolexecutionstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result *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 *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 +*AIVectorDatabaseApi* | [**deleteVectorDocuments**](docs/Api/AIVectorDatabaseApi.md#deletevectordocuments) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection *AIVectorDatabaseApi* | [**getVectorCollection**](docs/Api/AIVectorDatabaseApi.md#getvectorcollection) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details *AIVectorDatabaseApi* | [**listVectorCollections**](docs/Api/AIVectorDatabaseApi.md#listvectorcollections) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections *AIVectorDatabaseApi* | [**queryVectorCollection**](docs/Api/AIVectorDatabaseApi.md#queryvectorcollection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query @@ -131,6 +141,9 @@ Class | Method | HTTP request | Description *BackupManagementApi* | [**deleteBackup**](docs/Api/BackupManagementApi.md#deletebackup) | **DELETE** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId} | Delete a backup *BackupManagementApi* | [**downloadBackup**](docs/Api/BackupManagementApi.md#downloadbackup) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download | Generate a download URL for a backup *BackupManagementApi* | [**listBackups**](docs/Api/BackupManagementApi.md#listbackups) | **GET** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type} | List backups for an environment +*CDNMetricsApi* | [**getDailyMetrics**](docs/Api/CDNMetricsApi.md#getdailymetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics +*CDNMetricsApi* | [**getHourlyMetrics**](docs/Api/CDNMetricsApi.md#gethourlymetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics +*CDNMetricsApi* | [**getMonthlyMetrics**](docs/Api/CDNMetricsApi.md#getmonthlymetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics *CommandsApi* | [**createCommand**](docs/Api/CommandsApi.md#createcommand) | **POST** /api/v3/organizations/{organisation}/environments/{environment}/commands | Create a command for an environment *CommandsApi* | [**getCommand**](docs/Api/CommandsApi.md#getcommand) | **GET** /api/v3/organizations/{organisation}/environments/{environment}/commands/{command} | Get a command *CommandsApi* | [**listCommands**](docs/Api/CommandsApi.md#listcommands) | **GET** /api/v3/organizations/{organisation}/environments/{environment}/commands | Get all commands for an environment @@ -184,9 +197,11 @@ Class | Method | HTTP request | Description *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* | [**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 *KVApi* | [**kVList**](docs/Api/KVApi.md#kvlist) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores *KVApi* | [**kVShow**](docs/Api/KVApi.md#kvshow) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store -*OrchestrationApi* | [**getAIOrchestrationStatus**](docs/Api/OrchestrationApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*KVApi* | [**kVUnlinkFromProject**](docs/Api/KVApi.md#kvunlinkfromproject) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project +*OrchestrationApi* | [**getAIOrchestrationStatus**](docs/Api/OrchestrationApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *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* | [**projectsCreate**](docs/Api/ProjectsApi.md#projectscreate) | **POST** /api/v2/organizations/{organization}/projects | Create a new project @@ -272,6 +287,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseUsage](docs/Model/ChatInference200ResponseUsage.md) - [ChatInference202Response](docs/Model/ChatInference202Response.md) - [ChatInferenceRequest](docs/Model/ChatInferenceRequest.md) +- [ChatInferenceRequestGuardrails](docs/Model/ChatInferenceRequestGuardrails.md) - [ChatInferenceRequestMessagesInner](docs/Model/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/Model/ChatInferenceRequestMessagesInnerContent.md) - [ChatInferenceRequestMessagesInnerContentOneOfInner](docs/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.md) @@ -329,6 +345,9 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/Model/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/Model/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/Model/CreateEnvironmentRequestEnvironmentInner.md) +- [CreateOrchestrationRequest](docs/Model/CreateOrchestrationRequest.md) +- [CreateOrchestrationRequestInputSource](docs/Model/CreateOrchestrationRequestInputSource.md) +- [CreateOrchestrationRequestStopCondition](docs/Model/CreateOrchestrationRequestStopCondition.md) - [CreateTask201Response](docs/Model/CreateTask201Response.md) - [CreateTaskRequest](docs/Model/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/Model/CreateVectorCollection201Response.md) @@ -345,6 +364,9 @@ Class | Method | HTTP request | Description - [DeleteTask200Response](docs/Model/DeleteTask200Response.md) - [DeleteTask409Response](docs/Model/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/Model/DeleteVectorCollection200Response.md) +- [DeleteVectorDocuments200Response](docs/Model/DeleteVectorDocuments200Response.md) +- [DeleteVectorDocumentsRequest](docs/Model/DeleteVectorDocumentsRequest.md) +- [DeleteVectorDocumentsRequestMetadata](docs/Model/DeleteVectorDocumentsRequestMetadata.md) - [DownloadBackup200Response](docs/Model/DownloadBackup200Response.md) - [Embeddings200Response](docs/Model/Embeddings200Response.md) - [Embeddings200ResponseEmbeddings](docs/Model/Embeddings200ResponseEmbeddings.md) @@ -400,6 +422,8 @@ Class | Method | HTTP request | Description - [KVItemsDelete200Response](docs/Model/KVItemsDelete200Response.md) - [KVItemsShow200Response](docs/Model/KVItemsShow200Response.md) - [KVItemsShow200ResponseValue](docs/Model/KVItemsShow200ResponseValue.md) +- [KVLinkToProject200Response](docs/Model/KVLinkToProject200Response.md) +- [KVLinkToProjectRequest](docs/Model/KVLinkToProjectRequest.md) - [ListAIAgents200Response](docs/Model/ListAIAgents200Response.md) - [ListAIAgents200ResponseAgentsInner](docs/Model/ListAIAgents200ResponseAgentsInner.md) - [ListAIModels200Response](docs/Model/ListAIModels200Response.md) @@ -420,6 +444,9 @@ Class | Method | HTTP request | Description - [ListCustomTools200ResponseToolsInner](docs/Model/ListCustomTools200ResponseToolsInner.md) - [ListFiles200Response](docs/Model/ListFiles200Response.md) - [ListFiles200ResponseFilesInner](docs/Model/ListFiles200ResponseFilesInner.md) +- [ListOrchestrationBatches200Response](docs/Model/ListOrchestrationBatches200Response.md) +- [ListOrchestrationBatches200ResponseBatchesInner](docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md) +- [ListOrchestrations200Response](docs/Model/ListOrchestrations200Response.md) - [ListTasks200Response](docs/Model/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/Model/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/Model/ListVectorCollections200Response.md) @@ -515,6 +542,11 @@ Class | Method | HTTP request | Description - [V2DomainDnsValidationRecordsInner](docs/Model/V2DomainDnsValidationRecordsInner.md) - [V2DomainRequest](docs/Model/V2DomainRequest.md) - [V2Error](docs/Model/V2Error.md) +- [V2MetricData](docs/Model/V2MetricData.md) +- [V2MetricDataPoint](docs/Model/V2MetricDataPoint.md) +- [V2MetricDataPointTimestamp](docs/Model/V2MetricDataPointTimestamp.md) +- [V2MetricsMeta](docs/Model/V2MetricsMeta.md) +- [V2MetricsResponse](docs/Model/V2MetricsResponse.md) - [V2Organization](docs/Model/V2Organization.md) - [V2OrganizationRequest](docs/Model/V2OrganizationRequest.md) - [V2Project](docs/Model/V2Project.md) @@ -592,7 +624,7 @@ vendor/bin/phpunit This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: `4.9.0` - - Package version: `4.9.0` +- API version: `4.10.0` + - Package version: `4.10.0` - Generator version: `7.13.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/composer.json b/composer.json index 986243d..bd0dd54 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "quantcdn/quant-php-client", - "version": "4.9.0", + "version": "4.10.0", "description": "Unified API for QuantCDN Admin and QuantCloud Platform services", "keywords": [ "openapitools", diff --git a/composer.lock b/composer.lock index e229c57..4d43dae 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "19a99b66d2ea6c5b2a893f8f295c1a24", + "content-hash": "89845e6e03168ceeceaf49505082e7ff", "packages": [ { "name": "guzzlehttp/guzzle", diff --git a/docs/Api/AIOrchestrationsApi.md b/docs/Api/AIOrchestrationsApi.md new file mode 100644 index 0000000..b11d67b --- /dev/null +++ b/docs/Api/AIOrchestrationsApi.md @@ -0,0 +1,581 @@ +# QuantClient\AIOrchestrationsApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**cancelOrchestration()**](AIOrchestrationsApi.md#cancelOrchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration | +| [**createOrchestration()**](AIOrchestrationsApi.md#createOrchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration | +| [**deleteOrchestration()**](AIOrchestrationsApi.md#deleteOrchestration) | **DELETE** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration | +| [**getOrchestration()**](AIOrchestrationsApi.md#getOrchestration) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration | +| [**listOrchestrationBatches()**](AIOrchestrationsApi.md#listOrchestrationBatches) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches | +| [**listOrchestrations()**](AIOrchestrationsApi.md#listOrchestrations) | **GET** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations | +| [**pauseOrchestration()**](AIOrchestrationsApi.md#pauseOrchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration | +| [**resumeOrchestration()**](AIOrchestrationsApi.md#resumeOrchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration | +| [**startOrchestration()**](AIOrchestrationsApi.md#startOrchestration) | **POST** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration | + + +## `cancelOrchestration()` + +```php +cancelOrchestration($organisation, $orchestration_id): object +``` + +Cancel Durable Orchestration + +Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier + +try { + $result = $apiInstance->cancelOrchestration($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->cancelOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### Return type + +**object** + +### 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) + +## `createOrchestration()` + +```php +createOrchestration($organisation, $create_orchestration_request): object +``` + +Create Durable Orchestration + +Create a new durable orchestration for batch processing. * * **Input Sources:** * - `static`: Process a fixed list of items * - `task_query`: Process tasks matching a query * - `generator`: AI generates items from a prompt * * **Stop Conditions:** * - `all_complete`: Stop when all items processed * - `max_iterations`: Stop after N iterations * - `condition`: AI evaluates a prompt to decide * - `manual`: Run until manually stopped * * **Auto-start:** * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$create_orchestration_request = new \QuantClient\Model\CreateOrchestrationRequest(); // \QuantClient\Model\CreateOrchestrationRequest + +try { + $result = $apiInstance->createOrchestration($organisation, $create_orchestration_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->createOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **create_orchestration_request** | [**\QuantClient\Model\CreateOrchestrationRequest**](../Model/CreateOrchestrationRequest.md)| | | + +### Return type + +**object** + +### 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) + +## `deleteOrchestration()` + +```php +deleteOrchestration($organisation, $orchestration_id) +``` + +Delete Durable Orchestration + +Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier + +try { + $apiInstance->deleteOrchestration($organisation, $orchestration_id); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->deleteOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### 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) + +## `getOrchestration()` + +```php +getOrchestration($organisation, $orchestration_id): object +``` + +Get Durable Orchestration + +Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = orch_1704067200_abc123xyz; // string | Orchestration identifier + +try { + $result = $apiInstance->getOrchestration($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->getOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### Return type + +**object** + +### 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) + +## `listOrchestrationBatches()` + +```php +listOrchestrationBatches($organisation, $orchestration_id, $limit, $cursor): \QuantClient\Model\ListOrchestrationBatches200Response +``` + +List Orchestration Batches + +Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier +$limit = 20; // int | Maximum number of batches to return +$cursor = 'cursor_example'; // string | Pagination cursor from previous response + +try { + $result = $apiInstance->listOrchestrationBatches($organisation, $orchestration_id, $limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->listOrchestrationBatches: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | +| **limit** | **int**| Maximum number of batches to return | [optional] [default to 20] | +| **cursor** | **string**| Pagination cursor from previous response | [optional] | + +### Return type + +[**\QuantClient\Model\ListOrchestrationBatches200Response**](../Model/ListOrchestrationBatches200Response.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) + +## `listOrchestrations()` + +```php +listOrchestrations($organisation, $status, $limit, $cursor): \QuantClient\Model\ListOrchestrations200Response +``` + +List Durable Orchestrations + +List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$status = 'status_example'; // string | Filter by orchestration status +$limit = 20; // int | Maximum number of results +$cursor = 'cursor_example'; // string | Pagination cursor from previous response + +try { + $result = $apiInstance->listOrchestrations($organisation, $status, $limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->listOrchestrations: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **status** | **string**| Filter by orchestration status | [optional] | +| **limit** | **int**| Maximum number of results | [optional] [default to 20] | +| **cursor** | **string**| Pagination cursor from previous response | [optional] | + +### Return type + +[**\QuantClient\Model\ListOrchestrations200Response**](../Model/ListOrchestrations200Response.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) + +## `pauseOrchestration()` + +```php +pauseOrchestration($organisation, $orchestration_id): object +``` + +Pause Durable Orchestration + +Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier + +try { + $result = $apiInstance->pauseOrchestration($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->pauseOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### Return type + +**object** + +### 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) + +## `resumeOrchestration()` + +```php +resumeOrchestration($organisation, $orchestration_id): object +``` + +Resume Durable Orchestration + +Resume a paused orchestration. Processing continues from where it left off. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier + +try { + $result = $apiInstance->resumeOrchestration($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->resumeOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### Return type + +**object** + +### 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) + +## `startOrchestration()` + +```php +startOrchestration($organisation, $orchestration_id): object +``` + +Start Durable Orchestration + +Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIOrchestrationsApi( + // 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 machine name +$orchestration_id = 'orchestration_id_example'; // string | Orchestration identifier + +try { + $result = $apiInstance->startOrchestration($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIOrchestrationsApi->startOrchestration: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation machine name | | +| **orchestration_id** | **string**| Orchestration identifier | | + +### Return type + +**object** + +### 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/AIToolsApi.md b/docs/Api/AIToolsApi.md index a2bffdc..018d1e2 100644 --- a/docs/Api/AIToolsApi.md +++ b/docs/Api/AIToolsApi.md @@ -4,7 +4,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | Method | HTTP request | Description | | ------------- | ------------- | ------------- | -| [**getAIOrchestrationStatus()**](AIToolsApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status | +| [**getAIOrchestrationStatus()**](AIToolsApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) | | [**getAIToolExecutionStatus()**](AIToolsApi.md#getAIToolExecutionStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result | | [**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) | @@ -17,9 +17,9 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation getAIOrchestrationStatus($organisation, $orchestration_id): \QuantClient\Model\GetAIOrchestrationStatus200Response ``` -Get Orchestration Status +Get Tool Orchestration Status (Async Tool Polling) -Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries +Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries ### Example diff --git a/docs/Api/AIVectorDatabaseApi.md b/docs/Api/AIVectorDatabaseApi.md index 78a6581..1141c9e 100644 --- a/docs/Api/AIVectorDatabaseApi.md +++ b/docs/Api/AIVectorDatabaseApi.md @@ -6,6 +6,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | ------------- | ------------- | ------------- | | [**createVectorCollection()**](AIVectorDatabaseApi.md#createVectorCollection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection | | [**deleteVectorCollection()**](AIVectorDatabaseApi.md#deleteVectorCollection) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection | +| [**deleteVectorDocuments()**](AIVectorDatabaseApi.md#deleteVectorDocuments) | **DELETE** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection | | [**getVectorCollection()**](AIVectorDatabaseApi.md#getVectorCollection) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details | | [**listVectorCollections()**](AIVectorDatabaseApi.md#listVectorCollections) | **GET** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections | | [**queryVectorCollection()**](AIVectorDatabaseApi.md#queryVectorCollection) | **POST** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query | @@ -136,6 +137,70 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `deleteVectorDocuments()` + +```php +deleteVectorDocuments($organisation, $collection_id, $delete_vector_documents_request): \QuantClient\Model\DeleteVectorDocuments200Response +``` + +Delete Documents from Collection + +Delete documents from a collection. Supports three deletion modes: * * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection * * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs * * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values * * **Drupal Integration:** * When using with Drupal AI Search, use metadata deletion with: * - `field: 'drupal_entity_id'` to delete all chunks for specific entities * - `field: 'drupal_long_id'` to delete specific chunks + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIVectorDatabaseApi( + // 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 | Organisation machine name +$collection_id = 'collection_id_example'; // string | Collection UUID +$delete_vector_documents_request = new \QuantClient\Model\DeleteVectorDocumentsRequest(); // \QuantClient\Model\DeleteVectorDocumentsRequest + +try { + $result = $apiInstance->deleteVectorDocuments($organisation, $collection_id, $delete_vector_documents_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIVectorDatabaseApi->deleteVectorDocuments: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| Organisation machine name | | +| **collection_id** | **string**| Collection UUID | | +| **delete_vector_documents_request** | [**\QuantClient\Model\DeleteVectorDocumentsRequest**](../Model/DeleteVectorDocumentsRequest.md)| | | + +### Return type + +[**\QuantClient\Model\DeleteVectorDocuments200Response**](../Model/DeleteVectorDocuments200Response.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) + ## `getVectorCollection()` ```php diff --git a/docs/Api/CDNMetricsApi.md b/docs/Api/CDNMetricsApi.md new file mode 100644 index 0000000..0c43bc7 --- /dev/null +++ b/docs/Api/CDNMetricsApi.md @@ -0,0 +1,214 @@ +# QuantClient\CDNMetricsApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getDailyMetrics()**](CDNMetricsApi.md#getDailyMetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics | +| [**getHourlyMetrics()**](CDNMetricsApi.md#getHourlyMetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics | +| [**getMonthlyMetrics()**](CDNMetricsApi.md#getMonthlyMetrics) | **GET** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics | + + +## `getDailyMetrics()` + +```php +getDailyMetrics($organization, $project, $domain, $metrics, $timestamp_format): \QuantClient\Model\V2MetricsResponse +``` + +Get daily metrics + +Returns the last 30 days of daily metrics data + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\CDNMetricsApi( + // 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 = 'organization_example'; // string | Organization identifier +$project = 'project_example'; // string | Project identifier +$domain = 'domain_example'; // string | Filter by domain ID or domain name +$metrics = array('metrics_example'); // string[] | Metrics to return (default: hits, bytes) +$timestamp_format = 'iso8601'; // string | Timestamp format in response + +try { + $result = $apiInstance->getDailyMetrics($organization, $project, $domain, $metrics, $timestamp_format); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CDNMetricsApi->getDailyMetrics: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | +| **domain** | **string**| Filter by domain ID or domain name | [optional] | +| **metrics** | [**string[]**](../Model/string.md)| Metrics to return (default: hits, bytes) | [optional] | +| **timestamp_format** | **string**| Timestamp format in response | [optional] [default to 'iso8601'] | + +### Return type + +[**\QuantClient\Model\V2MetricsResponse**](../Model/V2MetricsResponse.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) + +## `getHourlyMetrics()` + +```php +getHourlyMetrics($organization, $project, $domain, $metrics, $timestamp_format): \QuantClient\Model\V2MetricsResponse +``` + +Get hourly metrics + +Returns the last hour of minute-by-minute metrics data + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\CDNMetricsApi( + // 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 = 'organization_example'; // string | Organization identifier +$project = 'project_example'; // string | Project identifier +$domain = 'domain_example'; // string | Filter by domain ID or domain name +$metrics = array('metrics_example'); // string[] | Metrics to return (default: hits, bytes) +$timestamp_format = 'iso8601'; // string | Timestamp format in response + +try { + $result = $apiInstance->getHourlyMetrics($organization, $project, $domain, $metrics, $timestamp_format); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CDNMetricsApi->getHourlyMetrics: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | +| **domain** | **string**| Filter by domain ID or domain name | [optional] | +| **metrics** | [**string[]**](../Model/string.md)| Metrics to return (default: hits, bytes) | [optional] | +| **timestamp_format** | **string**| Timestamp format in response | [optional] [default to 'iso8601'] | + +### Return type + +[**\QuantClient\Model\V2MetricsResponse**](../Model/V2MetricsResponse.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) + +## `getMonthlyMetrics()` + +```php +getMonthlyMetrics($organization, $project, $domain, $metrics, $timestamp_format): \QuantClient\Model\V2MetricsResponse +``` + +Get monthly metrics + +Returns the last 12 months of monthly metrics data + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\CDNMetricsApi( + // 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 = 'organization_example'; // string | Organization identifier +$project = 'project_example'; // string | Project identifier +$domain = 'domain_example'; // string | Filter by domain ID or domain name +$metrics = array('metrics_example'); // string[] | Metrics to return (default: hits, bytes) +$timestamp_format = 'iso8601'; // string | Timestamp format in response + +try { + $result = $apiInstance->getMonthlyMetrics($organization, $project, $domain, $metrics, $timestamp_format); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling CDNMetricsApi->getMonthlyMetrics: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | +| **domain** | **string**| Filter by domain ID or domain name | [optional] | +| **metrics** | [**string[]**](../Model/string.md)| Metrics to return (default: hits, bytes) | [optional] | +| **timestamp_format** | **string**| Timestamp format in response | [optional] [default to 'iso8601'] | + +### Return type + +[**\QuantClient\Model\V2MetricsResponse**](../Model/V2MetricsResponse.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/KVApi.md b/docs/Api/KVApi.md index 136f671..0f2e81d 100644 --- a/docs/Api/KVApi.md +++ b/docs/Api/KVApi.md @@ -11,8 +11,10 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**kVItemsList()**](KVApi.md#kVItemsList) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store | | [**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 | | [**kVList()**](KVApi.md#kVList) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores | | [**kVShow()**](KVApi.md#kVShow) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store | +| [**kVUnlinkFromProject()**](KVApi.md#kVUnlinkFromProject) | **DELETE** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project | ## `kVCreate()` @@ -468,6 +470,72 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `kVLinkToProject()` + +```php +kVLinkToProject($organization, $project, $store_id, $kv_link_to_project_request): \QuantClient\Model\KVLinkToProject200Response +``` + +Link a KV store to another project + +Share a KV store from the source project with a target project. The store will be accessible in the target project. + +### 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 | Source project identifier +$store_id = store-123; // string | KV store identifier +$kv_link_to_project_request = new \QuantClient\Model\KVLinkToProjectRequest(); // \QuantClient\Model\KVLinkToProjectRequest + +try { + $result = $apiInstance->kVLinkToProject($organization, $project, $store_id, $kv_link_to_project_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling KVApi->kVLinkToProject: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Source project identifier | | +| **store_id** | **string**| KV store identifier | | +| **kv_link_to_project_request** | [**\QuantClient\Model\KVLinkToProjectRequest**](../Model/KVLinkToProjectRequest.md)| | | + +### Return type + +[**\QuantClient\Model\KVLinkToProject200Response**](../Model/KVLinkToProject200Response.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) + ## `kVList()` ```php @@ -589,3 +657,67 @@ try { [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) + +## `kVUnlinkFromProject()` + +```php +kVUnlinkFromProject($organization, $project, $store_id): \QuantClient\Model\KVLinkToProject200Response +``` + +Unlink a KV store from this project + +Remove access to a linked KV store from this project. The store must be linked (not owned by this project). + +### 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 = store-123; // string | KV store identifier + +try { + $result = $apiInstance->kVUnlinkFromProject($organization, $project, $store_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling KVApi->kVUnlinkFromProject: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | +| **store_id** | **string**| KV store identifier | | + +### Return type + +[**\QuantClient\Model\KVLinkToProject200Response**](../Model/KVLinkToProject200Response.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/OrchestrationApi.md b/docs/Api/OrchestrationApi.md index d0e36f4..de77076 100644 --- a/docs/Api/OrchestrationApi.md +++ b/docs/Api/OrchestrationApi.md @@ -4,7 +4,7 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | Method | HTTP request | Description | | ------------- | ------------- | ------------- | -| [**getAIOrchestrationStatus()**](OrchestrationApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status | +| [**getAIOrchestrationStatus()**](OrchestrationApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) | ## `getAIOrchestrationStatus()` @@ -13,9 +13,9 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation getAIOrchestrationStatus($organisation, $orchestration_id): \QuantClient\Model\GetAIOrchestrationStatus200Response ``` -Get Orchestration Status +Get Tool Orchestration Status (Async Tool Polling) -Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries +Retrieves the status and synthesized result of a multi-tool async execution orchestration. * * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries ### Example diff --git a/docs/Model/ChatInferenceRequest.md b/docs/Model/ChatInferenceRequest.md index 73cbe07..9ff6f39 100644 --- a/docs/Model/ChatInferenceRequest.md +++ b/docs/Model/ChatInferenceRequest.md @@ -16,5 +16,7 @@ Name | Type | Description | Notes **tool_config** | [**\QuantClient\Model\ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **session_id** | **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] +**allowed_tools** | **string[]** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**guardrails** | [**\QuantClient\Model\ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.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/ChatInferenceRequestGuardrails.md b/docs/Model/ChatInferenceRequestGuardrails.md new file mode 100644 index 0000000..4d7d9d9 --- /dev/null +++ b/docs/Model/ChatInferenceRequestGuardrails.md @@ -0,0 +1,11 @@ +# # ChatInferenceRequestGuardrails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guardrail_identifier** | **string** | Guardrail identifier from AWS Bedrock | [optional] +**guardrail_version** | **string** | Guardrail version | [optional] +**trace** | **string** | Enable guardrail trace output | [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/ChatInferenceStreamRequest.md b/docs/Model/ChatInferenceStreamRequest.md index f0ea2ae..8f32d4f 100644 --- a/docs/Model/ChatInferenceStreamRequest.md +++ b/docs/Model/ChatInferenceStreamRequest.md @@ -15,5 +15,7 @@ Name | Type | Description | Notes **tool_config** | [**\QuantClient\Model\ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **session_id** | **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] +**allowed_tools** | **string[]** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**guardrails** | [**\QuantClient\Model\ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.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/CreateOrchestrationRequest.md b/docs/Model/CreateOrchestrationRequest.md new file mode 100644 index 0000000..19b37b8 --- /dev/null +++ b/docs/Model/CreateOrchestrationRequest.md @@ -0,0 +1,19 @@ +# # CreateOrchestrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | Orchestration name | +**description** | **string** | Optional description | [optional] +**agent_id** | **string** | Agent to process items | [optional] +**tool_id** | **string** | Tool to execute for items | [optional] +**workflow_id** | **string** | Workflow to run for items | [optional] +**input_source** | [**\QuantClient\Model\CreateOrchestrationRequestInputSource**](CreateOrchestrationRequestInputSource.md) | | +**batch_size** | **int** | Items per batch | [optional] [default to 10] +**concurrency** | **int** | Concurrent items within a batch | [optional] [default to 1] +**stop_condition** | [**\QuantClient\Model\CreateOrchestrationRequestStopCondition**](CreateOrchestrationRequestStopCondition.md) | | [optional] +**assigned_skills** | **string[]** | Skill IDs to assign | [optional] +**auto_start** | **bool** | Whether to start immediately | [optional] [default to true] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreateOrchestrationRequestInputSource.md b/docs/Model/CreateOrchestrationRequestInputSource.md new file mode 100644 index 0000000..17a5c3a --- /dev/null +++ b/docs/Model/CreateOrchestrationRequestInputSource.md @@ -0,0 +1,12 @@ +# # CreateOrchestrationRequestInputSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | Input source type (api type not yet supported) | +**items** | **object[]** | Static items (for type=static) | [optional] +**task_query** | **object** | Task query filters (for type=task_query) | [optional] +**generator_prompt** | **string** | AI prompt (for type=generator) | [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/CreateOrchestrationRequestStopCondition.md b/docs/Model/CreateOrchestrationRequestStopCondition.md new file mode 100644 index 0000000..8f27ca6 --- /dev/null +++ b/docs/Model/CreateOrchestrationRequestStopCondition.md @@ -0,0 +1,11 @@ +# # CreateOrchestrationRequestStopCondition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [optional] [default to 'all_complete'] +**max_iterations** | **int** | Max iterations (for type=max_iterations) | [optional] +**condition_prompt** | **string** | AI prompt to evaluate stop (for type=condition) | [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/DeleteVectorDocuments200Response.md b/docs/Model/DeleteVectorDocuments200Response.md new file mode 100644 index 0000000..b6522bf --- /dev/null +++ b/docs/Model/DeleteVectorDocuments200Response.md @@ -0,0 +1,11 @@ +# # DeleteVectorDocuments200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **string** | | [optional] +**collection_id** | **string** | | [optional] +**deleted_count** | **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/DeleteVectorDocumentsRequest.md b/docs/Model/DeleteVectorDocumentsRequest.md new file mode 100644 index 0000000..11eba47 --- /dev/null +++ b/docs/Model/DeleteVectorDocumentsRequest.md @@ -0,0 +1,11 @@ +# # DeleteVectorDocumentsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**purge_all** | **bool** | Delete ALL documents in collection | [optional] +**document_ids** | **string[]** | Delete specific documents by UUID | [optional] +**metadata** | [**\QuantClient\Model\DeleteVectorDocumentsRequestMetadata**](DeleteVectorDocumentsRequestMetadata.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/DeleteVectorDocumentsRequestMetadata.md b/docs/Model/DeleteVectorDocumentsRequestMetadata.md new file mode 100644 index 0000000..1d18252 --- /dev/null +++ b/docs/Model/DeleteVectorDocumentsRequestMetadata.md @@ -0,0 +1,10 @@ +# # DeleteVectorDocumentsRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**field** | **string** | Metadata field name (e.g., 'drupal_entity_id') | [optional] +**values** | **string[]** | Values to match (OR logic) | [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/KVLinkToProject200Response.md b/docs/Model/KVLinkToProject200Response.md new file mode 100644 index 0000000..b4effc5 --- /dev/null +++ b/docs/Model/KVLinkToProject200Response.md @@ -0,0 +1,10 @@ +# # KVLinkToProject200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **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/KVLinkToProjectRequest.md b/docs/Model/KVLinkToProjectRequest.md new file mode 100644 index 0000000..45b1ccc --- /dev/null +++ b/docs/Model/KVLinkToProjectRequest.md @@ -0,0 +1,9 @@ +# # KVLinkToProjectRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project_id** | **int** | Target project ID to link to | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListOrchestrationBatches200Response.md b/docs/Model/ListOrchestrationBatches200Response.md new file mode 100644 index 0000000..4cd8025 --- /dev/null +++ b/docs/Model/ListOrchestrationBatches200Response.md @@ -0,0 +1,10 @@ +# # ListOrchestrationBatches200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batches** | [**\QuantClient\Model\ListOrchestrationBatches200ResponseBatchesInner[]**](ListOrchestrationBatches200ResponseBatchesInner.md) | | [optional] +**next_cursor** | **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/ListOrchestrationBatches200ResponseBatchesInner.md b/docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md new file mode 100644 index 0000000..3fa8cc7 --- /dev/null +++ b/docs/Model/ListOrchestrationBatches200ResponseBatchesInner.md @@ -0,0 +1,18 @@ +# # ListOrchestrationBatches200ResponseBatchesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_id** | **string** | | [optional] +**orchestration_id** | **string** | | [optional] +**iteration** | **int** | | [optional] +**item_count** | **int** | | [optional] +**completed_count** | **int** | | [optional] +**failed_count** | **int** | | [optional] +**status** | **string** | | [optional] +**started_at** | **\DateTime** | | [optional] +**completed_at** | **\DateTime** | | [optional] +**error** | **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/ListOrchestrations200Response.md b/docs/Model/ListOrchestrations200Response.md new file mode 100644 index 0000000..496815d --- /dev/null +++ b/docs/Model/ListOrchestrations200Response.md @@ -0,0 +1,10 @@ +# # ListOrchestrations200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orchestrations** | **object[]** | | [optional] +**next_cursor** | **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/V2CrawlerSchedule.md b/docs/Model/V2CrawlerSchedule.md index 13bf041..4eb59fe 100644 --- a/docs/Model/V2CrawlerSchedule.md +++ b/docs/Model/V2CrawlerSchedule.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **crawler_uuid** | **string** | Crawler UUID | [optional] **project_id** | **int** | Project ID | **crawler_last_run_id** | **int** | Last run ID | -**schedule_cron_string** | **string** | Cron schedule string | +**schedule_cron_string** | **string** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM. | **created_at** | **\DateTime** | Creation timestamp | [optional] **updated_at** | **\DateTime** | Last update timestamp | [optional] diff --git a/docs/Model/V2CrawlerScheduleRequest.md b/docs/Model/V2CrawlerScheduleRequest.md index 1edc1a5..2a8971a 100644 --- a/docs/Model/V2CrawlerScheduleRequest.md +++ b/docs/Model/V2CrawlerScheduleRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **string** | Schedule name | -**schedule_cron_string** | **string** | Cron schedule string | +**name** | **string** | Schedule name. If not provided, defaults to 'Schedule {crawler_name}'. | [optional] +**schedule_cron_string** | **string** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM. | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/V2MetricData.md b/docs/Model/V2MetricData.md new file mode 100644 index 0000000..692332d --- /dev/null +++ b/docs/Model/V2MetricData.md @@ -0,0 +1,12 @@ +# # V2MetricData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**series** | [**\QuantClient\Model\V2MetricDataPoint[]**](V2MetricDataPoint.md) | Time series data points | +**period_total** | **float** | Total value for the period | +**all_time_total** | **float** | All-time total value | +**period_average** | **float** | Average value per time unit in the period | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/V2MetricDataPoint.md b/docs/Model/V2MetricDataPoint.md new file mode 100644 index 0000000..c2d70ad --- /dev/null +++ b/docs/Model/V2MetricDataPoint.md @@ -0,0 +1,10 @@ +# # V2MetricDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timestamp** | [**\QuantClient\Model\V2MetricDataPointTimestamp**](V2MetricDataPointTimestamp.md) | | +**value** | **float** | Metric value at this timestamp | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/V2MetricDataPointTimestamp.md b/docs/Model/V2MetricDataPointTimestamp.md new file mode 100644 index 0000000..8f0b225 --- /dev/null +++ b/docs/Model/V2MetricDataPointTimestamp.md @@ -0,0 +1,8 @@ +# # V2MetricDataPointTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/V2MetricsMeta.md b/docs/Model/V2MetricsMeta.md new file mode 100644 index 0000000..57b8226 --- /dev/null +++ b/docs/Model/V2MetricsMeta.md @@ -0,0 +1,14 @@ +# # V2MetricsMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**period** | **string** | The period type for this data | +**granularity** | **string** | The granularity of data points | +**start_time** | **string** | Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**end_time** | **string** | End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**metrics** | **string[]** | List of metrics included in the response | +**domain** | **string** | Domain filter applied (if any) | [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/V2MetricsResponse.md b/docs/Model/V2MetricsResponse.md new file mode 100644 index 0000000..744a99a --- /dev/null +++ b/docs/Model/V2MetricsResponse.md @@ -0,0 +1,10 @@ +# # V2MetricsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**\QuantClient\Model\V2MetricsMeta**](V2MetricsMeta.md) | | +**data** | [**array**](V2MetricData.md) | Metrics data keyed by metric name | + +[[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 c2dde72..e67f367 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.9.0 + * The version of the OpenAPI document: 4.10.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 e3d48d7..736212e 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.9.0 + * The version of the OpenAPI document: 4.10.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 0413404..c9f30e6 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.9.0 + * The version of the OpenAPI document: 4.10.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 f121629..2c7ed97 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.9.0 + * The version of the OpenAPI document: 4.10.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 f6d3f45..466d081 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIMonitoringApi.php b/src/Api/AIMonitoringApi.php index 7a9137d..03ba7ca 100644 --- a/src/Api/AIMonitoringApi.php +++ b/src/Api/AIMonitoringApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIOrchestrationsApi.php b/src/Api/AIOrchestrationsApi.php new file mode 100644 index 0000000..040ff95 --- /dev/null +++ b/src/Api/AIOrchestrationsApi.php @@ -0,0 +1,2857 @@ + [ + 'application/json', + ], + 'createOrchestration' => [ + 'application/json', + ], + 'deleteOrchestration' => [ + 'application/json', + ], + 'getOrchestration' => [ + 'application/json', + ], + 'listOrchestrationBatches' => [ + 'application/json', + ], + 'listOrchestrations' => [ + 'application/json', + ], + 'pauseOrchestration' => [ + 'application/json', + ], + 'resumeOrchestration' => [ + 'application/json', + ], + 'startOrchestration' => [ + '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 cancelOrchestration + * + * Cancel Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancelOrchestration'] 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 object + */ + public function cancelOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['cancelOrchestration'][0]) + { + list($response) = $this->cancelOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation cancelOrchestrationWithHttpInfo + * + * Cancel Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancelOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['cancelOrchestration'][0]) + { + $request = $this->cancelOrchestrationRequest($organisation, $orchestration_id, $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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation cancelOrchestrationAsync + * + * Cancel Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancelOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['cancelOrchestration'][0]) + { + return $this->cancelOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelOrchestrationAsyncWithHttpInfo + * + * Cancel Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancelOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['cancelOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->cancelOrchestrationRequest($organisation, $orchestration_id, $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 'cancelOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cancelOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function cancelOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['cancelOrchestration'][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 cancelOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling cancelOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createOrchestration + * + * Create Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param \QuantClient\Model\CreateOrchestrationRequest $create_orchestration_request create_orchestration_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrchestration'] 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 object + */ + public function createOrchestration($organisation, $create_orchestration_request, string $contentType = self::contentTypes['createOrchestration'][0]) + { + list($response) = $this->createOrchestrationWithHttpInfo($organisation, $create_orchestration_request, $contentType); + return $response; + } + + /** + * Operation createOrchestrationWithHttpInfo + * + * Create Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param \QuantClient\Model\CreateOrchestrationRequest $create_orchestration_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrchestrationWithHttpInfo($organisation, $create_orchestration_request, string $contentType = self::contentTypes['createOrchestration'][0]) + { + $request = $this->createOrchestrationRequest($organisation, $create_orchestration_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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation createOrchestrationAsync + * + * Create Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param \QuantClient\Model\CreateOrchestrationRequest $create_orchestration_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrchestrationAsync($organisation, $create_orchestration_request, string $contentType = self::contentTypes['createOrchestration'][0]) + { + return $this->createOrchestrationAsyncWithHttpInfo($organisation, $create_orchestration_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createOrchestrationAsyncWithHttpInfo + * + * Create Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param \QuantClient\Model\CreateOrchestrationRequest $create_orchestration_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrchestrationAsyncWithHttpInfo($organisation, $create_orchestration_request, string $contentType = self::contentTypes['createOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->createOrchestrationRequest($organisation, $create_orchestration_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 'createOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param \QuantClient\Model\CreateOrchestrationRequest $create_orchestration_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createOrchestrationRequest($organisation, $create_orchestration_request, string $contentType = self::contentTypes['createOrchestration'][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 createOrchestration' + ); + } + + // verify the required parameter 'create_orchestration_request' is set + if ($create_orchestration_request === null || (is_array($create_orchestration_request) && count($create_orchestration_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $create_orchestration_request when calling createOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations'; + $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_orchestration_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_orchestration_request)); + } else { + $httpBody = $create_orchestration_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 deleteOrchestration + * + * Delete Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrchestration'] 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 deleteOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['deleteOrchestration'][0]) + { + $this->deleteOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + } + + /** + * Operation deleteOrchestrationWithHttpInfo + * + * Delete Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrchestration'] 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 deleteOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['deleteOrchestration'][0]) + { + $request = $this->deleteOrchestrationRequest($organisation, $orchestration_id, $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 deleteOrchestrationAsync + * + * Delete Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['deleteOrchestration'][0]) + { + return $this->deleteOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteOrchestrationAsyncWithHttpInfo + * + * Delete Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['deleteOrchestration'][0]) + { + $returnType = ''; + $request = $this->deleteOrchestrationRequest($organisation, $orchestration_id, $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 'deleteOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['deleteOrchestration'][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 deleteOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling deleteOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_id), + $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 getOrchestration + * + * Get Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrchestration'] 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 object + */ + public function getOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['getOrchestration'][0]) + { + list($response) = $this->getOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation getOrchestrationWithHttpInfo + * + * Get Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getOrchestration'][0]) + { + $request = $this->getOrchestrationRequest($organisation, $orchestration_id, $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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getOrchestrationAsync + * + * Get Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['getOrchestration'][0]) + { + return $this->getOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOrchestrationAsyncWithHttpInfo + * + * Get Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->getOrchestrationRequest($organisation, $orchestration_id, $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 'getOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['getOrchestration'][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 getOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling getOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listOrchestrationBatches + * + * List Orchestration Batches + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param int|null $limit Maximum number of batches to return (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrationBatches'] 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\ListOrchestrationBatches200Response + */ + public function listOrchestrationBatches($organisation, $orchestration_id, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrationBatches'][0]) + { + list($response) = $this->listOrchestrationBatchesWithHttpInfo($organisation, $orchestration_id, $limit, $cursor, $contentType); + return $response; + } + + /** + * Operation listOrchestrationBatchesWithHttpInfo + * + * List Orchestration Batches + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param int|null $limit Maximum number of batches to return (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrationBatches'] 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\ListOrchestrationBatches200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function listOrchestrationBatchesWithHttpInfo($organisation, $orchestration_id, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrationBatches'][0]) + { + $request = $this->listOrchestrationBatchesRequest($organisation, $orchestration_id, $limit, $cursor, $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\ListOrchestrationBatches200Response', + $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\ListOrchestrationBatches200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ListOrchestrationBatches200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listOrchestrationBatchesAsync + * + * List Orchestration Batches + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param int|null $limit Maximum number of batches to return (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrationBatches'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrchestrationBatchesAsync($organisation, $orchestration_id, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrationBatches'][0]) + { + return $this->listOrchestrationBatchesAsyncWithHttpInfo($organisation, $orchestration_id, $limit, $cursor, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listOrchestrationBatchesAsyncWithHttpInfo + * + * List Orchestration Batches + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param int|null $limit Maximum number of batches to return (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrationBatches'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrchestrationBatchesAsyncWithHttpInfo($organisation, $orchestration_id, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrationBatches'][0]) + { + $returnType = '\QuantClient\Model\ListOrchestrationBatches200Response'; + $request = $this->listOrchestrationBatchesRequest($organisation, $orchestration_id, $limit, $cursor, $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 'listOrchestrationBatches' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param int|null $limit Maximum number of batches to return (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrationBatches'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listOrchestrationBatchesRequest($organisation, $orchestration_id, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrationBatches'][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 listOrchestrationBatches' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling listOrchestrationBatches' + ); + } + + if ($limit !== null && $limit > 100) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AIOrchestrationsApi.listOrchestrationBatches, must be smaller than or equal to 100.'); + } + if ($limit !== null && $limit < 1) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AIOrchestrationsApi.listOrchestrationBatches, must be bigger than or equal to 1.'); + } + + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches'; + $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( + $cursor, + 'cursor', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listOrchestrations + * + * List Durable Orchestrations + * + * @param string $organisation The organisation machine name (required) + * @param string|null $status Filter by orchestration status (optional) + * @param int|null $limit Maximum number of results (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrations'] 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\ListOrchestrations200Response + */ + public function listOrchestrations($organisation, $status = null, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrations'][0]) + { + list($response) = $this->listOrchestrationsWithHttpInfo($organisation, $status, $limit, $cursor, $contentType); + return $response; + } + + /** + * Operation listOrchestrationsWithHttpInfo + * + * List Durable Orchestrations + * + * @param string $organisation The organisation machine name (required) + * @param string|null $status Filter by orchestration status (optional) + * @param int|null $limit Maximum number of results (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrations'] 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\ListOrchestrations200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function listOrchestrationsWithHttpInfo($organisation, $status = null, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrations'][0]) + { + $request = $this->listOrchestrationsRequest($organisation, $status, $limit, $cursor, $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\ListOrchestrations200Response', + $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\ListOrchestrations200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ListOrchestrations200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listOrchestrationsAsync + * + * List Durable Orchestrations + * + * @param string $organisation The organisation machine name (required) + * @param string|null $status Filter by orchestration status (optional) + * @param int|null $limit Maximum number of results (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrations'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrchestrationsAsync($organisation, $status = null, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrations'][0]) + { + return $this->listOrchestrationsAsyncWithHttpInfo($organisation, $status, $limit, $cursor, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listOrchestrationsAsyncWithHttpInfo + * + * List Durable Orchestrations + * + * @param string $organisation The organisation machine name (required) + * @param string|null $status Filter by orchestration status (optional) + * @param int|null $limit Maximum number of results (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrations'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listOrchestrationsAsyncWithHttpInfo($organisation, $status = null, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrations'][0]) + { + $returnType = '\QuantClient\Model\ListOrchestrations200Response'; + $request = $this->listOrchestrationsRequest($organisation, $status, $limit, $cursor, $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 'listOrchestrations' + * + * @param string $organisation The organisation machine name (required) + * @param string|null $status Filter by orchestration status (optional) + * @param int|null $limit Maximum number of results (optional, default to 20) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listOrchestrations'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listOrchestrationsRequest($organisation, $status = null, $limit = 20, $cursor = null, string $contentType = self::contentTypes['listOrchestrations'][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 listOrchestrations' + ); + } + + + if ($limit !== null && $limit > 100) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AIOrchestrationsApi.listOrchestrations, must be smaller than or equal to 100.'); + } + if ($limit !== null && $limit < 1) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AIOrchestrationsApi.listOrchestrations, must be bigger than or equal to 1.'); + } + + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $status, + 'status', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // 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( + $cursor, + 'cursor', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // 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 pauseOrchestration + * + * Pause Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['pauseOrchestration'] 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 object + */ + public function pauseOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['pauseOrchestration'][0]) + { + list($response) = $this->pauseOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation pauseOrchestrationWithHttpInfo + * + * Pause Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['pauseOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function pauseOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['pauseOrchestration'][0]) + { + $request = $this->pauseOrchestrationRequest($organisation, $orchestration_id, $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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation pauseOrchestrationAsync + * + * Pause Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['pauseOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['pauseOrchestration'][0]) + { + return $this->pauseOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation pauseOrchestrationAsyncWithHttpInfo + * + * Pause Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['pauseOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function pauseOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['pauseOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->pauseOrchestrationRequest($organisation, $orchestration_id, $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 'pauseOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['pauseOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function pauseOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['pauseOrchestration'][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 pauseOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling pauseOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation resumeOrchestration + * + * Resume Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['resumeOrchestration'] 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 object + */ + public function resumeOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['resumeOrchestration'][0]) + { + list($response) = $this->resumeOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation resumeOrchestrationWithHttpInfo + * + * Resume Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['resumeOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function resumeOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['resumeOrchestration'][0]) + { + $request = $this->resumeOrchestrationRequest($organisation, $orchestration_id, $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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation resumeOrchestrationAsync + * + * Resume Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['resumeOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['resumeOrchestration'][0]) + { + return $this->resumeOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation resumeOrchestrationAsyncWithHttpInfo + * + * Resume Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['resumeOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function resumeOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['resumeOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->resumeOrchestrationRequest($organisation, $orchestration_id, $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 'resumeOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['resumeOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function resumeOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['resumeOrchestration'][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 resumeOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling resumeOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation startOrchestration + * + * Start Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['startOrchestration'] 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 object + */ + public function startOrchestration($organisation, $orchestration_id, string $contentType = self::contentTypes['startOrchestration'][0]) + { + list($response) = $this->startOrchestrationWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation startOrchestrationWithHttpInfo + * + * Start Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['startOrchestration'] 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 object, HTTP status code, HTTP response headers (array of strings) + */ + public function startOrchestrationWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['startOrchestration'][0]) + { + $request = $this->startOrchestrationRequest($organisation, $orchestration_id, $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( + 'object', + $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( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation startOrchestrationAsync + * + * Start Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['startOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startOrchestrationAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['startOrchestration'][0]) + { + return $this->startOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation startOrchestrationAsyncWithHttpInfo + * + * Start Durable Orchestration + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['startOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startOrchestrationAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['startOrchestration'][0]) + { + $returnType = 'object'; + $request = $this->startOrchestrationRequest($organisation, $orchestration_id, $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 'startOrchestration' + * + * @param string $organisation The organisation machine name (required) + * @param string $orchestration_id Orchestration identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['startOrchestration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function startOrchestrationRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['startOrchestration'][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 startOrchestration' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling startOrchestration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_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( + 'POST', + $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/AISessionsApi.php b/src/Api/AISessionsApi.php index b852b4b..99af621 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.9.0 + * The version of the OpenAPI document: 4.10.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 708b5b9..71c6cdd 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.9.0 + * The version of the OpenAPI document: 4.10.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 4e19460..58c4f89 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -140,7 +140,7 @@ public function getConfig() /** * Operation getAIOrchestrationStatus * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -159,7 +159,7 @@ public function getAIOrchestrationStatus($organisation, $orchestration_id, strin /** * Operation getAIOrchestrationStatusWithHttpInfo * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -259,7 +259,7 @@ public function getAIOrchestrationStatusWithHttpInfo($organisation, $orchestrati /** * Operation getAIOrchestrationStatusAsync * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -281,7 +281,7 @@ function ($response) { /** * Operation getAIOrchestrationStatusAsyncWithHttpInfo * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) diff --git a/src/Api/AIVectorDatabaseApi.php b/src/Api/AIVectorDatabaseApi.php index c80bd13..7eb41cb 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -80,6 +80,9 @@ class AIVectorDatabaseApi 'deleteVectorCollection' => [ 'application/json', ], + 'deleteVectorDocuments' => [ + 'application/json', + ], 'getVectorCollection' => [ 'application/json', ], @@ -723,6 +726,317 @@ public function deleteVectorCollectionRequest($organisation, $collection_id, str ); } + /** + * Operation deleteVectorDocuments + * + * Delete Documents from Collection + * + * @param string $organisation Organisation machine name (required) + * @param string $collection_id Collection UUID (required) + * @param \QuantClient\Model\DeleteVectorDocumentsRequest $delete_vector_documents_request delete_vector_documents_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVectorDocuments'] 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\DeleteVectorDocuments200Response + */ + public function deleteVectorDocuments($organisation, $collection_id, $delete_vector_documents_request, string $contentType = self::contentTypes['deleteVectorDocuments'][0]) + { + list($response) = $this->deleteVectorDocumentsWithHttpInfo($organisation, $collection_id, $delete_vector_documents_request, $contentType); + return $response; + } + + /** + * Operation deleteVectorDocumentsWithHttpInfo + * + * Delete Documents from Collection + * + * @param string $organisation Organisation machine name (required) + * @param string $collection_id Collection UUID (required) + * @param \QuantClient\Model\DeleteVectorDocumentsRequest $delete_vector_documents_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVectorDocuments'] 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\DeleteVectorDocuments200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteVectorDocumentsWithHttpInfo($organisation, $collection_id, $delete_vector_documents_request, string $contentType = self::contentTypes['deleteVectorDocuments'][0]) + { + $request = $this->deleteVectorDocumentsRequest($organisation, $collection_id, $delete_vector_documents_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\DeleteVectorDocuments200Response', + $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\DeleteVectorDocuments200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\DeleteVectorDocuments200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation deleteVectorDocumentsAsync + * + * Delete Documents from Collection + * + * @param string $organisation Organisation machine name (required) + * @param string $collection_id Collection UUID (required) + * @param \QuantClient\Model\DeleteVectorDocumentsRequest $delete_vector_documents_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVectorDocuments'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteVectorDocumentsAsync($organisation, $collection_id, $delete_vector_documents_request, string $contentType = self::contentTypes['deleteVectorDocuments'][0]) + { + return $this->deleteVectorDocumentsAsyncWithHttpInfo($organisation, $collection_id, $delete_vector_documents_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteVectorDocumentsAsyncWithHttpInfo + * + * Delete Documents from Collection + * + * @param string $organisation Organisation machine name (required) + * @param string $collection_id Collection UUID (required) + * @param \QuantClient\Model\DeleteVectorDocumentsRequest $delete_vector_documents_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVectorDocuments'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteVectorDocumentsAsyncWithHttpInfo($organisation, $collection_id, $delete_vector_documents_request, string $contentType = self::contentTypes['deleteVectorDocuments'][0]) + { + $returnType = '\QuantClient\Model\DeleteVectorDocuments200Response'; + $request = $this->deleteVectorDocumentsRequest($organisation, $collection_id, $delete_vector_documents_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 'deleteVectorDocuments' + * + * @param string $organisation Organisation machine name (required) + * @param string $collection_id Collection UUID (required) + * @param \QuantClient\Model\DeleteVectorDocumentsRequest $delete_vector_documents_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVectorDocuments'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteVectorDocumentsRequest($organisation, $collection_id, $delete_vector_documents_request, string $contentType = self::contentTypes['deleteVectorDocuments'][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 deleteVectorDocuments' + ); + } + + // verify the required parameter 'collection_id' is set + if ($collection_id === null || (is_array($collection_id) && count($collection_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $collection_id when calling deleteVectorDocuments' + ); + } + + // verify the required parameter 'delete_vector_documents_request' is set + if ($delete_vector_documents_request === null || (is_array($delete_vector_documents_request) && count($delete_vector_documents_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $delete_vector_documents_request when calling deleteVectorDocuments' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($collection_id !== null) { + $resourcePath = str_replace( + '{' . 'collectionId' . '}', + ObjectSerializer::toPathValue($collection_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($delete_vector_documents_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($delete_vector_documents_request)); + } else { + $httpBody = $delete_vector_documents_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( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getVectorCollection * diff --git a/src/Api/ApplicationsApi.php b/src/Api/ApplicationsApi.php index eaf6b39..9e1f0a2 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.9.0 + * The version of the OpenAPI document: 4.10.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 a6e02e1..0f346ee 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CDNMetricsApi.php b/src/Api/CDNMetricsApi.php new file mode 100644 index 0000000..3a65287 --- /dev/null +++ b/src/Api/CDNMetricsApi.php @@ -0,0 +1,1206 @@ + [ + 'application/json', + ], + 'getHourlyMetrics' => [ + 'application/json', + ], + 'getMonthlyMetrics' => [ + '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 getDailyMetrics + * + * Get daily metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDailyMetrics'] 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\V2MetricsResponse + */ + public function getDailyMetrics($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getDailyMetrics'][0]) + { + list($response) = $this->getDailyMetricsWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType); + return $response; + } + + /** + * Operation getDailyMetricsWithHttpInfo + * + * Get daily metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDailyMetrics'] 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\V2MetricsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getDailyMetricsWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getDailyMetrics'][0]) + { + $request = $this->getDailyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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\V2MetricsResponse', + $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\V2MetricsResponse', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2MetricsResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getDailyMetricsAsync + * + * Get daily metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDailyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDailyMetricsAsync($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getDailyMetrics'][0]) + { + return $this->getDailyMetricsAsyncWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDailyMetricsAsyncWithHttpInfo + * + * Get daily metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDailyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDailyMetricsAsyncWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getDailyMetrics'][0]) + { + $returnType = '\QuantClient\Model\V2MetricsResponse'; + $request = $this->getDailyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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 'getDailyMetrics' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDailyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getDailyMetricsRequest($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getDailyMetrics'][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 getDailyMetrics' + ); + } + + // 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 getDailyMetrics' + ); + } + + + + + + $resourcePath = '/v2/organizations/{organization}/projects/{project}/metrics/daily'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // 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( + $metrics, + 'metrics[]', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $timestamp_format, + 'timestamp_format', // 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 getHourlyMetrics + * + * Get hourly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHourlyMetrics'] 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\V2MetricsResponse + */ + public function getHourlyMetrics($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getHourlyMetrics'][0]) + { + list($response) = $this->getHourlyMetricsWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType); + return $response; + } + + /** + * Operation getHourlyMetricsWithHttpInfo + * + * Get hourly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHourlyMetrics'] 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\V2MetricsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getHourlyMetricsWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getHourlyMetrics'][0]) + { + $request = $this->getHourlyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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\V2MetricsResponse', + $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\V2MetricsResponse', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2MetricsResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getHourlyMetricsAsync + * + * Get hourly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHourlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getHourlyMetricsAsync($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getHourlyMetrics'][0]) + { + return $this->getHourlyMetricsAsyncWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getHourlyMetricsAsyncWithHttpInfo + * + * Get hourly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHourlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getHourlyMetricsAsyncWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getHourlyMetrics'][0]) + { + $returnType = '\QuantClient\Model\V2MetricsResponse'; + $request = $this->getHourlyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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 'getHourlyMetrics' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHourlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getHourlyMetricsRequest($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getHourlyMetrics'][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 getHourlyMetrics' + ); + } + + // 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 getHourlyMetrics' + ); + } + + + + + + $resourcePath = '/v2/organizations/{organization}/projects/{project}/metrics/hourly'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // 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( + $metrics, + 'metrics[]', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $timestamp_format, + 'timestamp_format', // 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 getMonthlyMetrics + * + * Get monthly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMonthlyMetrics'] 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\V2MetricsResponse + */ + public function getMonthlyMetrics($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getMonthlyMetrics'][0]) + { + list($response) = $this->getMonthlyMetricsWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType); + return $response; + } + + /** + * Operation getMonthlyMetricsWithHttpInfo + * + * Get monthly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMonthlyMetrics'] 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\V2MetricsResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getMonthlyMetricsWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getMonthlyMetrics'][0]) + { + $request = $this->getMonthlyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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\V2MetricsResponse', + $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\V2MetricsResponse', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2MetricsResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getMonthlyMetricsAsync + * + * Get monthly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMonthlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMonthlyMetricsAsync($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getMonthlyMetrics'][0]) + { + return $this->getMonthlyMetricsAsyncWithHttpInfo($organization, $project, $domain, $metrics, $timestamp_format, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMonthlyMetricsAsyncWithHttpInfo + * + * Get monthly metrics + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMonthlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMonthlyMetricsAsyncWithHttpInfo($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getMonthlyMetrics'][0]) + { + $returnType = '\QuantClient\Model\V2MetricsResponse'; + $request = $this->getMonthlyMetricsRequest($organization, $project, $domain, $metrics, $timestamp_format, $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 'getMonthlyMetrics' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string|null $domain Filter by domain ID or domain name (optional) + * @param string[]|null $metrics Metrics to return (default: hits, bytes) (optional) + * @param string|null $timestamp_format Timestamp format in response (optional, default to 'iso8601') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getMonthlyMetrics'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getMonthlyMetricsRequest($organization, $project, $domain = null, $metrics = null, $timestamp_format = 'iso8601', string $contentType = self::contentTypes['getMonthlyMetrics'][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 getMonthlyMetrics' + ); + } + + // 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 getMonthlyMetrics' + ); + } + + + + + + $resourcePath = '/v2/organizations/{organization}/projects/{project}/metrics/monthly'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // 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( + $metrics, + 'metrics[]', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $timestamp_format, + 'timestamp_format', // 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 + ); + } + + /** + * 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/CommandsApi.php b/src/Api/CommandsApi.php index 3b1ec6d..507b127 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.9.0 + * The version of the OpenAPI document: 4.10.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 6675142..fbfb755 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.9.0 + * The version of the OpenAPI document: 4.10.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 fc6c4a6..32d3f80 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.9.0 + * The version of the OpenAPI document: 4.10.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 115c4bc..cf96c91 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.9.0 + * The version of the OpenAPI document: 4.10.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 f60f891..56c41de 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.9.0 + * The version of the OpenAPI document: 4.10.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 d9e722e..4924945 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.9.0 + * The version of the OpenAPI document: 4.10.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 c2775d8..3136811 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.9.0 + * The version of the OpenAPI document: 4.10.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 889de3b..de5fc8b 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.9.0 + * The version of the OpenAPI document: 4.10.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 2848346..71999b1 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/KVApi.php b/src/Api/KVApi.php index e434463..be8b56c 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -95,12 +95,18 @@ class KVApi 'kVItemsUpdate' => [ 'application/json', ], + 'kVLinkToProject' => [ + 'application/json', + ], 'kVList' => [ 'application/json', ], 'kVShow' => [ 'application/json', ], + 'kVUnlinkFromProject' => [ + 'application/json', + ], ]; /** @@ -2653,40 +2659,44 @@ public function kVItemsUpdateRequest($organization, $project, $store_id, $key, $ } /** - * Operation kVList + * Operation kVLinkToProject * - * List key-value stores + * Link a KV store to another project * * @param string $organization Organization identifier (required) - * @param string $project Project identifier (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation + * @param string $project Source project identifier (required) + * @param string $store_id KV store identifier (required) + * @param \QuantClient\Model\KVLinkToProjectRequest $kv_link_to_project_request kv_link_to_project_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVLinkToProject'] 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\V2Store[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + * @return \QuantClient\Model\KVLinkToProject200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error */ - public function kVList($organization, $project, string $contentType = self::contentTypes['kVList'][0]) + public function kVLinkToProject($organization, $project, $store_id, $kv_link_to_project_request, string $contentType = self::contentTypes['kVLinkToProject'][0]) { - list($response) = $this->kVListWithHttpInfo($organization, $project, $contentType); + list($response) = $this->kVLinkToProjectWithHttpInfo($organization, $project, $store_id, $kv_link_to_project_request, $contentType); return $response; } /** - * Operation kVListWithHttpInfo + * Operation kVLinkToProjectWithHttpInfo * - * List key-value stores + * Link a KV store to another project * * @param string $organization Organization identifier (required) - * @param string $project Project identifier (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation + * @param string $project Source project identifier (required) + * @param string $store_id KV store identifier (required) + * @param \QuantClient\Model\KVLinkToProjectRequest $kv_link_to_project_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVLinkToProject'] 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\V2Store[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\KVLinkToProject200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) */ - public function kVListWithHttpInfo($organization, $project, string $contentType = self::contentTypes['kVList'][0]) + public function kVLinkToProjectWithHttpInfo($organization, $project, $store_id, $kv_link_to_project_request, string $contentType = self::contentTypes['kVLinkToProject'][0]) { - $request = $this->kVListRequest($organization, $project, $contentType); + $request = $this->kVLinkToProjectRequest($organization, $project, $store_id, $kv_link_to_project_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2714,7 +2724,7 @@ public function kVListWithHttpInfo($organization, $project, string $contentType switch($statusCode) { case 200: return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Store[]', + '\QuantClient\Model\KVLinkToProject200Response', $request, $response, ); @@ -2724,6 +2734,12 @@ public function kVListWithHttpInfo($organization, $project, string $contentType $request, $response, ); + case 404: + return $this->handleResponseWithDataType( + '\QuantClient\Model\V2Error', + $request, + $response, + ); case 403: return $this->handleResponseWithDataType( '\QuantClient\Model\V2Error', @@ -2748,7 +2764,7 @@ public function kVListWithHttpInfo($organization, $project, string $contentType } return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Store[]', + '\QuantClient\Model\KVLinkToProject200Response', $request, $response, ); @@ -2757,7 +2773,7 @@ public function kVListWithHttpInfo($organization, $project, string $contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\QuantClient\Model\V2Store[]', + '\QuantClient\Model\KVLinkToProject200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2770,6 +2786,14 @@ public function kVListWithHttpInfo($organization, $project, string $contentType ); $e->setResponseObject($data); throw $e; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2Error', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; case 403: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -2786,20 +2810,22 @@ public function kVListWithHttpInfo($organization, $project, string $contentType } /** - * Operation kVListAsync + * Operation kVLinkToProjectAsync * - * List key-value stores + * Link a KV store to another project * * @param string $organization Organization identifier (required) - * @param string $project Project identifier (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation + * @param string $project Source project identifier (required) + * @param string $store_id KV store identifier (required) + * @param \QuantClient\Model\KVLinkToProjectRequest $kv_link_to_project_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVLinkToProject'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVListAsync($organization, $project, string $contentType = self::contentTypes['kVList'][0]) + public function kVLinkToProjectAsync($organization, $project, $store_id, $kv_link_to_project_request, string $contentType = self::contentTypes['kVLinkToProject'][0]) { - return $this->kVListAsyncWithHttpInfo($organization, $project, $contentType) + return $this->kVLinkToProjectAsyncWithHttpInfo($organization, $project, $store_id, $kv_link_to_project_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2808,21 +2834,23 @@ function ($response) { } /** - * Operation kVListAsyncWithHttpInfo + * Operation kVLinkToProjectAsyncWithHttpInfo * - * List key-value stores + * Link a KV store to another project * * @param string $organization Organization identifier (required) - * @param string $project Project identifier (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation + * @param string $project Source project identifier (required) + * @param string $store_id KV store identifier (required) + * @param \QuantClient\Model\KVLinkToProjectRequest $kv_link_to_project_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVLinkToProject'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVListAsyncWithHttpInfo($organization, $project, string $contentType = self::contentTypes['kVList'][0]) + public function kVLinkToProjectAsyncWithHttpInfo($organization, $project, $store_id, $kv_link_to_project_request, string $contentType = self::contentTypes['kVLinkToProject'][0]) { - $returnType = '\QuantClient\Model\V2Store[]'; - $request = $this->kVListRequest($organization, $project, $contentType); + $returnType = '\QuantClient\Model\KVLinkToProject200Response'; + $request = $this->kVLinkToProjectRequest($organization, $project, $store_id, $kv_link_to_project_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2861,34 +2889,50 @@ function ($exception) { } /** - * Create request for operation 'kVList' + * Create request for operation 'kVLinkToProject' * * @param string $organization Organization identifier (required) - * @param string $project Project identifier (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation + * @param string $project Source project identifier (required) + * @param string $store_id KV store identifier (required) + * @param \QuantClient\Model\KVLinkToProjectRequest $kv_link_to_project_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVLinkToProject'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function kVListRequest($organization, $project, string $contentType = self::contentTypes['kVList'][0]) + public function kVLinkToProjectRequest($organization, $project, $store_id, $kv_link_to_project_request, string $contentType = self::contentTypes['kVLinkToProject'][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 kVList' + 'Missing the required parameter $organization when calling kVLinkToProject' ); } // 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 kVList' + 'Missing the required parameter $project when calling kVLinkToProject' + ); + } + + // 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 kVLinkToProject' ); } + // verify the required parameter 'kv_link_to_project_request' is set + if ($kv_link_to_project_request === null || (is_array($kv_link_to_project_request) && count($kv_link_to_project_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $kv_link_to_project_request when calling kVLinkToProject' + ); + } - $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv'; + + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2913,6 +2957,14 @@ public function kVListRequest($organization, $project, string $contentType = sel $resourcePath ); } + // path params + if ($store_id !== null) { + $resourcePath = str_replace( + '{' . 'store_id' . '}', + ObjectSerializer::toPathValue($store_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -2922,7 +2974,14 @@ public function kVListRequest($organization, $project, string $contentType = sel ); // for model (json/xml) - if (count($formParams) > 0) { + if (isset($kv_link_to_project_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($kv_link_to_project_request)); + } else { + $httpBody = $kv_link_to_project_request; + } + } elseif (count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { @@ -2965,7 +3024,7 @@ public function kVListRequest($organization, $project, string $contentType = sel $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'GET', + 'POST', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -2973,42 +3032,40 @@ public function kVListRequest($organization, $project, string $contentType = sel } /** - * Operation kVShow + * Operation kVList * - * Get a kv store + * List key-value stores * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $store_id store_id (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] 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\V2Store|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + * @return \QuantClient\Model\V2Store[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error */ - public function kVShow($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + public function kVList($organization, $project, string $contentType = self::contentTypes['kVList'][0]) { - list($response) = $this->kVShowWithHttpInfo($organization, $project, $store_id, $contentType); + list($response) = $this->kVListWithHttpInfo($organization, $project, $contentType); return $response; } /** - * Operation kVShowWithHttpInfo + * Operation kVListWithHttpInfo * - * Get a kv store + * List key-value stores * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $store_id (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] 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\V2Store|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\V2Store[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) */ - public function kVShowWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + public function kVListWithHttpInfo($organization, $project, string $contentType = self::contentTypes['kVList'][0]) { - $request = $this->kVShowRequest($organization, $project, $store_id, $contentType); + $request = $this->kVListRequest($organization, $project, $contentType); try { $options = $this->createHttpClientOption(); @@ -3036,11 +3093,11 @@ public function kVShowWithHttpInfo($organization, $project, $store_id, string $c switch($statusCode) { case 200: return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Store', + '\QuantClient\Model\V2Store[]', $request, $response, ); - case 404: + case 400: return $this->handleResponseWithDataType( '\QuantClient\Model\V2Error', $request, @@ -3070,7 +3127,7 @@ public function kVShowWithHttpInfo($organization, $project, $store_id, string $c } return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Store', + '\QuantClient\Model\V2Store[]', $request, $response, ); @@ -3079,12 +3136,12 @@ public function kVShowWithHttpInfo($organization, $project, $store_id, string $c case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\QuantClient\Model\V2Store', + '\QuantClient\Model\V2Store[]', $e->getResponseHeaders() ); $e->setResponseObject($data); throw $e; - case 404: + case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), '\QuantClient\Model\V2Error', @@ -3108,21 +3165,20 @@ public function kVShowWithHttpInfo($organization, $project, $store_id, string $c } /** - * Operation kVShowAsync + * Operation kVListAsync * - * Get a kv store + * List key-value stores * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $store_id (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVShowAsync($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + public function kVListAsync($organization, $project, string $contentType = self::contentTypes['kVList'][0]) { - return $this->kVShowAsyncWithHttpInfo($organization, $project, $store_id, $contentType) + return $this->kVListAsyncWithHttpInfo($organization, $project, $contentType) ->then( function ($response) { return $response[0]; @@ -3131,22 +3187,21 @@ function ($response) { } /** - * Operation kVShowAsyncWithHttpInfo + * Operation kVListAsyncWithHttpInfo * - * Get a kv store + * List key-value stores * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $store_id (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function kVShowAsyncWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + public function kVListAsyncWithHttpInfo($organization, $project, string $contentType = self::contentTypes['kVList'][0]) { - $returnType = '\QuantClient\Model\V2Store'; - $request = $this->kVShowRequest($organization, $project, $store_id, $contentType); + $returnType = '\QuantClient\Model\V2Store[]'; + $request = $this->kVListRequest($organization, $project, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3185,42 +3240,34 @@ function ($exception) { } /** - * Create request for operation 'kVShow' + * Create request for operation 'kVList' * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $store_id (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function kVShowRequest($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + public function kVListRequest($organization, $project, string $contentType = self::contentTypes['kVList'][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 kVShow' + 'Missing the required parameter $organization when calling kVList' ); } // 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 kVShow' - ); - } - - // 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 kVShow' + 'Missing the required parameter $project when calling kVList' ); } - $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}'; + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv'; $formParams = []; $queryParams = []; $headerParams = []; @@ -3245,14 +3292,6 @@ public function kVShowRequest($organization, $project, $store_id, string $conten $resourcePath ); } - // path params - if ($store_id !== null) { - $resourcePath = str_replace( - '{' . 'store_id' . '}', - ObjectSerializer::toPathValue($store_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -3312,6 +3351,686 @@ public function kVShowRequest($organization, $project, $store_id, string $conten ); } + /** + * Operation kVShow + * + * Get a kv store + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id store_id (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] 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\V2Store|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + */ + public function kVShow($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + { + list($response) = $this->kVShowWithHttpInfo($organization, $project, $store_id, $contentType); + return $response; + } + + /** + * Operation kVShowWithHttpInfo + * + * Get a kv store + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] 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\V2Store|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + */ + public function kVShowWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + { + $request = $this->kVShowRequest($organization, $project, $store_id, $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\V2Store', + $request, + $response, + ); + case 404: + 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\V2Store', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2Store', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 404: + $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 kVShowAsync + * + * Get a kv store + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVShowAsync($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + { + return $this->kVShowAsyncWithHttpInfo($organization, $project, $store_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation kVShowAsyncWithHttpInfo + * + * Get a kv store + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVShowAsyncWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][0]) + { + $returnType = '\QuantClient\Model\V2Store'; + $request = $this->kVShowRequest($organization, $project, $store_id, $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 'kVShow' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function kVShowRequest($organization, $project, $store_id, string $contentType = self::contentTypes['kVShow'][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 kVShow' + ); + } + + // 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 kVShow' + ); + } + + // 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 kVShow' + ); + } + + + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // 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( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation kVUnlinkFromProject + * + * Unlink a KV store from this project + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id KV store identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVUnlinkFromProject'] 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\KVLinkToProject200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + */ + public function kVUnlinkFromProject($organization, $project, $store_id, string $contentType = self::contentTypes['kVUnlinkFromProject'][0]) + { + list($response) = $this->kVUnlinkFromProjectWithHttpInfo($organization, $project, $store_id, $contentType); + return $response; + } + + /** + * Operation kVUnlinkFromProjectWithHttpInfo + * + * Unlink a KV store from this project + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id KV store identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVUnlinkFromProject'] 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\KVLinkToProject200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + */ + public function kVUnlinkFromProjectWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVUnlinkFromProject'][0]) + { + $request = $this->kVUnlinkFromProjectRequest($organization, $project, $store_id, $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\KVLinkToProject200Response', + $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\KVLinkToProject200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\KVLinkToProject200Response', + $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 kVUnlinkFromProjectAsync + * + * Unlink a KV store from this project + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id KV store identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVUnlinkFromProject'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVUnlinkFromProjectAsync($organization, $project, $store_id, string $contentType = self::contentTypes['kVUnlinkFromProject'][0]) + { + return $this->kVUnlinkFromProjectAsyncWithHttpInfo($organization, $project, $store_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation kVUnlinkFromProjectAsyncWithHttpInfo + * + * Unlink a KV store from this project + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id KV store identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVUnlinkFromProject'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function kVUnlinkFromProjectAsyncWithHttpInfo($organization, $project, $store_id, string $contentType = self::contentTypes['kVUnlinkFromProject'][0]) + { + $returnType = '\QuantClient\Model\KVLinkToProject200Response'; + $request = $this->kVUnlinkFromProjectRequest($organization, $project, $store_id, $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 'kVUnlinkFromProject' + * + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) + * @param string $store_id KV store identifier (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVUnlinkFromProject'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function kVUnlinkFromProjectRequest($organization, $project, $store_id, string $contentType = self::contentTypes['kVUnlinkFromProject'][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 kVUnlinkFromProject' + ); + } + + // 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 kVUnlinkFromProject' + ); + } + + // 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 kVUnlinkFromProject' + ); + } + + + $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // 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 + ); + } + /** * Create http client option * diff --git a/src/Api/OrchestrationApi.php b/src/Api/OrchestrationApi.php index c6803d6..302a347 100644 --- a/src/Api/OrchestrationApi.php +++ b/src/Api/OrchestrationApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -128,7 +128,7 @@ public function getConfig() /** * Operation getAIOrchestrationStatus * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -147,7 +147,7 @@ public function getAIOrchestrationStatus($organisation, $orchestration_id, strin /** * Operation getAIOrchestrationStatusWithHttpInfo * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -247,7 +247,7 @@ public function getAIOrchestrationStatusWithHttpInfo($organisation, $orchestrati /** * Operation getAIOrchestrationStatusAsync * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) @@ -269,7 +269,7 @@ function ($response) { /** * Operation getAIOrchestrationStatusAsyncWithHttpInfo * - * Get Orchestration Status + * Get Tool Orchestration Status (Async Tool Polling) * * @param string $organisation The organisation ID (required) * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) diff --git a/src/Api/OrganizationsApi.php b/src/Api/OrganizationsApi.php index 9a4b4dd..3467285 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.9.0 + * The version of the OpenAPI document: 4.10.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 a15eeb3..573a6cf 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.9.0 + * The version of the OpenAPI document: 4.10.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 52fdfad..9e0016e 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.9.0 + * The version of the OpenAPI document: 4.10.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 f9bcda6..c3d847f 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.9.0 + * The version of the OpenAPI document: 4.10.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 8d72b4f..ef704d5 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.9.0 + * The version of the OpenAPI document: 4.10.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 da67e4e..d6bd2a0 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.9.0 + * The version of the OpenAPI document: 4.10.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 8d97964..7dbdc0c 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.9.0 + * The version of the OpenAPI document: 4.10.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 10829b4..14145e0 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ApiException.php b/src/ApiException.php index 19281b8..15ffca4 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Configuration.php b/src/Configuration.php index 595f702..229115e 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.9.0 + * The version of the OpenAPI document: 4.10.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.9.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/4.10.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.9.0' . PHP_EOL; - $report .= ' SDK Package Version: 4.9.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 4.10.0' . PHP_EOL; + $report .= ' SDK Package Version: 4.10.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 0c3babb..bc74980 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index 42c49c9..1c6ea5f 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.9.0 + * The version of the OpenAPI document: 4.10.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 5444a5b..498faf7 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.9.0 + * The version of the OpenAPI document: 4.10.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 84ab609..e4722fd 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.9.0 + * The version of the OpenAPI document: 4.10.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 b4947a4..c1767b1 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationEnvironmentsInner.php b/src/Model/ApplicationEnvironmentsInner.php index 793a69e..9c52167 100644 --- a/src/Model/ApplicationEnvironmentsInner.php +++ b/src/Model/ApplicationEnvironmentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.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 cc71ee8..aa20fc3 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.9.0 + * The version of the OpenAPI document: 4.10.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 ed7a049..e5588e5 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/BulkSetEnvironmentVariablesRequest.php b/src/Model/BulkSetEnvironmentVariablesRequest.php index b24109a..8cf8933 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.9.0 + * The version of the OpenAPI document: 4.10.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 a64186c..dd92b94 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.9.0 + * The version of the OpenAPI document: 4.10.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 9b022dc..f40788c 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.9.0 + * The version of the OpenAPI document: 4.10.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 e9720e6..0e34c22 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.9.0 + * The version of the OpenAPI document: 4.10.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 077137d..7ed10ca 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.9.0 + * The version of the OpenAPI document: 4.10.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 57b74c2..0a6f847 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.9.0 + * The version of the OpenAPI document: 4.10.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 6a500b0..9a5da32 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.9.0 + * The version of the OpenAPI document: 4.10.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 b5c993e..704b782 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.9.0 + * The version of the OpenAPI document: 4.10.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 af4f1d8..d987202 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.9.0 + * The version of the OpenAPI document: 4.10.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 5733524..9dbfd67 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.9.0 + * The version of the OpenAPI document: 4.10.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 dd6950c..5b7b352 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -68,7 +68,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'response_format' => '\QuantClient\Model\ChatInferenceRequestResponseFormat', 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig', 'session_id' => 'string', - 'async' => 'bool' + 'async' => 'bool', + 'allowed_tools' => 'string[]', + 'guardrails' => '\QuantClient\Model\ChatInferenceRequestGuardrails' ]; /** @@ -90,7 +92,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'response_format' => null, 'tool_config' => null, 'session_id' => 'uuid', - 'async' => null + 'async' => null, + 'allowed_tools' => null, + 'guardrails' => null ]; /** @@ -110,7 +114,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'response_format' => false, 'tool_config' => false, 'session_id' => false, - 'async' => false + 'async' => false, + 'allowed_tools' => false, + 'guardrails' => false ]; /** @@ -210,7 +216,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'responseFormat', 'tool_config' => 'toolConfig', 'session_id' => 'sessionId', - 'async' => 'async' + 'async' => 'async', + 'allowed_tools' => 'allowedTools', + 'guardrails' => 'guardrails' ]; /** @@ -230,7 +238,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'setResponseFormat', 'tool_config' => 'setToolConfig', 'session_id' => 'setSessionId', - 'async' => 'setAsync' + 'async' => 'setAsync', + 'allowed_tools' => 'setAllowedTools', + 'guardrails' => 'setGuardrails' ]; /** @@ -250,7 +260,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'getResponseFormat', 'tool_config' => 'getToolConfig', 'session_id' => 'getSessionId', - 'async' => 'getAsync' + 'async' => 'getAsync', + 'allowed_tools' => 'getAllowedTools', + 'guardrails' => 'getGuardrails' ]; /** @@ -322,6 +334,8 @@ public function __construct(?array $data = null) $this->setIfExists('tool_config', $data ?? [], null); $this->setIfExists('session_id', $data ?? [], null); $this->setIfExists('async', $data ?? [], false); + $this->setIfExists('allowed_tools', $data ?? [], null); + $this->setIfExists('guardrails', $data ?? [], null); } /** @@ -760,6 +774,60 @@ public function setAsync($async) return $this; } + + /** + * Gets allowed_tools + * + * @return string[]|null + */ + public function getAllowedTools() + { + return $this->container['allowed_tools']; + } + + /** + * Sets allowed_tools + * + * @param string[]|null $allowed_tools Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. + * + * @return self + */ + public function setAllowedTools($allowed_tools) + { + if (is_null($allowed_tools)) { + throw new \InvalidArgumentException('non-nullable allowed_tools cannot be null'); + } + $this->container['allowed_tools'] = $allowed_tools; + + return $this; + } + + /** + * Gets guardrails + * + * @return \QuantClient\Model\ChatInferenceRequestGuardrails|null + */ + public function getGuardrails() + { + return $this->container['guardrails']; + } + + /** + * Sets guardrails + * + * @param \QuantClient\Model\ChatInferenceRequestGuardrails|null $guardrails guardrails + * + * @return self + */ + public function setGuardrails($guardrails) + { + if (is_null($guardrails)) { + throw new \InvalidArgumentException('non-nullable guardrails cannot be null'); + } + $this->container['guardrails'] = $guardrails; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ChatInferenceRequestGuardrails.php b/src/Model/ChatInferenceRequestGuardrails.php new file mode 100644 index 0000000..8e6232d --- /dev/null +++ b/src/Model/ChatInferenceRequestGuardrails.php @@ -0,0 +1,512 @@ + + */ +class ChatInferenceRequestGuardrails implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'chatInference_request_guardrails'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'guardrail_identifier' => 'string', + 'guardrail_version' => 'string', + 'trace' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'guardrail_identifier' => null, + 'guardrail_version' => null, + 'trace' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'guardrail_identifier' => false, + 'guardrail_version' => false, + 'trace' => 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 = [ + 'guardrail_identifier' => 'guardrailIdentifier', + 'guardrail_version' => 'guardrailVersion', + 'trace' => 'trace' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'guardrail_identifier' => 'setGuardrailIdentifier', + 'guardrail_version' => 'setGuardrailVersion', + 'trace' => 'setTrace' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'guardrail_identifier' => 'getGuardrailIdentifier', + 'guardrail_version' => 'getGuardrailVersion', + 'trace' => 'getTrace' + ]; + + /** + * 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 TRACE_ENABLED = 'enabled'; + public const TRACE_DISABLED = 'disabled'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTraceAllowableValues() + { + return [ + self::TRACE_ENABLED, + self::TRACE_DISABLED, + ]; + } + + /** + * 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('guardrail_identifier', $data ?? [], null); + $this->setIfExists('guardrail_version', $data ?? [], null); + $this->setIfExists('trace', $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->getTraceAllowableValues(); + if (!is_null($this->container['trace']) && !in_array($this->container['trace'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'trace', must be one of '%s'", + $this->container['trace'], + 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 guardrail_identifier + * + * @return string|null + */ + public function getGuardrailIdentifier() + { + return $this->container['guardrail_identifier']; + } + + /** + * Sets guardrail_identifier + * + * @param string|null $guardrail_identifier Guardrail identifier from AWS Bedrock + * + * @return self + */ + public function setGuardrailIdentifier($guardrail_identifier) + { + if (is_null($guardrail_identifier)) { + throw new \InvalidArgumentException('non-nullable guardrail_identifier cannot be null'); + } + $this->container['guardrail_identifier'] = $guardrail_identifier; + + return $this; + } + + /** + * Gets guardrail_version + * + * @return string|null + */ + public function getGuardrailVersion() + { + return $this->container['guardrail_version']; + } + + /** + * Sets guardrail_version + * + * @param string|null $guardrail_version Guardrail version + * + * @return self + */ + public function setGuardrailVersion($guardrail_version) + { + if (is_null($guardrail_version)) { + throw new \InvalidArgumentException('non-nullable guardrail_version cannot be null'); + } + $this->container['guardrail_version'] = $guardrail_version; + + return $this; + } + + /** + * Gets trace + * + * @return string|null + */ + public function getTrace() + { + return $this->container['trace']; + } + + /** + * Sets trace + * + * @param string|null $trace Enable guardrail trace output + * + * @return self + */ + public function setTrace($trace) + { + if (is_null($trace)) { + throw new \InvalidArgumentException('non-nullable trace cannot be null'); + } + $allowedValues = $this->getTraceAllowableValues(); + if (!in_array($trace, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'trace', must be one of '%s'", + $trace, + implode("', '", $allowedValues) + ) + ); + } + $this->container['trace'] = $trace; + + 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/ChatInferenceRequestMessagesInner.php b/src/Model/ChatInferenceRequestMessagesInner.php index dffc9aa..ed13a1f 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.9.0 + * The version of the OpenAPI document: 4.10.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 8ffa59e..8cbc670 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.9.0 + * The version of the OpenAPI document: 4.10.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 b92a3b2..236fd96 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.9.0 + * The version of the OpenAPI document: 4.10.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 0c35868..b197e1f 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.9.0 + * The version of the OpenAPI document: 4.10.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 77dba46..0afcb38 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.9.0 + * The version of the OpenAPI document: 4.10.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 2c247e4..68a7439 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.9.0 + * The version of the OpenAPI document: 4.10.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 3a52b69..ac48a1d 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.9.0 + * The version of the OpenAPI document: 4.10.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 74c0721..98ef75a 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.9.0 + * The version of the OpenAPI document: 4.10.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 0aff0ec..b717031 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.9.0 + * The version of the OpenAPI document: 4.10.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 a65a907..3d5fc77 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.9.0 + * The version of the OpenAPI document: 4.10.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 9933a92..5059197 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.9.0 + * The version of the OpenAPI document: 4.10.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 0c2a69a..e07aed0 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.9.0 + * The version of the OpenAPI document: 4.10.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 1b4ff95..5e278a0 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.9.0 + * The version of the OpenAPI document: 4.10.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 0f19b23..2b0c0ec 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.9.0 + * The version of the OpenAPI document: 4.10.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 886f305..3cfb2b7 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.9.0 + * The version of the OpenAPI document: 4.10.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 378c251..a677cb7 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.9.0 + * The version of the OpenAPI document: 4.10.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 97a14a0..16c3de7 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.9.0 + * The version of the OpenAPI document: 4.10.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 c7a4255..7e451bc 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.9.0 + * The version of the OpenAPI document: 4.10.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 b5fc9da..ca2f700 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -67,7 +67,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'response_format' => '\QuantClient\Model\ChatInferenceRequestResponseFormat', 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig', 'session_id' => 'string', - 'async' => 'bool' + 'async' => 'bool', + 'allowed_tools' => 'string[]', + 'guardrails' => '\QuantClient\Model\ChatInferenceRequestGuardrails' ]; /** @@ -88,7 +90,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'response_format' => null, 'tool_config' => null, 'session_id' => 'uuid', - 'async' => null + 'async' => null, + 'allowed_tools' => null, + 'guardrails' => null ]; /** @@ -107,7 +111,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'response_format' => false, 'tool_config' => false, 'session_id' => false, - 'async' => false + 'async' => false, + 'allowed_tools' => false, + 'guardrails' => false ]; /** @@ -206,7 +212,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'responseFormat', 'tool_config' => 'toolConfig', 'session_id' => 'sessionId', - 'async' => 'async' + 'async' => 'async', + 'allowed_tools' => 'allowedTools', + 'guardrails' => 'guardrails' ]; /** @@ -225,7 +233,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'setResponseFormat', 'tool_config' => 'setToolConfig', 'session_id' => 'setSessionId', - 'async' => 'setAsync' + 'async' => 'setAsync', + 'allowed_tools' => 'setAllowedTools', + 'guardrails' => 'setGuardrails' ]; /** @@ -244,7 +254,9 @@ public function isNullableSetToNull(string $property): bool 'response_format' => 'getResponseFormat', 'tool_config' => 'getToolConfig', 'session_id' => 'getSessionId', - 'async' => 'getAsync' + 'async' => 'getAsync', + 'allowed_tools' => 'getAllowedTools', + 'guardrails' => 'getGuardrails' ]; /** @@ -315,6 +327,8 @@ public function __construct(?array $data = null) $this->setIfExists('tool_config', $data ?? [], null); $this->setIfExists('session_id', $data ?? [], null); $this->setIfExists('async', $data ?? [], false); + $this->setIfExists('allowed_tools', $data ?? [], null); + $this->setIfExists('guardrails', $data ?? [], null); } /** @@ -726,6 +740,60 @@ public function setAsync($async) return $this; } + + /** + * Gets allowed_tools + * + * @return string[]|null + */ + public function getAllowedTools() + { + return $this->container['allowed_tools']; + } + + /** + * Sets allowed_tools + * + * @param string[]|null $allowed_tools Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. + * + * @return self + */ + public function setAllowedTools($allowed_tools) + { + if (is_null($allowed_tools)) { + throw new \InvalidArgumentException('non-nullable allowed_tools cannot be null'); + } + $this->container['allowed_tools'] = $allowed_tools; + + return $this; + } + + /** + * Gets guardrails + * + * @return \QuantClient\Model\ChatInferenceRequestGuardrails|null + */ + public function getGuardrails() + { + return $this->container['guardrails']; + } + + /** + * Sets guardrails + * + * @param \QuantClient\Model\ChatInferenceRequestGuardrails|null $guardrails guardrails + * + * @return self + */ + public function setGuardrails($guardrails) + { + if (is_null($guardrails)) { + throw new \InvalidArgumentException('non-nullable guardrails cannot be null'); + } + $this->container['guardrails'] = $guardrails; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ChatInferenceStreamRequestMessagesInner.php b/src/Model/ChatInferenceStreamRequestMessagesInner.php index 4408994..b8ad657 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.9.0 + * The version of the OpenAPI document: 4.10.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 1625ec3..0aec0ac 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.9.0 + * The version of the OpenAPI document: 4.10.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 6cfa862..b60b849 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.9.0 + * The version of the OpenAPI document: 4.10.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 9807399..db4a2c4 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.9.0 + * The version of the OpenAPI document: 4.10.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 6799660..15c859f 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.9.0 + * The version of the OpenAPI document: 4.10.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 738283a..1f872f8 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.9.0 + * The version of the OpenAPI document: 4.10.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 cdba749..917a522 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.9.0 + * The version of the OpenAPI document: 4.10.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 ad4b9e3..989bddc 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.9.0 + * The version of the OpenAPI document: 4.10.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 78d7310..804b914 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.9.0 + * The version of the OpenAPI document: 4.10.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 485d783..9b4ad07 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.9.0 + * The version of the OpenAPI document: 4.10.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 83074a0..9d80e67 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.9.0 + * The version of the OpenAPI document: 4.10.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 6361124..494d41b 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.9.0 + * The version of the OpenAPI document: 4.10.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 3357176..e512f83 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.9.0 + * The version of the OpenAPI document: 4.10.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 30d2cb9..6360b44 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.9.0 + * The version of the OpenAPI document: 4.10.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 86b1483..d8c9cf9 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.9.0 + * The version of the OpenAPI document: 4.10.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 86b2a31..2fa6d2d 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.9.0 + * The version of the OpenAPI document: 4.10.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 11cada7..1321a1a 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.9.0 + * The version of the OpenAPI document: 4.10.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 af54c74..ee39ced 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.9.0 + * The version of the OpenAPI document: 4.10.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 248de50..229b980 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.9.0 + * The version of the OpenAPI document: 4.10.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 30368c9..d202a16 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.9.0 + * The version of the OpenAPI document: 4.10.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 5727c89..8105511 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.9.0 + * The version of the OpenAPI document: 4.10.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 163d6f5..8921089 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.9.0 + * The version of the OpenAPI document: 4.10.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 a856520..c201dd4 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.9.0 + * The version of the OpenAPI document: 4.10.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 370a65b..9284540 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.9.0 + * The version of the OpenAPI document: 4.10.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 49f14e0..ef0b15b 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.9.0 + * The version of the OpenAPI document: 4.10.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 c139bcc..2ed7496 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.9.0 + * The version of the OpenAPI document: 4.10.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 b1337ac..b4c3017 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.9.0 + * The version of the OpenAPI document: 4.10.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 70c65d3..5660d21 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.9.0 + * The version of the OpenAPI document: 4.10.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 8e506af..6cef700 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.9.0 + * The version of the OpenAPI document: 4.10.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 c997c04..27c2edb 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.9.0 + * The version of the OpenAPI document: 4.10.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 73f55dd..96d1bd3 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.9.0 + * The version of the OpenAPI document: 4.10.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 dfdbd9a..34ed42b 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.9.0 + * The version of the OpenAPI document: 4.10.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 b67071c..dd186ec 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.9.0 + * The version of the OpenAPI document: 4.10.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 e626aac..ee831c3 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.9.0 + * The version of the OpenAPI document: 4.10.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 dc331d4..9940ca6 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.9.0 + * The version of the OpenAPI document: 4.10.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 7f624da..4a66a79 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.9.0 + * The version of the OpenAPI document: 4.10.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 3d814c7..32ce0d5 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.9.0 + * The version of the OpenAPI document: 4.10.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 87056e9..0f1f5a5 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateOrchestrationRequest.php b/src/Model/CreateOrchestrationRequest.php new file mode 100644 index 0000000..02f79ef --- /dev/null +++ b/src/Model/CreateOrchestrationRequest.php @@ -0,0 +1,815 @@ + + */ +class CreateOrchestrationRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createOrchestration_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'name' => 'string', + 'description' => 'string', + 'agent_id' => 'string', + 'tool_id' => 'string', + 'workflow_id' => 'string', + 'input_source' => '\QuantClient\Model\CreateOrchestrationRequestInputSource', + 'batch_size' => 'int', + 'concurrency' => 'int', + 'stop_condition' => '\QuantClient\Model\CreateOrchestrationRequestStopCondition', + 'assigned_skills' => 'string[]', + 'auto_start' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'name' => null, + 'description' => null, + 'agent_id' => null, + 'tool_id' => null, + 'workflow_id' => null, + 'input_source' => null, + 'batch_size' => null, + 'concurrency' => null, + 'stop_condition' => null, + 'assigned_skills' => null, + 'auto_start' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'name' => false, + 'description' => true, + 'agent_id' => true, + 'tool_id' => true, + 'workflow_id' => true, + 'input_source' => false, + 'batch_size' => false, + 'concurrency' => false, + 'stop_condition' => false, + 'assigned_skills' => false, + 'auto_start' => 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 = [ + 'name' => 'name', + 'description' => 'description', + 'agent_id' => 'agentId', + 'tool_id' => 'toolId', + 'workflow_id' => 'workflowId', + 'input_source' => 'inputSource', + 'batch_size' => 'batchSize', + 'concurrency' => 'concurrency', + 'stop_condition' => 'stopCondition', + 'assigned_skills' => 'assignedSkills', + 'auto_start' => 'autoStart' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'description' => 'setDescription', + 'agent_id' => 'setAgentId', + 'tool_id' => 'setToolId', + 'workflow_id' => 'setWorkflowId', + 'input_source' => 'setInputSource', + 'batch_size' => 'setBatchSize', + 'concurrency' => 'setConcurrency', + 'stop_condition' => 'setStopCondition', + 'assigned_skills' => 'setAssignedSkills', + 'auto_start' => 'setAutoStart' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'description' => 'getDescription', + 'agent_id' => 'getAgentId', + 'tool_id' => 'getToolId', + 'workflow_id' => 'getWorkflowId', + 'input_source' => 'getInputSource', + 'batch_size' => 'getBatchSize', + 'concurrency' => 'getConcurrency', + 'stop_condition' => 'getStopCondition', + 'assigned_skills' => 'getAssignedSkills', + 'auto_start' => 'getAutoStart' + ]; + + /** + * 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('name', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('agent_id', $data ?? [], null); + $this->setIfExists('tool_id', $data ?? [], null); + $this->setIfExists('workflow_id', $data ?? [], null); + $this->setIfExists('input_source', $data ?? [], null); + $this->setIfExists('batch_size', $data ?? [], 10); + $this->setIfExists('concurrency', $data ?? [], 1); + $this->setIfExists('stop_condition', $data ?? [], null); + $this->setIfExists('assigned_skills', $data ?? [], null); + $this->setIfExists('auto_start', $data ?? [], true); + } + + /** + * 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['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['input_source'] === null) { + $invalidProperties[] = "'input_source' can't be null"; + } + if (!is_null($this->container['batch_size']) && ($this->container['batch_size'] > 100)) { + $invalidProperties[] = "invalid value for 'batch_size', must be smaller than or equal to 100."; + } + + if (!is_null($this->container['batch_size']) && ($this->container['batch_size'] < 1)) { + $invalidProperties[] = "invalid value for 'batch_size', must be bigger than or equal to 1."; + } + + if (!is_null($this->container['concurrency']) && ($this->container['concurrency'] > 10)) { + $invalidProperties[] = "invalid value for 'concurrency', must be smaller than or equal to 10."; + } + + if (!is_null($this->container['concurrency']) && ($this->container['concurrency'] < 1)) { + $invalidProperties[] = "invalid value for 'concurrency', 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 name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name Orchestration 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 description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description Optional description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + array_push($this->openAPINullablesSetToNull, 'description'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('description', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets agent_id + * + * @return string|null + */ + public function getAgentId() + { + return $this->container['agent_id']; + } + + /** + * Sets agent_id + * + * @param string|null $agent_id Agent to process items + * + * @return self + */ + public function setAgentId($agent_id) + { + if (is_null($agent_id)) { + array_push($this->openAPINullablesSetToNull, 'agent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('agent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['agent_id'] = $agent_id; + + return $this; + } + + /** + * Gets tool_id + * + * @return string|null + */ + public function getToolId() + { + return $this->container['tool_id']; + } + + /** + * Sets tool_id + * + * @param string|null $tool_id Tool to execute for items + * + * @return self + */ + public function setToolId($tool_id) + { + if (is_null($tool_id)) { + array_push($this->openAPINullablesSetToNull, 'tool_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('tool_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['tool_id'] = $tool_id; + + return $this; + } + + /** + * Gets workflow_id + * + * @return string|null + */ + public function getWorkflowId() + { + return $this->container['workflow_id']; + } + + /** + * Sets workflow_id + * + * @param string|null $workflow_id Workflow to run for items + * + * @return self + */ + public function setWorkflowId($workflow_id) + { + if (is_null($workflow_id)) { + array_push($this->openAPINullablesSetToNull, 'workflow_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('workflow_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['workflow_id'] = $workflow_id; + + return $this; + } + + /** + * Gets input_source + * + * @return \QuantClient\Model\CreateOrchestrationRequestInputSource + */ + public function getInputSource() + { + return $this->container['input_source']; + } + + /** + * Sets input_source + * + * @param \QuantClient\Model\CreateOrchestrationRequestInputSource $input_source input_source + * + * @return self + */ + public function setInputSource($input_source) + { + if (is_null($input_source)) { + throw new \InvalidArgumentException('non-nullable input_source cannot be null'); + } + $this->container['input_source'] = $input_source; + + return $this; + } + + /** + * Gets batch_size + * + * @return int|null + */ + public function getBatchSize() + { + return $this->container['batch_size']; + } + + /** + * Sets batch_size + * + * @param int|null $batch_size Items per batch + * + * @return self + */ + public function setBatchSize($batch_size) + { + if (is_null($batch_size)) { + throw new \InvalidArgumentException('non-nullable batch_size cannot be null'); + } + + if (($batch_size > 100)) { + throw new \InvalidArgumentException('invalid value for $batch_size when calling CreateOrchestrationRequest., must be smaller than or equal to 100.'); + } + if (($batch_size < 1)) { + throw new \InvalidArgumentException('invalid value for $batch_size when calling CreateOrchestrationRequest., must be bigger than or equal to 1.'); + } + + $this->container['batch_size'] = $batch_size; + + return $this; + } + + /** + * Gets concurrency + * + * @return int|null + */ + public function getConcurrency() + { + return $this->container['concurrency']; + } + + /** + * Sets concurrency + * + * @param int|null $concurrency Concurrent items within a batch + * + * @return self + */ + public function setConcurrency($concurrency) + { + if (is_null($concurrency)) { + throw new \InvalidArgumentException('non-nullable concurrency cannot be null'); + } + + if (($concurrency > 10)) { + throw new \InvalidArgumentException('invalid value for $concurrency when calling CreateOrchestrationRequest., must be smaller than or equal to 10.'); + } + if (($concurrency < 1)) { + throw new \InvalidArgumentException('invalid value for $concurrency when calling CreateOrchestrationRequest., must be bigger than or equal to 1.'); + } + + $this->container['concurrency'] = $concurrency; + + return $this; + } + + /** + * Gets stop_condition + * + * @return \QuantClient\Model\CreateOrchestrationRequestStopCondition|null + */ + public function getStopCondition() + { + return $this->container['stop_condition']; + } + + /** + * Sets stop_condition + * + * @param \QuantClient\Model\CreateOrchestrationRequestStopCondition|null $stop_condition stop_condition + * + * @return self + */ + public function setStopCondition($stop_condition) + { + if (is_null($stop_condition)) { + throw new \InvalidArgumentException('non-nullable stop_condition cannot be null'); + } + $this->container['stop_condition'] = $stop_condition; + + return $this; + } + + /** + * Gets assigned_skills + * + * @return string[]|null + */ + public function getAssignedSkills() + { + return $this->container['assigned_skills']; + } + + /** + * Sets assigned_skills + * + * @param string[]|null $assigned_skills Skill IDs to assign + * + * @return self + */ + public function setAssignedSkills($assigned_skills) + { + if (is_null($assigned_skills)) { + throw new \InvalidArgumentException('non-nullable assigned_skills cannot be null'); + } + $this->container['assigned_skills'] = $assigned_skills; + + return $this; + } + + /** + * Gets auto_start + * + * @return bool|null + */ + public function getAutoStart() + { + return $this->container['auto_start']; + } + + /** + * Sets auto_start + * + * @param bool|null $auto_start Whether to start immediately + * + * @return self + */ + public function setAutoStart($auto_start) + { + if (is_null($auto_start)) { + throw new \InvalidArgumentException('non-nullable auto_start cannot be null'); + } + $this->container['auto_start'] = $auto_start; + + 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/CreateOrchestrationRequestInputSource.php b/src/Model/CreateOrchestrationRequestInputSource.php new file mode 100644 index 0000000..7d080a2 --- /dev/null +++ b/src/Model/CreateOrchestrationRequestInputSource.php @@ -0,0 +1,550 @@ + + */ +class CreateOrchestrationRequestInputSource implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createOrchestration_request_inputSource'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'items' => 'object[]', + 'task_query' => 'object', + 'generator_prompt' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'items' => null, + 'task_query' => null, + 'generator_prompt' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'type' => false, + 'items' => false, + 'task_query' => false, + 'generator_prompt' => 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', + 'items' => 'items', + 'task_query' => 'taskQuery', + 'generator_prompt' => 'generatorPrompt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'items' => 'setItems', + 'task_query' => 'setTaskQuery', + 'generator_prompt' => 'setGeneratorPrompt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'items' => 'getItems', + 'task_query' => 'getTaskQuery', + 'generator_prompt' => 'getGeneratorPrompt' + ]; + + /** + * 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__STATIC = 'static'; + public const TYPE_TASK_QUERY = 'task_query'; + public const TYPE_GENERATOR = 'generator'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE__STATIC, + self::TYPE_TASK_QUERY, + self::TYPE_GENERATOR, + ]; + } + + /** + * 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('items', $data ?? [], null); + $this->setIfExists('task_query', $data ?? [], null); + $this->setIfExists('generator_prompt', $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) + ); + } + + 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 Input source type (api type not yet supported) + * + * @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 items + * + * @return object[]|null + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param object[]|null $items Static items (for type=static) + * + * @return self + */ + public function setItems($items) + { + if (is_null($items)) { + throw new \InvalidArgumentException('non-nullable items cannot be null'); + } + $this->container['items'] = $items; + + return $this; + } + + /** + * Gets task_query + * + * @return object|null + */ + public function getTaskQuery() + { + return $this->container['task_query']; + } + + /** + * Sets task_query + * + * @param object|null $task_query Task query filters (for type=task_query) + * + * @return self + */ + public function setTaskQuery($task_query) + { + if (is_null($task_query)) { + throw new \InvalidArgumentException('non-nullable task_query cannot be null'); + } + $this->container['task_query'] = $task_query; + + return $this; + } + + /** + * Gets generator_prompt + * + * @return string|null + */ + public function getGeneratorPrompt() + { + return $this->container['generator_prompt']; + } + + /** + * Sets generator_prompt + * + * @param string|null $generator_prompt AI prompt (for type=generator) + * + * @return self + */ + public function setGeneratorPrompt($generator_prompt) + { + if (is_null($generator_prompt)) { + throw new \InvalidArgumentException('non-nullable generator_prompt cannot be null'); + } + $this->container['generator_prompt'] = $generator_prompt; + + 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/CreateOrchestrationRequestStopCondition.php b/src/Model/CreateOrchestrationRequestStopCondition.php new file mode 100644 index 0000000..d2b61a8 --- /dev/null +++ b/src/Model/CreateOrchestrationRequestStopCondition.php @@ -0,0 +1,524 @@ + + */ +class CreateOrchestrationRequestStopCondition implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createOrchestration_request_stopCondition'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'max_iterations' => 'int', + 'condition_prompt' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'max_iterations' => null, + 'condition_prompt' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'type' => false, + 'max_iterations' => false, + 'condition_prompt' => 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', + 'max_iterations' => 'maxIterations', + 'condition_prompt' => 'conditionPrompt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'max_iterations' => 'setMaxIterations', + 'condition_prompt' => 'setConditionPrompt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'max_iterations' => 'getMaxIterations', + 'condition_prompt' => 'getConditionPrompt' + ]; + + /** + * 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_ALL_COMPLETE = 'all_complete'; + public const TYPE_MAX_ITERATIONS = 'max_iterations'; + public const TYPE_CONDITION = 'condition'; + public const TYPE_MANUAL = 'manual'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ALL_COMPLETE, + self::TYPE_MAX_ITERATIONS, + self::TYPE_CONDITION, + self::TYPE_MANUAL, + ]; + } + + /** + * 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 ?? [], 'all_complete'); + $this->setIfExists('max_iterations', $data ?? [], null); + $this->setIfExists('condition_prompt', $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) + ); + } + + if (!is_null($this->container['max_iterations']) && ($this->container['max_iterations'] < 1)) { + $invalidProperties[] = "invalid value for 'max_iterations', 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 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 max_iterations + * + * @return int|null + */ + public function getMaxIterations() + { + return $this->container['max_iterations']; + } + + /** + * Sets max_iterations + * + * @param int|null $max_iterations Max iterations (for type=max_iterations) + * + * @return self + */ + public function setMaxIterations($max_iterations) + { + if (is_null($max_iterations)) { + throw new \InvalidArgumentException('non-nullable max_iterations cannot be null'); + } + + if (($max_iterations < 1)) { + throw new \InvalidArgumentException('invalid value for $max_iterations when calling CreateOrchestrationRequestStopCondition., must be bigger than or equal to 1.'); + } + + $this->container['max_iterations'] = $max_iterations; + + return $this; + } + + /** + * Gets condition_prompt + * + * @return string|null + */ + public function getConditionPrompt() + { + return $this->container['condition_prompt']; + } + + /** + * Sets condition_prompt + * + * @param string|null $condition_prompt AI prompt to evaluate stop (for type=condition) + * + * @return self + */ + public function setConditionPrompt($condition_prompt) + { + if (is_null($condition_prompt)) { + throw new \InvalidArgumentException('non-nullable condition_prompt cannot be null'); + } + $this->container['condition_prompt'] = $condition_prompt; + + 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/CreateTask201Response.php b/src/Model/CreateTask201Response.php index 5f99de2..c2dfb7f 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.9.0 + * The version of the OpenAPI document: 4.10.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 07dc79b..d2ea5a5 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.9.0 + * The version of the OpenAPI document: 4.10.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 9c2a56e..6727fdd 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.9.0 + * The version of the OpenAPI document: 4.10.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 5bd0ac9..19bbc84 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.9.0 + * The version of the OpenAPI document: 4.10.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 ce4b6a1..a895f77 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.9.0 + * The version of the OpenAPI document: 4.10.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 0f4ee91..7d3f01b 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.9.0 + * The version of the OpenAPI document: 4.10.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 8f9d457..da3a338 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.9.0 + * The version of the OpenAPI document: 4.10.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 90b76ef..266e480 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.9.0 + * The version of the OpenAPI document: 4.10.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 682da4e..c47d734 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.9.0 + * The version of the OpenAPI document: 4.10.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 44b1d75..3083ba4 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.9.0 + * The version of the OpenAPI document: 4.10.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 582a3bb..3c01066 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.9.0 + * The version of the OpenAPI document: 4.10.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 457b16f..8dbc672 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.9.0 + * The version of the OpenAPI document: 4.10.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 637cfe6..6bdc69d 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.9.0 + * The version of the OpenAPI document: 4.10.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 cdd8cc9..e04528d 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.9.0 + * The version of the OpenAPI document: 4.10.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 dd8be62..fd0943f 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteVectorCollection200Response.php b/src/Model/DeleteVectorCollection200Response.php index 521c91b..8b107ce 100644 --- a/src/Model/DeleteVectorCollection200Response.php +++ b/src/Model/DeleteVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteVectorDocuments200Response.php b/src/Model/DeleteVectorDocuments200Response.php new file mode 100644 index 0000000..9ece3ff --- /dev/null +++ b/src/Model/DeleteVectorDocuments200Response.php @@ -0,0 +1,477 @@ + + */ +class DeleteVectorDocuments200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteVectorDocuments_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'message' => 'string', + 'collection_id' => 'string', + 'deleted_count' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'message' => null, + 'collection_id' => null, + 'deleted_count' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'message' => false, + 'collection_id' => false, + 'deleted_count' => 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 = [ + 'message' => 'message', + 'collection_id' => 'collectionId', + 'deleted_count' => 'deletedCount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'message' => 'setMessage', + 'collection_id' => 'setCollectionId', + 'deleted_count' => 'setDeletedCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'message' => 'getMessage', + 'collection_id' => 'getCollectionId', + 'deleted_count' => 'getDeletedCount' + ]; + + /** + * 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('message', $data ?? [], null); + $this->setIfExists('collection_id', $data ?? [], null); + $this->setIfExists('deleted_count', $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 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 collection_id + * + * @return string|null + */ + public function getCollectionId() + { + return $this->container['collection_id']; + } + + /** + * Sets collection_id + * + * @param string|null $collection_id collection_id + * + * @return self + */ + public function setCollectionId($collection_id) + { + if (is_null($collection_id)) { + throw new \InvalidArgumentException('non-nullable collection_id cannot be null'); + } + $this->container['collection_id'] = $collection_id; + + return $this; + } + + /** + * Gets deleted_count + * + * @return int|null + */ + public function getDeletedCount() + { + return $this->container['deleted_count']; + } + + /** + * Sets deleted_count + * + * @param int|null $deleted_count deleted_count + * + * @return self + */ + public function setDeletedCount($deleted_count) + { + if (is_null($deleted_count)) { + throw new \InvalidArgumentException('non-nullable deleted_count cannot be null'); + } + $this->container['deleted_count'] = $deleted_count; + + 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/DeleteVectorDocumentsRequest.php b/src/Model/DeleteVectorDocumentsRequest.php new file mode 100644 index 0000000..68e8dd1 --- /dev/null +++ b/src/Model/DeleteVectorDocumentsRequest.php @@ -0,0 +1,477 @@ + + */ +class DeleteVectorDocumentsRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteVectorDocuments_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'purge_all' => 'bool', + 'document_ids' => 'string[]', + 'metadata' => '\QuantClient\Model\DeleteVectorDocumentsRequestMetadata' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'purge_all' => null, + 'document_ids' => 'uuid', + 'metadata' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'purge_all' => false, + 'document_ids' => false, + 'metadata' => 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 = [ + 'purge_all' => 'purgeAll', + 'document_ids' => 'documentIds', + 'metadata' => 'metadata' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'purge_all' => 'setPurgeAll', + 'document_ids' => 'setDocumentIds', + 'metadata' => 'setMetadata' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'purge_all' => 'getPurgeAll', + 'document_ids' => 'getDocumentIds', + 'metadata' => 'getMetadata' + ]; + + /** + * 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('purge_all', $data ?? [], null); + $this->setIfExists('document_ids', $data ?? [], null); + $this->setIfExists('metadata', $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 purge_all + * + * @return bool|null + */ + public function getPurgeAll() + { + return $this->container['purge_all']; + } + + /** + * Sets purge_all + * + * @param bool|null $purge_all Delete ALL documents in collection + * + * @return self + */ + public function setPurgeAll($purge_all) + { + if (is_null($purge_all)) { + throw new \InvalidArgumentException('non-nullable purge_all cannot be null'); + } + $this->container['purge_all'] = $purge_all; + + return $this; + } + + /** + * Gets document_ids + * + * @return string[]|null + */ + public function getDocumentIds() + { + return $this->container['document_ids']; + } + + /** + * Sets document_ids + * + * @param string[]|null $document_ids Delete specific documents by UUID + * + * @return self + */ + public function setDocumentIds($document_ids) + { + if (is_null($document_ids)) { + throw new \InvalidArgumentException('non-nullable document_ids cannot be null'); + } + $this->container['document_ids'] = $document_ids; + + return $this; + } + + /** + * Gets metadata + * + * @return \QuantClient\Model\DeleteVectorDocumentsRequestMetadata|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param \QuantClient\Model\DeleteVectorDocumentsRequestMetadata|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + 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/DeleteVectorDocumentsRequestMetadata.php b/src/Model/DeleteVectorDocumentsRequestMetadata.php new file mode 100644 index 0000000..0a5cbf2 --- /dev/null +++ b/src/Model/DeleteVectorDocumentsRequestMetadata.php @@ -0,0 +1,443 @@ + + */ +class DeleteVectorDocumentsRequestMetadata implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteVectorDocuments_request_metadata'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'field' => 'string', + 'values' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'field' => null, + 'values' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'field' => false, + 'values' => 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 = [ + 'field' => 'field', + 'values' => 'values' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'field' => 'setField', + 'values' => 'setValues' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'field' => 'getField', + 'values' => 'getValues' + ]; + + /** + * 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('field', $data ?? [], null); + $this->setIfExists('values', $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 field + * + * @return string|null + */ + public function getField() + { + return $this->container['field']; + } + + /** + * Sets field + * + * @param string|null $field Metadata field name (e.g., 'drupal_entity_id') + * + * @return self + */ + public function setField($field) + { + if (is_null($field)) { + throw new \InvalidArgumentException('non-nullable field cannot be null'); + } + $this->container['field'] = $field; + + return $this; + } + + /** + * Gets values + * + * @return string[]|null + */ + public function getValues() + { + return $this->container['values']; + } + + /** + * Sets values + * + * @param string[]|null $values Values to match (OR logic) + * + * @return self + */ + public function setValues($values) + { + if (is_null($values)) { + throw new \InvalidArgumentException('non-nullable values cannot be null'); + } + $this->container['values'] = $values; + + 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/DownloadBackup200Response.php b/src/Model/DownloadBackup200Response.php index b79c200..a4dcde9 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.9.0 + * The version of the OpenAPI document: 4.10.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 7ff4923..ccfa9c2 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.9.0 + * The version of the OpenAPI document: 4.10.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 311b99c..0fc04f3 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.9.0 + * The version of the OpenAPI document: 4.10.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 945059f..38c2859 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.9.0 + * The version of the OpenAPI document: 4.10.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 3a79f62..65e8684 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.9.0 + * The version of the OpenAPI document: 4.10.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 38fd995..6f9a5cd 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.9.0 + * The version of the OpenAPI document: 4.10.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 f771ded..3b4648c 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.9.0 + * The version of the OpenAPI document: 4.10.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 9788e19..75d79d8 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.9.0 + * The version of the OpenAPI document: 4.10.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 8aaeecc..e4cde0a 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.9.0 + * The version of the OpenAPI document: 4.10.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 57d099f..24f5b7e 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.9.0 + * The version of the OpenAPI document: 4.10.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 3d7efda..e99dfbf 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.9.0 + * The version of the OpenAPI document: 4.10.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 79f4580..b74cf17 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.9.0 + * The version of the OpenAPI document: 4.10.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 8fad5ff..4e16cbf 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.9.0 + * The version of the OpenAPI document: 4.10.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 8d3060d..e2ec147 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.9.0 + * The version of the OpenAPI document: 4.10.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 b3fa7d8..bb46c23 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.9.0 + * The version of the OpenAPI document: 4.10.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 f65166d..55fec52 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.9.0 + * The version of the OpenAPI document: 4.10.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 fa07c85..5d97efd 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.9.0 + * The version of the OpenAPI document: 4.10.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 8acbc43..5781c03 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.9.0 + * The version of the OpenAPI document: 4.10.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 efa9234..5bfb95f 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.9.0 + * The version of the OpenAPI document: 4.10.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 6c2736d..96115ed 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.9.0 + * The version of the OpenAPI document: 4.10.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 b1c178d..c71cd0e 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.9.0 + * The version of the OpenAPI document: 4.10.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 180af54..8ff043e 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.9.0 + * The version of the OpenAPI document: 4.10.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 392788e..4643c16 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.9.0 + * The version of the OpenAPI document: 4.10.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 b7f7521..8f9cf67 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIUsageStats200Response.php b/src/Model/GetAIUsageStats200Response.php index dcd4eed..e2dee73 100644 --- a/src/Model/GetAIUsageStats200Response.php +++ b/src/Model/GetAIUsageStats200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIUsageStats200ResponseByModelValue.php b/src/Model/GetAIUsageStats200ResponseByModelValue.php index 1723dac..31c1fd0 100644 --- a/src/Model/GetAIUsageStats200ResponseByModelValue.php +++ b/src/Model/GetAIUsageStats200ResponseByModelValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.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 4bfcefa..d037cef 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.9.0 + * The version of the OpenAPI document: 4.10.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 4f0de20..d891b9a 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.9.0 + * The version of the OpenAPI document: 4.10.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 2e58ffa..d9b4771 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.9.0 + * The version of the OpenAPI document: 4.10.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 ee4070b..340c7db 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.9.0 + * The version of the OpenAPI document: 4.10.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 c71ee26..66aa6d7 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.9.0 + * The version of the OpenAPI document: 4.10.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 faa57e6..a04da32 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.9.0 + * The version of the OpenAPI document: 4.10.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 13225b4..54155f3 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.9.0 + * The version of the OpenAPI document: 4.10.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 861105e..00aa90f 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.9.0 + * The version of the OpenAPI document: 4.10.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 e0bdc34..f452eaa 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.9.0 + * The version of the OpenAPI document: 4.10.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 e4fa05a..de6953a 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.9.0 + * The version of the OpenAPI document: 4.10.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 eb8c41c..85f8303 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.9.0 + * The version of the OpenAPI document: 4.10.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 30abf7f..e31829c 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.9.0 + * The version of the OpenAPI document: 4.10.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 d8d915a..bcaa667 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.9.0 + * The version of the OpenAPI document: 4.10.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 8c09371..e44e95e 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.9.0 + * The version of the OpenAPI document: 4.10.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 de78f88..7673671 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.9.0 + * The version of the OpenAPI document: 4.10.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 cb01135..2082c81 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGeneration200Response.php b/src/Model/ImageGeneration200Response.php index 8c1a46a..1ba2dc9 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.9.0 + * The version of the OpenAPI document: 4.10.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 e257418..fae125d 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.9.0 + * The version of the OpenAPI document: 4.10.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 9c368a9..6f8e90a 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.9.0 + * The version of the OpenAPI document: 4.10.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 d2b57de..31e6433 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.9.0 + * The version of the OpenAPI document: 4.10.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 70e6016..b6358c5 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.9.0 + * The version of the OpenAPI document: 4.10.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 df9ed59..db1f478 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.9.0 + * The version of the OpenAPI document: 4.10.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 53c515e..88fe2e1 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.9.0 + * The version of the OpenAPI document: 4.10.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 5e4df3e..ca1a870 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.9.0 + * The version of the OpenAPI document: 4.10.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 0afa81f..4a2742a 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.9.0 + * The version of the OpenAPI document: 4.10.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 fe20bc8..f1b5c30 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.9.0 + * The version of the OpenAPI document: 4.10.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 22e3313..6ed1ffb 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.9.0 + * The version of the OpenAPI document: 4.10.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 9fe600f..afb5c47 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.9.0 + * The version of the OpenAPI document: 4.10.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 3b567d4..c0bee33 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVLinkToProject200Response.php b/src/Model/KVLinkToProject200Response.php new file mode 100644 index 0000000..9f6aaf9 --- /dev/null +++ b/src/Model/KVLinkToProject200Response.php @@ -0,0 +1,443 @@ + + */ +class KVLinkToProject200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'KV_link_to_project_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'success' => 'bool', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'success' => null, + 'message' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'success' => 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 = [ + 'success' => 'success', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', + '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('success', $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 success + * + * @return bool|null + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool|null $success success + * + * @return self + */ + public function setSuccess($success) + { + if (is_null($success)) { + throw new \InvalidArgumentException('non-nullable success cannot be null'); + } + $this->container['success'] = $success; + + 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/KVLinkToProjectRequest.php b/src/Model/KVLinkToProjectRequest.php new file mode 100644 index 0000000..cf4c452 --- /dev/null +++ b/src/Model/KVLinkToProjectRequest.php @@ -0,0 +1,412 @@ + + */ +class KVLinkToProjectRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'KV_link_to_project_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'project_id' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'project_id' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'project_id' => 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 = [ + 'project_id' => 'project_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId' + ]; + + /** + * 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('project_id', $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['project_id'] === null) { + $invalidProperties[] = "'project_id' 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 project_id + * + * @return int + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param int $project_id Target project ID to link to + * + * @return self + */ + public function setProjectId($project_id) + { + if (is_null($project_id)) { + throw new \InvalidArgumentException('non-nullable project_id cannot be null'); + } + $this->container['project_id'] = $project_id; + + 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/ListAIAgents200Response.php b/src/Model/ListAIAgents200Response.php index e84db05..ea13e52 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.9.0 + * The version of the OpenAPI document: 4.10.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 108a185..63b13dc 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.9.0 + * The version of the OpenAPI document: 4.10.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 1bd9c5b..8881cca 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.9.0 + * The version of the OpenAPI document: 4.10.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 c072856..7afdd6e 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.9.0 + * The version of the OpenAPI document: 4.10.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 11181f2..0dd0e9d 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.9.0 + * The version of the OpenAPI document: 4.10.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 0688794..e2477f3 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.9.0 + * The version of the OpenAPI document: 4.10.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 c85201f..96f887e 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.9.0 + * The version of the OpenAPI document: 4.10.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 d35f3d9..13cd9cf 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.9.0 + * The version of the OpenAPI document: 4.10.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 08c4bff..973c029 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.9.0 + * The version of the OpenAPI document: 4.10.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 30a4a55..1dbf821 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.9.0 + * The version of the OpenAPI document: 4.10.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 1e894f3..411cc12 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.9.0 + * The version of the OpenAPI document: 4.10.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 fcd955e..4a1b42d 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.9.0 + * The version of the OpenAPI document: 4.10.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 ee88959..3ea9ca1 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.9.0 + * The version of the OpenAPI document: 4.10.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 67caeac..6612b56 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.9.0 + * The version of the OpenAPI document: 4.10.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 ccfe861..a30b206 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.9.0 + * The version of the OpenAPI document: 4.10.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 8fd6fd4..ada6b42 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.9.0 + * The version of the OpenAPI document: 4.10.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 01c3455..7766259 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.9.0 + * The version of the OpenAPI document: 4.10.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 7c51328..0cbc025 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.9.0 + * The version of the OpenAPI document: 4.10.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 eec2b38..aa4c478 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.9.0 + * The version of the OpenAPI document: 4.10.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 33c88ff..a63636b 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListOrchestrationBatches200Response.php b/src/Model/ListOrchestrationBatches200Response.php new file mode 100644 index 0000000..3732e48 --- /dev/null +++ b/src/Model/ListOrchestrationBatches200Response.php @@ -0,0 +1,450 @@ + + */ +class ListOrchestrationBatches200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listOrchestrationBatches_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'batches' => '\QuantClient\Model\ListOrchestrationBatches200ResponseBatchesInner[]', + 'next_cursor' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'batches' => null, + 'next_cursor' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'batches' => false, + 'next_cursor' => 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 = [ + 'batches' => 'batches', + 'next_cursor' => 'nextCursor' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'batches' => 'setBatches', + 'next_cursor' => 'setNextCursor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'batches' => 'getBatches', + 'next_cursor' => 'getNextCursor' + ]; + + /** + * 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('batches', $data ?? [], null); + $this->setIfExists('next_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 = []; + + 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 batches + * + * @return \QuantClient\Model\ListOrchestrationBatches200ResponseBatchesInner[]|null + */ + public function getBatches() + { + return $this->container['batches']; + } + + /** + * Sets batches + * + * @param \QuantClient\Model\ListOrchestrationBatches200ResponseBatchesInner[]|null $batches batches + * + * @return self + */ + public function setBatches($batches) + { + if (is_null($batches)) { + throw new \InvalidArgumentException('non-nullable batches cannot be null'); + } + $this->container['batches'] = $batches; + + return $this; + } + + /** + * Gets next_cursor + * + * @return string|null + */ + public function getNextCursor() + { + return $this->container['next_cursor']; + } + + /** + * Sets next_cursor + * + * @param string|null $next_cursor next_cursor + * + * @return self + */ + public function setNextCursor($next_cursor) + { + if (is_null($next_cursor)) { + array_push($this->openAPINullablesSetToNull, 'next_cursor'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_cursor', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_cursor'] = $next_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/ListOrchestrationBatches200ResponseBatchesInner.php b/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php new file mode 100644 index 0000000..439a263 --- /dev/null +++ b/src/Model/ListOrchestrationBatches200ResponseBatchesInner.php @@ -0,0 +1,760 @@ + + */ +class ListOrchestrationBatches200ResponseBatchesInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listOrchestrationBatches_200_response_batches_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'batch_id' => 'string', + 'orchestration_id' => 'string', + 'iteration' => 'int', + 'item_count' => 'int', + 'completed_count' => 'int', + 'failed_count' => 'int', + 'status' => 'string', + 'started_at' => '\DateTime', + 'completed_at' => '\DateTime', + 'error' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'batch_id' => null, + 'orchestration_id' => null, + 'iteration' => null, + 'item_count' => null, + 'completed_count' => null, + 'failed_count' => null, + 'status' => null, + 'started_at' => 'date-time', + 'completed_at' => 'date-time', + 'error' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'batch_id' => false, + 'orchestration_id' => false, + 'iteration' => false, + 'item_count' => false, + 'completed_count' => false, + 'failed_count' => false, + 'status' => false, + 'started_at' => false, + 'completed_at' => false, + 'error' => 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 = [ + 'batch_id' => 'batchId', + 'orchestration_id' => 'orchestrationId', + 'iteration' => 'iteration', + 'item_count' => 'itemCount', + 'completed_count' => 'completedCount', + 'failed_count' => 'failedCount', + 'status' => 'status', + 'started_at' => 'startedAt', + 'completed_at' => 'completedAt', + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'batch_id' => 'setBatchId', + 'orchestration_id' => 'setOrchestrationId', + 'iteration' => 'setIteration', + 'item_count' => 'setItemCount', + 'completed_count' => 'setCompletedCount', + 'failed_count' => 'setFailedCount', + 'status' => 'setStatus', + 'started_at' => 'setStartedAt', + 'completed_at' => 'setCompletedAt', + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'batch_id' => 'getBatchId', + 'orchestration_id' => 'getOrchestrationId', + 'iteration' => 'getIteration', + 'item_count' => 'getItemCount', + 'completed_count' => 'getCompletedCount', + 'failed_count' => 'getFailedCount', + 'status' => 'getStatus', + 'started_at' => 'getStartedAt', + 'completed_at' => 'getCompletedAt', + 'error' => 'getError' + ]; + + /** + * 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 STATUS_PENDING = 'pending'; + public const STATUS_RUNNING = 'running'; + public const STATUS_COMPLETED = 'completed'; + public const STATUS_FAILED = 'failed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_RUNNING, + self::STATUS_COMPLETED, + self::STATUS_FAILED, + ]; + } + + /** + * 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('batch_id', $data ?? [], null); + $this->setIfExists('orchestration_id', $data ?? [], null); + $this->setIfExists('iteration', $data ?? [], null); + $this->setIfExists('item_count', $data ?? [], null); + $this->setIfExists('completed_count', $data ?? [], null); + $this->setIfExists('failed_count', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); + $this->setIfExists('completed_at', $data ?? [], null); + $this->setIfExists('error', $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->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) + ); + } + + 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 batch_id + * + * @return string|null + */ + public function getBatchId() + { + return $this->container['batch_id']; + } + + /** + * Sets batch_id + * + * @param string|null $batch_id batch_id + * + * @return self + */ + public function setBatchId($batch_id) + { + if (is_null($batch_id)) { + throw new \InvalidArgumentException('non-nullable batch_id cannot be null'); + } + $this->container['batch_id'] = $batch_id; + + return $this; + } + + /** + * Gets orchestration_id + * + * @return string|null + */ + public function getOrchestrationId() + { + return $this->container['orchestration_id']; + } + + /** + * Sets orchestration_id + * + * @param string|null $orchestration_id orchestration_id + * + * @return self + */ + public function setOrchestrationId($orchestration_id) + { + if (is_null($orchestration_id)) { + throw new \InvalidArgumentException('non-nullable orchestration_id cannot be null'); + } + $this->container['orchestration_id'] = $orchestration_id; + + return $this; + } + + /** + * Gets iteration + * + * @return int|null + */ + public function getIteration() + { + return $this->container['iteration']; + } + + /** + * Sets iteration + * + * @param int|null $iteration iteration + * + * @return self + */ + public function setIteration($iteration) + { + if (is_null($iteration)) { + throw new \InvalidArgumentException('non-nullable iteration cannot be null'); + } + $this->container['iteration'] = $iteration; + + return $this; + } + + /** + * Gets item_count + * + * @return int|null + */ + public function getItemCount() + { + return $this->container['item_count']; + } + + /** + * Sets item_count + * + * @param int|null $item_count item_count + * + * @return self + */ + public function setItemCount($item_count) + { + if (is_null($item_count)) { + throw new \InvalidArgumentException('non-nullable item_count cannot be null'); + } + $this->container['item_count'] = $item_count; + + return $this; + } + + /** + * Gets completed_count + * + * @return int|null + */ + public function getCompletedCount() + { + return $this->container['completed_count']; + } + + /** + * Sets completed_count + * + * @param int|null $completed_count completed_count + * + * @return self + */ + public function setCompletedCount($completed_count) + { + if (is_null($completed_count)) { + throw new \InvalidArgumentException('non-nullable completed_count cannot be null'); + } + $this->container['completed_count'] = $completed_count; + + return $this; + } + + /** + * Gets failed_count + * + * @return int|null + */ + public function getFailedCount() + { + return $this->container['failed_count']; + } + + /** + * Sets failed_count + * + * @param int|null $failed_count failed_count + * + * @return self + */ + public function setFailedCount($failed_count) + { + if (is_null($failed_count)) { + throw new \InvalidArgumentException('non-nullable failed_count cannot be null'); + } + $this->container['failed_count'] = $failed_count; + + 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 started_at + * + * @return \DateTime|null + */ + public function getStartedAt() + { + return $this->container['started_at']; + } + + /** + * Sets started_at + * + * @param \DateTime|null $started_at started_at + * + * @return self + */ + public function setStartedAt($started_at) + { + if (is_null($started_at)) { + throw new \InvalidArgumentException('non-nullable started_at cannot be null'); + } + $this->container['started_at'] = $started_at; + + return $this; + } + + /** + * Gets completed_at + * + * @return \DateTime|null + */ + public function getCompletedAt() + { + return $this->container['completed_at']; + } + + /** + * Sets completed_at + * + * @param \DateTime|null $completed_at completed_at + * + * @return self + */ + public function setCompletedAt($completed_at) + { + if (is_null($completed_at)) { + throw new \InvalidArgumentException('non-nullable completed_at cannot be null'); + } + $this->container['completed_at'] = $completed_at; + + return $this; + } + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + array_push($this->openAPINullablesSetToNull, 'error'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('error', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['error'] = $error; + + 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/ListOrchestrations200Response.php b/src/Model/ListOrchestrations200Response.php new file mode 100644 index 0000000..e84798c --- /dev/null +++ b/src/Model/ListOrchestrations200Response.php @@ -0,0 +1,450 @@ + + */ +class ListOrchestrations200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listOrchestrations_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'orchestrations' => 'object[]', + 'next_cursor' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'orchestrations' => null, + 'next_cursor' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'orchestrations' => false, + 'next_cursor' => 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 = [ + 'orchestrations' => 'orchestrations', + 'next_cursor' => 'nextCursor' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orchestrations' => 'setOrchestrations', + 'next_cursor' => 'setNextCursor' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orchestrations' => 'getOrchestrations', + 'next_cursor' => 'getNextCursor' + ]; + + /** + * 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('orchestrations', $data ?? [], null); + $this->setIfExists('next_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 = []; + + 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 orchestrations + * + * @return object[]|null + */ + public function getOrchestrations() + { + return $this->container['orchestrations']; + } + + /** + * Sets orchestrations + * + * @param object[]|null $orchestrations orchestrations + * + * @return self + */ + public function setOrchestrations($orchestrations) + { + if (is_null($orchestrations)) { + throw new \InvalidArgumentException('non-nullable orchestrations cannot be null'); + } + $this->container['orchestrations'] = $orchestrations; + + return $this; + } + + /** + * Gets next_cursor + * + * @return string|null + */ + public function getNextCursor() + { + return $this->container['next_cursor']; + } + + /** + * Sets next_cursor + * + * @param string|null $next_cursor next_cursor + * + * @return self + */ + public function setNextCursor($next_cursor) + { + if (is_null($next_cursor)) { + array_push($this->openAPINullablesSetToNull, 'next_cursor'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_cursor', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_cursor'] = $next_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/ListTasks200Response.php b/src/Model/ListTasks200Response.php index 8f6b061..c6067fb 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.9.0 + * The version of the OpenAPI document: 4.10.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 f476bcc..3d351a1 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.9.0 + * The version of the OpenAPI document: 4.10.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 3d87e5e..01b3a2d 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.9.0 + * The version of the OpenAPI document: 4.10.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 3fc6743..67f462c 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.9.0 + * The version of the OpenAPI document: 4.10.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 44527fb..2a816fc 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OrganizationsList200ResponseInner.php b/src/Model/OrganizationsList200ResponseInner.php index 2d20f7f..2bcef30 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.9.0 + * The version of the OpenAPI document: 4.10.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 ddab55f..c43fb08 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.9.0 + * The version of the OpenAPI document: 4.10.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 ab44601..01bf86d 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.9.0 + * The version of the OpenAPI document: 4.10.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 9e6c5b9..041c04d 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.9.0 + * The version of the OpenAPI document: 4.10.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 6c7e380..4f4cc95 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.9.0 + * The version of the OpenAPI document: 4.10.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 3914a03..658012a 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.9.0 + * The version of the OpenAPI document: 4.10.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 133be9b..2bbcac8 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.9.0 + * The version of the OpenAPI document: 4.10.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 6cb1c64..a31b123 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.9.0 + * The version of the OpenAPI document: 4.10.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 c22e066..053e692 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.9.0 + * The version of the OpenAPI document: 4.10.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 50a399b..91934bc 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.9.0 + * The version of the OpenAPI document: 4.10.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 265e2ab..cd527bf 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.9.0 + * The version of the OpenAPI document: 4.10.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 eebf81d..4b5d8d5 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ScalingPolicy.php b/src/Model/ScalingPolicy.php index c9c6ae2..ae297a5 100644 --- a/src/Model/ScalingPolicy.php +++ b/src/Model/ScalingPolicy.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.9.0 + * The version of the OpenAPI document: 4.10.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 178bad1..5b3fe81 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.9.0 + * The version of the OpenAPI document: 4.10.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 b3a36c7..b7baf6f 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.9.0 + * The version of the OpenAPI document: 4.10.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 e70f37c..761f5bb 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.9.0 + * The version of the OpenAPI document: 4.10.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 617438b..421d974 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.9.0 + * The version of the OpenAPI document: 4.10.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 da9f8a8..3d99dd3 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.9.0 + * The version of the OpenAPI document: 4.10.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 f518b34..239d7ea 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.9.0 + * The version of the OpenAPI document: 4.10.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 23d7a0d..6ec98a2 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.9.0 + * The version of the OpenAPI document: 4.10.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 534f210..8eb3838 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.9.0 + * The version of the OpenAPI document: 4.10.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 e583541..2cca73e 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.9.0 + * The version of the OpenAPI document: 4.10.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 d263327..0e3f3d4 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.9.0 + * The version of the OpenAPI document: 4.10.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 6998816..b00a374 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.9.0 + * The version of the OpenAPI document: 4.10.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 fba9c75..a67e3e9 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.9.0 + * The version of the OpenAPI document: 4.10.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 69b46f4..3a3c095 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.9.0 + * The version of the OpenAPI document: 4.10.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 c904593..f4c9d17 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.9.0 + * The version of the OpenAPI document: 4.10.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 542d671..c052d76 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.9.0 + * The version of the OpenAPI document: 4.10.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 6ae10ce..30635e4 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.9.0 + * The version of the OpenAPI document: 4.10.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 55d55bd..d8d13ec 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.9.0 + * The version of the OpenAPI document: 4.10.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 0a25d33..c2633db 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.9.0 + * The version of the OpenAPI document: 4.10.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 b28e5fb..dd23323 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.9.0 + * The version of the OpenAPI document: 4.10.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 c085ffe..5e62ef5 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.9.0 + * The version of the OpenAPI document: 4.10.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 d2815a3..e250408 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.9.0 + * The version of the OpenAPI document: 4.10.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 1ecbeda..0daf616 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.9.0 + * The version of the OpenAPI document: 4.10.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 1f67a43..39616e6 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.9.0 + * The version of the OpenAPI document: 4.10.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 5b889a7..cf6a27a 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.9.0 + * The version of the OpenAPI document: 4.10.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 5d19376..f3459b9 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.9.0 + * The version of the OpenAPI document: 4.10.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 71ae074..077a1a6 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.9.0 + * The version of the OpenAPI document: 4.10.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 22af02d..99d9bbb 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.9.0 + * The version of the OpenAPI document: 4.10.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 8caa572..5543d45 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.9.0 + * The version of the OpenAPI document: 4.10.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 ca0646d..79b8e65 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.9.0 + * The version of the OpenAPI document: 4.10.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 9e6d624..1a3b46e 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.9.0 + * The version of the OpenAPI document: 4.10.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 b20e1b1..a277f7e 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.9.0 + * The version of the OpenAPI document: 4.10.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 da378f1..b257b90 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.9.0 + * The version of the OpenAPI document: 4.10.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 ad447aa..3282063 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.9.0 + * The version of the OpenAPI document: 4.10.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 78939b7..b694e9f 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.9.0 + * The version of the OpenAPI document: 4.10.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 8d1da70..5ca4ef3 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.9.0 + * The version of the OpenAPI document: 4.10.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 6e7d3b6..c39d21e 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.9.0 + * The version of the OpenAPI document: 4.10.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 f5f7bc8..d7aeecf 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.9.0 + * The version of the OpenAPI document: 4.10.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 2224133..9b6a5b0 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.9.0 + * The version of the OpenAPI document: 4.10.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 bc0a918..78d4430 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.9.0 + * The version of the OpenAPI document: 4.10.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 411d1c0..061d7ef 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.9.0 + * The version of the OpenAPI document: 4.10.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 6742c3a..6024694 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.9.0 + * The version of the OpenAPI document: 4.10.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 670f658..7f19c7a 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.9.0 + * The version of the OpenAPI document: 4.10.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 1c75bca..3aca35b 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.9.0 + * The version of the OpenAPI document: 4.10.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 6895e69..f03406e 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.9.0 + * The version of the OpenAPI document: 4.10.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 aa1ea0e..9d99357 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.9.0 + * The version of the OpenAPI document: 4.10.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 1da0967..2f1bebb 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.9.0 + * The version of the OpenAPI document: 4.10.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 8799795..ba46fb7 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.9.0 + * The version of the OpenAPI document: 4.10.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 1dbcf89..f3f357f 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.9.0 + * The version of the OpenAPI document: 4.10.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 35505f2..ee6b649 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.9.0 + * The version of the OpenAPI document: 4.10.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 b112dc0..8c15e71 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.9.0 + * The version of the OpenAPI document: 4.10.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 66e4a83..d6ff602 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.9.0 + * The version of the OpenAPI document: 4.10.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 f294e57..92fdab7 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.9.0 + * The version of the OpenAPI document: 4.10.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 69c4df3..7cee26c 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.9.0 + * The version of the OpenAPI document: 4.10.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 c819623..4d779dc 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.9.0 + * The version of the OpenAPI document: 4.10.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 f9c04ee..6f0c7ff 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.9.0 + * The version of the OpenAPI document: 4.10.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 1157378..d104e55 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.9.0 + * The version of the OpenAPI document: 4.10.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 e3fd699..c52e4b9 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.9.0 + * The version of the OpenAPI document: 4.10.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 a0941be..0c8957e 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.9.0 + * The version of the OpenAPI document: 4.10.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 6126074..af4693a 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.9.0 + * The version of the OpenAPI document: 4.10.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 1b9afbe..333232e 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.9.0 + * The version of the OpenAPI document: 4.10.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 a2c3929..25eebff 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.9.0 + * The version of the OpenAPI document: 4.10.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 bb82471..9b7ed76 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.9.0 + * The version of the OpenAPI document: 4.10.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 b66242e..17d05dd 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.9.0 + * The version of the OpenAPI document: 4.10.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 91ed6fe..03a4465 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.9.0 + * The version of the OpenAPI document: 4.10.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 9305d89..43eade8 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.9.0 + * The version of the OpenAPI document: 4.10.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 d09a8b4..f330f2a 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.9.0 + * The version of the OpenAPI document: 4.10.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 f575638..922c54d 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.9.0 + * The version of the OpenAPI document: 4.10.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 159533a..f3ba7fa 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.9.0 + * The version of the OpenAPI document: 4.10.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 db57dee..01c7abc 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.9.0 + * The version of the OpenAPI document: 4.10.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 ea84619..cbbc929 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -535,7 +535,7 @@ public function getScheduleCronString() /** * Sets schedule_cron_string * - * @param string $schedule_cron_string Cron schedule string + * @param string $schedule_cron_string Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM. * * @return self */ diff --git a/src/Model/V2CrawlerScheduleRequest.php b/src/Model/V2CrawlerScheduleRequest.php index 75b59c9..f49dfa6 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -281,9 +281,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } if ($this->container['schedule_cron_string'] === null) { $invalidProperties[] = "'schedule_cron_string' can't be null"; } @@ -305,7 +302,7 @@ public function valid() /** * Gets name * - * @return string + * @return string|null */ public function getName() { @@ -315,7 +312,7 @@ public function getName() /** * Sets name * - * @param string $name Schedule name + * @param string|null $name Schedule name. If not provided, defaults to 'Schedule {crawler_name}'. * * @return self */ @@ -342,7 +339,7 @@ public function getScheduleCronString() /** * Sets schedule_cron_string * - * @param string $schedule_cron_string Cron schedule string + * @param string $schedule_cron_string Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM. * * @return self */ diff --git a/src/Model/V2CrawlerSitemapInner.php b/src/Model/V2CrawlerSitemapInner.php index bbf1220..ed32029 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.9.0 + * The version of the OpenAPI document: 4.10.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 335488f..cf4441d 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.9.0 + * The version of the OpenAPI document: 4.10.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 3a0deec..ffe5e30 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.9.0 + * The version of the OpenAPI document: 4.10.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 35c5364..a818777 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.9.0 + * The version of the OpenAPI document: 4.10.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 fad806f..f90367d 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.9.0 + * The version of the OpenAPI document: 4.10.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 060e692..29f40ad 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.9.0 + * The version of the OpenAPI document: 4.10.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 32f4c84..214816e 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2MetricData.php b/src/Model/V2MetricData.php new file mode 100644 index 0000000..fe099bd --- /dev/null +++ b/src/Model/V2MetricData.php @@ -0,0 +1,523 @@ + + */ +class V2MetricData implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'V2MetricData'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'series' => '\QuantClient\Model\V2MetricDataPoint[]', + 'period_total' => 'float', + 'all_time_total' => 'float', + 'period_average' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'series' => null, + 'period_total' => null, + 'all_time_total' => null, + 'period_average' => 'float' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'series' => false, + 'period_total' => false, + 'all_time_total' => false, + 'period_average' => 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 = [ + 'series' => 'series', + 'period_total' => 'period_total', + 'all_time_total' => 'all_time_total', + 'period_average' => 'period_average' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'series' => 'setSeries', + 'period_total' => 'setPeriodTotal', + 'all_time_total' => 'setAllTimeTotal', + 'period_average' => 'setPeriodAverage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'series' => 'getSeries', + 'period_total' => 'getPeriodTotal', + 'all_time_total' => 'getAllTimeTotal', + 'period_average' => 'getPeriodAverage' + ]; + + /** + * 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('series', $data ?? [], null); + $this->setIfExists('period_total', $data ?? [], null); + $this->setIfExists('all_time_total', $data ?? [], null); + $this->setIfExists('period_average', $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['series'] === null) { + $invalidProperties[] = "'series' can't be null"; + } + if ($this->container['period_total'] === null) { + $invalidProperties[] = "'period_total' can't be null"; + } + if ($this->container['all_time_total'] === null) { + $invalidProperties[] = "'all_time_total' can't be null"; + } + if ($this->container['period_average'] === null) { + $invalidProperties[] = "'period_average' 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 series + * + * @return \QuantClient\Model\V2MetricDataPoint[] + */ + public function getSeries() + { + return $this->container['series']; + } + + /** + * Sets series + * + * @param \QuantClient\Model\V2MetricDataPoint[] $series Time series data points + * + * @return self + */ + public function setSeries($series) + { + if (is_null($series)) { + throw new \InvalidArgumentException('non-nullable series cannot be null'); + } + $this->container['series'] = $series; + + return $this; + } + + /** + * Gets period_total + * + * @return float + */ + public function getPeriodTotal() + { + return $this->container['period_total']; + } + + /** + * Sets period_total + * + * @param float $period_total Total value for the period + * + * @return self + */ + public function setPeriodTotal($period_total) + { + if (is_null($period_total)) { + throw new \InvalidArgumentException('non-nullable period_total cannot be null'); + } + $this->container['period_total'] = $period_total; + + return $this; + } + + /** + * Gets all_time_total + * + * @return float + */ + public function getAllTimeTotal() + { + return $this->container['all_time_total']; + } + + /** + * Sets all_time_total + * + * @param float $all_time_total All-time total value + * + * @return self + */ + public function setAllTimeTotal($all_time_total) + { + if (is_null($all_time_total)) { + throw new \InvalidArgumentException('non-nullable all_time_total cannot be null'); + } + $this->container['all_time_total'] = $all_time_total; + + return $this; + } + + /** + * Gets period_average + * + * @return float + */ + public function getPeriodAverage() + { + return $this->container['period_average']; + } + + /** + * Sets period_average + * + * @param float $period_average Average value per time unit in the period + * + * @return self + */ + public function setPeriodAverage($period_average) + { + if (is_null($period_average)) { + throw new \InvalidArgumentException('non-nullable period_average cannot be null'); + } + $this->container['period_average'] = $period_average; + + 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/V2MetricDataPoint.php b/src/Model/V2MetricDataPoint.php new file mode 100644 index 0000000..b7e0a3f --- /dev/null +++ b/src/Model/V2MetricDataPoint.php @@ -0,0 +1,449 @@ + + */ +class V2MetricDataPoint implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'V2MetricDataPoint'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'timestamp' => '\QuantClient\Model\V2MetricDataPointTimestamp', + 'value' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'timestamp' => null, + 'value' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'timestamp' => false, + 'value' => 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 = [ + 'timestamp' => 'timestamp', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'timestamp' => 'setTimestamp', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'timestamp' => 'getTimestamp', + 'value' => 'getValue' + ]; + + /** + * 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('value', $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['timestamp'] === null) { + $invalidProperties[] = "'timestamp' can't be null"; + } + if ($this->container['value'] === null) { + $invalidProperties[] = "'value' 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 timestamp + * + * @return \QuantClient\Model\V2MetricDataPointTimestamp + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \QuantClient\Model\V2MetricDataPointTimestamp $timestamp timestamp + * + * @return self + */ + public function setTimestamp($timestamp) + { + if (is_null($timestamp)) { + throw new \InvalidArgumentException('non-nullable timestamp cannot be null'); + } + $this->container['timestamp'] = $timestamp; + + return $this; + } + + /** + * Gets value + * + * @return float + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param float $value Metric value at this timestamp + * + * @return self + */ + public function setValue($value) + { + if (is_null($value)) { + throw new \InvalidArgumentException('non-nullable value cannot be null'); + } + $this->container['value'] = $value; + + 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/V2MetricDataPointTimestamp.php b/src/Model/V2MetricDataPointTimestamp.php new file mode 100644 index 0000000..f27d480 --- /dev/null +++ b/src/Model/V2MetricDataPointTimestamp.php @@ -0,0 +1,382 @@ + + */ +class V2MetricDataPointTimestamp implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'V2MetricDataPoint_timestamp'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + + ]; + + /** + * 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 = [ + + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + + ]; + + /** + * 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) + { + } + + /** + * 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; + } + + /** + * 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/V2MetricsMeta.php b/src/Model/V2MetricsMeta.php new file mode 100644 index 0000000..7b2438d --- /dev/null +++ b/src/Model/V2MetricsMeta.php @@ -0,0 +1,673 @@ + + */ +class V2MetricsMeta implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'V2MetricsMeta'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'period' => 'string', + 'granularity' => 'string', + 'start_time' => 'string', + 'end_time' => 'string', + 'metrics' => 'string[]', + 'domain' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'period' => null, + 'granularity' => null, + 'start_time' => null, + 'end_time' => null, + 'metrics' => null, + 'domain' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'period' => false, + 'granularity' => false, + 'start_time' => false, + 'end_time' => false, + 'metrics' => false, + 'domain' => 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 = [ + 'period' => 'period', + 'granularity' => 'granularity', + 'start_time' => 'start_time', + 'end_time' => 'end_time', + 'metrics' => 'metrics', + 'domain' => 'domain' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'period' => 'setPeriod', + 'granularity' => 'setGranularity', + 'start_time' => 'setStartTime', + 'end_time' => 'setEndTime', + 'metrics' => 'setMetrics', + 'domain' => 'setDomain' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'period' => 'getPeriod', + 'granularity' => 'getGranularity', + 'start_time' => 'getStartTime', + 'end_time' => 'getEndTime', + 'metrics' => 'getMetrics', + 'domain' => 'getDomain' + ]; + + /** + * 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 PERIOD_HOURLY = 'hourly'; + public const PERIOD_DAILY = 'daily'; + public const PERIOD_MONTHLY = 'monthly'; + public const GRANULARITY_MINUTE = 'minute'; + public const GRANULARITY_DAY = 'day'; + public const GRANULARITY_MONTH = 'month'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPeriodAllowableValues() + { + return [ + self::PERIOD_HOURLY, + self::PERIOD_DAILY, + self::PERIOD_MONTHLY, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getGranularityAllowableValues() + { + return [ + self::GRANULARITY_MINUTE, + self::GRANULARITY_DAY, + self::GRANULARITY_MONTH, + ]; + } + + /** + * 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('period', $data ?? [], null); + $this->setIfExists('granularity', $data ?? [], null); + $this->setIfExists('start_time', $data ?? [], null); + $this->setIfExists('end_time', $data ?? [], null); + $this->setIfExists('metrics', $data ?? [], null); + $this->setIfExists('domain', $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['period'] === null) { + $invalidProperties[] = "'period' can't be null"; + } + $allowedValues = $this->getPeriodAllowableValues(); + if (!is_null($this->container['period']) && !in_array($this->container['period'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'period', must be one of '%s'", + $this->container['period'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['granularity'] === null) { + $invalidProperties[] = "'granularity' can't be null"; + } + $allowedValues = $this->getGranularityAllowableValues(); + if (!is_null($this->container['granularity']) && !in_array($this->container['granularity'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'granularity', must be one of '%s'", + $this->container['granularity'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['start_time'] === null) { + $invalidProperties[] = "'start_time' can't be null"; + } + if ($this->container['end_time'] === null) { + $invalidProperties[] = "'end_time' can't be null"; + } + if ($this->container['metrics'] === null) { + $invalidProperties[] = "'metrics' 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 period + * + * @return string + */ + public function getPeriod() + { + return $this->container['period']; + } + + /** + * Sets period + * + * @param string $period The period type for this data + * + * @return self + */ + public function setPeriod($period) + { + if (is_null($period)) { + throw new \InvalidArgumentException('non-nullable period cannot be null'); + } + $allowedValues = $this->getPeriodAllowableValues(); + if (!in_array($period, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'period', must be one of '%s'", + $period, + implode("', '", $allowedValues) + ) + ); + } + $this->container['period'] = $period; + + return $this; + } + + /** + * Gets granularity + * + * @return string + */ + public function getGranularity() + { + return $this->container['granularity']; + } + + /** + * Sets granularity + * + * @param string $granularity The granularity of data points + * + * @return self + */ + public function setGranularity($granularity) + { + if (is_null($granularity)) { + throw new \InvalidArgumentException('non-nullable granularity cannot be null'); + } + $allowedValues = $this->getGranularityAllowableValues(); + if (!in_array($granularity, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'granularity', must be one of '%s'", + $granularity, + implode("', '", $allowedValues) + ) + ); + } + $this->container['granularity'] = $granularity; + + return $this; + } + + /** + * Gets start_time + * + * @return string + */ + public function getStartTime() + { + return $this->container['start_time']; + } + + /** + * Sets start_time + * + * @param string $start_time Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) + * + * @return self + */ + public function setStartTime($start_time) + { + if (is_null($start_time)) { + throw new \InvalidArgumentException('non-nullable start_time cannot be null'); + } + $this->container['start_time'] = $start_time; + + return $this; + } + + /** + * Gets end_time + * + * @return string + */ + public function getEndTime() + { + return $this->container['end_time']; + } + + /** + * Sets end_time + * + * @param string $end_time End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) + * + * @return self + */ + public function setEndTime($end_time) + { + if (is_null($end_time)) { + throw new \InvalidArgumentException('non-nullable end_time cannot be null'); + } + $this->container['end_time'] = $end_time; + + return $this; + } + + /** + * Gets metrics + * + * @return string[] + */ + public function getMetrics() + { + return $this->container['metrics']; + } + + /** + * Sets metrics + * + * @param string[] $metrics List of metrics included in the response + * + * @return self + */ + public function setMetrics($metrics) + { + if (is_null($metrics)) { + throw new \InvalidArgumentException('non-nullable metrics cannot be null'); + } + $this->container['metrics'] = $metrics; + + return $this; + } + + /** + * Gets domain + * + * @return string|null + */ + public function getDomain() + { + return $this->container['domain']; + } + + /** + * Sets domain + * + * @param string|null $domain Domain filter applied (if any) + * + * @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; + } + /** + * 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/V2MetricsResponse.php b/src/Model/V2MetricsResponse.php new file mode 100644 index 0000000..84299df --- /dev/null +++ b/src/Model/V2MetricsResponse.php @@ -0,0 +1,449 @@ + + */ +class V2MetricsResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'V2MetricsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'meta' => '\QuantClient\Model\V2MetricsMeta', + 'data' => 'array' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'meta' => null, + 'data' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'meta' => false, + 'data' => 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 = [ + 'meta' => 'meta', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'meta' => 'setMeta', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'meta' => 'getMeta', + 'data' => 'getData' + ]; + + /** + * 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('meta', $data ?? [], null); + $this->setIfExists('data', $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['meta'] === null) { + $invalidProperties[] = "'meta' can't be null"; + } + if ($this->container['data'] === null) { + $invalidProperties[] = "'data' 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 meta + * + * @return \QuantClient\Model\V2MetricsMeta + */ + public function getMeta() + { + return $this->container['meta']; + } + + /** + * Sets meta + * + * @param \QuantClient\Model\V2MetricsMeta $meta meta + * + * @return self + */ + public function setMeta($meta) + { + if (is_null($meta)) { + throw new \InvalidArgumentException('non-nullable meta cannot be null'); + } + $this->container['meta'] = $meta; + + return $this; + } + + /** + * Gets data + * + * @return array + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param array $data Metrics data keyed by metric name + * + * @return self + */ + public function setData($data) + { + if (is_null($data)) { + throw new \InvalidArgumentException('non-nullable data cannot be null'); + } + $this->container['data'] = $data; + + 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/V2Organization.php b/src/Model/V2Organization.php index 0071506..d012600 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.9.0 + * The version of the OpenAPI document: 4.10.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 65e3539..5e4fae8 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.9.0 + * The version of the OpenAPI document: 4.10.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 6cec9b7..e6b769e 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.9.0 + * The version of the OpenAPI document: 4.10.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 9d9711a..8ab9174 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.9.0 + * The version of the OpenAPI document: 4.10.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 347159a..95148b6 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.9.0 + * The version of the OpenAPI document: 4.10.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 e173a4e..b9925ec 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.9.0 + * The version of the OpenAPI document: 4.10.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 1b251a4..d7586ca 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.9.0 + * The version of the OpenAPI document: 4.10.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 485a8fb..dfa51af 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.9.0 + * The version of the OpenAPI document: 4.10.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 55b5ab4..ba5ed5d 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.9.0 + * The version of the OpenAPI document: 4.10.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 15f2e98..b854f94 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.9.0 + * The version of the OpenAPI document: 4.10.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 714f1c2..2e1532e 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.9.0 + * The version of the OpenAPI document: 4.10.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 b96918a..67890a0 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.9.0 + * The version of the OpenAPI document: 4.10.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 5b084fb..e6b0965 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.9.0 + * The version of the OpenAPI document: 4.10.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 66113e0..1e18ba1 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.9.0 + * The version of the OpenAPI document: 4.10.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 d0a75e5..7d10b92 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.9.0 + * The version of the OpenAPI document: 4.10.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 e745874..509b2d2 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.9.0 + * The version of the OpenAPI document: 4.10.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 e7e6ba0..635b1d0 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.9.0 + * The version of the OpenAPI document: 4.10.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 583fc5f..3140a87 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.9.0 + * The version of the OpenAPI document: 4.10.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 ba292ca..13928e4 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.9.0 + * The version of the OpenAPI document: 4.10.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 28b30ac..a601cfe 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.9.0 + * The version of the OpenAPI document: 4.10.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 e6af3ae..dce6a36 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.9.0 + * The version of the OpenAPI document: 4.10.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 d29f50d..248866e 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.9.0 + * The version of the OpenAPI document: 4.10.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 0b4032e..e361928 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.9.0 + * The version of the OpenAPI document: 4.10.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 762982e..45c4cb2 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.9.0 + * The version of the OpenAPI document: 4.10.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 e8f64fc..b42a6e6 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.9.0 + * The version of the OpenAPI document: 4.10.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 dfd00ae..73909fb 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.9.0 + * The version of the OpenAPI document: 4.10.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 b83d7fe..fff5cd3 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.9.0 + * The version of the OpenAPI document: 4.10.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 ab82b37..8016ab8 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.9.0 + * The version of the OpenAPI document: 4.10.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 99fe93a..669280f 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.9.0 + * The version of the OpenAPI document: 4.10.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 897c601..cf40b0f 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.9.0 + * The version of the OpenAPI document: 4.10.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 f272510..e4e3b91 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.9.0 + * The version of the OpenAPI document: 4.10.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 9aa123f..8a7bd1e 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.9.0 + * The version of the OpenAPI document: 4.10.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 a4b31c1..ab0aa5b 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.9.0 + * The version of the OpenAPI document: 4.10.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 7385cd3..d38b708 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.9.0 + * The version of the OpenAPI document: 4.10.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 7d1936c..eea3192 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.9.0 + * The version of the OpenAPI document: 4.10.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 adeb1ac..d1c9164 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.9.0 + * The version of the OpenAPI document: 4.10.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 d342e02..30ff56b 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.9.0 + * The version of the OpenAPI document: 4.10.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 78fb577..6b6a418 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.9.0 + * The version of the OpenAPI document: 4.10.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 85628fd..004e536 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.9.0 + * The version of the OpenAPI document: 4.10.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 46d4a74..08277d2 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.9.0 + * The version of the OpenAPI document: 4.10.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 bb23010..d4baa68 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.9.0 + * The version of the OpenAPI document: 4.10.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 18c112f..ee415c3 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.9.0 + * The version of the OpenAPI document: 4.10.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 4a0d617..45e0c81 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.9.0 + * The version of the OpenAPI document: 4.10.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 81f07ec..abdcc7c 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.9.0 + * The version of the OpenAPI document: 4.10.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 6b13b0b..c5ddb7c 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.9.0 + * The version of the OpenAPI document: 4.10.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 4dfb246..a25f310 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.9.0 + * The version of the OpenAPI document: 4.10.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 2bb6713..22862d8 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.9.0 + * The version of the OpenAPI document: 4.10.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 93bdbff..91d1145 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.9.0 + * The version of the OpenAPI document: 4.10.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 deabe31..2bd78f7 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.9.0 + * The version of the OpenAPI document: 4.10.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 45a57b0..e0284da 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.9.0 + * The version of the OpenAPI document: 4.10.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 298a15f..66bfff4 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.9.0 + * The version of the OpenAPI document: 4.10.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 d48e1a9..6f233b7 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index e2e1615..2108bca 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.9.0 + * The version of the OpenAPI document: 4.10.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */