Initial commit
This commit is contained in:
39
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php
vendored
Normal file
39
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleApiHttpBody extends Google_Model
|
||||
{
|
||||
public $contentType;
|
||||
public $data;
|
||||
|
||||
public function setContentType($contentType)
|
||||
{
|
||||
$this->contentType = $contentType;
|
||||
}
|
||||
public function getContentType()
|
||||
{
|
||||
return $this->contentType;
|
||||
}
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest extends Google_Model
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse extends Google_Model
|
||||
{
|
||||
public $serviceAccount;
|
||||
public $serviceAccountProject;
|
||||
|
||||
public function setServiceAccount($serviceAccount)
|
||||
{
|
||||
$this->serviceAccount = $serviceAccount;
|
||||
}
|
||||
public function getServiceAccount()
|
||||
{
|
||||
return $this->serviceAccount;
|
||||
}
|
||||
public function setServiceAccountProject($serviceAccountProject)
|
||||
{
|
||||
$this->serviceAccountProject = $serviceAccountProject;
|
||||
}
|
||||
public function getServiceAccountProject()
|
||||
{
|
||||
return $this->serviceAccountProject;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutput extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'allMetrics';
|
||||
protected $allMetricsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric';
|
||||
protected $allMetricsDataType = 'array';
|
||||
protected $finalMetricType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric';
|
||||
protected $finalMetricDataType = '';
|
||||
public $hyperparameters;
|
||||
public $trialId;
|
||||
|
||||
public function setAllMetrics($allMetrics)
|
||||
{
|
||||
$this->allMetrics = $allMetrics;
|
||||
}
|
||||
public function getAllMetrics()
|
||||
{
|
||||
return $this->allMetrics;
|
||||
}
|
||||
public function setFinalMetric(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric $finalMetric)
|
||||
{
|
||||
$this->finalMetric = $finalMetric;
|
||||
}
|
||||
public function getFinalMetric()
|
||||
{
|
||||
return $this->finalMetric;
|
||||
}
|
||||
public function setHyperparameters($hyperparameters)
|
||||
{
|
||||
$this->hyperparameters = $hyperparameters;
|
||||
}
|
||||
public function getHyperparameters()
|
||||
{
|
||||
return $this->hyperparameters;
|
||||
}
|
||||
public function setTrialId($trialId)
|
||||
{
|
||||
$this->trialId = $trialId;
|
||||
}
|
||||
public function getTrialId()
|
||||
{
|
||||
return $this->trialId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric extends Google_Model
|
||||
{
|
||||
public $objectiveValue;
|
||||
public $trainingStep;
|
||||
|
||||
public function setObjectiveValue($objectiveValue)
|
||||
{
|
||||
$this->objectiveValue = $objectiveValue;
|
||||
}
|
||||
public function getObjectiveValue()
|
||||
{
|
||||
return $this->objectiveValue;
|
||||
}
|
||||
public function setTrainingStep($trainingStep)
|
||||
{
|
||||
$this->trainingStep = $trainingStep;
|
||||
}
|
||||
public function getTrainingStep()
|
||||
{
|
||||
return $this->trainingStep;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'params';
|
||||
public $goal;
|
||||
public $maxParallelTrials;
|
||||
public $maxTrials;
|
||||
protected $paramsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ParameterSpec';
|
||||
protected $paramsDataType = 'array';
|
||||
|
||||
public function setGoal($goal)
|
||||
{
|
||||
$this->goal = $goal;
|
||||
}
|
||||
public function getGoal()
|
||||
{
|
||||
return $this->goal;
|
||||
}
|
||||
public function setMaxParallelTrials($maxParallelTrials)
|
||||
{
|
||||
$this->maxParallelTrials = $maxParallelTrials;
|
||||
}
|
||||
public function getMaxParallelTrials()
|
||||
{
|
||||
return $this->maxParallelTrials;
|
||||
}
|
||||
public function setMaxTrials($maxTrials)
|
||||
{
|
||||
$this->maxTrials = $maxTrials;
|
||||
}
|
||||
public function getMaxTrials()
|
||||
{
|
||||
return $this->maxTrials;
|
||||
}
|
||||
public function setParams($params)
|
||||
{
|
||||
$this->params = $params;
|
||||
}
|
||||
public function getParams()
|
||||
{
|
||||
return $this->params;
|
||||
}
|
||||
}
|
||||
115
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php
vendored
Normal file
115
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job extends Google_Model
|
||||
{
|
||||
public $createTime;
|
||||
public $endTime;
|
||||
public $errorMessage;
|
||||
public $jobId;
|
||||
protected $predictionInputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput';
|
||||
protected $predictionInputDataType = '';
|
||||
protected $predictionOutputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput';
|
||||
protected $predictionOutputDataType = '';
|
||||
public $startTime;
|
||||
public $state;
|
||||
protected $trainingInputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput';
|
||||
protected $trainingInputDataType = '';
|
||||
protected $trainingOutputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput';
|
||||
protected $trainingOutputDataType = '';
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
public function setErrorMessage($errorMessage)
|
||||
{
|
||||
$this->errorMessage = $errorMessage;
|
||||
}
|
||||
public function getErrorMessage()
|
||||
{
|
||||
return $this->errorMessage;
|
||||
}
|
||||
public function setJobId($jobId)
|
||||
{
|
||||
$this->jobId = $jobId;
|
||||
}
|
||||
public function getJobId()
|
||||
{
|
||||
return $this->jobId;
|
||||
}
|
||||
public function setPredictionInput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput $predictionInput)
|
||||
{
|
||||
$this->predictionInput = $predictionInput;
|
||||
}
|
||||
public function getPredictionInput()
|
||||
{
|
||||
return $this->predictionInput;
|
||||
}
|
||||
public function setPredictionOutput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput $predictionOutput)
|
||||
{
|
||||
$this->predictionOutput = $predictionOutput;
|
||||
}
|
||||
public function getPredictionOutput()
|
||||
{
|
||||
return $this->predictionOutput;
|
||||
}
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
public function setState($state)
|
||||
{
|
||||
$this->state = $state;
|
||||
}
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
public function setTrainingInput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput $trainingInput)
|
||||
{
|
||||
$this->trainingInput = $trainingInput;
|
||||
}
|
||||
public function getTrainingInput()
|
||||
{
|
||||
return $this->trainingInput;
|
||||
}
|
||||
public function setTrainingOutput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput $trainingOutput)
|
||||
{
|
||||
$this->trainingOutput = $trainingOutput;
|
||||
}
|
||||
public function getTrainingOutput()
|
||||
{
|
||||
return $this->trainingOutput;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'jobs';
|
||||
protected $jobsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job';
|
||||
protected $jobsDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
public function setJobs($jobs)
|
||||
{
|
||||
$this->jobs = $jobs;
|
||||
}
|
||||
public function getJobs()
|
||||
{
|
||||
return $this->jobs;
|
||||
}
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'models';
|
||||
protected $modelsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model';
|
||||
protected $modelsDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
public function setModels($models)
|
||||
{
|
||||
$this->models = $models;
|
||||
}
|
||||
public function getModels()
|
||||
{
|
||||
return $this->models;
|
||||
}
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'versions';
|
||||
public $nextPageToken;
|
||||
protected $versionsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
|
||||
protected $versionsDataType = 'array';
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setVersions($versions)
|
||||
{
|
||||
$this->versions = $versions;
|
||||
}
|
||||
public function getVersions()
|
||||
{
|
||||
return $this->versions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model extends Google_Model
|
||||
{
|
||||
protected $defaultVersionType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
|
||||
protected $defaultVersionDataType = '';
|
||||
public $description;
|
||||
public $name;
|
||||
|
||||
public function setDefaultVersion(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $defaultVersion)
|
||||
{
|
||||
$this->defaultVersion = $defaultVersion;
|
||||
}
|
||||
public function getDefaultVersion()
|
||||
{
|
||||
return $this->defaultVersion;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1OperationMetadata extends Google_Model
|
||||
{
|
||||
public $createTime;
|
||||
public $endTime;
|
||||
public $isCancellationRequested;
|
||||
public $modelName;
|
||||
public $operationType;
|
||||
public $startTime;
|
||||
protected $versionType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
|
||||
protected $versionDataType = '';
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
public function setIsCancellationRequested($isCancellationRequested)
|
||||
{
|
||||
$this->isCancellationRequested = $isCancellationRequested;
|
||||
}
|
||||
public function getIsCancellationRequested()
|
||||
{
|
||||
return $this->isCancellationRequested;
|
||||
}
|
||||
public function setModelName($modelName)
|
||||
{
|
||||
$this->modelName = $modelName;
|
||||
}
|
||||
public function getModelName()
|
||||
{
|
||||
return $this->modelName;
|
||||
}
|
||||
public function setOperationType($operationType)
|
||||
{
|
||||
$this->operationType = $operationType;
|
||||
}
|
||||
public function getOperationType()
|
||||
{
|
||||
return $this->operationType;
|
||||
}
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->startTime;
|
||||
}
|
||||
public function setVersion(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $version)
|
||||
{
|
||||
$this->version = $version;
|
||||
}
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ParameterSpec extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'discreteValues';
|
||||
public $categoricalValues;
|
||||
public $discreteValues;
|
||||
public $maxValue;
|
||||
public $minValue;
|
||||
public $parameterName;
|
||||
public $scaleType;
|
||||
public $type;
|
||||
|
||||
public function setCategoricalValues($categoricalValues)
|
||||
{
|
||||
$this->categoricalValues = $categoricalValues;
|
||||
}
|
||||
public function getCategoricalValues()
|
||||
{
|
||||
return $this->categoricalValues;
|
||||
}
|
||||
public function setDiscreteValues($discreteValues)
|
||||
{
|
||||
$this->discreteValues = $discreteValues;
|
||||
}
|
||||
public function getDiscreteValues()
|
||||
{
|
||||
return $this->discreteValues;
|
||||
}
|
||||
public function setMaxValue($maxValue)
|
||||
{
|
||||
$this->maxValue = $maxValue;
|
||||
}
|
||||
public function getMaxValue()
|
||||
{
|
||||
return $this->maxValue;
|
||||
}
|
||||
public function setMinValue($minValue)
|
||||
{
|
||||
$this->minValue = $minValue;
|
||||
}
|
||||
public function getMinValue()
|
||||
{
|
||||
return $this->minValue;
|
||||
}
|
||||
public function setParameterName($parameterName)
|
||||
{
|
||||
$this->parameterName = $parameterName;
|
||||
}
|
||||
public function getParameterName()
|
||||
{
|
||||
return $this->parameterName;
|
||||
}
|
||||
public function setScaleType($scaleType)
|
||||
{
|
||||
$this->scaleType = $scaleType;
|
||||
}
|
||||
public function getScaleType()
|
||||
{
|
||||
return $this->scaleType;
|
||||
}
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest extends Google_Model
|
||||
{
|
||||
protected $httpBodyType = 'Google_Service_CloudMachineLearning_GoogleApiHttpBody';
|
||||
protected $httpBodyDataType = '';
|
||||
|
||||
public function setHttpBody(Google_Service_CloudMachineLearning_GoogleApiHttpBody $httpBody)
|
||||
{
|
||||
$this->httpBody = $httpBody;
|
||||
}
|
||||
public function getHttpBody()
|
||||
{
|
||||
return $this->httpBody;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'inputPaths';
|
||||
public $dataFormat;
|
||||
public $inputPaths;
|
||||
public $maxWorkerCount;
|
||||
public $modelName;
|
||||
public $outputPath;
|
||||
public $region;
|
||||
public $versionName;
|
||||
|
||||
public function setDataFormat($dataFormat)
|
||||
{
|
||||
$this->dataFormat = $dataFormat;
|
||||
}
|
||||
public function getDataFormat()
|
||||
{
|
||||
return $this->dataFormat;
|
||||
}
|
||||
public function setInputPaths($inputPaths)
|
||||
{
|
||||
$this->inputPaths = $inputPaths;
|
||||
}
|
||||
public function getInputPaths()
|
||||
{
|
||||
return $this->inputPaths;
|
||||
}
|
||||
public function setMaxWorkerCount($maxWorkerCount)
|
||||
{
|
||||
$this->maxWorkerCount = $maxWorkerCount;
|
||||
}
|
||||
public function getMaxWorkerCount()
|
||||
{
|
||||
return $this->maxWorkerCount;
|
||||
}
|
||||
public function setModelName($modelName)
|
||||
{
|
||||
$this->modelName = $modelName;
|
||||
}
|
||||
public function getModelName()
|
||||
{
|
||||
return $this->modelName;
|
||||
}
|
||||
public function setOutputPath($outputPath)
|
||||
{
|
||||
$this->outputPath = $outputPath;
|
||||
}
|
||||
public function getOutputPath()
|
||||
{
|
||||
return $this->outputPath;
|
||||
}
|
||||
public function setRegion($region)
|
||||
{
|
||||
$this->region = $region;
|
||||
}
|
||||
public function getRegion()
|
||||
{
|
||||
return $this->region;
|
||||
}
|
||||
public function setVersionName($versionName)
|
||||
{
|
||||
$this->versionName = $versionName;
|
||||
}
|
||||
public function getVersionName()
|
||||
{
|
||||
return $this->versionName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput extends Google_Model
|
||||
{
|
||||
public $errorCount;
|
||||
public $outputPath;
|
||||
public $predictionCount;
|
||||
|
||||
public function setErrorCount($errorCount)
|
||||
{
|
||||
$this->errorCount = $errorCount;
|
||||
}
|
||||
public function getErrorCount()
|
||||
{
|
||||
return $this->errorCount;
|
||||
}
|
||||
public function setOutputPath($outputPath)
|
||||
{
|
||||
$this->outputPath = $outputPath;
|
||||
}
|
||||
public function getOutputPath()
|
||||
{
|
||||
return $this->outputPath;
|
||||
}
|
||||
public function setPredictionCount($predictionCount)
|
||||
{
|
||||
$this->predictionCount = $predictionCount;
|
||||
}
|
||||
public function getPredictionCount()
|
||||
{
|
||||
return $this->predictionCount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest extends Google_Model
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'packageUris';
|
||||
public $args;
|
||||
protected $hyperparametersType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec';
|
||||
protected $hyperparametersDataType = '';
|
||||
public $masterType;
|
||||
public $packageUris;
|
||||
public $parameterServerCount;
|
||||
public $parameterServerType;
|
||||
public $pythonModule;
|
||||
public $region;
|
||||
public $scaleTier;
|
||||
public $workerCount;
|
||||
public $workerType;
|
||||
|
||||
public function setArgs($args)
|
||||
{
|
||||
$this->args = $args;
|
||||
}
|
||||
public function getArgs()
|
||||
{
|
||||
return $this->args;
|
||||
}
|
||||
public function setHyperparameters(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec $hyperparameters)
|
||||
{
|
||||
$this->hyperparameters = $hyperparameters;
|
||||
}
|
||||
public function getHyperparameters()
|
||||
{
|
||||
return $this->hyperparameters;
|
||||
}
|
||||
public function setMasterType($masterType)
|
||||
{
|
||||
$this->masterType = $masterType;
|
||||
}
|
||||
public function getMasterType()
|
||||
{
|
||||
return $this->masterType;
|
||||
}
|
||||
public function setPackageUris($packageUris)
|
||||
{
|
||||
$this->packageUris = $packageUris;
|
||||
}
|
||||
public function getPackageUris()
|
||||
{
|
||||
return $this->packageUris;
|
||||
}
|
||||
public function setParameterServerCount($parameterServerCount)
|
||||
{
|
||||
$this->parameterServerCount = $parameterServerCount;
|
||||
}
|
||||
public function getParameterServerCount()
|
||||
{
|
||||
return $this->parameterServerCount;
|
||||
}
|
||||
public function setParameterServerType($parameterServerType)
|
||||
{
|
||||
$this->parameterServerType = $parameterServerType;
|
||||
}
|
||||
public function getParameterServerType()
|
||||
{
|
||||
return $this->parameterServerType;
|
||||
}
|
||||
public function setPythonModule($pythonModule)
|
||||
{
|
||||
$this->pythonModule = $pythonModule;
|
||||
}
|
||||
public function getPythonModule()
|
||||
{
|
||||
return $this->pythonModule;
|
||||
}
|
||||
public function setRegion($region)
|
||||
{
|
||||
$this->region = $region;
|
||||
}
|
||||
public function getRegion()
|
||||
{
|
||||
return $this->region;
|
||||
}
|
||||
public function setScaleTier($scaleTier)
|
||||
{
|
||||
$this->scaleTier = $scaleTier;
|
||||
}
|
||||
public function getScaleTier()
|
||||
{
|
||||
return $this->scaleTier;
|
||||
}
|
||||
public function setWorkerCount($workerCount)
|
||||
{
|
||||
$this->workerCount = $workerCount;
|
||||
}
|
||||
public function getWorkerCount()
|
||||
{
|
||||
return $this->workerCount;
|
||||
}
|
||||
public function setWorkerType($workerType)
|
||||
{
|
||||
$this->workerType = $workerType;
|
||||
}
|
||||
public function getWorkerType()
|
||||
{
|
||||
return $this->workerType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'trials';
|
||||
public $completedTrialCount;
|
||||
public $consumedMLUnits;
|
||||
protected $trialsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutput';
|
||||
protected $trialsDataType = 'array';
|
||||
|
||||
public function setCompletedTrialCount($completedTrialCount)
|
||||
{
|
||||
$this->completedTrialCount = $completedTrialCount;
|
||||
}
|
||||
public function getCompletedTrialCount()
|
||||
{
|
||||
return $this->completedTrialCount;
|
||||
}
|
||||
public function setConsumedMLUnits($consumedMLUnits)
|
||||
{
|
||||
$this->consumedMLUnits = $consumedMLUnits;
|
||||
}
|
||||
public function getConsumedMLUnits()
|
||||
{
|
||||
return $this->consumedMLUnits;
|
||||
}
|
||||
public function setTrials($trials)
|
||||
{
|
||||
$this->trials = $trials;
|
||||
}
|
||||
public function getTrials()
|
||||
{
|
||||
return $this->trials;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version extends Google_Model
|
||||
{
|
||||
public $createTime;
|
||||
public $deploymentUri;
|
||||
public $description;
|
||||
public $isDefault;
|
||||
public $lastUseTime;
|
||||
public $name;
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setDeploymentUri($deploymentUri)
|
||||
{
|
||||
$this->deploymentUri = $deploymentUri;
|
||||
}
|
||||
public function getDeploymentUri()
|
||||
{
|
||||
return $this->deploymentUri;
|
||||
}
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setIsDefault($isDefault)
|
||||
{
|
||||
$this->isDefault = $isDefault;
|
||||
}
|
||||
public function getIsDefault()
|
||||
{
|
||||
return $this->isDefault;
|
||||
}
|
||||
public function setLastUseTime($lastUseTime)
|
||||
{
|
||||
$this->lastUseTime = $lastUseTime;
|
||||
}
|
||||
public function getLastUseTime()
|
||||
{
|
||||
return $this->lastUseTime;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'operations';
|
||||
public $nextPageToken;
|
||||
protected $operationsType = 'Google_Service_CloudMachineLearning_GoogleLongrunningOperation';
|
||||
protected $operationsDataType = 'array';
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setOperations($operations)
|
||||
{
|
||||
$this->operations = $operations;
|
||||
}
|
||||
public function getOperations()
|
||||
{
|
||||
return $this->operations;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleLongrunningOperation extends Google_Model
|
||||
{
|
||||
public $done;
|
||||
protected $errorType = 'Google_Service_CloudMachineLearning_GoogleRpcStatus';
|
||||
protected $errorDataType = '';
|
||||
public $metadata;
|
||||
public $name;
|
||||
public $response;
|
||||
|
||||
public function setDone($done)
|
||||
{
|
||||
$this->done = $done;
|
||||
}
|
||||
public function getDone()
|
||||
{
|
||||
return $this->done;
|
||||
}
|
||||
public function setError(Google_Service_CloudMachineLearning_GoogleRpcStatus $error)
|
||||
{
|
||||
$this->error = $error;
|
||||
}
|
||||
public function getError()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
public function setMetadata($metadata)
|
||||
{
|
||||
$this->metadata = $metadata;
|
||||
}
|
||||
public function getMetadata()
|
||||
{
|
||||
return $this->metadata;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setResponse($response)
|
||||
{
|
||||
$this->response = $response;
|
||||
}
|
||||
public function getResponse()
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
}
|
||||
20
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php
vendored
Normal file
20
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleProtobufEmpty extends Google_Model
|
||||
{
|
||||
}
|
||||
49
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php
vendored
Normal file
49
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_CloudMachineLearning_GoogleRpcStatus extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'details';
|
||||
public $code;
|
||||
public $details;
|
||||
public $message;
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
public function setDetails($details)
|
||||
{
|
||||
$this->details = $details;
|
||||
}
|
||||
public function getDetails()
|
||||
{
|
||||
return $this->details;
|
||||
}
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
103
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php
vendored
Normal file
103
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $mlService = new Google_Service_CloudMachineLearning(...);
|
||||
* $projects = $mlService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_CloudMachineLearning_Resource_Projects extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Get the service account information associated with your project. You need
|
||||
* this information in order to grant the service account persmissions for the
|
||||
* Google Cloud Storage location where you put your model training code for
|
||||
* training the model with Google Cloud Machine Learning. (projects.getConfig)
|
||||
*
|
||||
* @param string $name Required. The project name.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the specified project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse
|
||||
*/
|
||||
public function getConfig($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getConfig', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse");
|
||||
}
|
||||
/**
|
||||
* Performs prediction on the data in the request.
|
||||
*
|
||||
* Responses are very similar to requests. There are two top-level fields, each
|
||||
* of which are JSON lists:
|
||||
*
|
||||
* predictions The list of predictions, one per instance in the request.
|
||||
* error An error message returned instead of a prediction list if any
|
||||
* instance produced an error.
|
||||
*
|
||||
* If the call is successful, the response body will contain one prediction
|
||||
* entry per instance in the request body. If prediction fails for any instance,
|
||||
* the response body will contain no predictions and will contian a single error
|
||||
* entry instead.
|
||||
*
|
||||
* Even though there is one prediction per instance, the format of a prediction
|
||||
* is not directly related to the format of an instance. Predictions take
|
||||
* whatever format is specified in the outputs collection defined in the model.
|
||||
* The collection of predictions is returned in a JSON list. Each member of the
|
||||
* list can be a simple value, a list, or a JSON object of any complexity. If
|
||||
* your model has more than one output tensor, each prediction will be a JSON
|
||||
* object containing a name/value pair for each output. The names identify the
|
||||
* output aliases in the graph.
|
||||
*
|
||||
* The following examples show some possible responses:
|
||||
*
|
||||
* A simple set of predictions for three input instances, where each prediction
|
||||
* is an integer value:
|
||||
*
|
||||
* {"predictions": [5, 4, 3]}
|
||||
*
|
||||
* A more complex set of predictions, each containing two named values that
|
||||
* correspond to output tensors, named **label** and **scores** respectively.
|
||||
* The value of **label** is the predicted category ("car" or "beach") and
|
||||
* **scores** contains a list of probabilities for that instance across the
|
||||
* possible categories.
|
||||
*
|
||||
* {"predictions": [{"label": "beach", "scores": [0.1, 0.9]},
|
||||
* {"label": "car", "scores": [0.75, 0.25]}]}
|
||||
*
|
||||
* A response when there is an error processing an input instance:
|
||||
*
|
||||
* {"error": "Divide by zero"} (projects.predict)
|
||||
*
|
||||
* @param string $name Required. The resource name of a model or a version.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the parent project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleApiHttpBody
|
||||
*/
|
||||
public function predict($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('predict', array($params), "Google_Service_CloudMachineLearning_GoogleApiHttpBody");
|
||||
}
|
||||
}
|
||||
103
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php
vendored
Normal file
103
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "jobs" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $mlService = new Google_Service_CloudMachineLearning(...);
|
||||
* $jobs = $mlService->jobs;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_CloudMachineLearning_Resource_ProjectsJobs extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Cancels a running job. (jobs.cancel)
|
||||
*
|
||||
* @param string $name Required. The name of the job to cancel.
|
||||
*
|
||||
* Authorization: requires `Editor` role on the parent project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
|
||||
*/
|
||||
public function cancel($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('cancel', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
|
||||
}
|
||||
/**
|
||||
* Creates a training or a batch prediction job. (jobs.create)
|
||||
*
|
||||
* @param string $parent Required. The project name.
|
||||
*
|
||||
* Authorization: requires `Editor` role on the specified project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job
|
||||
*/
|
||||
public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job");
|
||||
}
|
||||
/**
|
||||
* Describes a job. (jobs.get)
|
||||
*
|
||||
* @param string $name Required. The name of the job to get the description of.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job");
|
||||
}
|
||||
/**
|
||||
* Lists the jobs in the project. (jobs.listProjectsJobs)
|
||||
*
|
||||
* @param string $parent Required. The name of the project for which to list
|
||||
* jobs.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the specified project.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Optional. The number of jobs to retrieve per "page"
|
||||
* of results. If there are more remaining results than this number, the
|
||||
* response message will contain a valid value in the `next_page_token` field.
|
||||
*
|
||||
* The default value is 20, and the maximum page size is 100.
|
||||
* @opt_param string filter Optional. Specifies the subset of jobs to retrieve.
|
||||
* @opt_param string pageToken Optional. A page token to request the next page
|
||||
* of results.
|
||||
*
|
||||
* You get the token from the `next_page_token` field of the response from the
|
||||
* previous call.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse
|
||||
*/
|
||||
public function listProjectsJobs($parent, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse");
|
||||
}
|
||||
}
|
||||
114
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php
vendored
Normal file
114
vendor/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "models" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $mlService = new Google_Service_CloudMachineLearning(...);
|
||||
* $models = $mlService->models;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_CloudMachineLearning_Resource_ProjectsModels extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Creates a model which will later contain one or more versions.
|
||||
*
|
||||
* You must add at least one version before you can request predictions from the
|
||||
* model. Add versions by calling [projects.models.versions.create](/ml/referenc
|
||||
* e/rest/v1beta1/projects.models.versions/create). (models.create)
|
||||
*
|
||||
* @param string $parent Required. The project name.
|
||||
*
|
||||
* Authorization: requires `Editor` role on the specified project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model
|
||||
*/
|
||||
public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model");
|
||||
}
|
||||
/**
|
||||
* Deletes a model.
|
||||
*
|
||||
* You can only delete a model if there are no versions in it. You can delete
|
||||
* versions by calling [projects.models.versions.delete](/ml/reference/rest/v1be
|
||||
* ta1/projects.models.versions/delete). (models.delete)
|
||||
*
|
||||
* @param string $name Required. The name of the model.
|
||||
*
|
||||
* Authorization: requires `Editor` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
|
||||
*/
|
||||
public function delete($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
|
||||
}
|
||||
/**
|
||||
* Gets information about a model, including its name, the description (if set),
|
||||
* and the default version (if at least one version of the model has been
|
||||
* deployed). (models.get)
|
||||
*
|
||||
* @param string $name Required. The name of the model.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model");
|
||||
}
|
||||
/**
|
||||
* Lists the models in a project.
|
||||
*
|
||||
* Each project can contain multiple models, and each model can have multiple
|
||||
* versions. (models.listProjectsModels)
|
||||
*
|
||||
* @param string $parent Required. The name of the project whose models are to
|
||||
* be listed.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the specified project.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Optional. The number of models to retrieve per "page"
|
||||
* of results. If there are more remaining results than this number, the
|
||||
* response message will contain a valid value in the `next_page_token` field.
|
||||
*
|
||||
* The default value is 20, and the maximum page size is 100.
|
||||
* @opt_param string pageToken Optional. A page token to request the next page
|
||||
* of results.
|
||||
*
|
||||
* You get the token from the `next_page_token` field of the response from the
|
||||
* previous call.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse
|
||||
*/
|
||||
public function listProjectsModels($parent, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "versions" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $mlService = new Google_Service_CloudMachineLearning(...);
|
||||
* $versions = $mlService->versions;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_CloudMachineLearning_Resource_ProjectsModelsVersions extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Creates a new version of a model from a trained TensorFlow model.
|
||||
*
|
||||
* If the version created in the cloud by this call is the first deployed
|
||||
* version of the specified model, it will be made the default version of the
|
||||
* model. When you add a version to a model that already has one or more
|
||||
* versions, the default version does not automatically change. If you want a
|
||||
* new version to be the default, you must call [projects.models.versions.setDef
|
||||
* ault](/ml/reference/rest/v1beta1/projects.models.versions/setDefault).
|
||||
* (versions.create)
|
||||
*
|
||||
* @param string $parent Required. The name of the model.
|
||||
*
|
||||
* Authorization: requires `Editor` role on the parent project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
|
||||
*/
|
||||
public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
|
||||
}
|
||||
/**
|
||||
* Deletes a model version.
|
||||
*
|
||||
* Each model can have multiple versions deployed and in use at any given time.
|
||||
* Use this method to remove a single version.
|
||||
*
|
||||
* Note: You cannot delete the version that is set as the default version of the
|
||||
* model unless it is the only remaining version. (versions.delete)
|
||||
*
|
||||
* @param string $name Required. The name of the version. You can get the names
|
||||
* of all the versions of a model by calling [projects.models.versions.list](/ml
|
||||
* /reference/rest/v1beta1/projects.models.versions/list).
|
||||
*
|
||||
* Authorization: requires `Editor` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
|
||||
*/
|
||||
public function delete($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
|
||||
}
|
||||
/**
|
||||
* Gets information about a model version.
|
||||
*
|
||||
* Models can have multiple versions. You can call [projects.models.versions.lis
|
||||
* t](/ml/reference/rest/v1beta1/projects.models.versions/list) to get the same
|
||||
* information that this method returns for all of the versions of a model.
|
||||
* (versions.get)
|
||||
*
|
||||
* @param string $name Required. The name of the version.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version");
|
||||
}
|
||||
/**
|
||||
* Gets basic information about all the versions of a model.
|
||||
*
|
||||
* If you expect that a model has a lot of versions, or if you need to handle
|
||||
* only a limited number of results at a time, you can request that the list be
|
||||
* retrieved in batches (called pages): (versions.listProjectsModelsVersions)
|
||||
*
|
||||
* @param string $parent Required. The name of the model for which to list the
|
||||
* version.
|
||||
*
|
||||
* Authorization: requires `Viewer` role on the parent project.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Optional. The number of versions to retrieve per
|
||||
* "page" of results. If there are more remaining results than this number, the
|
||||
* response message will contain a valid value in the `next_page_token` field.
|
||||
*
|
||||
* The default value is 20, and the maximum page size is 100.
|
||||
* @opt_param string pageToken Optional. A page token to request the next page
|
||||
* of results.
|
||||
*
|
||||
* You get the token from the `next_page_token` field of the response from the
|
||||
* previous call.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse
|
||||
*/
|
||||
public function listProjectsModelsVersions($parent, $optParams = array())
|
||||
{
|
||||
$params = array('parent' => $parent);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse");
|
||||
}
|
||||
/**
|
||||
* Designates a version to be the default for the model.
|
||||
*
|
||||
* The default version is used for prediction requests made against the model
|
||||
* that don't specify a version.
|
||||
*
|
||||
* The first version to be created for a model is automatically set as the
|
||||
* default. You must make any subsequent changes to the default version setting
|
||||
* manually using this method. (versions.setDefault)
|
||||
*
|
||||
* @param string $name Required. The name of the version to make the default for
|
||||
* the model. You can get the names of all the versions of a model by calling [p
|
||||
* rojects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.vers
|
||||
* ions/list).
|
||||
*
|
||||
* Authorization: requires `Editor` role on the parent project.
|
||||
* @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version
|
||||
*/
|
||||
public function setDefault($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setDefault', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "operations" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $mlService = new Google_Service_CloudMachineLearning(...);
|
||||
* $operations = $mlService->operations;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_CloudMachineLearning_Resource_ProjectsOperations extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Starts asynchronous cancellation on a long-running operation. The server
|
||||
* makes a best effort to cancel the operation, but success is not guaranteed.
|
||||
* If the server doesn't support this method, it returns
|
||||
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
|
||||
* other methods to check whether the cancellation succeeded or whether the
|
||||
* operation completed despite cancellation. On successful cancellation, the
|
||||
* operation is not deleted; instead, it becomes an operation with an
|
||||
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
|
||||
* `Code.CANCELLED`. (operations.cancel)
|
||||
*
|
||||
* @param string $name The name of the operation resource to be cancelled.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
|
||||
*/
|
||||
public function cancel($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('cancel', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
|
||||
}
|
||||
/**
|
||||
* Deletes a long-running operation. This method indicates that the client is no
|
||||
* longer interested in the operation result. It does not cancel the operation.
|
||||
* If the server doesn't support this method, it returns
|
||||
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
|
||||
*
|
||||
* @param string $name The name of the operation resource to be deleted.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
|
||||
*/
|
||||
public function delete($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
|
||||
}
|
||||
/**
|
||||
* Gets the latest state of a long-running operation. Clients can use this
|
||||
* method to poll the operation result at intervals as recommended by the API
|
||||
* service. (operations.get)
|
||||
*
|
||||
* @param string $name The name of the operation resource.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
|
||||
}
|
||||
/**
|
||||
* Lists operations that match the specified filter in the request. If the
|
||||
* server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
*
|
||||
* NOTE: the `name` binding below allows API services to override the binding to
|
||||
* use different resource name schemes, such as `users/operations`.
|
||||
* (operations.listProjectsOperations)
|
||||
*
|
||||
* @param string $name The name of the operation collection.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize The standard list page size.
|
||||
* @opt_param string filter The standard list filter.
|
||||
* @opt_param string pageToken The standard list page token.
|
||||
* @return Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse
|
||||
*/
|
||||
public function listProjectsOperations($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user