📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Aiplatform/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 BatchPredictionJobs.php
▶ Open 📄 View Source
🐘 CustomJobs.php
▶ Open 📄 View Source
🐘 CustomJobsOperations.php
▶ Open 📄 View Source
🐘 DataLabelingJobs.php
▶ Open 📄 View Source
🐘 DataLabelingJobsOperations.php
▶ Open 📄 View Source
🐘 Datasets.php
▶ Open 📄 View Source
🐘 DatasetsAnnotationSpecs.php
▶ Open 📄 View Source
🐘 DatasetsAnnotationSpecsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDataItems.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsAnnotations.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsAnnotationsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDataItemsOperations.php
▶ Open 📄 View Source
🐘 DatasetsDatasetVersions.php
▶ Open 📄 View Source
🐘 DatasetsOperations.php
▶ Open 📄 View Source
🐘 DatasetsSavedQueries.php
▶ Open 📄 View Source
🐘 DatasetsSavedQueriesOperations.php
▶ Open 📄 View Source
🐘 DeploymentResourcePools.php
▶ Open 📄 View Source
🐘 DeploymentResourcePoolsOperations.php
▶ Open 📄 View Source
🐘 Endpoints.php
▶ Open 📄 View Source
🐘 EndpointsChat.php
▶ Open 📄 View Source
🐘 EndpointsOperations.php
▶ Open 📄 View Source
🐘 FeatureGroups.php
▶ Open 📄 View Source
🐘 FeatureGroupsFeatures.php
▶ Open 📄 View Source
🐘 FeatureGroupsFeaturesOperations.php
▶ Open 📄 View Source
🐘 FeatureGroupsOperations.php
▶ Open 📄 View Source
🐘 FeatureOnlineStores.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresFeatureViews.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresFeatureViewsOperations.php
▶ Open 📄 View Source
🐘 FeatureOnlineStoresOperations.php
▶ Open 📄 View Source
🐘 Featurestores.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypes.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesFeatures.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesFeaturesOperations.php
▶ Open 📄 View Source
🐘 FeaturestoresEntityTypesOperations.php
▶ Open 📄 View Source
🐘 FeaturestoresOperations.php
▶ Open 📄 View Source
🐘 HyperparameterTuningJobs.php
▶ Open 📄 View Source
🐘 HyperparameterTuningJobsOperations.php
▶ Open 📄 View Source
🐘 IndexEndpoints.php
▶ Open 📄 View Source
🐘 IndexEndpointsOperations.php
▶ Open 📄 View Source
🐘 Indexes.php
▶ Open 📄 View Source
🐘 IndexesOperations.php
▶ Open 📄 View Source
🐘 Media.php
▶ Open 📄 View Source
🐘 MetadataStores.php
▶ Open 📄 View Source
🐘 MetadataStoresArtifacts.php
▶ Open 📄 View Source
🐘 MetadataStoresArtifactsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresContexts.php
▶ Open 📄 View Source
🐘 MetadataStoresContextsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresExecutions.php
▶ Open 📄 View Source
🐘 MetadataStoresExecutionsOperations.php
▶ Open 📄 View Source
🐘 MetadataStoresOperations.php
▶ Open 📄 View Source
🐘 MigratableResources.php
▶ Open 📄 View Source
🐘 MigratableResourcesOperations.php
▶ Open 📄 View Source
🐘 ModelDeploymentMonitoringJobs.php
▶ Open 📄 View Source
🐘 ModelDeploymentMonitoringJobsOperations.php
▶ Open 📄 View Source
🐘 Models.php
▶ Open 📄 View Source
🐘 ModelsEvaluations.php
▶ Open 📄 View Source
🐘 ModelsEvaluationsOperations.php
▶ Open 📄 View Source
🐘 ModelsOperations.php
▶ Open 📄 View Source
🐘 NotebookExecutionJobs.php
▶ Open 📄 View Source
🐘 NotebookExecutionJobsOperations.php
▶ Open 📄 View Source
🐘 NotebookRuntimeTemplates.php
▶ Open 📄 View Source
🐘 NotebookRuntimeTemplatesOperations.php
▶ Open 📄 View Source
🐘 NotebookRuntimes.php
▶ Open 📄 View Source
🐘 NotebookRuntimesOperations.php
▶ Open 📄 View Source
🐘 Operations.php
▶ Open 📄 View Source
🐘 PersistentResources.php
▶ Open 📄 View Source
🐘 PersistentResourcesOperations.php
▶ Open 📄 View Source
🐘 PipelineJobs.php
▶ Open 📄 View Source
🐘 PipelineJobsOperations.php
▶ Open 📄 View Source
🐘 Projects.php
▶ Open 📄 View Source
🐘 ProjectsLocations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsBatchPredictionJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCachedContents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCustomJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCustomJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataLabelingJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDataLabelingJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasets.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsAnnotationSpecs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsAnnotationSpecsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItems.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsAnnotations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsAnnotationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDataItemsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsDatasetVersions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsSavedQueries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDatasetsSavedQueriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDeploymentResourcePools.php
▶ Open 📄 View Source
🐘 ProjectsLocationsDeploymentResourcePoolsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpoints.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsChat.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsDeployedModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsDeployedModelsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsGoogle.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsGoogleScience.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsOpenapi.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEndpointsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationItems.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationRuns.php
▶ Open 📄 View Source
🐘 ProjectsLocationsEvaluationSets.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroups.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsFeatures.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsFeaturesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureGroupsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViews.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresFeatureViewsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeatureOnlineStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesFeatures.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesFeaturesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresEntityTypesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsFeaturestoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsHyperparameterTuningJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsHyperparameterTuningJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexEndpoints.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexEndpointsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIndexesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStores.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresArtifacts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresArtifactsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresContexts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresContextsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresExecutions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresExecutionsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresMetadataSchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMetadataStoresOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMigratableResources.php
▶ Open 📄 View Source
🐘 ProjectsLocationsMigratableResourcesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelDeploymentMonitoringJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelDeploymentMonitoringJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsEvaluationsSlices.php
▶ Open 📄 View Source
🐘 ProjectsLocationsModelsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNasJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNasJobsNasTrialDetails.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookExecutionJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookExecutionJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimeTemplates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimeTemplatesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimes.php
▶ Open 📄 View Source
🐘 ProjectsLocationsNotebookRuntimesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPersistentResources.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPersistentResourcesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPipelineJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPipelineJobsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishers.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishersModels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsPublishersModelsInvoke.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorpora.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaRagFiles.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagCorporaRagFilesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagEngineConfig.php
▶ Open 📄 View Source
🐘 ProjectsLocationsRagEngineConfigOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEngines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemories.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemoriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesMemoriesRevisions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesRuntimeRevisions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSandboxEnvironmentsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessionsEvents.php
▶ Open 📄 View Source
🐘 ProjectsLocationsReasoningEnginesSessionsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSchedules.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSchedulesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSpecialistPools.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSpecialistPoolsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudies.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesTrials.php
▶ Open 📄 View Source
🐘 ProjectsLocationsStudiesTrialsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboards.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperiments.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRuns.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsTimeSeries.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTensorboardsOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTrainingPipelines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTrainingPipelinesOperations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTuningJobs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTuningJobsOperations.php
▶ Open 📄 View Source
🐘 Publishers.php
▶ Open 📄 View Source
🐘 PublishersModels.php
▶ Open 📄 View Source
🐘 RagCorpora.php
▶ Open 📄 View Source
🐘 RagCorporaOperations.php
▶ Open 📄 View Source
🐘 RagCorporaRagFiles.php
▶ Open 📄 View Source
🐘 RagCorporaRagFilesOperations.php
▶ Open 📄 View Source
🐘 RagEngineConfig.php
▶ Open 📄 View Source
🐘 RagEngineConfigOperations.php
▶ Open 📄 View Source
🐘 ReasoningEngines.php
▶ Open 📄 View Source
🐘 ReasoningEnginesMemories.php
▶ Open 📄 View Source
🐘 ReasoningEnginesMemoriesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesRuntimeRevisions.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentSnapshots.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentSnapshotsOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentTemplates.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentTemplatesOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironments.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSandboxEnvironmentsOperations.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSessions.php
▶ Open 📄 View Source
🐘 ReasoningEnginesSessionsOperations.php
▶ Open 📄 View Source
🐘 Schedules.php
▶ Open 📄 View Source
🐘 SchedulesOperations.php
▶ Open 📄 View Source
🐘 SpecialistPools.php
▶ Open 📄 View Source
🐘 SpecialistPoolsOperations.php
▶ Open 📄 View Source
🐘 Studies.php
▶ Open 📄 View Source
🐘 StudiesOperations.php
▶ Open 📄 View Source
🐘 StudiesTrials.php
▶ Open 📄 View Source
🐘 StudiesTrialsOperations.php
▶ Open 📄 View Source
🐘 Tensorboards.php
▶ Open 📄 View Source
🐘 TensorboardsExperiments.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsOperations.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRuns.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsOperations.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsTimeSeries.php
▶ Open 📄 View Source
🐘 TensorboardsExperimentsRunsTimeSeriesOperations.php
▶ Open 📄 View Source
🐘 TensorboardsOperations.php
▶ Open 📄 View Source
🐘 TrainingPipelines.php
▶ Open 📄 View Source
🐘 TrainingPipelinesOperations.php
▶ Open 📄 View Source
🐘 TuningJobs.php
▶ Open 📄 View Source
🐘 TuningJobsOperations.php
▶ Open 📄 View Source

