From 560860666d0ddffa1424ce9c404109ce9f3ac6f7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 29 Aug 2024 01:35:42 +0000 Subject: [PATCH] feat(aiplatform)!: update the API BREAKING CHANGE: This release has breaking changes. #### aiplatform:v1beta1 The following keys were deleted: - schemas.GoogleCloudAiplatformV1beta1RagFileParsingConfig.properties.parsePdfsUsingOcr.description - schemas.GoogleCloudAiplatformV1beta1RagFileParsingConfig.properties.parsePdfsUsingOcr.type - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore.properties.ranking.$ref - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore.properties.ranking.description - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.description - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.id - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.properties.alpha.description - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.properties.alpha.format - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.properties.alpha.type - schemas.GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking.type The following keys were added: - resources.datasets.methods.create.description - resources.datasets.methods.create.flatPath - resources.datasets.methods.create.httpMethod - resources.datasets.methods.create.id - resources.datasets.methods.create.parameterOrder - resources.datasets.methods.create.parameters.parent.description - resources.datasets.methods.create.parameters.parent.location - resources.datasets.methods.create.parameters.parent.type - resources.datasets.methods.create.path - resources.datasets.methods.create.request.$ref - resources.datasets.methods.create.response.$ref - resources.datasets.methods.create.scopes - resources.datasets.methods.delete.description - resources.datasets.methods.delete.flatPath - resources.datasets.methods.delete.httpMethod - resources.datasets.methods.delete.id - resources.datasets.methods.delete.parameterOrder - resources.datasets.methods.delete.parameters.name.description - resources.datasets.methods.delete.parameters.name.location - resources.datasets.methods.delete.parameters.name.pattern - resources.datasets.methods.delete.parameters.name.required - resources.datasets.methods.delete.parameters.name.type - resources.datasets.methods.delete.path - resources.datasets.methods.delete.response.$ref - resources.datasets.methods.delete.scopes - resources.datasets.methods.get.description - resources.datasets.methods.get.flatPath - resources.datasets.methods.get.httpMethod - resources.datasets.methods.get.id - resources.datasets.methods.get.parameterOrder - resources.datasets.methods.get.parameters.name.description - resources.datasets.methods.get.parameters.name.location - resources.datasets.methods.get.parameters.name.pattern - resources.datasets.methods.get.parameters.name.required - resources.datasets.methods.get.parameters.name.type - resources.datasets.methods.get.parameters.readMask.description - resources.datasets.methods.get.parameters.readMask.format - resources.datasets.methods.get.parameters.readMask.location - resources.datasets.methods.get.parameters.readMask.type - resources.datasets.methods.get.path - resources.datasets.methods.get.response.$ref - resources.datasets.methods.get.scopes - resources.datasets.methods.list.description - resources.datasets.methods.list.flatPath - resources.datasets.methods.list.httpMethod - resources.datasets.methods.list.id - resources.datasets.methods.list.parameterOrder - resources.datasets.methods.list.parameters.filter.description - resources.datasets.methods.list.parameters.filter.location - resources.datasets.methods.list.parameters.filter.type - resources.datasets.methods.list.parameters.orderBy.description - resources.datasets.methods.list.parameters.orderBy.location - resources.datasets.methods.list.parameters.orderBy.type - resources.datasets.methods.list.parameters.pageSize.description - resources.datasets.methods.list.parameters.pageSize.format - resources.datasets.methods.list.parameters.pageSize.location - resources.datasets.methods.list.parameters.pageSize.type - resources.datasets.methods.list.parameters.pageToken.description - resources.datasets.methods.list.parameters.pageToken.location - resources.datasets.methods.list.parameters.pageToken.type - resources.datasets.methods.list.parameters.parent.description - resources.datasets.methods.list.parameters.parent.location - resources.datasets.methods.list.parameters.parent.type - resources.datasets.methods.list.parameters.readMask.description - resources.datasets.methods.list.parameters.readMask.format - resources.datasets.methods.list.parameters.readMask.location - resources.datasets.methods.list.parameters.readMask.type - resources.datasets.methods.list.path - resources.datasets.methods.list.response.$ref - resources.datasets.methods.list.scopes - resources.datasets.methods.patch.description - resources.datasets.methods.patch.flatPath - resources.datasets.methods.patch.httpMethod - resources.datasets.methods.patch.id - resources.datasets.methods.patch.parameterOrder - resources.datasets.methods.patch.parameters.name.description - resources.datasets.methods.patch.parameters.name.location - resources.datasets.methods.patch.parameters.name.pattern - resources.datasets.methods.patch.parameters.name.required - resources.datasets.methods.patch.parameters.name.type - resources.datasets.methods.patch.parameters.updateMask.description - resources.datasets.methods.patch.parameters.updateMask.format - resources.datasets.methods.patch.parameters.updateMask.location - resources.datasets.methods.patch.parameters.updateMask.type - resources.datasets.methods.patch.path - resources.datasets.methods.patch.request.$ref - resources.datasets.methods.patch.response.$ref - resources.datasets.methods.patch.scopes - resources.datasets.resources.datasetVersions.methods.create.description - resources.datasets.resources.datasetVersions.methods.create.flatPath - resources.datasets.resources.datasetVersions.methods.create.httpMethod - resources.datasets.resources.datasetVersions.methods.create.id - resources.datasets.resources.datasetVersions.methods.create.parameterOrder - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.description - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.location - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.pattern - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.required - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.type - resources.datasets.resources.datasetVersions.methods.create.path - resources.datasets.resources.datasetVersions.methods.create.request.$ref - resources.datasets.resources.datasetVersions.methods.create.response.$ref - resources.datasets.resources.datasetVersions.methods.create.scopes - resources.datasets.resources.datasetVersions.methods.delete.description - resources.datasets.resources.datasetVersions.methods.delete.flatPath - resources.datasets.resources.datasetVersions.methods.delete.httpMethod - resources.datasets.resources.datasetVersions.methods.delete.id - resources.datasets.resources.datasetVersions.methods.delete.parameterOrder - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.description - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.location - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.required - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.type - resources.datasets.resources.datasetVersions.methods.delete.path - resources.datasets.resources.datasetVersions.methods.delete.response.$ref - resources.datasets.resources.datasetVersions.methods.delete.scopes - resources.datasets.resources.datasetVersions.methods.get.description - resources.datasets.resources.datasetVersions.methods.get.flatPath - resources.datasets.resources.datasetVersions.methods.get.httpMethod - resources.datasets.resources.datasetVersions.methods.get.id - resources.datasets.resources.datasetVersions.methods.get.parameterOrder - resources.datasets.resources.datasetVersions.methods.get.parameters.name.description - resources.datasets.resources.datasetVersions.methods.get.parameters.name.location - resources.datasets.resources.datasetVersions.methods.get.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.get.parameters.name.required - resources.datasets.resources.datasetVersions.methods.get.parameters.name.type - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.description - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.format - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.location - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.type - resources.datasets.resources.datasetVersions.methods.get.path - resources.datasets.resources.datasetVersions.methods.get.response.$ref - resources.datasets.resources.datasetVersions.methods.get.scopes - resources.datasets.resources.datasetVersions.methods.list.description - resources.datasets.resources.datasetVersions.methods.list.flatPath - resources.datasets.resources.datasetVersions.methods.list.httpMethod - resources.datasets.resources.datasetVersions.methods.list.id - resources.datasets.resources.datasetVersions.methods.list.parameterOrder - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.description - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.location - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.type - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.description - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.location - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.type - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.description - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.format - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.location - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.type - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.description - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.location - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.type - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.description - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.location - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.pattern - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.required - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.type - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.description - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.format - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.location - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.type - resources.datasets.resources.datasetVersions.methods.list.path - resources.datasets.resources.datasetVersions.methods.list.response.$ref - resources.datasets.resources.datasetVersions.methods.list.scopes - resources.datasets.resources.datasetVersions.methods.patch.description - resources.datasets.resources.datasetVersions.methods.patch.flatPath - resources.datasets.resources.datasetVersions.methods.patch.httpMethod - resources.datasets.resources.datasetVersions.methods.patch.id - resources.datasets.resources.datasetVersions.methods.patch.parameterOrder - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.description - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.location - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.required - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.type - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.description - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.format - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.location - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.type - resources.datasets.resources.datasetVersions.methods.patch.path - resources.datasets.resources.datasetVersions.methods.patch.request.$ref - resources.datasets.resources.datasetVersions.methods.patch.response.$ref - resources.datasets.resources.datasetVersions.methods.patch.scopes - resources.datasets.resources.datasetVersions.methods.restore.description - resources.datasets.resources.datasetVersions.methods.restore.flatPath - resources.datasets.resources.datasetVersions.methods.restore.httpMethod - resources.datasets.resources.datasetVersions.methods.restore.id - resources.datasets.resources.datasetVersions.methods.restore.parameterOrder - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.description - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.location - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.required - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.type - resources.datasets.resources.datasetVersions.methods.restore.path - resources.datasets.resources.datasetVersions.methods.restore.response.$ref - resources.datasets.resources.datasetVersions.methods.restore.scopes - resources.endpoints.methods.computeTokens.description - resources.endpoints.methods.computeTokens.flatPath - resources.endpoints.methods.computeTokens.httpMethod - resources.endpoints.methods.computeTokens.id - resources.endpoints.methods.computeTokens.parameterOrder - resources.endpoints.methods.computeTokens.parameters.endpoint.description - resources.endpoints.methods.computeTokens.parameters.endpoint.location - resources.endpoints.methods.computeTokens.parameters.endpoint.pattern - resources.endpoints.methods.computeTokens.parameters.endpoint.required - resources.endpoints.methods.computeTokens.parameters.endpoint.type - resources.endpoints.methods.computeTokens.path - resources.endpoints.methods.computeTokens.request.$ref - resources.endpoints.methods.computeTokens.response.$ref - resources.endpoints.methods.computeTokens.scopes - resources.endpoints.methods.countTokens.description - resources.endpoints.methods.countTokens.flatPath - resources.endpoints.methods.countTokens.httpMethod - resources.endpoints.methods.countTokens.id - resources.endpoints.methods.countTokens.parameterOrder - resources.endpoints.methods.countTokens.parameters.endpoint.description - resources.endpoints.methods.countTokens.parameters.endpoint.location - resources.endpoints.methods.countTokens.parameters.endpoint.pattern - resources.endpoints.methods.countTokens.parameters.endpoint.required - resources.endpoints.methods.countTokens.parameters.endpoint.type - resources.endpoints.methods.countTokens.path - resources.endpoints.methods.countTokens.request.$ref - resources.endpoints.methods.countTokens.response.$ref - resources.endpoints.methods.countTokens.scopes - resources.endpoints.methods.generateContent.description - resources.endpoints.methods.generateContent.flatPath - resources.endpoints.methods.generateContent.httpMethod - resources.endpoints.methods.generateContent.id - resources.endpoints.methods.generateContent.parameterOrder - resources.endpoints.methods.generateContent.parameters.model.description - resources.endpoints.methods.generateContent.parameters.model.location - resources.endpoints.methods.generateContent.parameters.model.pattern - resources.endpoints.methods.generateContent.parameters.model.required - resources.endpoints.methods.generateContent.parameters.model.type - resources.endpoints.methods.generateContent.path - resources.endpoints.methods.generateContent.request.$ref - resources.endpoints.methods.generateContent.response.$ref - resources.endpoints.methods.generateContent.scopes - resources.endpoints.methods.streamGenerateContent.description - resources.endpoints.methods.streamGenerateContent.flatPath - resources.endpoints.methods.streamGenerateContent.httpMethod - resources.endpoints.methods.streamGenerateContent.id - resources.endpoints.methods.streamGenerateContent.parameterOrder - resources.endpoints.methods.streamGenerateContent.parameters.model.description - resources.endpoints.methods.streamGenerateContent.parameters.model.location - resources.endpoints.methods.streamGenerateContent.parameters.model.pattern - resources.endpoints.methods.streamGenerateContent.parameters.model.required - resources.endpoints.methods.streamGenerateContent.parameters.model.type - resources.endpoints.methods.streamGenerateContent.path - resources.endpoints.methods.streamGenerateContent.request.$ref - resources.endpoints.methods.streamGenerateContent.response.$ref - resources.endpoints.methods.streamGenerateContent.scopes - resources.publishers.resources.models.methods.computeTokens.description - resources.publishers.resources.models.methods.computeTokens.flatPath - resources.publishers.resources.models.methods.computeTokens.httpMethod - resources.publishers.resources.models.methods.computeTokens.id - resources.publishers.resources.models.methods.computeTokens.parameterOrder - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.description - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.location - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.pattern - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.required - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.type - resources.publishers.resources.models.methods.computeTokens.path - resources.publishers.resources.models.methods.computeTokens.request.$ref - resources.publishers.resources.models.methods.computeTokens.response.$ref - resources.publishers.resources.models.methods.computeTokens.scopes - resources.publishers.resources.models.methods.countTokens.description - resources.publishers.resources.models.methods.countTokens.flatPath - resources.publishers.resources.models.methods.countTokens.httpMethod - resources.publishers.resources.models.methods.countTokens.id - resources.publishers.resources.models.methods.countTokens.parameterOrder - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.description - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.location - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.pattern - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.required - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.type - resources.publishers.resources.models.methods.countTokens.path - resources.publishers.resources.models.methods.countTokens.request.$ref - resources.publishers.resources.models.methods.countTokens.response.$ref - resources.publishers.resources.models.methods.countTokens.scopes - resources.publishers.resources.models.methods.generateContent.description - resources.publishers.resources.models.methods.generateContent.flatPath - resources.publishers.resources.models.methods.generateContent.httpMethod - resources.publishers.resources.models.methods.generateContent.id - resources.publishers.resources.models.methods.generateContent.parameterOrder - resources.publishers.resources.models.methods.generateContent.parameters.model.description - resources.publishers.resources.models.methods.generateContent.parameters.model.location - resources.publishers.resources.models.methods.generateContent.parameters.model.pattern - resources.publishers.resources.models.methods.generateContent.parameters.model.required - resources.publishers.resources.models.methods.generateContent.parameters.model.type - resources.publishers.resources.models.methods.generateContent.path - resources.publishers.resources.models.methods.generateContent.request.$ref - resources.publishers.resources.models.methods.generateContent.response.$ref - resources.publishers.resources.models.methods.generateContent.scopes - resources.publishers.resources.models.methods.streamGenerateContent.description - resources.publishers.resources.models.methods.streamGenerateContent.flatPath - resources.publishers.resources.models.methods.streamGenerateContent.httpMethod - resources.publishers.resources.models.methods.streamGenerateContent.id - resources.publishers.resources.models.methods.streamGenerateContent.parameterOrder - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.description - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.location - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.pattern - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.required - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.type - resources.publishers.resources.models.methods.streamGenerateContent.path - resources.publishers.resources.models.methods.streamGenerateContent.request.$ref - resources.publishers.resources.models.methods.streamGenerateContent.response.$ref - resources.publishers.resources.models.methods.streamGenerateContent.scopes - schemas.GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.description - schemas.GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.format - schemas.GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.type - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzi.description - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzi.readOnly - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzi.type - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzs.description - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzs.readOnly - schemas.GoogleCloudAiplatformV1beta1PersistentResource.properties.satisfiesPzs.type - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToAction.properties.multiDeployVertex.$ref - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToAction.properties.multiDeployVertex.description - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.description - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.id - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.description - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.items.$ref - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.type - schemas.GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex.type - schemas.GoogleCloudAiplatformV1beta1RagQuery.properties.ranking.$ref - schemas.GoogleCloudAiplatformV1beta1RagQuery.properties.ranking.description - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.description - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.id - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.properties.alpha.description - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.properties.alpha.format - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.properties.alpha.type - schemas.GoogleCloudAiplatformV1beta1RagQueryRanking.type - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.maxWaitDuration.description - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.maxWaitDuration.format - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.maxWaitDuration.type - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.description - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.format - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.type - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.truncatedExampleIndices.description - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.truncatedExampleIndices.items.format - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.truncatedExampleIndices.items.type - schemas.GoogleCloudAiplatformV1beta1SupervisedTuningDataStats.properties.truncatedExampleIndices.type The following keys were changed: - resources.projects.resources.locations.resources.endpoints.methods.generateContent.parameters.model.description - resources.projects.resources.locations.resources.endpoints.methods.streamGenerateContent.parameters.model.description - resources.projects.resources.locations.resources.endpoints.resources.chat.methods.completions.parameters.endpoint.description - resources.projects.resources.locations.resources.publishers.resources.models.methods.generateContent.parameters.model.description - resources.projects.resources.locations.resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.description - schemas.GoogleCloudAiplatformV1beta1Candidate.properties.finishReason.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1FeatureGroupBigQuery.properties.timeSeries.description - schemas.GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries.properties.timestampColumn.description - schemas.GoogleCloudAiplatformV1beta1FunctionCallingConfig.properties.mode.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig.description - schemas.GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode.properties.modelName.description - schemas.GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance.properties.serviceName.enum - schemas.GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance.properties.serviceName.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter.description - schemas.GoogleCloudAiplatformV1beta1NotebookExecutionJob.properties.encryptionSpec.description - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.strategy.enum - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.strategy.enumDeprecated - schemas.GoogleCloudAiplatformV1beta1Scheduling.properties.strategy.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1VertexAISearch.description - schemas.GoogleCloudAiplatformV1beta1VertexAISearch.properties.datastore.description #### aiplatform:v1 The following keys were added: - resources.datasets.methods.create.description - resources.datasets.methods.create.flatPath - resources.datasets.methods.create.httpMethod - resources.datasets.methods.create.id - resources.datasets.methods.create.parameterOrder - resources.datasets.methods.create.parameters.parent.description - resources.datasets.methods.create.parameters.parent.location - resources.datasets.methods.create.parameters.parent.type - resources.datasets.methods.create.path - resources.datasets.methods.create.request.$ref - resources.datasets.methods.create.response.$ref - resources.datasets.methods.create.scopes - resources.datasets.methods.delete.description - resources.datasets.methods.delete.flatPath - resources.datasets.methods.delete.httpMethod - resources.datasets.methods.delete.id - resources.datasets.methods.delete.parameterOrder - resources.datasets.methods.delete.parameters.name.description - resources.datasets.methods.delete.parameters.name.location - resources.datasets.methods.delete.parameters.name.pattern - resources.datasets.methods.delete.parameters.name.required - resources.datasets.methods.delete.parameters.name.type - resources.datasets.methods.delete.path - resources.datasets.methods.delete.response.$ref - resources.datasets.methods.delete.scopes - resources.datasets.methods.get.description - resources.datasets.methods.get.flatPath - resources.datasets.methods.get.httpMethod - resources.datasets.methods.get.id - resources.datasets.methods.get.parameterOrder - resources.datasets.methods.get.parameters.name.description - resources.datasets.methods.get.parameters.name.location - resources.datasets.methods.get.parameters.name.pattern - resources.datasets.methods.get.parameters.name.required - resources.datasets.methods.get.parameters.name.type - resources.datasets.methods.get.parameters.readMask.description - resources.datasets.methods.get.parameters.readMask.format - resources.datasets.methods.get.parameters.readMask.location - resources.datasets.methods.get.parameters.readMask.type - resources.datasets.methods.get.path - resources.datasets.methods.get.response.$ref - resources.datasets.methods.get.scopes - resources.datasets.methods.list.description - resources.datasets.methods.list.flatPath - resources.datasets.methods.list.httpMethod - resources.datasets.methods.list.id - resources.datasets.methods.list.parameterOrder - resources.datasets.methods.list.parameters.filter.description - resources.datasets.methods.list.parameters.filter.location - resources.datasets.methods.list.parameters.filter.type - resources.datasets.methods.list.parameters.orderBy.description - resources.datasets.methods.list.parameters.orderBy.location - resources.datasets.methods.list.parameters.orderBy.type - resources.datasets.methods.list.parameters.pageSize.description - resources.datasets.methods.list.parameters.pageSize.format - resources.datasets.methods.list.parameters.pageSize.location - resources.datasets.methods.list.parameters.pageSize.type - resources.datasets.methods.list.parameters.pageToken.description - resources.datasets.methods.list.parameters.pageToken.location - resources.datasets.methods.list.parameters.pageToken.type - resources.datasets.methods.list.parameters.parent.description - resources.datasets.methods.list.parameters.parent.location - resources.datasets.methods.list.parameters.parent.type - resources.datasets.methods.list.parameters.readMask.description - resources.datasets.methods.list.parameters.readMask.format - resources.datasets.methods.list.parameters.readMask.location - resources.datasets.methods.list.parameters.readMask.type - resources.datasets.methods.list.path - resources.datasets.methods.list.response.$ref - resources.datasets.methods.list.scopes - resources.datasets.methods.patch.description - resources.datasets.methods.patch.flatPath - resources.datasets.methods.patch.httpMethod - resources.datasets.methods.patch.id - resources.datasets.methods.patch.parameterOrder - resources.datasets.methods.patch.parameters.name.description - resources.datasets.methods.patch.parameters.name.location - resources.datasets.methods.patch.parameters.name.pattern - resources.datasets.methods.patch.parameters.name.required - resources.datasets.methods.patch.parameters.name.type - resources.datasets.methods.patch.parameters.updateMask.description - resources.datasets.methods.patch.parameters.updateMask.format - resources.datasets.methods.patch.parameters.updateMask.location - resources.datasets.methods.patch.parameters.updateMask.type - resources.datasets.methods.patch.path - resources.datasets.methods.patch.request.$ref - resources.datasets.methods.patch.response.$ref - resources.datasets.methods.patch.scopes - resources.datasets.resources.datasetVersions.methods.create.description - resources.datasets.resources.datasetVersions.methods.create.flatPath - resources.datasets.resources.datasetVersions.methods.create.httpMethod - resources.datasets.resources.datasetVersions.methods.create.id - resources.datasets.resources.datasetVersions.methods.create.parameterOrder - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.description - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.location - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.pattern - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.required - resources.datasets.resources.datasetVersions.methods.create.parameters.parent.type - resources.datasets.resources.datasetVersions.methods.create.path - resources.datasets.resources.datasetVersions.methods.create.request.$ref - resources.datasets.resources.datasetVersions.methods.create.response.$ref - resources.datasets.resources.datasetVersions.methods.create.scopes - resources.datasets.resources.datasetVersions.methods.delete.description - resources.datasets.resources.datasetVersions.methods.delete.flatPath - resources.datasets.resources.datasetVersions.methods.delete.httpMethod - resources.datasets.resources.datasetVersions.methods.delete.id - resources.datasets.resources.datasetVersions.methods.delete.parameterOrder - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.description - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.location - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.required - resources.datasets.resources.datasetVersions.methods.delete.parameters.name.type - resources.datasets.resources.datasetVersions.methods.delete.path - resources.datasets.resources.datasetVersions.methods.delete.response.$ref - resources.datasets.resources.datasetVersions.methods.delete.scopes - resources.datasets.resources.datasetVersions.methods.get.description - resources.datasets.resources.datasetVersions.methods.get.flatPath - resources.datasets.resources.datasetVersions.methods.get.httpMethod - resources.datasets.resources.datasetVersions.methods.get.id - resources.datasets.resources.datasetVersions.methods.get.parameterOrder - resources.datasets.resources.datasetVersions.methods.get.parameters.name.description - resources.datasets.resources.datasetVersions.methods.get.parameters.name.location - resources.datasets.resources.datasetVersions.methods.get.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.get.parameters.name.required - resources.datasets.resources.datasetVersions.methods.get.parameters.name.type - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.description - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.format - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.location - resources.datasets.resources.datasetVersions.methods.get.parameters.readMask.type - resources.datasets.resources.datasetVersions.methods.get.path - resources.datasets.resources.datasetVersions.methods.get.response.$ref - resources.datasets.resources.datasetVersions.methods.get.scopes - resources.datasets.resources.datasetVersions.methods.list.description - resources.datasets.resources.datasetVersions.methods.list.flatPath - resources.datasets.resources.datasetVersions.methods.list.httpMethod - resources.datasets.resources.datasetVersions.methods.list.id - resources.datasets.resources.datasetVersions.methods.list.parameterOrder - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.description - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.location - resources.datasets.resources.datasetVersions.methods.list.parameters.filter.type - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.description - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.location - resources.datasets.resources.datasetVersions.methods.list.parameters.orderBy.type - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.description - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.format - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.location - resources.datasets.resources.datasetVersions.methods.list.parameters.pageSize.type - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.description - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.location - resources.datasets.resources.datasetVersions.methods.list.parameters.pageToken.type - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.description - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.location - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.pattern - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.required - resources.datasets.resources.datasetVersions.methods.list.parameters.parent.type - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.description - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.format - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.location - resources.datasets.resources.datasetVersions.methods.list.parameters.readMask.type - resources.datasets.resources.datasetVersions.methods.list.path - resources.datasets.resources.datasetVersions.methods.list.response.$ref - resources.datasets.resources.datasetVersions.methods.list.scopes - resources.datasets.resources.datasetVersions.methods.patch.description - resources.datasets.resources.datasetVersions.methods.patch.flatPath - resources.datasets.resources.datasetVersions.methods.patch.httpMethod - resources.datasets.resources.datasetVersions.methods.patch.id - resources.datasets.resources.datasetVersions.methods.patch.parameterOrder - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.description - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.location - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.required - resources.datasets.resources.datasetVersions.methods.patch.parameters.name.type - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.description - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.format - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.location - resources.datasets.resources.datasetVersions.methods.patch.parameters.updateMask.type - resources.datasets.resources.datasetVersions.methods.patch.path - resources.datasets.resources.datasetVersions.methods.patch.request.$ref - resources.datasets.resources.datasetVersions.methods.patch.response.$ref - resources.datasets.resources.datasetVersions.methods.patch.scopes - resources.datasets.resources.datasetVersions.methods.restore.description - resources.datasets.resources.datasetVersions.methods.restore.flatPath - resources.datasets.resources.datasetVersions.methods.restore.httpMethod - resources.datasets.resources.datasetVersions.methods.restore.id - resources.datasets.resources.datasetVersions.methods.restore.parameterOrder - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.description - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.location - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.pattern - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.required - resources.datasets.resources.datasetVersions.methods.restore.parameters.name.type - resources.datasets.resources.datasetVersions.methods.restore.path - resources.datasets.resources.datasetVersions.methods.restore.response.$ref - resources.datasets.resources.datasetVersions.methods.restore.scopes - resources.endpoints.methods.computeTokens.description - resources.endpoints.methods.computeTokens.flatPath - resources.endpoints.methods.computeTokens.httpMethod - resources.endpoints.methods.computeTokens.id - resources.endpoints.methods.computeTokens.parameterOrder - resources.endpoints.methods.computeTokens.parameters.endpoint.description - resources.endpoints.methods.computeTokens.parameters.endpoint.location - resources.endpoints.methods.computeTokens.parameters.endpoint.pattern - resources.endpoints.methods.computeTokens.parameters.endpoint.required - resources.endpoints.methods.computeTokens.parameters.endpoint.type - resources.endpoints.methods.computeTokens.path - resources.endpoints.methods.computeTokens.request.$ref - resources.endpoints.methods.computeTokens.response.$ref - resources.endpoints.methods.computeTokens.scopes - resources.endpoints.methods.countTokens.description - resources.endpoints.methods.countTokens.flatPath - resources.endpoints.methods.countTokens.httpMethod - resources.endpoints.methods.countTokens.id - resources.endpoints.methods.countTokens.parameterOrder - resources.endpoints.methods.countTokens.parameters.endpoint.description - resources.endpoints.methods.countTokens.parameters.endpoint.location - resources.endpoints.methods.countTokens.parameters.endpoint.pattern - resources.endpoints.methods.countTokens.parameters.endpoint.required - resources.endpoints.methods.countTokens.parameters.endpoint.type - resources.endpoints.methods.countTokens.path - resources.endpoints.methods.countTokens.request.$ref - resources.endpoints.methods.countTokens.response.$ref - resources.endpoints.methods.countTokens.scopes - resources.endpoints.methods.generateContent.description - resources.endpoints.methods.generateContent.flatPath - resources.endpoints.methods.generateContent.httpMethod - resources.endpoints.methods.generateContent.id - resources.endpoints.methods.generateContent.parameterOrder - resources.endpoints.methods.generateContent.parameters.model.description - resources.endpoints.methods.generateContent.parameters.model.location - resources.endpoints.methods.generateContent.parameters.model.pattern - resources.endpoints.methods.generateContent.parameters.model.required - resources.endpoints.methods.generateContent.parameters.model.type - resources.endpoints.methods.generateContent.path - resources.endpoints.methods.generateContent.request.$ref - resources.endpoints.methods.generateContent.response.$ref - resources.endpoints.methods.generateContent.scopes - resources.endpoints.methods.streamGenerateContent.description - resources.endpoints.methods.streamGenerateContent.flatPath - resources.endpoints.methods.streamGenerateContent.httpMethod - resources.endpoints.methods.streamGenerateContent.id - resources.endpoints.methods.streamGenerateContent.parameterOrder - resources.endpoints.methods.streamGenerateContent.parameters.model.description - resources.endpoints.methods.streamGenerateContent.parameters.model.location - resources.endpoints.methods.streamGenerateContent.parameters.model.pattern - resources.endpoints.methods.streamGenerateContent.parameters.model.required - resources.endpoints.methods.streamGenerateContent.parameters.model.type - resources.endpoints.methods.streamGenerateContent.path - resources.endpoints.methods.streamGenerateContent.request.$ref - resources.endpoints.methods.streamGenerateContent.response.$ref - resources.endpoints.methods.streamGenerateContent.scopes - resources.publishers.resources.models.methods.computeTokens.description - resources.publishers.resources.models.methods.computeTokens.flatPath - resources.publishers.resources.models.methods.computeTokens.httpMethod - resources.publishers.resources.models.methods.computeTokens.id - resources.publishers.resources.models.methods.computeTokens.parameterOrder - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.description - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.location - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.pattern - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.required - resources.publishers.resources.models.methods.computeTokens.parameters.endpoint.type - resources.publishers.resources.models.methods.computeTokens.path - resources.publishers.resources.models.methods.computeTokens.request.$ref - resources.publishers.resources.models.methods.computeTokens.response.$ref - resources.publishers.resources.models.methods.computeTokens.scopes - resources.publishers.resources.models.methods.countTokens.description - resources.publishers.resources.models.methods.countTokens.flatPath - resources.publishers.resources.models.methods.countTokens.httpMethod - resources.publishers.resources.models.methods.countTokens.id - resources.publishers.resources.models.methods.countTokens.parameterOrder - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.description - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.location - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.pattern - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.required - resources.publishers.resources.models.methods.countTokens.parameters.endpoint.type - resources.publishers.resources.models.methods.countTokens.path - resources.publishers.resources.models.methods.countTokens.request.$ref - resources.publishers.resources.models.methods.countTokens.response.$ref - resources.publishers.resources.models.methods.countTokens.scopes - resources.publishers.resources.models.methods.generateContent.description - resources.publishers.resources.models.methods.generateContent.flatPath - resources.publishers.resources.models.methods.generateContent.httpMethod - resources.publishers.resources.models.methods.generateContent.id - resources.publishers.resources.models.methods.generateContent.parameterOrder - resources.publishers.resources.models.methods.generateContent.parameters.model.description - resources.publishers.resources.models.methods.generateContent.parameters.model.location - resources.publishers.resources.models.methods.generateContent.parameters.model.pattern - resources.publishers.resources.models.methods.generateContent.parameters.model.required - resources.publishers.resources.models.methods.generateContent.parameters.model.type - resources.publishers.resources.models.methods.generateContent.path - resources.publishers.resources.models.methods.generateContent.request.$ref - resources.publishers.resources.models.methods.generateContent.response.$ref - resources.publishers.resources.models.methods.generateContent.scopes - resources.publishers.resources.models.methods.streamGenerateContent.description - resources.publishers.resources.models.methods.streamGenerateContent.flatPath - resources.publishers.resources.models.methods.streamGenerateContent.httpMethod - resources.publishers.resources.models.methods.streamGenerateContent.id - resources.publishers.resources.models.methods.streamGenerateContent.parameterOrder - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.description - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.location - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.pattern - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.required - resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.type - resources.publishers.resources.models.methods.streamGenerateContent.path - resources.publishers.resources.models.methods.streamGenerateContent.request.$ref - resources.publishers.resources.models.methods.streamGenerateContent.response.$ref - resources.publishers.resources.models.methods.streamGenerateContent.scopes - schemas.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.description - schemas.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.format - schemas.GoogleCloudAiplatformV1FeatureViewSyncSyncSummary.properties.systemWatermarkTime.type - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzi.description - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzi.readOnly - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzi.type - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzs.description - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzs.readOnly - schemas.GoogleCloudAiplatformV1PersistentResource.properties.satisfiesPzs.type - schemas.GoogleCloudAiplatformV1PublisherModelCallToAction.properties.multiDeployVertex.$ref - schemas.GoogleCloudAiplatformV1PublisherModelCallToAction.properties.multiDeployVertex.description - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.description - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.id - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.description - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.items.$ref - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.properties.multiDeployVertex.type - schemas.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.type - schemas.GoogleCloudAiplatformV1Retrieval.properties.vertexRagStore.$ref - schemas.GoogleCloudAiplatformV1Retrieval.properties.vertexRagStore.description - schemas.GoogleCloudAiplatformV1Scheduling.properties.maxWaitDuration.description - schemas.GoogleCloudAiplatformV1Scheduling.properties.maxWaitDuration.format - schemas.GoogleCloudAiplatformV1Scheduling.properties.maxWaitDuration.type - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.description - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.format - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.totalTruncatedExampleCount.type - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.truncatedExampleIndices.description - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.truncatedExampleIndices.items.format - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.truncatedExampleIndices.items.type - schemas.GoogleCloudAiplatformV1SupervisedTuningDataStats.properties.truncatedExampleIndices.type - schemas.GoogleCloudAiplatformV1VertexRagStore.description - schemas.GoogleCloudAiplatformV1VertexRagStore.id - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragCorpora.deprecated - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragCorpora.description - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragCorpora.items.type - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragCorpora.type - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragResources.description - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragResources.items.$ref - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.ragResources.type - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.similarityTopK.description - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.similarityTopK.format - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.similarityTopK.type - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.vectorDistanceThreshold.description - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.vectorDistanceThreshold.format - schemas.GoogleCloudAiplatformV1VertexRagStore.properties.vectorDistanceThreshold.type - schemas.GoogleCloudAiplatformV1VertexRagStore.type - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.description - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.id - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.properties.ragCorpus.description - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.properties.ragCorpus.type - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.properties.ragFileIds.description - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.properties.ragFileIds.items.type - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.properties.ragFileIds.type - schemas.GoogleCloudAiplatformV1VertexRagStoreRagResource.type The following keys were changed: - resources.projects.resources.locations.resources.endpoints.methods.generateContent.parameters.model.description - resources.projects.resources.locations.resources.endpoints.methods.streamGenerateContent.parameters.model.description - resources.projects.resources.locations.resources.publishers.resources.models.methods.generateContent.parameters.model.description - resources.projects.resources.locations.resources.publishers.resources.models.methods.streamGenerateContent.parameters.model.description - schemas.GoogleCloudAiplatformV1Candidate.properties.finishReason.enumDescriptions - schemas.GoogleCloudAiplatformV1FeatureGroupBigQuery.properties.timeSeries.description - schemas.GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries.properties.timestampColumn.description - schemas.GoogleCloudAiplatformV1FunctionCallingConfig.properties.mode.enumDescriptions - schemas.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.description - schemas.GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode.properties.modelName.description - schemas.GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter.description - schemas.GoogleCloudAiplatformV1NotebookExecutionJob.properties.encryptionSpec.description - schemas.GoogleCloudAiplatformV1Scheduling.properties.strategy.enum - schemas.GoogleCloudAiplatformV1Scheduling.properties.strategy.enumDeprecated - schemas.GoogleCloudAiplatformV1Scheduling.properties.strategy.enumDescriptions - schemas.GoogleCloudAiplatformV1VertexAISearch.description - schemas.GoogleCloudAiplatformV1VertexAISearch.properties.datastore.description --- discovery/aiplatform-v1.json | 749 ++++++++- discovery/aiplatform-v1beta1.json | 741 ++++++++- src/apis/aiplatform/v1.ts | 2499 +++++++++++++++++++++++++++-- src/apis/aiplatform/v1beta1.ts | 2173 ++++++++++++++++++++++++- 4 files changed, 5895 insertions(+), 267 deletions(-) diff --git a/discovery/aiplatform-v1.json b/discovery/aiplatform-v1.json index eb39f7551b..04968c6060 100644 --- a/discovery/aiplatform-v1.json +++ b/discovery/aiplatform-v1.json @@ -305,6 +305,491 @@ }, "protocol": "rest", "resources": { + "datasets": { + "methods": { + "create": { + "description": "Creates a Dataset.", + "flatPath": "v1/datasets", + "httpMethod": "POST", + "id": "aiplatform.datasets.create", + "parameterOrder": [], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1/datasets", + "request": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Dataset resource.", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Datasets in a Location.", + "flatPath": "v1/datasets", + "httpMethod": "GET", + "id": "aiplatform.datasets.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/datasets", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The resource name of the Dataset.", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "datasetVersions": { + "methods": { + "create": { + "description": "Create a version from a Dataset.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions", + "httpMethod": "POST", + "id": "aiplatform.datasets.datasetVersions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/datasetVersions", + "request": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.datasetVersions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DatasetVersions in a Dataset.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/datasetVersions", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.datasetVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The resource name of the DatasetVersion.", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restores a dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:restore", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "endpoints": { + "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1/endpoints/{endpointsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1/endpoints/{endpointsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.countTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1/endpoints/{endpointsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/endpoints/{endpointsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, "projects": { "resources": { "locations": { @@ -3288,7 +3773,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", "required": true, @@ -3543,7 +4028,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", "required": true, @@ -13188,7 +13673,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", "required": true, @@ -13304,7 +13789,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", "required": true, @@ -16919,6 +17404,91 @@ "resources": { "models": { "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.countTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "get": { "description": "Gets a Model Garden publisher model.", "flatPath": "v1/publishers/{publishersId}/models/{modelsId}", @@ -16975,13 +17545,42 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] } } } } } }, - "revision": "20240809", + "revision": "20240816", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -18603,7 +19202,7 @@ "The finish reason is unspecified.", "Token generation reached a natural stopping point or a configured stop sequence.", "Token generation reached the configured maximum output tokens.", - "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, Candidate.content is empty if content filters blocks the output.", + "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.", "Token generation stopped because the content potentially contains copyright violations.", "All other reasons that stopped the token generation.", "Token generation stopped because the content contains forbidden terms.", @@ -22282,7 +22881,7 @@ }, "timeSeries": { "$ref": "GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries", - "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary." + "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary." } }, "type": "object" @@ -22291,7 +22890,7 @@ "id": "GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries", "properties": { "timestampColumn": { - "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used.", + "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used.", "type": "string" } }, @@ -22912,6 +23511,11 @@ "readOnly": true, "type": "string" }, + "systemWatermarkTime": { + "description": "Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views.", + "format": "google-datetime", + "type": "string" + }, "totalSlot": { "description": "Output only. BigQuery slot milliseconds consumed for the sync job.", "format": "int64", @@ -23550,9 +24154,9 @@ ], "enumDescriptions": [ "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language response.", - "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", - "Model will not predict any function call. Model behavior is same as when not passing any function declarations." + "Default model behavior, model decides to predict either function calls or natural language response.", + "Model is constrained to always predicting function calls only. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".", + "Model will not predict any function calls. Model behavior is same as when not passing any function declarations." ], "type": "string" } @@ -23813,7 +24417,7 @@ "type": "object" }, "GoogleCloudAiplatformV1GenerationConfigRoutingConfig": { - "description": "Routing config.", + "description": "The configuration for routing the request to a specific model.", "id": "GoogleCloudAiplatformV1GenerationConfigRoutingConfig", "properties": { "autoMode": { @@ -23855,7 +24459,7 @@ "id": "GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode", "properties": { "modelName": { - "description": "The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001.", + "description": "The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.", "type": "string" } }, @@ -27913,7 +28517,7 @@ "type": "object" }, "GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter": { - "description": "Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1", + "description": "Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: \"a\" value_int: 42} {name: \"b\" value_float: 1.0} Database Point 1: {name: \"a\" value_int: 10} {name: \"b\" value_float: 2.0} Database Point 2: {name: \"a\" value_int: -1} {name: \"b\" value_float: 3.0} Query: {name: \"a\" value_int: 12 operator: LESS} // Matches Point 1, 2 {name: \"b\" value_float: 2.0 operator: EQUAL} // Matches Point 1", "id": "GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter", "properties": { "name": { @@ -28254,7 +28858,7 @@ }, "encryptionSpec": { "$ref": "GoogleCloudAiplatformV1EncryptionSpec", - "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec." + "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec." }, "executionTimeout": { "description": "Max running time of the execution job in seconds (default 86400s / 24 hrs).", @@ -29042,6 +29646,16 @@ "$ref": "GoogleCloudAiplatformV1ResourceRuntimeSpec", "description": "Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "startTime": { "description": "Output only. Time when the PersistentResource for the first time entered the `RUNNING` state.", "format": "google-datetime", @@ -29966,6 +30580,10 @@ "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke", "description": "Optional. Deploy PublisherModel to Google Kubernetes Engine." }, + "multiDeployVertex": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex", + "description": "Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint." + }, "openEvaluationPipeline": { "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open evaluation pipeline of the PublisherModel." @@ -30092,6 +30710,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex": { + "description": "Multiple setups to deploy the PublisherModel.", + "id": "GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex", + "properties": { + "multiDeployVertex": { + "description": "Optional. One click deployment configurations.", + "items": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionDeploy" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines": { "description": "Open fine tuning pipelines.", "id": "GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines", @@ -31224,6 +31856,10 @@ "vertexAiSearch": { "$ref": "GoogleCloudAiplatformV1VertexAISearch", "description": "Set to use data source powered by Vertex AI Search." + }, + "vertexRagStore": { + "$ref": "GoogleCloudAiplatformV1VertexRagStore", + "description": "Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService." } }, "type": "object" @@ -31774,6 +32410,11 @@ "description": "Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.", "type": "boolean" }, + "maxWaitDuration": { + "description": "Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.", + "format": "google-duration", + "type": "string" + }, "restartJobOnWorkerRestart": { "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" @@ -31785,21 +32426,24 @@ "ON_DEMAND", "LOW_COST", "STANDARD", - "SPOT" + "SPOT", + "DWS_FLEX_START" ], "enumDeprecated": [ false, true, true, false, + false, false ], "enumDescriptions": [ "Strategy will default to STANDARD.", - "Regular on-demand provisioning strategy.", - "Low cost by making potential use of spot resources.", + "Deprecated. Regular on-demand provisioning strategy.", + "Deprecated. Low cost by making potential use of spot resources.", "Standard provisioning strategy uses regular on-demand resources.", - "Spot provisioning strategy uses spot resources." + "Spot provisioning strategy uses spot resources.", + "DWS Flex start strategy uses DWS to queue for resources." ], "type": "string" }, @@ -37044,12 +37688,25 @@ "readOnly": true, "type": "string" }, + "totalTruncatedExampleCount": { + "description": "The number of examples in the dataset that have been truncated by any amount.", + "format": "int64", + "type": "string" + }, "totalTuningCharacterCount": { "description": "Output only. Number of tuning characters in the tuning dataset.", "format": "int64", "readOnly": true, "type": "string" }, + "truncatedExampleIndices": { + "description": "A partial sample of the indices (starting from 1) of the truncated examples.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, "tuningDatasetExampleCount": { "description": "Output only. Number of examples in the tuning dataset.", "format": "int64", @@ -38874,16 +39531,66 @@ "type": "object" }, "GoogleCloudAiplatformV1VertexAISearch": { - "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", + "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder", "id": "GoogleCloudAiplatformV1VertexAISearch", "properties": { "datastore": { - "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", + "description": "Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", "type": "string" } }, "type": "object" }, + "GoogleCloudAiplatformV1VertexRagStore": { + "description": "Retrieve from Vertex RAG Store for grounding.", + "id": "GoogleCloudAiplatformV1VertexRagStore", + "properties": { + "ragCorpora": { + "deprecated": true, + "description": "Optional. Deprecated. Please use rag_resources instead.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ragResources": { + "description": "Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.", + "items": { + "$ref": "GoogleCloudAiplatformV1VertexRagStoreRagResource" + }, + "type": "array" + }, + "similarityTopK": { + "description": "Optional. Number of top k results to return from the selected corpora.", + "format": "int32", + "type": "integer" + }, + "vectorDistanceThreshold": { + "description": "Optional. Only return results with vector distance smaller than the threshold.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1VertexRagStoreRagResource": { + "description": "The definition of the Rag resource.", + "id": "GoogleCloudAiplatformV1VertexRagStoreRagResource", + "properties": { + "ragCorpus": { + "description": "Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`", + "type": "string" + }, + "ragFileIds": { + "description": "Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1VideoMetadata": { "description": "Metadata describes the input video content.", "id": "GoogleCloudAiplatformV1VideoMetadata", diff --git a/discovery/aiplatform-v1beta1.json b/discovery/aiplatform-v1beta1.json index 6efad981fe..eb59aa7344 100644 --- a/discovery/aiplatform-v1beta1.json +++ b/discovery/aiplatform-v1beta1.json @@ -305,6 +305,492 @@ }, "protocol": "rest", "resources": { + "datasets": { + "methods": { + "create": { + "description": "Creates a Dataset.", + "flatPath": "v1beta1/datasets", + "httpMethod": "POST", + "id": "aiplatform.datasets.create", + "parameterOrder": [], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/datasets", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Dataset" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Dataset.", + "flatPath": "v1beta1/datasets/{datasetsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Dataset.", + "flatPath": "v1beta1/datasets/{datasetsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Dataset resource.", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Datasets in a Location.", + "flatPath": "v1beta1/datasets", + "httpMethod": "GET", + "id": "aiplatform.datasets.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/datasets", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a Dataset.", + "flatPath": "v1beta1/datasets/{datasetsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The resource name of the Dataset.", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Dataset" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "datasetVersions": { + "methods": { + "create": { + "description": "Create a version from a Dataset.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions", + "httpMethod": "POST", + "id": "aiplatform.datasets.datasetVersions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/datasetVersions", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Dataset version.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.datasetVersions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a Dataset version.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DatasetVersions in a Dataset.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "pattern": "^datasets/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Optional. Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/datasetVersions", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.datasetVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The resource name of the DatasetVersion.", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restores a dataset version.", + "flatPath": "v1beta1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:restore", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "endpoints": { + "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1beta1/endpoints/{endpointsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1beta1/endpoints/{endpointsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.countTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1beta1/endpoints/{endpointsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1beta1/endpoints/{endpointsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, "media": { "methods": { "upload": { @@ -4033,7 +4519,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", "required": true, @@ -4342,7 +4828,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", "required": true, @@ -4463,7 +4949,7 @@ ], "parameters": { "endpoint": { - "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/openapi`", + "description": "Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", "required": true, @@ -15688,7 +16174,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", "required": true, @@ -15835,7 +16321,7 @@ ], "parameters": { "model": { - "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", "required": true, @@ -20327,6 +20813,92 @@ "resources": { "models": { "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1beta1/publishers/{publishersId}/models/{modelsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1beta1/publishers/{publishersId}/models/{modelsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.countTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1beta1/publishers/{publishersId}/models/{modelsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, "get": { "description": "Gets a Model Garden publisher model.", "flatPath": "v1beta1/publishers/{publishersId}/models/{modelsId}", @@ -20451,13 +21023,42 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1beta1/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] } } } } } }, - "revision": "20240809", + "revision": "20240816", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -22348,7 +22949,7 @@ "The finish reason is unspecified.", "Token generation reached a natural stopping point or a configured stop sequence.", "Token generation reached the configured maximum output tokens.", - "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, Candidate.content is empty if content filters blocks the output.", + "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, content is empty if content filters blocks the output.", "Token generation stopped because the content potentially contains copyright violations.", "All other reasons that stopped the token generation.", "Token generation stopped because the content contains forbidden terms.", @@ -26494,7 +27095,7 @@ }, "timeSeries": { "$ref": "GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries", - "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary." + "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary." } }, "type": "object" @@ -26503,7 +27104,7 @@ "id": "GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries", "properties": { "timestampColumn": { - "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used.", + "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used.", "type": "string" } }, @@ -27165,6 +27766,11 @@ "readOnly": true, "type": "string" }, + "systemWatermarkTime": { + "description": "Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views.", + "format": "google-datetime", + "type": "string" + }, "totalSlot": { "description": "Output only. BigQuery slot milliseconds consumed for the sync job.", "format": "int64", @@ -27897,9 +28503,9 @@ ], "enumDescriptions": [ "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language response.", - "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", - "Model will not predict any function call. Model behavior is same as when not passing any function declarations." + "Default model behavior, model decides to predict either function calls or natural language response.", + "Model is constrained to always predicting function calls only. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".", + "Model will not predict any function calls. Model behavior is same as when not passing any function declarations." ], "type": "string" } @@ -28229,7 +28835,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig": { - "description": "Routing config.", + "description": "The configuration for routing the request to a specific model.", "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig", "properties": { "autoMode": { @@ -28271,7 +28877,7 @@ "id": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode", "properties": { "modelName": { - "description": "The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001.", + "description": "The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.", "type": "string" } }, @@ -29431,7 +30037,8 @@ "EUC_AGENT_API_STATE", "IDLE_SHUTDOWN_AGENT_STATE", "PROXY_AGENT_STATE", - "GCR_DNS_STATE" + "GCR_DNS_STATE", + "GUEST_ATTRIBUTE_STATE" ], "enumDescriptions": [ "Service name unknown.", @@ -29444,7 +30051,8 @@ "Represents the EUC agent server API endpoint.", "Represents the idle shutdown agent sidecar container.", "Represents the proxy agent sidecar container.", - "Represents resolving DNS for the gcr.io endpoint." + "Represents resolving DNS for the gcr.io endpoint.", + "Represents if the guest attribute service is enabled." ], "type": "string" }, @@ -33442,7 +34050,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter": { - "description": "Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1", + "description": "Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: \"a\" value_int: 42} {name: \"b\" value_float: 1.0} Database Point 1: {name: \"a\" value_int: 10} {name: \"b\" value_float: 2.0} Database Point 2: {name: \"a\" value_int: -1} {name: \"b\" value_float: 3.0} Query: {name: \"a\" value_int: 12 operator: LESS} // Matches Point 1, 2 {name: \"b\" value_float: 2.0 operator: EQUAL} // Matches Point 1", "id": "GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter", "properties": { "name": { @@ -33783,7 +34391,7 @@ }, "encryptionSpec": { "$ref": "GoogleCloudAiplatformV1beta1EncryptionSpec", - "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec." + "description": "Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec." }, "executionTimeout": { "description": "Max running time of the execution job in seconds (default 86400s / 24 hrs).", @@ -34575,6 +35183,16 @@ "$ref": "GoogleCloudAiplatformV1beta1ResourceRuntimeSpec", "description": "Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "startTime": { "description": "Output only. Time when the PersistentResource for the first time entered the `RUNNING` state.", "format": "google-datetime", @@ -35541,6 +36159,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke", "description": "Optional. Deploy PublisherModel to Google Kubernetes Engine." }, + "multiDeployVertex": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex", + "description": "Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint." + }, "openEvaluationPipeline": { "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open evaluation pipeline of the PublisherModel." @@ -35667,6 +36289,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex": { + "description": "Multiple setups to deploy the PublisherModel.", + "id": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex", + "properties": { + "multiDeployVertex": { + "description": "Optional. One click deployment configurations.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines": { "description": "Open fine tuning pipelines.", "id": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines", @@ -36630,10 +37266,6 @@ "description": "Specifies the parsing config for RagFiles.", "id": "GoogleCloudAiplatformV1beta1RagFileParsingConfig", "properties": { - "parsePdfsUsingOcr": { - "description": "Whether to use OCR for PDFs.", - "type": "boolean" - }, "useAdvancedPdfParsing": { "description": "Whether to use advanced PDF parsing.", "type": "boolean" @@ -36645,6 +37277,10 @@ "description": "A query to retrieve relevant contexts.", "id": "GoogleCloudAiplatformV1beta1RagQuery", "properties": { + "ranking": { + "$ref": "GoogleCloudAiplatformV1beta1RagQueryRanking", + "description": "Optional. Configurations for hybrid search results ranking." + }, "similarityTopK": { "description": "Optional. The number of contexts to retrieve.", "format": "int32", @@ -36657,6 +37293,18 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagQueryRanking": { + "description": "Configurations for hybrid search results ranking.", + "id": "GoogleCloudAiplatformV1beta1RagQueryRanking", + "properties": { + "alpha": { + "description": "Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RawPredictRequest": { "description": "Request message for PredictionService.RawPredict.", "id": "GoogleCloudAiplatformV1beta1RawPredictRequest", @@ -37381,10 +38029,6 @@ }, "type": "array" }, - "ranking": { - "$ref": "GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking", - "description": "Optional. Configurations for hybrid search results ranking." - }, "vectorDistanceThreshold": { "description": "Optional. Only return contexts with vector distance smaller than the threshold.", "format": "double", @@ -37411,18 +38055,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking": { - "description": "Configurations for hybrid search results ranking.", - "id": "GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking", - "properties": { - "alpha": { - "description": "Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1RetrieveContextsResponse": { "description": "Response message for VertexRagService.RetrieveContexts.", "id": "GoogleCloudAiplatformV1beta1RetrieveContextsResponse", @@ -38039,6 +38671,11 @@ "description": "Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.", "type": "boolean" }, + "maxWaitDuration": { + "description": "Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.", + "format": "google-duration", + "type": "string" + }, "restartJobOnWorkerRestart": { "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" @@ -38050,21 +38687,24 @@ "ON_DEMAND", "LOW_COST", "STANDARD", - "SPOT" + "SPOT", + "DWS_FLEX_START" ], "enumDeprecated": [ false, true, true, false, + false, false ], "enumDescriptions": [ "Strategy will default to STANDARD.", - "Regular on-demand provisioning strategy.", - "Low cost by making potential use of spot resources.", + "Deprecated. Regular on-demand provisioning strategy.", + "Deprecated. Low cost by making potential use of spot resources.", "Standard provisioning strategy uses regular on-demand resources.", - "Spot provisioning strategy uses spot resources." + "Spot provisioning strategy uses spot resources.", + "DWS Flex start strategy uses DWS to queue for resources." ], "type": "string" }, @@ -43471,12 +44111,25 @@ "readOnly": true, "type": "string" }, + "totalTruncatedExampleCount": { + "description": "The number of examples in the dataset that have been truncated by any amount.", + "format": "int64", + "type": "string" + }, "totalTuningCharacterCount": { "description": "Output only. Number of tuning characters in the tuning dataset.", "format": "int64", "readOnly": true, "type": "string" }, + "truncatedExampleIndices": { + "description": "A partial sample of the indices (starting from 1) of the truncated examples.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, "tuningDatasetExampleCount": { "description": "Output only. Number of examples in the tuning dataset.", "format": "int64", @@ -45436,11 +46089,11 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1VertexAISearch": { - "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", + "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder", "id": "GoogleCloudAiplatformV1beta1VertexAISearch", "properties": { "datastore": { - "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", + "description": "Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`", "type": "string" } }, diff --git a/src/apis/aiplatform/v1.ts b/src/apis/aiplatform/v1.ts index 2c2e46f266..1332c37657 100644 --- a/src/apis/aiplatform/v1.ts +++ b/src/apis/aiplatform/v1.ts @@ -112,6 +112,8 @@ export namespace aiplatform_v1 { */ export class Aiplatform { context: APIRequestContext; + datasets: Resource$Datasets; + endpoints: Resource$Endpoints; projects: Resource$Projects; publishers: Resource$Publishers; @@ -121,6 +123,8 @@ export namespace aiplatform_v1 { google, }; + this.datasets = new Resource$Datasets(this.context); + this.endpoints = new Resource$Endpoints(this.context); this.projects = new Resource$Projects(this.context); this.publishers = new Resource$Publishers(this.context); } @@ -4000,13 +4004,13 @@ export namespace aiplatform_v1 { */ entityIdColumns?: string[] | null; /** - * Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary. + * Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary. */ timeSeries?: Schema$GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries; } export interface Schema$GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries { /** - * Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used. + * Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used. */ timestampColumn?: string | null; } @@ -4607,6 +4611,10 @@ export namespace aiplatform_v1 { * Output only. Total number of rows synced. */ rowSynced?: string | null; + /** + * Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views. + */ + systemWatermarkTime?: string | null; /** * Output only. BigQuery slot milliseconds consumed for the sync job. */ @@ -5110,7 +5118,7 @@ export namespace aiplatform_v1 { topP?: number | null; } /** - * Routing config. + * The configuration for routing the request to a specific model. */ export interface Schema$GoogleCloudAiplatformV1GenerationConfigRoutingConfig { /** @@ -5136,7 +5144,7 @@ export namespace aiplatform_v1 { */ export interface Schema$GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode { /** - * The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001. + * The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'. */ modelName?: string | null; } @@ -8013,7 +8021,7 @@ export namespace aiplatform_v1 { value?: number[] | null; } /** - * Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42\} {name: “b” value_float: 1.0\} Database Point 1: {name: “a” value_int: 10\} {name: “b” value_float: 2.0\} Database Point 2: {name: “a” value_int: -1\} {name: “b” value_float: 3.0\} Query: {name: “a” value_int: 12 operator: LESS\} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL\} // Matches Point 1 + * Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: "a" value_int: 42\} {name: "b" value_float: 1.0\} Database Point 1: {name: "a" value_int: 10\} {name: "b" value_float: 2.0\} Database Point 2: {name: "a" value_int: -1\} {name: "b" value_float: 3.0\} Query: {name: "a" value_int: 12 operator: LESS\} // Matches Point 1, 2 {name: "b" value_float: 2.0 operator: EQUAL\} // Matches Point 1 */ export interface Schema$GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter { /** @@ -8235,7 +8243,7 @@ export namespace aiplatform_v1 { */ displayName?: string | null; /** - * Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec. + * Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec. */ encryptionSpec?: Schema$GoogleCloudAiplatformV1EncryptionSpec; /** @@ -8788,6 +8796,14 @@ export namespace aiplatform_v1 { * Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */ resourceRuntimeSpec?: Schema$GoogleCloudAiplatformV1ResourceRuntimeSpec; + /** + * Output only. Reserved for future use. + */ + satisfiesPzi?: boolean | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzs?: boolean | null; /** * Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */ @@ -9377,6 +9393,10 @@ export namespace aiplatform_v1 { * Optional. Deploy PublisherModel to Google Kubernetes Engine. */ deployGke?: Schema$GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke; + /** + * Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint. + */ + multiDeployVertex?: Schema$GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex; /** * Optional. Open evaluation pipeline of the PublisherModel. */ @@ -9489,6 +9509,15 @@ export namespace aiplatform_v1 { */ gkeYamlConfigs?: string[] | null; } + /** + * Multiple setups to deploy the PublisherModel. + */ + export interface Schema$GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex { + /** + * Optional. One click deployment configurations. + */ + multiDeployVertex?: Schema$GoogleCloudAiplatformV1PublisherModelCallToActionDeploy[]; + } /** * Open fine tuning pipelines. */ @@ -10371,6 +10400,10 @@ export namespace aiplatform_v1 { * Set to use data source powered by Vertex AI Search. */ vertexAiSearch?: Schema$GoogleCloudAiplatformV1VertexAISearch; + /** + * Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. + */ + vertexRagStore?: Schema$GoogleCloudAiplatformV1VertexRagStore; } /** * Input for rouge metric. @@ -10723,6 +10756,10 @@ export namespace aiplatform_v1 { * Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false. */ disableRetries?: boolean | null; + /** + * Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. + */ + maxWaitDuration?: string | null; /** * Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job. */ @@ -14447,10 +14484,18 @@ export namespace aiplatform_v1 { * Output only. Number of billable tokens in the tuning dataset. */ totalBillableTokenCount?: string | null; + /** + * The number of examples in the dataset that have been truncated by any amount. + */ + totalTruncatedExampleCount?: string | null; /** * Output only. Number of tuning characters in the tuning dataset. */ totalTuningCharacterCount?: string | null; + /** + * A partial sample of the indices (starting from 1) of the truncated examples. + */ + truncatedExampleIndices?: string[] | null; /** * Output only. Number of examples in the tuning dataset. */ @@ -15671,14 +15716,48 @@ export namespace aiplatform_v1 { stringValue?: string | null; } /** - * Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation + * Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder */ export interface Schema$GoogleCloudAiplatformV1VertexAISearch { /** - * Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{dataStore\}` + * Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{dataStore\}` */ datastore?: string | null; } + /** + * Retrieve from Vertex RAG Store for grounding. + */ + export interface Schema$GoogleCloudAiplatformV1VertexRagStore { + /** + * Optional. Deprecated. Please use rag_resources instead. + */ + ragCorpora?: string[] | null; + /** + * Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. + */ + ragResources?: Schema$GoogleCloudAiplatformV1VertexRagStoreRagResource[]; + /** + * Optional. Number of top k results to return from the selected corpora. + */ + similarityTopK?: number | null; + /** + * Optional. Only return results with vector distance smaller than the threshold. + */ + vectorDistanceThreshold?: number | null; + } + /** + * The definition of the Rag resource. + */ + export interface Schema$GoogleCloudAiplatformV1VertexRagStoreRagResource { + /** + * Optional. RagCorpora resource name. Format: `projects/{project\}/locations/{location\}/ragCorpora/{rag_corpus\}` + */ + ragCorpus?: string | null; + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + */ + ragFileIds?: string[] | null; + } /** * Metadata describes the input video content. */ @@ -16035,178 +16114,74 @@ export namespace aiplatform_v1 { units?: string | null; } - export class Resource$Projects { + export class Resource$Datasets { context: APIRequestContext; - locations: Resource$Projects$Locations; + datasetVersions: Resource$Datasets$Datasetversions; constructor(context: APIRequestContext) { this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - - export class Resource$Projects$Locations { - context: APIRequestContext; - batchPredictionJobs: Resource$Projects$Locations$Batchpredictionjobs; - customJobs: Resource$Projects$Locations$Customjobs; - dataLabelingJobs: Resource$Projects$Locations$Datalabelingjobs; - datasets: Resource$Projects$Locations$Datasets; - deploymentResourcePools: Resource$Projects$Locations$Deploymentresourcepools; - endpoints: Resource$Projects$Locations$Endpoints; - featureGroups: Resource$Projects$Locations$Featuregroups; - featureOnlineStores: Resource$Projects$Locations$Featureonlinestores; - featurestores: Resource$Projects$Locations$Featurestores; - hyperparameterTuningJobs: Resource$Projects$Locations$Hyperparametertuningjobs; - indexEndpoints: Resource$Projects$Locations$Indexendpoints; - indexes: Resource$Projects$Locations$Indexes; - metadataStores: Resource$Projects$Locations$Metadatastores; - migratableResources: Resource$Projects$Locations$Migratableresources; - modelDeploymentMonitoringJobs: Resource$Projects$Locations$Modeldeploymentmonitoringjobs; - models: Resource$Projects$Locations$Models; - nasJobs: Resource$Projects$Locations$Nasjobs; - notebookExecutionJobs: Resource$Projects$Locations$Notebookexecutionjobs; - notebookRuntimes: Resource$Projects$Locations$Notebookruntimes; - notebookRuntimeTemplates: Resource$Projects$Locations$Notebookruntimetemplates; - operations: Resource$Projects$Locations$Operations; - persistentResources: Resource$Projects$Locations$Persistentresources; - pipelineJobs: Resource$Projects$Locations$Pipelinejobs; - publishers: Resource$Projects$Locations$Publishers; - schedules: Resource$Projects$Locations$Schedules; - specialistPools: Resource$Projects$Locations$Specialistpools; - studies: Resource$Projects$Locations$Studies; - tensorboards: Resource$Projects$Locations$Tensorboards; - trainingPipelines: Resource$Projects$Locations$Trainingpipelines; - tuningJobs: Resource$Projects$Locations$Tuningjobs; - constructor(context: APIRequestContext) { - this.context = context; - this.batchPredictionJobs = - new Resource$Projects$Locations$Batchpredictionjobs(this.context); - this.customJobs = new Resource$Projects$Locations$Customjobs( - this.context - ); - this.dataLabelingJobs = new Resource$Projects$Locations$Datalabelingjobs( - this.context - ); - this.datasets = new Resource$Projects$Locations$Datasets(this.context); - this.deploymentResourcePools = - new Resource$Projects$Locations$Deploymentresourcepools(this.context); - this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); - this.featureGroups = new Resource$Projects$Locations$Featuregroups( - this.context - ); - this.featureOnlineStores = - new Resource$Projects$Locations$Featureonlinestores(this.context); - this.featurestores = new Resource$Projects$Locations$Featurestores( - this.context - ); - this.hyperparameterTuningJobs = - new Resource$Projects$Locations$Hyperparametertuningjobs(this.context); - this.indexEndpoints = new Resource$Projects$Locations$Indexendpoints( - this.context - ); - this.indexes = new Resource$Projects$Locations$Indexes(this.context); - this.metadataStores = new Resource$Projects$Locations$Metadatastores( - this.context - ); - this.migratableResources = - new Resource$Projects$Locations$Migratableresources(this.context); - this.modelDeploymentMonitoringJobs = - new Resource$Projects$Locations$Modeldeploymentmonitoringjobs( - this.context - ); - this.models = new Resource$Projects$Locations$Models(this.context); - this.nasJobs = new Resource$Projects$Locations$Nasjobs(this.context); - this.notebookExecutionJobs = - new Resource$Projects$Locations$Notebookexecutionjobs(this.context); - this.notebookRuntimes = new Resource$Projects$Locations$Notebookruntimes( - this.context - ); - this.notebookRuntimeTemplates = - new Resource$Projects$Locations$Notebookruntimetemplates(this.context); - this.operations = new Resource$Projects$Locations$Operations( - this.context - ); - this.persistentResources = - new Resource$Projects$Locations$Persistentresources(this.context); - this.pipelineJobs = new Resource$Projects$Locations$Pipelinejobs( - this.context - ); - this.publishers = new Resource$Projects$Locations$Publishers( - this.context - ); - this.schedules = new Resource$Projects$Locations$Schedules(this.context); - this.specialistPools = new Resource$Projects$Locations$Specialistpools( - this.context - ); - this.studies = new Resource$Projects$Locations$Studies(this.context); - this.tensorboards = new Resource$Projects$Locations$Tensorboards( - this.context - ); - this.trainingPipelines = - new Resource$Projects$Locations$Trainingpipelines(this.context); - this.tuningJobs = new Resource$Projects$Locations$Tuningjobs( + this.datasetVersions = new Resource$Datasets$Datasetversions( this.context ); } /** - * Evaluates instances based on a given metric. + * Creates a Dataset. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - evaluateInstances( - params: Params$Resource$Projects$Locations$Evaluateinstances, + create( + params: Params$Resource$Datasets$Create, options: StreamMethodOptions ): GaxiosPromise; - evaluateInstances( - params?: Params$Resource$Projects$Locations$Evaluateinstances, + create( + params?: Params$Resource$Datasets$Create, options?: MethodOptions - ): GaxiosPromise; - evaluateInstances( - params: Params$Resource$Projects$Locations$Evaluateinstances, + ): GaxiosPromise; + create( + params: Params$Resource$Datasets$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - evaluateInstances( - params: Params$Resource$Projects$Locations$Evaluateinstances, + create( + params: Params$Resource$Datasets$Create, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - evaluateInstances( - params: Params$Resource$Projects$Locations$Evaluateinstances, - callback: BodyResponseCallback + create( + params: Params$Resource$Datasets$Create, + callback: BodyResponseCallback ): void; - evaluateInstances( - callback: BodyResponseCallback + create( + callback: BodyResponseCallback ): void; - evaluateInstances( + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Evaluateinstances - | BodyResponseCallback + | Params$Resource$Datasets$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Evaluateinstances; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Evaluateinstances; + params = {} as Params$Resource$Datasets$Create; options = {}; } @@ -16219,34 +16194,120 @@ export namespace aiplatform_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+location}:evaluateInstances').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v1/datasets').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', apiVersion: '', }, options ), params, - requiredParams: ['location'], - pathParams: ['location'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest( - parameters + return createAPIRequest(parameters); + } + } + + /** + * Deletes a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Datasets$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Datasets$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Datasets$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Delete, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Delete, + callback: BodyResponseCallback + ): void; + delete( + callback: BodyResponseCallback + ): void; + delete( + paramsOrCallback?: + | Params$Resource$Datasets$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback ); + } else { + return createAPIRequest(parameters); } } /** - * Gets information about a location. + * Gets a Dataset. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -16254,56 +16315,1714 @@ export namespace aiplatform_v1 { * @returns A promise if used with async/await, or void if used with a callback. */ get( - params: Params$Resource$Projects$Locations$Get, + params: Params$Resource$Datasets$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Locations$Get, + params?: Params$Resource$Datasets$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Get, + params: Params$Resource$Datasets$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Get, + params: Params$Resource$Datasets$Get, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Get, - callback: BodyResponseCallback + params: Params$Resource$Datasets$Get, + callback: BodyResponseCallback ): void; get( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Get - | BodyResponseCallback + | Params$Resource$Datasets$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Get; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Get; + params = {} as Params$Resource$Datasets$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Lists Datasets in a Location. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Datasets$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Datasets$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Datasets$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Datasets$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Datasets$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Datasets$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Datasets$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Datasets$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Datasets$Create extends StandardParameters { + /** + * Required. The resource name of the Location to create the Dataset in. Format: `projects/{project\}/locations/{location\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1Dataset; + } + export interface Params$Resource$Datasets$Delete extends StandardParameters { + /** + * Required. The resource name of the Dataset to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + name?: string; + } + export interface Params$Resource$Datasets$Get extends StandardParameters { + /** + * Required. The name of the Dataset resource. + */ + name?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$List extends StandardParameters { + /** + * An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` + */ + filter?: string; + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` + */ + orderBy?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * Required. The name of the Dataset's parent resource. Format: `projects/{project\}/locations/{location\}` + */ + parent?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Patch extends StandardParameters { + /** + * Output only. Identifier. The resource name of the Dataset. + */ + name?: string; + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1Dataset; + } + + export class Resource$Datasets$Datasetversions { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Create a version from a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Datasets$Datasetversions$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a Dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Datasets$Datasetversions$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + callback: BodyResponseCallback + ): void; + delete( + callback: BodyResponseCallback + ): void; + delete( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a Dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Datasets$Datasetversions$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Lists DatasetVersions in a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Datasets$Datasetversions$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$Datasetversions$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/datasetVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a DatasetVersion. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Datasets$Datasetversions$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Restores a dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: StreamMethodOptions + ): GaxiosPromise; + restore( + params?: Params$Resource$Datasets$Datasetversions$Restore, + options?: MethodOptions + ): GaxiosPromise; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + callback: BodyResponseCallback + ): void; + restore( + callback: BodyResponseCallback + ): void; + restore( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Restore + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Restore; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:restore').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Datasets$Datasetversions$Create + extends StandardParameters { + /** + * Required. The name of the Dataset resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1DatasetVersion; + } + export interface Params$Resource$Datasets$Datasetversions$Delete + extends StandardParameters { + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + } + export interface Params$Resource$Datasets$Datasetversions$Get + extends StandardParameters { + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Datasetversions$List + extends StandardParameters { + /** + * Optional. The standard list filter. + */ + filter?: string; + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. + */ + orderBy?: string; + /** + * Optional. The standard list page size. + */ + pageSize?: number; + /** + * Optional. The standard list page token. + */ + pageToken?: string; + /** + * Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + parent?: string; + /** + * Optional. Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Datasetversions$Patch + extends StandardParameters { + /** + * Output only. Identifier. The resource name of the DatasetVersion. + */ + name?: string; + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1DatasetVersion; + } + export interface Params$Resource$Datasets$Datasetversions$Restore + extends StandardParameters { + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + } + + export class Resource$Endpoints { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Return a list of tokens based on the input text. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: StreamMethodOptions + ): GaxiosPromise; + computeTokens( + params?: Params$Resource$Endpoints$Computetokens, + options?: MethodOptions + ): GaxiosPromise; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + callback: BodyResponseCallback + ): void; + computeTokens( + callback: BodyResponseCallback + ): void; + computeTokens( + paramsOrCallback?: + | Params$Resource$Endpoints$Computetokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Computetokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Computetokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Perform a token counting. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: StreamMethodOptions + ): GaxiosPromise; + countTokens( + params?: Params$Resource$Endpoints$Counttokens, + options?: MethodOptions + ): GaxiosPromise; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + callback: BodyResponseCallback + ): void; + countTokens( + callback: BodyResponseCallback + ): void; + countTokens( + paramsOrCallback?: + | Params$Resource$Endpoints$Counttokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Counttokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Counttokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: StreamMethodOptions + ): GaxiosPromise; + generateContent( + params?: Params$Resource$Endpoints$Generatecontent, + options?: MethodOptions + ): GaxiosPromise; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + callback: BodyResponseCallback + ): void; + generateContent( + callback: BodyResponseCallback + ): void; + generateContent( + paramsOrCallback?: + | Params$Resource$Endpoints$Generatecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Generatecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Generatecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+model}:generateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs with streaming support. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: StreamMethodOptions + ): GaxiosPromise; + streamGenerateContent( + params?: Params$Resource$Endpoints$Streamgeneratecontent, + options?: MethodOptions + ): GaxiosPromise; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + callback: BodyResponseCallback + ): void; + streamGenerateContent( + paramsOrCallback?: + | Params$Resource$Endpoints$Streamgeneratecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Streamgeneratecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Streamgeneratecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Endpoints$Computetokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to get lists of tokens and token ids. + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1ComputeTokensRequest; + } + export interface Params$Resource$Endpoints$Counttokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1CountTokensRequest; + } + export interface Params$Resource$Endpoints$Generatecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1GenerateContentRequest; + } + export interface Params$Resource$Endpoints$Streamgeneratecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1GenerateContentRequest; + } + + export class Resource$Projects { + context: APIRequestContext; + locations: Resource$Projects$Locations; + constructor(context: APIRequestContext) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + + export class Resource$Projects$Locations { + context: APIRequestContext; + batchPredictionJobs: Resource$Projects$Locations$Batchpredictionjobs; + customJobs: Resource$Projects$Locations$Customjobs; + dataLabelingJobs: Resource$Projects$Locations$Datalabelingjobs; + datasets: Resource$Projects$Locations$Datasets; + deploymentResourcePools: Resource$Projects$Locations$Deploymentresourcepools; + endpoints: Resource$Projects$Locations$Endpoints; + featureGroups: Resource$Projects$Locations$Featuregroups; + featureOnlineStores: Resource$Projects$Locations$Featureonlinestores; + featurestores: Resource$Projects$Locations$Featurestores; + hyperparameterTuningJobs: Resource$Projects$Locations$Hyperparametertuningjobs; + indexEndpoints: Resource$Projects$Locations$Indexendpoints; + indexes: Resource$Projects$Locations$Indexes; + metadataStores: Resource$Projects$Locations$Metadatastores; + migratableResources: Resource$Projects$Locations$Migratableresources; + modelDeploymentMonitoringJobs: Resource$Projects$Locations$Modeldeploymentmonitoringjobs; + models: Resource$Projects$Locations$Models; + nasJobs: Resource$Projects$Locations$Nasjobs; + notebookExecutionJobs: Resource$Projects$Locations$Notebookexecutionjobs; + notebookRuntimes: Resource$Projects$Locations$Notebookruntimes; + notebookRuntimeTemplates: Resource$Projects$Locations$Notebookruntimetemplates; + operations: Resource$Projects$Locations$Operations; + persistentResources: Resource$Projects$Locations$Persistentresources; + pipelineJobs: Resource$Projects$Locations$Pipelinejobs; + publishers: Resource$Projects$Locations$Publishers; + schedules: Resource$Projects$Locations$Schedules; + specialistPools: Resource$Projects$Locations$Specialistpools; + studies: Resource$Projects$Locations$Studies; + tensorboards: Resource$Projects$Locations$Tensorboards; + trainingPipelines: Resource$Projects$Locations$Trainingpipelines; + tuningJobs: Resource$Projects$Locations$Tuningjobs; + constructor(context: APIRequestContext) { + this.context = context; + this.batchPredictionJobs = + new Resource$Projects$Locations$Batchpredictionjobs(this.context); + this.customJobs = new Resource$Projects$Locations$Customjobs( + this.context + ); + this.dataLabelingJobs = new Resource$Projects$Locations$Datalabelingjobs( + this.context + ); + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + this.deploymentResourcePools = + new Resource$Projects$Locations$Deploymentresourcepools(this.context); + this.endpoints = new Resource$Projects$Locations$Endpoints(this.context); + this.featureGroups = new Resource$Projects$Locations$Featuregroups( + this.context + ); + this.featureOnlineStores = + new Resource$Projects$Locations$Featureonlinestores(this.context); + this.featurestores = new Resource$Projects$Locations$Featurestores( + this.context + ); + this.hyperparameterTuningJobs = + new Resource$Projects$Locations$Hyperparametertuningjobs(this.context); + this.indexEndpoints = new Resource$Projects$Locations$Indexendpoints( + this.context + ); + this.indexes = new Resource$Projects$Locations$Indexes(this.context); + this.metadataStores = new Resource$Projects$Locations$Metadatastores( + this.context + ); + this.migratableResources = + new Resource$Projects$Locations$Migratableresources(this.context); + this.modelDeploymentMonitoringJobs = + new Resource$Projects$Locations$Modeldeploymentmonitoringjobs( + this.context + ); + this.models = new Resource$Projects$Locations$Models(this.context); + this.nasJobs = new Resource$Projects$Locations$Nasjobs(this.context); + this.notebookExecutionJobs = + new Resource$Projects$Locations$Notebookexecutionjobs(this.context); + this.notebookRuntimes = new Resource$Projects$Locations$Notebookruntimes( + this.context + ); + this.notebookRuntimeTemplates = + new Resource$Projects$Locations$Notebookruntimetemplates(this.context); + this.operations = new Resource$Projects$Locations$Operations( + this.context + ); + this.persistentResources = + new Resource$Projects$Locations$Persistentresources(this.context); + this.pipelineJobs = new Resource$Projects$Locations$Pipelinejobs( + this.context + ); + this.publishers = new Resource$Projects$Locations$Publishers( + this.context + ); + this.schedules = new Resource$Projects$Locations$Schedules(this.context); + this.specialistPools = new Resource$Projects$Locations$Specialistpools( + this.context + ); + this.studies = new Resource$Projects$Locations$Studies(this.context); + this.tensorboards = new Resource$Projects$Locations$Tensorboards( + this.context + ); + this.trainingPipelines = + new Resource$Projects$Locations$Trainingpipelines(this.context); + this.tuningJobs = new Resource$Projects$Locations$Tuningjobs( + this.context + ); + } + + /** + * Evaluates instances based on a given metric. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + evaluateInstances( + params: Params$Resource$Projects$Locations$Evaluateinstances, + options: StreamMethodOptions + ): GaxiosPromise; + evaluateInstances( + params?: Params$Resource$Projects$Locations$Evaluateinstances, + options?: MethodOptions + ): GaxiosPromise; + evaluateInstances( + params: Params$Resource$Projects$Locations$Evaluateinstances, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + evaluateInstances( + params: Params$Resource$Projects$Locations$Evaluateinstances, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + evaluateInstances( + params: Params$Resource$Projects$Locations$Evaluateinstances, + callback: BodyResponseCallback + ): void; + evaluateInstances( + callback: BodyResponseCallback + ): void; + evaluateInstances( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Evaluateinstances + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Evaluateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Evaluateinstances; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+location}:evaluateInstances').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Gets information about a location. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } @@ -27098,7 +28817,7 @@ export namespace aiplatform_v1 { export interface Params$Resource$Projects$Locations$Endpoints$Generatecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -27208,7 +28927,7 @@ export namespace aiplatform_v1 { export interface Params$Resource$Projects$Locations$Endpoints$Streamgeneratecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -60315,7 +62034,7 @@ export namespace aiplatform_v1 { export interface Params$Resource$Projects$Locations$Publishers$Models$Generatecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -60363,7 +62082,7 @@ export namespace aiplatform_v1 { export interface Params$Resource$Projects$Locations$Publishers$Models$Streamgeneratecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -72658,6 +74377,297 @@ export namespace aiplatform_v1 { this.context = context; } + /** + * Return a list of tokens based on the input text. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: StreamMethodOptions + ): GaxiosPromise; + computeTokens( + params?: Params$Resource$Publishers$Models$Computetokens, + options?: MethodOptions + ): GaxiosPromise; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + callback: BodyResponseCallback + ): void; + computeTokens( + callback: BodyResponseCallback + ): void; + computeTokens( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Computetokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Computetokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Computetokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+endpoint}:computeTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Perform a token counting. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: StreamMethodOptions + ): GaxiosPromise; + countTokens( + params?: Params$Resource$Publishers$Models$Counttokens, + options?: MethodOptions + ): GaxiosPromise; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + callback: BodyResponseCallback + ): void; + countTokens( + callback: BodyResponseCallback + ): void; + countTokens( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Counttokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Counttokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Counttokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+endpoint}:countTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: StreamMethodOptions + ): GaxiosPromise; + generateContent( + params?: Params$Resource$Publishers$Models$Generatecontent, + options?: MethodOptions + ): GaxiosPromise; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + callback: BodyResponseCallback + ): void; + generateContent( + callback: BodyResponseCallback + ): void; + generateContent( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Generatecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Generatecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Generatecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+model}:generateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + /** * Gets a Model Garden publisher model. * @@ -72751,8 +74761,141 @@ export namespace aiplatform_v1 { ); } } + + /** + * Generate content with multimodal inputs with streaming support. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: StreamMethodOptions + ): GaxiosPromise; + streamGenerateContent( + params?: Params$Resource$Publishers$Models$Streamgeneratecontent, + options?: MethodOptions + ): GaxiosPromise; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + callback: BodyResponseCallback + ): void; + streamGenerateContent( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Streamgeneratecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Streamgeneratecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Streamgeneratecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+model}:streamGenerateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Publishers$Models$Computetokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to get lists of tokens and token ids. + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1ComputeTokensRequest; + } + export interface Params$Resource$Publishers$Models$Counttokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1CountTokensRequest; } + export interface Params$Resource$Publishers$Models$Generatecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1GenerateContentRequest; + } export interface Params$Resource$Publishers$Models$Get extends StandardParameters { /** @@ -72776,4 +74919,16 @@ export namespace aiplatform_v1 { */ view?: string; } + export interface Params$Resource$Publishers$Models$Streamgeneratecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1GenerateContentRequest; + } } diff --git a/src/apis/aiplatform/v1beta1.ts b/src/apis/aiplatform/v1beta1.ts index ba94e9d495..11fb60ce47 100644 --- a/src/apis/aiplatform/v1beta1.ts +++ b/src/apis/aiplatform/v1beta1.ts @@ -112,6 +112,8 @@ export namespace aiplatform_v1beta1 { */ export class Aiplatform { context: APIRequestContext; + datasets: Resource$Datasets; + endpoints: Resource$Endpoints; media: Resource$Media; projects: Resource$Projects; publishers: Resource$Publishers; @@ -122,6 +124,8 @@ export namespace aiplatform_v1beta1 { google, }; + this.datasets = new Resource$Datasets(this.context); + this.endpoints = new Resource$Endpoints(this.context); this.media = new Resource$Media(this.context); this.projects = new Resource$Projects(this.context); this.publishers = new Resource$Publishers(this.context); @@ -4546,13 +4550,13 @@ export namespace aiplatform_v1beta1 { */ entityIdColumns?: string[] | null; /** - * Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary. + * Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureView ) will treat time-series sources. If not set, will treat the source as a time-series source with `feature_timestamp` as timestamp column and no scan boundary. */ timeSeries?: Schema$GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries; } export interface Schema$GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries { /** - * Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used. + * Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest `feature_values` for each entity. Optional. If not provided, column named `feature_timestamp` of type `TIMESTAMP` will be used. */ timestampColumn?: string | null; } @@ -5182,6 +5186,10 @@ export namespace aiplatform_v1beta1 { * Output only. Total number of rows synced. */ rowSynced?: string | null; + /** + * Lower bound of the system time watermark for the sync job. This is only set for continuously syncing feature views. + */ + systemWatermarkTime?: string | null; /** * Output only. BigQuery slot milliseconds consumed for the sync job. */ @@ -5788,7 +5796,7 @@ export namespace aiplatform_v1beta1 { topP?: number | null; } /** - * Routing config. + * The configuration for routing the request to a specific model. */ export interface Schema$GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig { /** @@ -5814,7 +5822,7 @@ export namespace aiplatform_v1beta1 { */ export interface Schema$GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode { /** - * The model name to use. Only the public LLM models are accepted. e.g. gemini-1.5-pro-001. + * The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'. */ modelName?: string | null; } @@ -9521,7 +9529,7 @@ export namespace aiplatform_v1beta1 { value?: number[] | null; } /** - * Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: “a” value_int: 42\} {name: “b” value_float: 1.0\} Database Point 1: {name: “a” value_int: 10\} {name: “b” value_float: 2.0\} Database Point 2: {name: “a” value_int: -1\} {name: “b” value_float: 3.0\} Query: {name: “a” value_int: 12 operator: LESS\} // Matches Point 1, 2 {name: “b” value_float: 2.0 operator: EQUAL\} // Matches Point 1 + * Numeric filter is used to search a subset of the entities by using boolean rules on numeric columns. For example: Database Point 0: {name: "a" value_int: 42\} {name: "b" value_float: 1.0\} Database Point 1: {name: "a" value_int: 10\} {name: "b" value_float: 2.0\} Database Point 2: {name: "a" value_int: -1\} {name: "b" value_float: 3.0\} Query: {name: "a" value_int: 12 operator: LESS\} // Matches Point 1, 2 {name: "b" value_float: 2.0 operator: EQUAL\} // Matches Point 1 */ export interface Schema$GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter { /** @@ -9743,7 +9751,7 @@ export namespace aiplatform_v1beta1 { */ displayName?: string | null; /** - * Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec. + * Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookService.NotebookRuntimeTemplate has an encryption spec. */ encryptionSpec?: Schema$GoogleCloudAiplatformV1beta1EncryptionSpec; /** @@ -10300,6 +10308,14 @@ export namespace aiplatform_v1beta1 { * Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. */ resourceRuntimeSpec?: Schema$GoogleCloudAiplatformV1beta1ResourceRuntimeSpec; + /** + * Output only. Reserved for future use. + */ + satisfiesPzi?: boolean | null; + /** + * Output only. Reserved for future use. + */ + satisfiesPzs?: boolean | null; /** * Output only. Time when the PersistentResource for the first time entered the `RUNNING` state. */ @@ -10925,6 +10941,10 @@ export namespace aiplatform_v1beta1 { * Optional. Deploy PublisherModel to Google Kubernetes Engine. */ deployGke?: Schema$GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke; + /** + * Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint. + */ + multiDeployVertex?: Schema$GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex; /** * Optional. Open evaluation pipeline of the PublisherModel. */ @@ -11037,6 +11057,15 @@ export namespace aiplatform_v1beta1 { */ gkeYamlConfigs?: string[] | null; } + /** + * Multiple setups to deploy the PublisherModel. + */ + export interface Schema$GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployVertex { + /** + * Optional. One click deployment configurations. + */ + multiDeployVertex?: Schema$GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy[]; + } /** * Open fine tuning pipelines. */ @@ -11793,10 +11822,6 @@ export namespace aiplatform_v1beta1 { * Specifies the parsing config for RagFiles. */ export interface Schema$GoogleCloudAiplatformV1beta1RagFileParsingConfig { - /** - * Whether to use OCR for PDFs. - */ - parsePdfsUsingOcr?: boolean | null; /** * Whether to use advanced PDF parsing. */ @@ -11806,6 +11831,10 @@ export namespace aiplatform_v1beta1 { * A query to retrieve relevant contexts. */ export interface Schema$GoogleCloudAiplatformV1beta1RagQuery { + /** + * Optional. Configurations for hybrid search results ranking. + */ + ranking?: Schema$GoogleCloudAiplatformV1beta1RagQueryRanking; /** * Optional. The number of contexts to retrieve. */ @@ -11815,6 +11844,15 @@ export namespace aiplatform_v1beta1 { */ text?: string | null; } + /** + * Configurations for hybrid search results ranking. + */ + export interface Schema$GoogleCloudAiplatformV1beta1RagQueryRanking { + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. + */ + alpha?: number | null; + } /** * Request message for PredictionService.RawPredict. */ @@ -12348,10 +12386,6 @@ export namespace aiplatform_v1beta1 { * Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. */ ragResources?: Schema$GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRagResource[]; - /** - * Optional. Configurations for hybrid search results ranking. - */ - ranking?: Schema$GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking; /** * Optional. Only return contexts with vector distance smaller than the threshold. */ @@ -12370,15 +12404,6 @@ export namespace aiplatform_v1beta1 { */ ragFileIds?: string[] | null; } - /** - * Configurations for hybrid search results ranking. - */ - export interface Schema$GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking { - /** - * Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. - */ - alpha?: number | null; - } /** * Response message for VertexRagService.RetrieveContexts. */ @@ -12784,6 +12809,10 @@ export namespace aiplatform_v1beta1 { * Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false. */ disableRetries?: boolean | null; + /** + * Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. + */ + maxWaitDuration?: string | null; /** * Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job. */ @@ -16635,10 +16664,18 @@ export namespace aiplatform_v1beta1 { * Output only. Number of billable tokens in the tuning dataset. */ totalBillableTokenCount?: string | null; + /** + * The number of examples in the dataset that have been truncated by any amount. + */ + totalTruncatedExampleCount?: string | null; /** * Output only. Number of tuning characters in the tuning dataset. */ totalTuningCharacterCount?: string | null; + /** + * A partial sample of the indices (starting from 1) of the truncated examples. + */ + truncatedExampleIndices?: string[] | null; /** * Output only. Number of examples in the tuning dataset. */ @@ -17972,11 +18009,11 @@ export namespace aiplatform_v1beta1 { stringValue?: string | null; } /** - * Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation + * Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/products/agent-builder */ export interface Schema$GoogleCloudAiplatformV1beta1VertexAISearch { /** - * Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{dataStore\}` + * Required. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{dataStore\}` */ datastore?: string | null; } @@ -18397,6 +18434,1646 @@ export namespace aiplatform_v1beta1 { units?: string | null; } + export class Resource$Datasets { + context: APIRequestContext; + datasetVersions: Resource$Datasets$Datasetversions; + constructor(context: APIRequestContext) { + this.context = context; + this.datasetVersions = new Resource$Datasets$Datasetversions( + this.context + ); + } + + /** + * Creates a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Datasets$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Datasets$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Datasets$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Datasets$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Datasets$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Datasets$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Datasets$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Delete, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Delete, + callback: BodyResponseCallback + ): void; + delete( + callback: BodyResponseCallback + ): void; + delete( + paramsOrCallback?: + | Params$Resource$Datasets$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Datasets$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Datasets$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Datasets$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Datasets$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Lists Datasets in a Location. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Datasets$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Datasets$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Datasets$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Datasets$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Datasets$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Datasets$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Datasets$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Datasets$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Datasets$Create extends StandardParameters { + /** + * Required. The resource name of the Location to create the Dataset in. Format: `projects/{project\}/locations/{location\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1Dataset; + } + export interface Params$Resource$Datasets$Delete extends StandardParameters { + /** + * Required. The resource name of the Dataset to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + name?: string; + } + export interface Params$Resource$Datasets$Get extends StandardParameters { + /** + * Required. The name of the Dataset resource. + */ + name?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$List extends StandardParameters { + /** + * An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels.myKey="myValue"` + */ + filter?: string; + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` + */ + orderBy?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * Required. The name of the Dataset's parent resource. Format: `projects/{project\}/locations/{location\}` + */ + parent?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Patch extends StandardParameters { + /** + * Output only. Identifier. The resource name of the Dataset. + */ + name?: string; + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1Dataset; + } + + export class Resource$Datasets$Datasetversions { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Create a version from a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: StreamMethodOptions + ): GaxiosPromise; + create( + params?: Params$Resource$Datasets$Datasetversions$Create, + options?: MethodOptions + ): GaxiosPromise; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Datasets$Datasetversions$Create, + callback: BodyResponseCallback + ): void; + create( + callback: BodyResponseCallback + ): void; + create( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a Dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Datasets$Datasetversions$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Datasets$Datasetversions$Delete, + callback: BodyResponseCallback + ): void; + delete( + callback: BodyResponseCallback + ): void; + delete( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets a Dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Datasets$Datasetversions$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Datasets$Datasetversions$Get, + callback: BodyResponseCallback + ): void; + get( + callback: BodyResponseCallback + ): void; + get( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Lists DatasetVersions in a Dataset. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Datasets$Datasetversions$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$Datasetversions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Datasets$Datasetversions$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/datasetVersions').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Updates a DatasetVersion. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Datasets$Datasetversions$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Datasets$Datasetversions$Patch, + callback: BodyResponseCallback + ): void; + patch( + callback: BodyResponseCallback + ): void; + patch( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Restores a dataset version. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: StreamMethodOptions + ): GaxiosPromise; + restore( + params?: Params$Resource$Datasets$Datasetversions$Restore, + options?: MethodOptions + ): GaxiosPromise; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + restore( + params: Params$Resource$Datasets$Datasetversions$Restore, + callback: BodyResponseCallback + ): void; + restore( + callback: BodyResponseCallback + ): void; + restore( + paramsOrCallback?: + | Params$Resource$Datasets$Datasetversions$Restore + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datasets$Datasetversions$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Datasetversions$Restore; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}:restore').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Datasets$Datasetversions$Create + extends StandardParameters { + /** + * Required. The name of the Dataset resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1DatasetVersion; + } + export interface Params$Resource$Datasets$Datasetversions$Delete + extends StandardParameters { + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + } + export interface Params$Resource$Datasets$Datasetversions$Get + extends StandardParameters { + /** + * Required. The resource name of the Dataset version to delete. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + /** + * Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Datasetversions$List + extends StandardParameters { + /** + * Optional. The standard list filter. + */ + filter?: string; + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. + */ + orderBy?: string; + /** + * Optional. The standard list page size. + */ + pageSize?: number; + /** + * Optional. The standard list page token. + */ + pageToken?: string; + /** + * Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}` + */ + parent?: string; + /** + * Optional. Mask specifying which fields to read. + */ + readMask?: string; + } + export interface Params$Resource$Datasets$Datasetversions$Patch + extends StandardParameters { + /** + * Output only. Identifier. The resource name of the DatasetVersion. + */ + name?: string; + /** + * Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1DatasetVersion; + } + export interface Params$Resource$Datasets$Datasetversions$Restore + extends StandardParameters { + /** + * Required. The name of the DatasetVersion resource. Format: `projects/{project\}/locations/{location\}/datasets/{dataset\}/datasetVersions/{dataset_version\}` + */ + name?: string; + } + + export class Resource$Endpoints { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Return a list of tokens based on the input text. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: StreamMethodOptions + ): GaxiosPromise; + computeTokens( + params?: Params$Resource$Endpoints$Computetokens, + options?: MethodOptions + ): GaxiosPromise; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Endpoints$Computetokens, + callback: BodyResponseCallback + ): void; + computeTokens( + callback: BodyResponseCallback + ): void; + computeTokens( + paramsOrCallback?: + | Params$Resource$Endpoints$Computetokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Computetokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Computetokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Perform a token counting. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: StreamMethodOptions + ): GaxiosPromise; + countTokens( + params?: Params$Resource$Endpoints$Counttokens, + options?: MethodOptions + ): GaxiosPromise; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Endpoints$Counttokens, + callback: BodyResponseCallback + ): void; + countTokens( + callback: BodyResponseCallback + ): void; + countTokens( + paramsOrCallback?: + | Params$Resource$Endpoints$Counttokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Counttokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Counttokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: StreamMethodOptions + ): GaxiosPromise; + generateContent( + params?: Params$Resource$Endpoints$Generatecontent, + options?: MethodOptions + ): GaxiosPromise; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Endpoints$Generatecontent, + callback: BodyResponseCallback + ): void; + generateContent( + callback: BodyResponseCallback + ): void; + generateContent( + paramsOrCallback?: + | Params$Resource$Endpoints$Generatecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Generatecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Generatecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs with streaming support. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: StreamMethodOptions + ): GaxiosPromise; + streamGenerateContent( + params?: Params$Resource$Endpoints$Streamgeneratecontent, + options?: MethodOptions + ): GaxiosPromise; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Endpoints$Streamgeneratecontent, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + callback: BodyResponseCallback + ): void; + streamGenerateContent( + paramsOrCallback?: + | Params$Resource$Endpoints$Streamgeneratecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Endpoints$Streamgeneratecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Endpoints$Streamgeneratecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Endpoints$Computetokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to get lists of tokens and token ids. + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1ComputeTokensRequest; + } + export interface Params$Resource$Endpoints$Counttokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1CountTokensRequest; + } + export interface Params$Resource$Endpoints$Generatecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1GenerateContentRequest; + } + export interface Params$Resource$Endpoints$Streamgeneratecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1GenerateContentRequest; + } + export class Resource$Media { context: APIRequestContext; constructor(context: APIRequestContext) { @@ -32442,7 +34119,7 @@ export namespace aiplatform_v1beta1 { export interface Params$Resource$Projects$Locations$Endpoints$Generatecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -32571,7 +34248,7 @@ export namespace aiplatform_v1beta1 { export interface Params$Resource$Projects$Locations$Endpoints$Streamgeneratecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -32718,7 +34395,7 @@ export namespace aiplatform_v1beta1 { export interface Params$Resource$Projects$Locations$Endpoints$Chat$Completions extends StandardParameters { /** - * Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/endpoints/openapi` + * Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ endpoint?: string; @@ -71794,7 +73471,7 @@ export namespace aiplatform_v1beta1 { export interface Params$Resource$Projects$Locations$Publishers$Models$Generatecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -71853,7 +73530,7 @@ export namespace aiplatform_v1beta1 { export interface Params$Resource$Projects$Locations$Publishers$Models$Streamgeneratecontent extends StandardParameters { /** - * Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project\}/locations/{location\}/publishers/x/models/x` + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` */ model?: string; @@ -87341,6 +89018,297 @@ export namespace aiplatform_v1beta1 { this.context = context; } + /** + * Return a list of tokens based on the input text. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: StreamMethodOptions + ): GaxiosPromise; + computeTokens( + params?: Params$Resource$Publishers$Models$Computetokens, + options?: MethodOptions + ): GaxiosPromise; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + computeTokens( + params: Params$Resource$Publishers$Models$Computetokens, + callback: BodyResponseCallback + ): void; + computeTokens( + callback: BodyResponseCallback + ): void; + computeTokens( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Computetokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Computetokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Computetokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+endpoint}:computeTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Perform a token counting. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: StreamMethodOptions + ): GaxiosPromise; + countTokens( + params?: Params$Resource$Publishers$Models$Counttokens, + options?: MethodOptions + ): GaxiosPromise; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + countTokens( + params: Params$Resource$Publishers$Models$Counttokens, + callback: BodyResponseCallback + ): void; + countTokens( + callback: BodyResponseCallback + ): void; + countTokens( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Counttokens + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Counttokens; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Counttokens; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+endpoint}:countTokens').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['endpoint'], + pathParams: ['endpoint'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Generate content with multimodal inputs. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: StreamMethodOptions + ): GaxiosPromise; + generateContent( + params?: Params$Resource$Publishers$Models$Generatecontent, + options?: MethodOptions + ): GaxiosPromise; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + generateContent( + params: Params$Resource$Publishers$Models$Generatecontent, + callback: BodyResponseCallback + ): void; + generateContent( + callback: BodyResponseCallback + ): void; + generateContent( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Generatecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Generatecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Generatecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+model}:generateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + /** * Gets a Model Garden publisher model. * @@ -87531,8 +89499,141 @@ export namespace aiplatform_v1beta1 { ); } } + + /** + * Generate content with multimodal inputs with streaming support. + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: StreamMethodOptions + ): GaxiosPromise; + streamGenerateContent( + params?: Params$Resource$Publishers$Models$Streamgeneratecontent, + options?: MethodOptions + ): GaxiosPromise; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + params: Params$Resource$Publishers$Models$Streamgeneratecontent, + callback: BodyResponseCallback + ): void; + streamGenerateContent( + callback: BodyResponseCallback + ): void; + streamGenerateContent( + paramsOrCallback?: + | Params$Resource$Publishers$Models$Streamgeneratecontent + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Publishers$Models$Streamgeneratecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Publishers$Models$Streamgeneratecontent; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://aiplatform.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+model}:streamGenerateContent').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['model'], + pathParams: ['model'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } } + export interface Params$Resource$Publishers$Models$Computetokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to get lists of tokens and token ids. + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1ComputeTokensRequest; + } + export interface Params$Resource$Publishers$Models$Counttokens + extends StandardParameters { + /** + * Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + endpoint?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1CountTokensRequest; + } + export interface Params$Resource$Publishers$Models$Generatecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1GenerateContentRequest; + } export interface Params$Resource$Publishers$Models$Get extends StandardParameters { /** @@ -87587,4 +89688,16 @@ export namespace aiplatform_v1beta1 { */ view?: string; } + export interface Params$Resource$Publishers$Models$Streamgeneratecontent + extends StandardParameters { + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project\}/locations/{location\}/publishers/x/models/x` Tuned model endpoint format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}` + */ + model?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$GoogleCloudAiplatformV1beta1GenerateContentRequest; + } }