📄 Source: ProjectsLocationsModels.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Aiplatform\Resource;

use Google\Service\Aiplatform\GoogleCloudAiplatformV1CopyModelRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1ExportModelRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListModelVersionsResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListModelsResponse;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1MergeVersionAliasesRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1Model;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1UpdateExplanationDatasetRequest;
use Google\Service\Aiplatform\GoogleCloudAiplatformV1UploadModelRequest;
use Google\Service\Aiplatform\GoogleIamV1Policy;
use Google\Service\Aiplatform\GoogleIamV1SetIamPolicyRequest;
use Google\Service\Aiplatform\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\Aiplatform\GoogleLongrunningOperation;

/**
 * The "models" collection of methods.
 * Typical usage is:
 *  <code>
 *   $aiplatformService = new Google\Service\Aiplatform(...);
 *   $models = $aiplatformService->projects_locations_models;
 *  </code>
 */
class ProjectsLocationsModels extends \Google\Service\Resource
{
  /**
   * Copies an already existing Vertex AI Model into the specified Location. The
   * source Model must exist in the same Project. When copying custom Models, the
   * users themselves are responsible for Model.metadata content to be region-
   * agnostic, as well as making sure that any resources (e.g. files) it depends
   * on remain accessible. (models.copy)
   *
   * @param string $parent Required. The resource name of the Location into which
   * to copy the Model. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1CopyModelRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function copy($parent, GoogleCloudAiplatformV1CopyModelRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('copy', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Deletes a Model. A model cannot be deleted if any Endpoint resource has a
   * DeployedModel based on the model in its deployed_models field.
   * (models.delete)
   *
   * @param string $name Required. The name of the Model resource to be deleted.
   * Format: `projects/{project}/locations/{location}/models/{model}`
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function delete($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('delete', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Deletes a Model version. Model version can only be deleted if there are no
   * DeployedModels created from it. Deleting the only version in the Model is not
   * allowed. Use DeleteModel for deleting the Model instead.
   * (models.deleteVersion)
   *
   * @param string $name Required. The name of the model version to be deleted,
   * with a version ID explicitly included. Example:
   * `projects/{project}/locations/{location}/models/{model}@1234`
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function deleteVersion($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('deleteVersion', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Exports a trained, exportable Model to a location specified by the user. A
   * Model is considered to be exportable if it has at least one supported export
   * format. (models.export)
   *
   * @param string $name Required. The resource name of the Model to export. The
   * resource name may contain version id or version alias to specify the version,
   * if no version is specified, the default version will be exported.
   * @param GoogleCloudAiplatformV1ExportModelRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function export($name, GoogleCloudAiplatformV1ExportModelRequest $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('export', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Gets a Model. (models.get)
   *
   * @param string $name Required. The name of the Model resource. Format:
   * `projects/{project}/locations/{location}/models/{model}` In order to retrieve
   * a specific version of the model, also provide the version ID or version
   * alias. Example: `projects/{project}/locations/{location}/models/{model}@2` or
   * `projects/{project}/locations/{location}/models/{model}@golden` If no version
   * ID or alias is specified, the "default" version will be returned. The
   * "default" version alias is created for the first version of the model, and
   * can be moved to other versions later on. There will be exactly one default
   * version.
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1Model
   * @throws \Google\Service\Exception
   */
  public function get($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], GoogleCloudAiplatformV1Model::class);
  }
  /**
   * Gets the access control policy for a resource. Returns an empty policy if the
   * resource exists and does not have a policy set. (models.getIamPolicy)
   *
   * @param string $resource REQUIRED: The resource for which the policy is being
   * requested. See [Resource
   * names](https://cloud.google.com/apis/design/resource_names) for the
   * appropriate value for this field.
   * @param array $optParams Optional parameters.
   *
   * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
   * version that will be used to format the policy. Valid values are 0, 1, and 3.
   * Requests specifying an invalid value will be rejected. Requests for policies
   * with any conditional role bindings must specify version 3. Policies with no
   * conditional role bindings may specify any valid value or leave the field
   * unset. The policy in the response might use the policy version that you
   * specified, or it might use a lower policy version. For example, if you
   * specify version 3, but the policy has no conditional role bindings, the
   * response uses version 1. To learn which resources support conditions in their
   * IAM policies, see the [IAM
   * documentation](https://cloud.google.com/iam/help/conditions/resource-
   * policies).
   * @return GoogleIamV1Policy
   * @throws \Google\Service\Exception
   */
  public function getIamPolicy($resource, $optParams = [])
  {
    $params = ['resource' => $resource];
    $params = array_merge($params, $optParams);
    return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
  }
  /**
   * Lists Models in a Location. (models.listProjectsLocationsModels)
   *
   * @param string $parent Required. The resource name of the Location to list the
   * Models from. Format: `projects/{project}/locations/{location}`
   * @param array $optParams Optional parameters.
   *
   * @opt_param string filter An expression for filtering the results of the
   * request. For field names both snake_case and camelCase are supported. *
   * `model` supports = and !=. `model` represents the Model ID, i.e. the last
   * segment of the Model's resource name. * `display_name` 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"`. * `base_model_name` only
   * supports = Some examples: * `model=1234` * `displayName="myDisplayName"` *
   * `labels.myKey="myValue"` * `baseModelName="text-bison"`
   * @opt_param string orderBy 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` Example:
   * `display_name, create_time desc`.
   * @opt_param int pageSize The standard list page size.
   * @opt_param string pageToken The standard list page token. Typically obtained
   * via ListModelsResponse.next_page_token of the previous
   * ModelService.ListModels call.
   * @opt_param string readMask Mask specifying which fields to read.
   * @return GoogleCloudAiplatformV1ListModelsResponse
   * @throws \Google\Service\Exception
   */
  public function listProjectsLocationsModels($parent, $optParams = [])
  {
    $params = ['parent' => $parent];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], GoogleCloudAiplatformV1ListModelsResponse::class);
  }
  /**
   * Lists checkpoints of the specified model version. (models.listCheckpoints)
   *
   * @param string $name Required. The name of the model version to list
   * checkpoints for.
   * `projects/{project}/locations/{location}/models/{model}@{version}` Example:
   * `projects/{project}/locations/{location}/models/{model}@2` or
   * `projects/{project}/locations/{location}/models/{model}@golden` If no version
   * ID or alias is specified, the latest version will be used.
   * @param array $optParams Optional parameters.
   *
   * @opt_param int pageSize Optional. The standard list page size.
   * @opt_param string pageToken Optional. The standard list page token. Typically
   * obtained via next_page_token of the previous ListModelVersionCheckpoints
   * call.
   * @return GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse
   * @throws \Google\Service\Exception
   */
  public function listCheckpoints($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('listCheckpoints', [$params], GoogleCloudAiplatformV1ListModelVersionCheckpointsResponse::class);
  }
  /**
   * Lists versions of the specified model. (models.listVersions)
   *
   * @param string $name Required. The name of the model to list versions for.
   * @param array $optParams Optional parameters.
   *
   * @opt_param string filter An expression for filtering the results of the
   * request. For field names both snake_case and camelCase are supported. *
   * `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: *
   * `labels.myKey="myValue"`
   * @opt_param string orderBy A comma-separated list of fields to order by,
   * sorted in ascending order. Use "desc" after a field name for descending.
   * Supported fields: * `create_time` * `update_time` Example: `update_time asc,
   * create_time desc`.
   * @opt_param int pageSize The standard list page size.
   * @opt_param string pageToken The standard list page token. Typically obtained
   * via next_page_token of the previous ListModelVersions call.
   * @opt_param string readMask Mask specifying which fields to read.
   * @return GoogleCloudAiplatformV1ListModelVersionsResponse
   * @throws \Google\Service\Exception
   */
  public function listVersions($name, $optParams = [])
  {
    $params = ['name' => $name];
    $params = array_merge($params, $optParams);
    return $this->call('listVersions', [$params], GoogleCloudAiplatformV1ListModelVersionsResponse::class);
  }
  /**
   * Merges a set of aliases for a Model version. (models.mergeVersionAliases)
   *
   * @param string $name Required. The name of the model version to merge aliases,
   * with a version ID explicitly included. Example:
   * `projects/{project}/locations/{location}/models/{model}@1234`
   * @param GoogleCloudAiplatformV1MergeVersionAliasesRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleCloudAiplatformV1Model
   * @throws \Google\Service\Exception
   */
  public function mergeVersionAliases($name, GoogleCloudAiplatformV1MergeVersionAliasesRequest $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('mergeVersionAliases', [$params], GoogleCloudAiplatformV1Model::class);
  }
  /**
   * Updates a Model. (models.patch)
   *
   * @param string $name Identifier. The resource name of the Model.
   * @param GoogleCloudAiplatformV1Model $postBody
   * @param array $optParams Optional parameters.
   *
   * @opt_param string updateMask Required. The update mask applies to the
   * resource. For the `FieldMask` definition, see google.protobuf.FieldMask.
   * @return GoogleCloudAiplatformV1Model
   * @throws \Google\Service\Exception
   */
  public function patch($name, GoogleCloudAiplatformV1Model $postBody, $optParams = [])
  {
    $params = ['name' => $name, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('patch', [$params], GoogleCloudAiplatformV1Model::class);
  }
  /**
   * Sets the access control policy on the specified resource. Replaces any
   * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
   * `PERMISSION_DENIED` errors. (models.setIamPolicy)
   *
   * @param string $resource REQUIRED: The resource for which the policy is being
   * specified. See [Resource
   * names](https://cloud.google.com/apis/design/resource_names) for the
   * appropriate value for this field.
   * @param GoogleIamV1SetIamPolicyRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleIamV1Policy
   * @throws \Google\Service\Exception
   */
  public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
  {
    $params = ['resource' => $resource, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
  }
  /**
   * Returns permissions that a caller has on the specified resource. If the
   * resource does not exist, this will return an empty set of permissions, not a
   * `NOT_FOUND` error. Note: This operation is designed to be used for building
   * permission-aware UIs and command-line tools, not for authorization checking.
   * This operation may "fail open" without warning. (models.testIamPermissions)
   *
   * @param string $resource REQUIRED: The resource for which the policy detail is
   * being requested. See [Resource
   * names](https://cloud.google.com/apis/design/resource_names) for the
   * appropriate value for this field.
   * @param array $optParams Optional parameters.
   *
   * @opt_param string permissions The set of permissions to check for the
   * `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not
   * allowed. For more information see [IAM
   * Overview](https://cloud.google.com/iam/docs/overview#permissions).
   * @return GoogleIamV1TestIamPermissionsResponse
   * @throws \Google\Service\Exception
   */
  public function testIamPermissions($resource, $optParams = [])
  {
    $params = ['resource' => $resource];
    $params = array_merge($params, $optParams);
    return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
  }
  /**
   * Incrementally update the dataset used for an examples model.
   * (models.updateExplanationDataset)
   *
   * @param string $model Required. The resource name of the Model to update.
   * Format: `projects/{project}/locations/{location}/models/{model}`
   * @param GoogleCloudAiplatformV1UpdateExplanationDatasetRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function updateExplanationDataset($model, GoogleCloudAiplatformV1UpdateExplanationDatasetRequest $postBody, $optParams = [])
  {
    $params = ['model' => $model, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('updateExplanationDataset', [$params], GoogleLongrunningOperation::class);
  }
  /**
   * Uploads a Model artifact into Vertex AI. (models.upload)
   *
   * @param string $parent Required. The resource name of the Location into which
   * to upload the Model. Format: `projects/{project}/locations/{location}`
   * @param GoogleCloudAiplatformV1UploadModelRequest $postBody
   * @param array $optParams Optional parameters.
   * @return GoogleLongrunningOperation
   * @throws \Google\Service\Exception
   */
  public function upload($parent, GoogleCloudAiplatformV1UploadModelRequest $postBody, $optParams = [])
  {
    $params = ['parent' => $parent, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('upload', [$params], GoogleLongrunningOperation::class);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsModels::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsModels');
← Back