Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
<?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\CloudMachineLearningEngine;
class GoogleApiHttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @var string
*/
public $contentType;
/**
* The HTTP request/response body as raw binary.
*
* @var string
*/
public $data;
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @var array[]
*/
public $extensions;
/**
* The HTTP Content-Type header value specifying the content type of the body.
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* The HTTP request/response body as raw binary.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Application specific response metadata. Must be set in the first response
* for streaming APIs.
*
* @param array[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiHttpBody::class, 'Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody');

View File

@@ -0,0 +1,122 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AcceleratorConfig extends \Google\Model
{
/**
* Unspecified accelerator type. Default to no GPU.
*/
public const TYPE_ACCELERATOR_TYPE_UNSPECIFIED = 'ACCELERATOR_TYPE_UNSPECIFIED';
/**
* Nvidia Tesla K80 GPU.
*/
public const TYPE_NVIDIA_TESLA_K80 = 'NVIDIA_TESLA_K80';
/**
* Nvidia Tesla P100 GPU.
*/
public const TYPE_NVIDIA_TESLA_P100 = 'NVIDIA_TESLA_P100';
/**
* Nvidia V100 GPU.
*/
public const TYPE_NVIDIA_TESLA_V100 = 'NVIDIA_TESLA_V100';
/**
* Nvidia Tesla P4 GPU.
*/
public const TYPE_NVIDIA_TESLA_P4 = 'NVIDIA_TESLA_P4';
/**
* Nvidia T4 GPU.
*/
public const TYPE_NVIDIA_TESLA_T4 = 'NVIDIA_TESLA_T4';
/**
* Nvidia A100 GPU.
*/
public const TYPE_NVIDIA_TESLA_A100 = 'NVIDIA_TESLA_A100';
/**
* TPU v2.
*/
public const TYPE_TPU_V2 = 'TPU_V2';
/**
* TPU v3.
*/
public const TYPE_TPU_V3 = 'TPU_V3';
/**
* TPU v2 POD.
*/
public const TYPE_TPU_V2_POD = 'TPU_V2_POD';
/**
* TPU v3 POD.
*/
public const TYPE_TPU_V3_POD = 'TPU_V3_POD';
/**
* TPU v4 POD.
*/
public const TYPE_TPU_V4_POD = 'TPU_V4_POD';
/**
* The number of accelerators to attach to each machine running the job.
*
* @var string
*/
public $count;
/**
* The type of accelerator to use.
*
* @var string
*/
public $type;
/**
* The number of accelerators to attach to each machine running the job.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* The type of accelerator to use.
*
* Accepted values: ACCELERATOR_TYPE_UNSPECIFIED, NVIDIA_TESLA_K80,
* NVIDIA_TESLA_P100, NVIDIA_TESLA_V100, NVIDIA_TESLA_P4, NVIDIA_TESLA_T4,
* NVIDIA_TESLA_A100, TPU_V2, TPU_V3, TPU_V2_POD, TPU_V3_POD, TPU_V4_POD
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AcceleratorConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AcceleratorConfig');

View File

@@ -0,0 +1,44 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AddTrialMeasurementRequest extends \Google\Model
{
protected $measurementType = GoogleCloudMlV1Measurement::class;
protected $measurementDataType = '';
/**
* Required. The measurement to be added to a trial.
*
* @param GoogleCloudMlV1Measurement $measurement
*/
public function setMeasurement(GoogleCloudMlV1Measurement $measurement)
{
$this->measurement = $measurement;
}
/**
* @return GoogleCloudMlV1Measurement
*/
public function getMeasurement()
{
return $this->measurement;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AddTrialMeasurementRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AddTrialMeasurementRequest');

View File

@@ -0,0 +1,138 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AutoScaling extends \Google\Collection
{
protected $collection_key = 'metrics';
/**
* The maximum number of nodes to scale this model under load. The actual
* value will depend on resource quota and availability.
*
* @var int
*/
public $maxNodes;
protected $metricsType = GoogleCloudMlV1MetricSpec::class;
protected $metricsDataType = 'array';
/**
* Optional. The minimum number of nodes to allocate for this model. These
* nodes are always up, starting from the time the model is deployed.
* Therefore, the cost of operating this model will be at least `rate` *
* `min_nodes` * number of hours since last billing cycle, where `rate` is the
* cost per node-hour as documented in the [pricing guide](/ml-
* engine/docs/pricing), even if no predictions are performed. There is
* additional cost for each prediction performed. Unlike manual scaling, if
* the load gets too heavy for the nodes that are up, the service will
* automatically add nodes to handle the increased load as well as scale back
* as traffic drops, always maintaining at least `min_nodes`. You will be
* charged for the time in which additional nodes are used. If `min_nodes` is
* not specified and AutoScaling is used with a [legacy (MLS1) machine
* type](/ml-engine/docs/machine-types-online-prediction), `min_nodes`
* defaults to 0, in which case, when traffic to a model stops (and after a
* cool-down period), nodes will be shut down and no charges will be incurred
* until traffic to the model resumes. If `min_nodes` is not specified and
* AutoScaling is used with a [Compute Engine (N1) machine type](/ml-
* engine/docs/machine-types-online-prediction), `min_nodes` defaults to 1.
* `min_nodes` must be at least 1 for use with a Compute Engine machine type.
* You can set `min_nodes` when creating the model version, and you can also
* update `min_nodes` for an existing version: update_body.json: {
* 'autoScaling': { 'minNodes': 5 } } HTTP request: PATCH https://ml.googleapi
* s.com/v1/{name=projects/models/versions}?update_mask=autoScaling.minNodes
* -d @./update_body.json
*
* @var int
*/
public $minNodes;
/**
* The maximum number of nodes to scale this model under load. The actual
* value will depend on resource quota and availability.
*
* @param int $maxNodes
*/
public function setMaxNodes($maxNodes)
{
$this->maxNodes = $maxNodes;
}
/**
* @return int
*/
public function getMaxNodes()
{
return $this->maxNodes;
}
/**
* MetricSpec contains the specifications to use to calculate the desired
* nodes count.
*
* @param GoogleCloudMlV1MetricSpec[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return GoogleCloudMlV1MetricSpec[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Optional. The minimum number of nodes to allocate for this model. These
* nodes are always up, starting from the time the model is deployed.
* Therefore, the cost of operating this model will be at least `rate` *
* `min_nodes` * number of hours since last billing cycle, where `rate` is the
* cost per node-hour as documented in the [pricing guide](/ml-
* engine/docs/pricing), even if no predictions are performed. There is
* additional cost for each prediction performed. Unlike manual scaling, if
* the load gets too heavy for the nodes that are up, the service will
* automatically add nodes to handle the increased load as well as scale back
* as traffic drops, always maintaining at least `min_nodes`. You will be
* charged for the time in which additional nodes are used. If `min_nodes` is
* not specified and AutoScaling is used with a [legacy (MLS1) machine
* type](/ml-engine/docs/machine-types-online-prediction), `min_nodes`
* defaults to 0, in which case, when traffic to a model stops (and after a
* cool-down period), nodes will be shut down and no charges will be incurred
* until traffic to the model resumes. If `min_nodes` is not specified and
* AutoScaling is used with a [Compute Engine (N1) machine type](/ml-
* engine/docs/machine-types-online-prediction), `min_nodes` defaults to 1.
* `min_nodes` must be at least 1 for use with a Compute Engine machine type.
* You can set `min_nodes` when creating the model version, and you can also
* update `min_nodes` for an existing version: update_body.json: {
* 'autoScaling': { 'minNodes': 5 } } HTTP request: PATCH https://ml.googleapi
* s.com/v1/{name=projects/models/versions}?update_mask=autoScaling.minNodes
* -d @./update_body.json
*
* @param int $minNodes
*/
public function setMinNodes($minNodes)
{
$this->minNodes = $minNodes;
}
/**
* @return int
*/
public function getMinNodes()
{
return $this->minNodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AutoScaling::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AutoScaling');

View File

@@ -0,0 +1,58 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AutomatedStoppingConfig extends \Google\Model
{
protected $decayCurveStoppingConfigType = GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig::class;
protected $decayCurveStoppingConfigDataType = '';
protected $medianAutomatedStoppingConfigType = GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig::class;
protected $medianAutomatedStoppingConfigDataType = '';
/**
* @param GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig $decayCurveStoppingConfig
*/
public function setDecayCurveStoppingConfig(GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig $decayCurveStoppingConfig)
{
$this->decayCurveStoppingConfig = $decayCurveStoppingConfig;
}
/**
* @return GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig
*/
public function getDecayCurveStoppingConfig()
{
return $this->decayCurveStoppingConfig;
}
/**
* @param GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig $medianAutomatedStoppingConfig
*/
public function setMedianAutomatedStoppingConfig(GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig $medianAutomatedStoppingConfig)
{
$this->medianAutomatedStoppingConfig = $medianAutomatedStoppingConfig;
}
/**
* @return GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig
*/
public function getMedianAutomatedStoppingConfig()
{
return $this->medianAutomatedStoppingConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AutomatedStoppingConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AutomatedStoppingConfig');

View File

@@ -0,0 +1,50 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig extends \Google\Model
{
/**
* If true, measurement.elapsed_time is used as the x-axis of each Trials
* Decay Curve. Otherwise, Measurement.steps will be used as the x-axis.
*
* @var bool
*/
public $useElapsedTime;
/**
* If true, measurement.elapsed_time is used as the x-axis of each Trials
* Decay Curve. Otherwise, Measurement.steps will be used as the x-axis.
*
* @param bool $useElapsedTime
*/
public function setUseElapsedTime($useElapsedTime)
{
$this->useElapsedTime = $useElapsedTime;
}
/**
* @return bool
*/
public function getUseElapsedTime()
{
return $this->useElapsedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig');

View File

@@ -0,0 +1,54 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig extends \Google\Model
{
/**
* If true, the median automated stopping rule applies to
* measurement.use_elapsed_time, which means the elapsed_time field of the
* current trial's latest measurement is used to compute the median objective
* value for each completed trial.
*
* @var bool
*/
public $useElapsedTime;
/**
* If true, the median automated stopping rule applies to
* measurement.use_elapsed_time, which means the elapsed_time field of the
* current trial's latest measurement is used to compute the median objective
* value for each completed trial.
*
* @param bool $useElapsedTime
*/
public function setUseElapsedTime($useElapsedTime)
{
$this->useElapsedTime = $useElapsedTime;
}
/**
* @return bool
*/
public function getUseElapsedTime()
{
return $this->useElapsedTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig');

View File

@@ -0,0 +1,118 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1BuiltInAlgorithmOutput extends \Google\Model
{
/**
* Framework on which the built-in algorithm was trained.
*
* @var string
*/
public $framework;
/**
* The Cloud Storage path to the `model/` directory where the training job
* saves the trained model. Only set for successful jobs that don't use
* hyperparameter tuning.
*
* @var string
*/
public $modelPath;
/**
* Python version on which the built-in algorithm was trained.
*
* @var string
*/
public $pythonVersion;
/**
* AI Platform runtime version on which the built-in algorithm was trained.
*
* @var string
*/
public $runtimeVersion;
/**
* Framework on which the built-in algorithm was trained.
*
* @param string $framework
*/
public function setFramework($framework)
{
$this->framework = $framework;
}
/**
* @return string
*/
public function getFramework()
{
return $this->framework;
}
/**
* The Cloud Storage path to the `model/` directory where the training job
* saves the trained model. Only set for successful jobs that don't use
* hyperparameter tuning.
*
* @param string $modelPath
*/
public function setModelPath($modelPath)
{
$this->modelPath = $modelPath;
}
/**
* @return string
*/
public function getModelPath()
{
return $this->modelPath;
}
/**
* Python version on which the built-in algorithm was trained.
*
* @param string $pythonVersion
*/
public function setPythonVersion($pythonVersion)
{
$this->pythonVersion = $pythonVersion;
}
/**
* @return string
*/
public function getPythonVersion()
{
return $this->pythonVersion;
}
/**
* AI Platform runtime version on which the built-in algorithm was trained.
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1BuiltInAlgorithmOutput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1BuiltInAlgorithmOutput');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1CancelJobRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1CancelJobRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CancelJobRequest');

View File

@@ -0,0 +1,71 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Capability extends \Google\Collection
{
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
public const TYPE_TRAINING = 'TRAINING';
public const TYPE_BATCH_PREDICTION = 'BATCH_PREDICTION';
public const TYPE_ONLINE_PREDICTION = 'ONLINE_PREDICTION';
protected $collection_key = 'availableAccelerators';
/**
* Available accelerators for the capability.
*
* @var string[]
*/
public $availableAccelerators;
/**
* @var string
*/
public $type;
/**
* Available accelerators for the capability.
*
* @param string[] $availableAccelerators
*/
public function setAvailableAccelerators($availableAccelerators)
{
$this->availableAccelerators = $availableAccelerators;
}
/**
* @return string[]
*/
public function getAvailableAccelerators()
{
return $this->availableAccelerators;
}
/**
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Capability::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Capability');

View File

@@ -0,0 +1,92 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata extends \Google\Model
{
/**
* The time at which the operation was submitted.
*
* @var string
*/
public $createTime;
/**
* The name of the study that the trial belongs to.
*
* @var string
*/
public $study;
/**
* The trial name.
*
* @var string
*/
public $trial;
/**
* The time at which the operation was submitted.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The name of the study that the trial belongs to.
*
* @param string $study
*/
public function setStudy($study)
{
$this->study = $study;
}
/**
* @return string
*/
public function getStudy()
{
return $this->study;
}
/**
* The trial name.
*
* @param string $trial
*/
public function setTrial($trial)
{
$this->trial = $trial;
}
/**
* @return string
*/
public function getTrial()
{
return $this->trial;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest');

View File

@@ -0,0 +1,92 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse extends \Google\Model
{
/**
* The time at which operation processing completed.
*
* @var string
*/
public $endTime;
/**
* True if the Trial should stop.
*
* @var bool
*/
public $shouldStop;
/**
* The time at which the operation was started.
*
* @var string
*/
public $startTime;
/**
* The time at which operation processing completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* True if the Trial should stop.
*
* @param bool $shouldStop
*/
public function setShouldStop($shouldStop)
{
$this->shouldStop = $shouldStop;
}
/**
* @return bool
*/
public function getShouldStop()
{
return $this->shouldStop;
}
/**
* The time at which the operation was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse');

View File

@@ -0,0 +1,94 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1CompleteTrialRequest extends \Google\Model
{
protected $finalMeasurementType = GoogleCloudMlV1Measurement::class;
protected $finalMeasurementDataType = '';
/**
* Optional. A human readable reason why the trial was infeasible. This should
* only be provided if `trial_infeasible` is true.
*
* @var string
*/
public $infeasibleReason;
/**
* Optional. True if the trial cannot be run with the given Parameter, and
* final_measurement will be ignored.
*
* @var bool
*/
public $trialInfeasible;
/**
* Optional. If provided, it will be used as the completed trial's
* final_measurement; Otherwise, the service will auto-select a previously
* reported measurement as the final-measurement
*
* @param GoogleCloudMlV1Measurement $finalMeasurement
*/
public function setFinalMeasurement(GoogleCloudMlV1Measurement $finalMeasurement)
{
$this->finalMeasurement = $finalMeasurement;
}
/**
* @return GoogleCloudMlV1Measurement
*/
public function getFinalMeasurement()
{
return $this->finalMeasurement;
}
/**
* Optional. A human readable reason why the trial was infeasible. This should
* only be provided if `trial_infeasible` is true.
*
* @param string $infeasibleReason
*/
public function setInfeasibleReason($infeasibleReason)
{
$this->infeasibleReason = $infeasibleReason;
}
/**
* @return string
*/
public function getInfeasibleReason()
{
return $this->infeasibleReason;
}
/**
* Optional. True if the trial cannot be run with the given Parameter, and
* final_measurement will be ignored.
*
* @param bool $trialInfeasible
*/
public function setTrialInfeasible($trialInfeasible)
{
$this->trialInfeasible = $trialInfeasible;
}
/**
* @return bool
*/
public function getTrialInfeasible()
{
return $this->trialInfeasible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1CompleteTrialRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CompleteTrialRequest');

View File

@@ -0,0 +1,48 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Config extends \Google\Model
{
/**
* The service account Cloud ML uses to run on TPU node.
*
* @var string
*/
public $tpuServiceAccount;
/**
* The service account Cloud ML uses to run on TPU node.
*
* @param string $tpuServiceAccount
*/
public function setTpuServiceAccount($tpuServiceAccount)
{
$this->tpuServiceAccount = $tpuServiceAccount;
}
/**
* @return string
*/
public function getTpuServiceAccount()
{
return $this->tpuServiceAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Config::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Config');

View File

@@ -0,0 +1,50 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ContainerPort extends \Google\Model
{
/**
* Number of the port to expose on the container. This must be a valid port
* number: 0 < PORT_NUMBER < 65536.
*
* @var int
*/
public $containerPort;
/**
* Number of the port to expose on the container. This must be a valid port
* number: 0 < PORT_NUMBER < 65536.
*
* @param int $containerPort
*/
public function setContainerPort($containerPort)
{
$this->containerPort = $containerPort;
}
/**
* @return int
*/
public function getContainerPort()
{
return $this->containerPort;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ContainerPort::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ContainerPort');

View File

@@ -0,0 +1,305 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ContainerSpec extends \Google\Collection
{
protected $collection_key = 'ports';
/**
* Immutable. Specifies arguments for the command that runs when the container
* starts. This overrides the container's
* [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd). Specify
* this field as an array of executable and arguments, similar to a Docker
* `CMD`'s "default parameters" form. If you don't specify this field but do
* specify the command field, then the command from the `command` field runs
* without any additional arguments. See the [Kubernetes documentation about
* how the `command` and `args` fields interact with a container's
* `ENTRYPOINT` and `CMD`](https://kubernetes.io/docs/tasks/inject-data-
* application/define-command-argument-container/#notes). If you don't specify
* this field and don't specify the `commmand` field, then the container's
* [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and
* `CMD` determine what runs based on their default behavior. See the [Docker
* documentation about how `CMD` and `ENTRYPOINT`
* interact](https://docs.docker.com/engine/reference/builder/#understand-how-
* cmd-and-entrypoint-interact). In this field, you can reference [environment
* variables set by AI Platform Prediction](/ai-
* platform/prediction/docs/custom-container-requirements#aip-variables) and
* environment variables set in the env field. You cannot reference
* environment variables set in the Docker image. In order for environment
* variables to be expanded, reference them by using the following syntax: $(
* VARIABLE_NAME) Note that this differs from Bash variable expansion, which
* does not use parentheses. If a variable cannot be resolved, the reference
* in the input string is used unchanged. To avoid variable expansion, you can
* escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field
* corresponds to the `args` field of the [Kubernetes Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @var string[]
*/
public $args;
/**
* Immutable. Specifies the command that runs when the container starts. This
* overrides the container's [`ENTRYPOINT`](https://docs.docker.com/engine/ref
* erence/builder/#entrypoint). Specify this field as an array of executable
* and arguments, similar to a Docker `ENTRYPOINT`'s "exec" form, not its
* "shell" form. If you do not specify this field, then the container's
* `ENTRYPOINT` runs, in conjunction with the args field or the container's
* [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), if either
* exists. If this field is not specified and the container does not have an
* `ENTRYPOINT`, then refer to the [Docker documentation about how `CMD` and
* `ENTRYPOINT`
* interact](https://docs.docker.com/engine/reference/builder/#understand-how-
* cmd-and-entrypoint-interact). If you specify this field, then you can also
* specify the `args` field to provide additional arguments for this command.
* However, if you specify this field, then the container's `CMD` is ignored.
* See the [Kubernetes documentation about how the `command` and `args` fields
* interact with a container's `ENTRYPOINT` and
* `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-
* command-argument-container/#notes). In this field, you can reference
* [environment variables set by AI Platform Prediction](/ai-
* platform/prediction/docs/custom-container-requirements#aip-variables) and
* environment variables set in the env field. You cannot reference
* environment variables set in the Docker image. In order for environment
* variables to be expanded, reference them by using the following syntax: $(
* VARIABLE_NAME) Note that this differs from Bash variable expansion, which
* does not use parentheses. If a variable cannot be resolved, the reference
* in the input string is used unchanged. To avoid variable expansion, you can
* escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field
* corresponds to the `command` field of the [Kubernetes Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @var string[]
*/
public $command;
protected $envType = GoogleCloudMlV1EnvVar::class;
protected $envDataType = 'array';
/**
* URI of the Docker image to be used as the custom container for serving
* predictions. This URI must identify [an image in Artifact
* Registry](/artifact-registry/docs/overview) and begin with the hostname
* `{REGION}-docker.pkg.dev`, where `{REGION}` is replaced by the region that
* matches AI Platform Prediction [regional endpoint](/ai-
* platform/prediction/docs/regional-endpoints) that you are using. For
* example, if you are using the `us-central1-ml.googleapis.com` endpoint,
* then this URI must begin with `us-central1-docker.pkg.dev`. To use a custom
* container, the [AI Platform Google-managed service account](/ai-
* platform/prediction/docs/custom-service-account#default) must have
* permission to pull (read) the Docker image at this URI. The AI Platform
* Google-managed service account has the following format:
* `service-{PROJECT_NUMBER}@cloud-ml.google.com.iam.gserviceaccount.com`
* {PROJECT_NUMBER} is replaced by your Google Cloud project number. By
* default, this service account has necessary permissions to pull an Artifact
* Registry image in the same Google Cloud project where you are using AI
* Platform Prediction. In this case, no configuration is necessary. If you
* want to use an image from a different Google Cloud project, learn how to
* [grant the Artifact Registry Reader (roles/artifactregistry.reader) role
* for a repository](/artifact-registry/docs/access-control#grant-repo) to
* your projet's AI Platform Google-managed service account. To learn about
* the requirements for the Docker image itself, read [Custom container
* requirements](/ai-platform/prediction/docs/custom-container-requirements).
*
* @var string
*/
public $image;
protected $portsType = GoogleCloudMlV1ContainerPort::class;
protected $portsDataType = 'array';
/**
* Immutable. Specifies arguments for the command that runs when the container
* starts. This overrides the container's
* [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd). Specify
* this field as an array of executable and arguments, similar to a Docker
* `CMD`'s "default parameters" form. If you don't specify this field but do
* specify the command field, then the command from the `command` field runs
* without any additional arguments. See the [Kubernetes documentation about
* how the `command` and `args` fields interact with a container's
* `ENTRYPOINT` and `CMD`](https://kubernetes.io/docs/tasks/inject-data-
* application/define-command-argument-container/#notes). If you don't specify
* this field and don't specify the `commmand` field, then the container's
* [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and
* `CMD` determine what runs based on their default behavior. See the [Docker
* documentation about how `CMD` and `ENTRYPOINT`
* interact](https://docs.docker.com/engine/reference/builder/#understand-how-
* cmd-and-entrypoint-interact). In this field, you can reference [environment
* variables set by AI Platform Prediction](/ai-
* platform/prediction/docs/custom-container-requirements#aip-variables) and
* environment variables set in the env field. You cannot reference
* environment variables set in the Docker image. In order for environment
* variables to be expanded, reference them by using the following syntax: $(
* VARIABLE_NAME) Note that this differs from Bash variable expansion, which
* does not use parentheses. If a variable cannot be resolved, the reference
* in the input string is used unchanged. To avoid variable expansion, you can
* escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field
* corresponds to the `args` field of the [Kubernetes Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Immutable. Specifies the command that runs when the container starts. This
* overrides the container's [`ENTRYPOINT`](https://docs.docker.com/engine/ref
* erence/builder/#entrypoint). Specify this field as an array of executable
* and arguments, similar to a Docker `ENTRYPOINT`'s "exec" form, not its
* "shell" form. If you do not specify this field, then the container's
* `ENTRYPOINT` runs, in conjunction with the args field or the container's
* [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), if either
* exists. If this field is not specified and the container does not have an
* `ENTRYPOINT`, then refer to the [Docker documentation about how `CMD` and
* `ENTRYPOINT`
* interact](https://docs.docker.com/engine/reference/builder/#understand-how-
* cmd-and-entrypoint-interact). If you specify this field, then you can also
* specify the `args` field to provide additional arguments for this command.
* However, if you specify this field, then the container's `CMD` is ignored.
* See the [Kubernetes documentation about how the `command` and `args` fields
* interact with a container's `ENTRYPOINT` and
* `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-
* command-argument-container/#notes). In this field, you can reference
* [environment variables set by AI Platform Prediction](/ai-
* platform/prediction/docs/custom-container-requirements#aip-variables) and
* environment variables set in the env field. You cannot reference
* environment variables set in the Docker image. In order for environment
* variables to be expanded, reference them by using the following syntax: $(
* VARIABLE_NAME) Note that this differs from Bash variable expansion, which
* does not use parentheses. If a variable cannot be resolved, the reference
* in the input string is used unchanged. To avoid variable expansion, you can
* escape this syntax with `$$`; for example: $$(VARIABLE_NAME) This field
* corresponds to the `command` field of the [Kubernetes Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @param string[] $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string[]
*/
public function getCommand()
{
return $this->command;
}
/**
* Immutable. List of environment variables to set in the container. After the
* container starts running, code running in the container can read these
* environment variables. Additionally, the command and args fields can
* reference these variables. Later entries in this list can also reference
* earlier entries. For example, the following example sets the variable
* `VAR_2` to have the value `foo bar`: ```json [ { "name": "VAR_1", "value":
* "foo" }, { "name": "VAR_2", "value": "$(VAR_1) bar" } ] ``` If you switch
* the order of the variables in the example, then the expansion does not
* occur. This field corresponds to the `env` field of the [Kubernetes
* Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @param GoogleCloudMlV1EnvVar[] $env
*/
public function setEnv($env)
{
$this->env = $env;
}
/**
* @return GoogleCloudMlV1EnvVar[]
*/
public function getEnv()
{
return $this->env;
}
/**
* URI of the Docker image to be used as the custom container for serving
* predictions. This URI must identify [an image in Artifact
* Registry](/artifact-registry/docs/overview) and begin with the hostname
* `{REGION}-docker.pkg.dev`, where `{REGION}` is replaced by the region that
* matches AI Platform Prediction [regional endpoint](/ai-
* platform/prediction/docs/regional-endpoints) that you are using. For
* example, if you are using the `us-central1-ml.googleapis.com` endpoint,
* then this URI must begin with `us-central1-docker.pkg.dev`. To use a custom
* container, the [AI Platform Google-managed service account](/ai-
* platform/prediction/docs/custom-service-account#default) must have
* permission to pull (read) the Docker image at this URI. The AI Platform
* Google-managed service account has the following format:
* `service-{PROJECT_NUMBER}@cloud-ml.google.com.iam.gserviceaccount.com`
* {PROJECT_NUMBER} is replaced by your Google Cloud project number. By
* default, this service account has necessary permissions to pull an Artifact
* Registry image in the same Google Cloud project where you are using AI
* Platform Prediction. In this case, no configuration is necessary. If you
* want to use an image from a different Google Cloud project, learn how to
* [grant the Artifact Registry Reader (roles/artifactregistry.reader) role
* for a repository](/artifact-registry/docs/access-control#grant-repo) to
* your projet's AI Platform Google-managed service account. To learn about
* the requirements for the Docker image itself, read [Custom container
* requirements](/ai-platform/prediction/docs/custom-container-requirements).
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* Immutable. List of ports to expose from the container. AI Platform
* Prediction sends any prediction requests that it receives to the first port
* on this list. AI Platform Prediction also sends [liveness and health
* checks](/ai-platform/prediction/docs/custom-container-requirements#health)
* to this port. If you do not specify this field, it defaults to following
* value: ```json [ { "containerPort": 8080 } ] ``` AI Platform Prediction
* does not use ports other than the first one listed. This field corresponds
* to the `ports` field of the [Kubernetes Containers v1 core
* API](https://kubernetes.io/docs/reference/generated/kubernetes-
* api/v1.18/#container-v1-core).
*
* @param GoogleCloudMlV1ContainerPort[] $ports
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return GoogleCloudMlV1ContainerPort[]
*/
public function getPorts()
{
return $this->ports;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ContainerSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ContainerSpec');

View File

@@ -0,0 +1,74 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1DiskConfig extends \Google\Model
{
/**
* Size in GB of the boot disk (default is 100GB).
*
* @var int
*/
public $bootDiskSizeGb;
/**
* Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd"
* (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard
* Disk Drive).
*
* @var string
*/
public $bootDiskType;
/**
* Size in GB of the boot disk (default is 100GB).
*
* @param int $bootDiskSizeGb
*/
public function setBootDiskSizeGb($bootDiskSizeGb)
{
$this->bootDiskSizeGb = $bootDiskSizeGb;
}
/**
* @return int
*/
public function getBootDiskSizeGb()
{
return $this->bootDiskSizeGb;
}
/**
* Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd"
* (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard
* Disk Drive).
*
* @param string $bootDiskType
*/
public function setBootDiskType($bootDiskType)
{
$this->bootDiskType = $bootDiskType;
}
/**
* @return string
*/
public function getBootDiskType()
{
return $this->bootDiskType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1DiskConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1DiskConfig');

View File

@@ -0,0 +1,54 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1EncryptionConfig extends \Google\Model
{
/**
* The Cloud KMS resource identifier of the customer-managed encryption key
* used to protect a resource, such as a training job. It has the following
* format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/
* cryptoKeys/{KEY_NAME}`
*
* @var string
*/
public $kmsKeyName;
/**
* The Cloud KMS resource identifier of the customer-managed encryption key
* used to protect a resource, such as a training job. It has the following
* format: `projects/{PROJECT_ID}/locations/{REGION}/keyRings/{KEY_RING_NAME}/
* cryptoKeys/{KEY_NAME}`
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1EncryptionConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1EncryptionConfig');

View File

@@ -0,0 +1,96 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1EnvVar extends \Google\Model
{
/**
* Name of the environment variable. Must be a [valid C identifier](https://gi
* thub.com/kubernetes/kubernetes/blob/v1.18.8/staging/src/k8s.io/apimachinery
* /pkg/util/validation/validation.go#L258) and must not begin with the prefix
* `AIP_`.
*
* @var string
*/
public $name;
/**
* Value of the environment variable. Defaults to an empty string. In this
* field, you can reference [environment variables set by AI Platform
* Prediction](/ai-platform/prediction/docs/custom-container-requirements#aip-
* variables) and environment variables set earlier in the same env field as
* where this message occurs. You cannot reference environment variables set
* in the Docker image. In order for environment variables to be expanded,
* reference them by using the following syntax: $(VARIABLE_NAME) Note that
* this differs from Bash variable expansion, which does not use parentheses.
* If a variable cannot be resolved, the reference in the input string is used
* unchanged. To avoid variable expansion, you can escape this syntax with
* `$$`; for example: $$(VARIABLE_NAME)
*
* @var string
*/
public $value;
/**
* Name of the environment variable. Must be a [valid C identifier](https://gi
* thub.com/kubernetes/kubernetes/blob/v1.18.8/staging/src/k8s.io/apimachinery
* /pkg/util/validation/validation.go#L258) and must not begin with the prefix
* `AIP_`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Value of the environment variable. Defaults to an empty string. In this
* field, you can reference [environment variables set by AI Platform
* Prediction](/ai-platform/prediction/docs/custom-container-requirements#aip-
* variables) and environment variables set earlier in the same env field as
* where this message occurs. You cannot reference environment variables set
* in the Docker image. In order for environment variables to be expanded,
* reference them by using the following syntax: $(VARIABLE_NAME) Note that
* this differs from Bash variable expansion, which does not use parentheses.
* If a variable cannot be resolved, the reference in the input string is used
* unchanged. To avoid variable expansion, you can escape this syntax with
* `$$`; for example: $$(VARIABLE_NAME)
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1EnvVar::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1EnvVar');

View File

@@ -0,0 +1,44 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ExplainRequest extends \Google\Model
{
protected $httpBodyType = GoogleApiHttpBody::class;
protected $httpBodyDataType = '';
/**
* Required. The explanation request body.
*
* @param GoogleApiHttpBody $httpBody
*/
public function setHttpBody(GoogleApiHttpBody $httpBody)
{
$this->httpBody = $httpBody;
}
/**
* @return GoogleApiHttpBody
*/
public function getHttpBody()
{
return $this->httpBody;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ExplainRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ExplainRequest');

View File

@@ -0,0 +1,87 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ExplanationConfig extends \Google\Model
{
protected $integratedGradientsAttributionType = GoogleCloudMlV1IntegratedGradientsAttribution::class;
protected $integratedGradientsAttributionDataType = '';
protected $sampledShapleyAttributionType = GoogleCloudMlV1SampledShapleyAttribution::class;
protected $sampledShapleyAttributionDataType = '';
protected $xraiAttributionType = GoogleCloudMlV1XraiAttribution::class;
protected $xraiAttributionDataType = '';
/**
* Attributes credit by computing the Aumann-Shapley value taking advantage of
* the model's fully differentiable structure. Refer to this paper for more
* details: https://arxiv.org/abs/1703.01365
*
* @param GoogleCloudMlV1IntegratedGradientsAttribution $integratedGradientsAttribution
*/
public function setIntegratedGradientsAttribution(GoogleCloudMlV1IntegratedGradientsAttribution $integratedGradientsAttribution)
{
$this->integratedGradientsAttribution = $integratedGradientsAttribution;
}
/**
* @return GoogleCloudMlV1IntegratedGradientsAttribution
*/
public function getIntegratedGradientsAttribution()
{
return $this->integratedGradientsAttribution;
}
/**
* An attribution method that approximates Shapley values for features that
* contribute to the label being predicted. A sampling strategy is used to
* approximate the value rather than considering all subsets of features.
*
* @param GoogleCloudMlV1SampledShapleyAttribution $sampledShapleyAttribution
*/
public function setSampledShapleyAttribution(GoogleCloudMlV1SampledShapleyAttribution $sampledShapleyAttribution)
{
$this->sampledShapleyAttribution = $sampledShapleyAttribution;
}
/**
* @return GoogleCloudMlV1SampledShapleyAttribution
*/
public function getSampledShapleyAttribution()
{
return $this->sampledShapleyAttribution;
}
/**
* Attributes credit by computing the XRAI taking advantage of the model's
* fully differentiable structure. Refer to this paper for more details:
* https://arxiv.org/abs/1906.02825 Currently only implemented for models with
* natural image inputs.
*
* @param GoogleCloudMlV1XraiAttribution $xraiAttribution
*/
public function setXraiAttribution(GoogleCloudMlV1XraiAttribution $xraiAttribution)
{
$this->xraiAttribution = $xraiAttribution;
}
/**
* @return GoogleCloudMlV1XraiAttribution
*/
public function getXraiAttribution()
{
return $this->xraiAttribution;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ExplanationConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ExplanationConfig');

View File

@@ -0,0 +1,86 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1GetConfigResponse extends \Google\Model
{
protected $configType = GoogleCloudMlV1Config::class;
protected $configDataType = '';
/**
* The service account Cloud ML uses to access resources in the project.
*
* @var string
*/
public $serviceAccount;
/**
* The project number for `service_account`.
*
* @var string
*/
public $serviceAccountProject;
/**
* @param GoogleCloudMlV1Config $config
*/
public function setConfig(GoogleCloudMlV1Config $config)
{
$this->config = $config;
}
/**
* @return GoogleCloudMlV1Config
*/
public function getConfig()
{
return $this->config;
}
/**
* The service account Cloud ML uses to access resources in the project.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* The project number for `service_account`.
*
* @param string $serviceAccountProject
*/
public function setServiceAccountProject($serviceAccountProject)
{
$this->serviceAccountProject = $serviceAccountProject;
}
/**
* @return string
*/
public function getServiceAccountProject()
{
return $this->serviceAccountProject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1GetConfigResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1GetConfigResponse');

View File

@@ -0,0 +1,288 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1HyperparameterOutput extends \Google\Collection
{
/**
* The job state is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The job has been just created and processing has not yet begun.
*/
public const STATE_QUEUED = 'QUEUED';
/**
* The service is preparing to run the job.
*/
public const STATE_PREPARING = 'PREPARING';
/**
* The job is in progress.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The job completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The job failed. `error_message` should contain the details of the failure.
*/
public const STATE_FAILED = 'FAILED';
/**
* The job is being cancelled. `error_message` should describe the reason for
* the cancellation.
*/
public const STATE_CANCELLING = 'CANCELLING';
/**
* The job has been cancelled. `error_message` should describe the reason for
* the cancellation.
*/
public const STATE_CANCELLED = 'CANCELLED';
protected $collection_key = 'allMetrics';
protected $allMetricsType = GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::class;
protected $allMetricsDataType = 'array';
protected $builtInAlgorithmOutputType = GoogleCloudMlV1BuiltInAlgorithmOutput::class;
protected $builtInAlgorithmOutputDataType = '';
/**
* Output only. End time for the trial.
*
* @var string
*/
public $endTime;
protected $finalMetricType = GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::class;
protected $finalMetricDataType = '';
/**
* The hyperparameters given to this trial.
*
* @var string[]
*/
public $hyperparameters;
/**
* True if the trial is stopped early.
*
* @var bool
*/
public $isTrialStoppedEarly;
/**
* Output only. Start time for the trial.
*
* @var string
*/
public $startTime;
/**
* Output only. The detailed state of the trial.
*
* @var string
*/
public $state;
/**
* The trial id for these results.
*
* @var string
*/
public $trialId;
/**
* URIs for accessing [interactive shells](https://cloud.google.com/ai-
* platform/training/docs/monitor-debug-interactive-shell) (one URI for each
* training node). Only available if this trial is part of a hyperparameter
* tuning job and the job's training_input.enable_web_access is `true`. The
* keys are names of each node in the training job; for example, `master-
* replica-0` for the master node, `worker-replica-0` for the first worker,
* and `ps-replica-0` for the first parameter server. The values are the URIs
* for each node's interactive shell.
*
* @var string[]
*/
public $webAccessUris;
/**
* All recorded object metrics for this trial. This field is not currently
* populated.
*
* @param GoogleCloudMlV1HyperparameterOutputHyperparameterMetric[] $allMetrics
*/
public function setAllMetrics($allMetrics)
{
$this->allMetrics = $allMetrics;
}
/**
* @return GoogleCloudMlV1HyperparameterOutputHyperparameterMetric[]
*/
public function getAllMetrics()
{
return $this->allMetrics;
}
/**
* Details related to built-in algorithms jobs. Only set for trials of built-
* in algorithms jobs that have succeeded.
*
* @param GoogleCloudMlV1BuiltInAlgorithmOutput $builtInAlgorithmOutput
*/
public function setBuiltInAlgorithmOutput(GoogleCloudMlV1BuiltInAlgorithmOutput $builtInAlgorithmOutput)
{
$this->builtInAlgorithmOutput = $builtInAlgorithmOutput;
}
/**
* @return GoogleCloudMlV1BuiltInAlgorithmOutput
*/
public function getBuiltInAlgorithmOutput()
{
return $this->builtInAlgorithmOutput;
}
/**
* Output only. End time for the trial.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* The final objective metric seen for this trial.
*
* @param GoogleCloudMlV1HyperparameterOutputHyperparameterMetric $finalMetric
*/
public function setFinalMetric(GoogleCloudMlV1HyperparameterOutputHyperparameterMetric $finalMetric)
{
$this->finalMetric = $finalMetric;
}
/**
* @return GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
*/
public function getFinalMetric()
{
return $this->finalMetric;
}
/**
* The hyperparameters given to this trial.
*
* @param string[] $hyperparameters
*/
public function setHyperparameters($hyperparameters)
{
$this->hyperparameters = $hyperparameters;
}
/**
* @return string[]
*/
public function getHyperparameters()
{
return $this->hyperparameters;
}
/**
* True if the trial is stopped early.
*
* @param bool $isTrialStoppedEarly
*/
public function setIsTrialStoppedEarly($isTrialStoppedEarly)
{
$this->isTrialStoppedEarly = $isTrialStoppedEarly;
}
/**
* @return bool
*/
public function getIsTrialStoppedEarly()
{
return $this->isTrialStoppedEarly;
}
/**
* Output only. Start time for the trial.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. The detailed state of the trial.
*
* Accepted values: STATE_UNSPECIFIED, QUEUED, PREPARING, RUNNING, SUCCEEDED,
* FAILED, CANCELLING, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The trial id for these results.
*
* @param string $trialId
*/
public function setTrialId($trialId)
{
$this->trialId = $trialId;
}
/**
* @return string
*/
public function getTrialId()
{
return $this->trialId;
}
/**
* URIs for accessing [interactive shells](https://cloud.google.com/ai-
* platform/training/docs/monitor-debug-interactive-shell) (one URI for each
* training node). Only available if this trial is part of a hyperparameter
* tuning job and the job's training_input.enable_web_access is `true`. The
* keys are names of each node in the training job; for example, `master-
* replica-0` for the master node, `worker-replica-0` for the first worker,
* and `ps-replica-0` for the first parameter server. The values are the URIs
* for each node's interactive shell.
*
* @param string[] $webAccessUris
*/
public function setWebAccessUris($webAccessUris)
{
$this->webAccessUris = $webAccessUris;
}
/**
* @return string[]
*/
public function getWebAccessUris()
{
return $this->webAccessUris;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1HyperparameterOutput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutput');

View File

@@ -0,0 +1,62 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric extends \Google\Model
{
/**
* The objective value at this training step.
*
* @var
*/
public $objectiveValue;
/**
* The global training step for this metric.
*
* @var string
*/
public $trainingStep;
public function setObjectiveValue($objectiveValue)
{
$this->objectiveValue = $objectiveValue;
}
public function getObjectiveValue()
{
return $this->objectiveValue;
}
/**
* The global training step for this metric.
*
* @param string $trainingStep
*/
public function setTrainingStep($trainingStep)
{
$this->trainingStep = $trainingStep;
}
/**
* @return string
*/
public function getTrainingStep()
{
return $this->trainingStep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutputHyperparameterMetric');

View File

@@ -0,0 +1,293 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1HyperparameterSpec extends \Google\Collection
{
/**
* The default algorithm used by the hyperparameter tuning service. This is a
* Bayesian optimization algorithm.
*/
public const ALGORITHM_ALGORITHM_UNSPECIFIED = 'ALGORITHM_UNSPECIFIED';
/**
* Simple grid search within the feasible space. To use grid search, all
* parameters must be `INTEGER`, `CATEGORICAL`, or `DISCRETE`.
*/
public const ALGORITHM_GRID_SEARCH = 'GRID_SEARCH';
/**
* Simple random search within the feasible space.
*/
public const ALGORITHM_RANDOM_SEARCH = 'RANDOM_SEARCH';
/**
* Goal Type will default to maximize.
*/
public const GOAL_GOAL_TYPE_UNSPECIFIED = 'GOAL_TYPE_UNSPECIFIED';
/**
* Maximize the goal metric.
*/
public const GOAL_MAXIMIZE = 'MAXIMIZE';
/**
* Minimize the goal metric.
*/
public const GOAL_MINIMIZE = 'MINIMIZE';
protected $collection_key = 'params';
/**
* Optional. The search algorithm specified for the hyperparameter tuning job.
* Uses the default AI Platform hyperparameter tuning algorithm if
* unspecified.
*
* @var string
*/
public $algorithm;
/**
* Optional. Indicates if the hyperparameter tuning job enables auto trial
* early stopping.
*
* @var bool
*/
public $enableTrialEarlyStopping;
/**
* Required. The type of goal to use for tuning. Available types are
* `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
*
* @var string
*/
public $goal;
/**
* Optional. The TensorFlow summary tag name to use for optimizing trials. For
* current versions of TensorFlow, this tag name should exactly match what is
* shown in TensorBoard, including all scopes. For versions of TensorFlow
* prior to 0.12, this should be only the tag passed to tf.Summary. By
* default, "training/hptuning/metric" will be used.
*
* @var string
*/
public $hyperparameterMetricTag;
/**
* Optional. The number of failed trials that need to be seen before failing
* the hyperparameter tuning job. You can specify this field to override the
* default failing criteria for AI Platform hyperparameter tuning jobs.
* Defaults to zero, which means the service decides when a hyperparameter job
* should fail.
*
* @var int
*/
public $maxFailedTrials;
/**
* Optional. The number of training trials to run concurrently. You can reduce
* the time it takes to perform hyperparameter tuning by adding trials in
* parallel. However, each trail only benefits from the information gained in
* completed trials. That means that a trial does not get access to the
* results of trials running at the same time, which could reduce the quality
* of the overall optimization. Each trial will use the same scale tier and
* machine types. Defaults to one.
*
* @var int
*/
public $maxParallelTrials;
/**
* Optional. How many training trials should be attempted to optimize the
* specified hyperparameters. Defaults to one.
*
* @var int
*/
public $maxTrials;
protected $paramsType = GoogleCloudMlV1ParameterSpec::class;
protected $paramsDataType = 'array';
/**
* Optional. The prior hyperparameter tuning job id that users hope to
* continue with. The job id will be used to find the corresponding vizier
* study guid and resume the study.
*
* @var string
*/
public $resumePreviousJobId;
/**
* Optional. The search algorithm specified for the hyperparameter tuning job.
* Uses the default AI Platform hyperparameter tuning algorithm if
* unspecified.
*
* Accepted values: ALGORITHM_UNSPECIFIED, GRID_SEARCH, RANDOM_SEARCH
*
* @param self::ALGORITHM_* $algorithm
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return self::ALGORITHM_*
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* Optional. Indicates if the hyperparameter tuning job enables auto trial
* early stopping.
*
* @param bool $enableTrialEarlyStopping
*/
public function setEnableTrialEarlyStopping($enableTrialEarlyStopping)
{
$this->enableTrialEarlyStopping = $enableTrialEarlyStopping;
}
/**
* @return bool
*/
public function getEnableTrialEarlyStopping()
{
return $this->enableTrialEarlyStopping;
}
/**
* Required. The type of goal to use for tuning. Available types are
* `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`.
*
* Accepted values: GOAL_TYPE_UNSPECIFIED, MAXIMIZE, MINIMIZE
*
* @param self::GOAL_* $goal
*/
public function setGoal($goal)
{
$this->goal = $goal;
}
/**
* @return self::GOAL_*
*/
public function getGoal()
{
return $this->goal;
}
/**
* Optional. The TensorFlow summary tag name to use for optimizing trials. For
* current versions of TensorFlow, this tag name should exactly match what is
* shown in TensorBoard, including all scopes. For versions of TensorFlow
* prior to 0.12, this should be only the tag passed to tf.Summary. By
* default, "training/hptuning/metric" will be used.
*
* @param string $hyperparameterMetricTag
*/
public function setHyperparameterMetricTag($hyperparameterMetricTag)
{
$this->hyperparameterMetricTag = $hyperparameterMetricTag;
}
/**
* @return string
*/
public function getHyperparameterMetricTag()
{
return $this->hyperparameterMetricTag;
}
/**
* Optional. The number of failed trials that need to be seen before failing
* the hyperparameter tuning job. You can specify this field to override the
* default failing criteria for AI Platform hyperparameter tuning jobs.
* Defaults to zero, which means the service decides when a hyperparameter job
* should fail.
*
* @param int $maxFailedTrials
*/
public function setMaxFailedTrials($maxFailedTrials)
{
$this->maxFailedTrials = $maxFailedTrials;
}
/**
* @return int
*/
public function getMaxFailedTrials()
{
return $this->maxFailedTrials;
}
/**
* Optional. The number of training trials to run concurrently. You can reduce
* the time it takes to perform hyperparameter tuning by adding trials in
* parallel. However, each trail only benefits from the information gained in
* completed trials. That means that a trial does not get access to the
* results of trials running at the same time, which could reduce the quality
* of the overall optimization. Each trial will use the same scale tier and
* machine types. Defaults to one.
*
* @param int $maxParallelTrials
*/
public function setMaxParallelTrials($maxParallelTrials)
{
$this->maxParallelTrials = $maxParallelTrials;
}
/**
* @return int
*/
public function getMaxParallelTrials()
{
return $this->maxParallelTrials;
}
/**
* Optional. How many training trials should be attempted to optimize the
* specified hyperparameters. Defaults to one.
*
* @param int $maxTrials
*/
public function setMaxTrials($maxTrials)
{
$this->maxTrials = $maxTrials;
}
/**
* @return int
*/
public function getMaxTrials()
{
return $this->maxTrials;
}
/**
* Required. The set of parameters to tune.
*
* @param GoogleCloudMlV1ParameterSpec[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return GoogleCloudMlV1ParameterSpec[]
*/
public function getParams()
{
return $this->params;
}
/**
* Optional. The prior hyperparameter tuning job id that users hope to
* continue with. The job id will be used to find the corresponding vizier
* study guid and resume the study.
*
* @param string $resumePreviousJobId
*/
public function setResumePreviousJobId($resumePreviousJobId)
{
$this->resumePreviousJobId = $resumePreviousJobId;
}
/**
* @return string
*/
public function getResumePreviousJobId()
{
return $this->resumePreviousJobId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1HyperparameterSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec');

View File

@@ -0,0 +1,52 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1IntegratedGradientsAttribution extends \Google\Model
{
/**
* Number of steps for approximating the path integral. A good value to start
* is 50 and gradually increase until the sum to diff property is met within
* the desired error range.
*
* @var int
*/
public $numIntegralSteps;
/**
* Number of steps for approximating the path integral. A good value to start
* is 50 and gradually increase until the sum to diff property is met within
* the desired error range.
*
* @param int $numIntegralSteps
*/
public function setNumIntegralSteps($numIntegralSteps)
{
$this->numIntegralSteps = $numIntegralSteps;
}
/**
* @return int
*/
public function getNumIntegralSteps()
{
return $this->numIntegralSteps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1IntegratedGradientsAttribution::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1IntegratedGradientsAttribution');

View File

@@ -0,0 +1,355 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Job extends \Google\Model
{
/**
* The job state is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The job has been just created and processing has not yet begun.
*/
public const STATE_QUEUED = 'QUEUED';
/**
* The service is preparing to run the job.
*/
public const STATE_PREPARING = 'PREPARING';
/**
* The job is in progress.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The job completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* The job failed. `error_message` should contain the details of the failure.
*/
public const STATE_FAILED = 'FAILED';
/**
* The job is being cancelled. `error_message` should describe the reason for
* the cancellation.
*/
public const STATE_CANCELLING = 'CANCELLING';
/**
* The job has been cancelled. `error_message` should describe the reason for
* the cancellation.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* Output only. When the job was created.
*
* @var string
*/
public $createTime;
/**
* Output only. When the job processing was completed.
*
* @var string
*/
public $endTime;
/**
* Output only. The details of a failure or a cancellation.
*
* @var string
*/
public $errorMessage;
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a job from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform job updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetJob`, and systems are expected to put
* that etag in the request to `UpdateJob` to ensure that their change will be
* applied to the same version of the job.
*
* @var string
*/
public $etag;
/**
* Required. The user-specified id of the job.
*
* @var string
*/
public $jobId;
/**
* Output only. It's only effect when the job is in QUEUED state. If it's
* positive, it indicates the job's position in the job scheduler. It's 0 when
* the job is already scheduled.
*
* @var string
*/
public $jobPosition;
/**
* Optional. One or more labels that you can add, to organize your jobs. Each
* label is a key-value pair, where both the key and the value are arbitrary
* strings that you supply. For more information, see the documentation on
* using labels.
*
* @var string[]
*/
public $labels;
protected $predictionInputType = GoogleCloudMlV1PredictionInput::class;
protected $predictionInputDataType = '';
protected $predictionOutputType = GoogleCloudMlV1PredictionOutput::class;
protected $predictionOutputDataType = '';
/**
* Output only. When the job processing was started.
*
* @var string
*/
public $startTime;
/**
* Output only. The detailed state of a job.
*
* @var string
*/
public $state;
protected $trainingInputType = GoogleCloudMlV1TrainingInput::class;
protected $trainingInputDataType = '';
protected $trainingOutputType = GoogleCloudMlV1TrainingOutput::class;
protected $trainingOutputDataType = '';
/**
* Output only. When the job was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. When the job processing was completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. The details of a failure or a cancellation.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a job from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform job updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetJob`, and systems are expected to put
* that etag in the request to `UpdateJob` to ensure that their change will be
* applied to the same version of the job.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Required. The user-specified id of the job.
*
* @param string $jobId
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* Output only. It's only effect when the job is in QUEUED state. If it's
* positive, it indicates the job's position in the job scheduler. It's 0 when
* the job is already scheduled.
*
* @param string $jobPosition
*/
public function setJobPosition($jobPosition)
{
$this->jobPosition = $jobPosition;
}
/**
* @return string
*/
public function getJobPosition()
{
return $this->jobPosition;
}
/**
* Optional. One or more labels that you can add, to organize your jobs. Each
* label is a key-value pair, where both the key and the value are arbitrary
* strings that you supply. For more information, see the documentation on
* using labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Input parameters to create a prediction job.
*
* @param GoogleCloudMlV1PredictionInput $predictionInput
*/
public function setPredictionInput(GoogleCloudMlV1PredictionInput $predictionInput)
{
$this->predictionInput = $predictionInput;
}
/**
* @return GoogleCloudMlV1PredictionInput
*/
public function getPredictionInput()
{
return $this->predictionInput;
}
/**
* The current prediction job result.
*
* @param GoogleCloudMlV1PredictionOutput $predictionOutput
*/
public function setPredictionOutput(GoogleCloudMlV1PredictionOutput $predictionOutput)
{
$this->predictionOutput = $predictionOutput;
}
/**
* @return GoogleCloudMlV1PredictionOutput
*/
public function getPredictionOutput()
{
return $this->predictionOutput;
}
/**
* Output only. When the job processing was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. The detailed state of a job.
*
* Accepted values: STATE_UNSPECIFIED, QUEUED, PREPARING, RUNNING, SUCCEEDED,
* FAILED, CANCELLING, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Input parameters to create a training job.
*
* @param GoogleCloudMlV1TrainingInput $trainingInput
*/
public function setTrainingInput(GoogleCloudMlV1TrainingInput $trainingInput)
{
$this->trainingInput = $trainingInput;
}
/**
* @return GoogleCloudMlV1TrainingInput
*/
public function getTrainingInput()
{
return $this->trainingInput;
}
/**
* The current training job result.
*
* @param GoogleCloudMlV1TrainingOutput $trainingOutput
*/
public function setTrainingOutput(GoogleCloudMlV1TrainingOutput $trainingOutput)
{
$this->trainingOutput = $trainingOutput;
}
/**
* @return GoogleCloudMlV1TrainingOutput
*/
public function getTrainingOutput()
{
return $this->trainingOutput;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Job::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job');

View File

@@ -0,0 +1,69 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListJobsResponse extends \Google\Collection
{
protected $collection_key = 'jobs';
protected $jobsType = GoogleCloudMlV1Job::class;
protected $jobsDataType = 'array';
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @var string
*/
public $nextPageToken;
/**
* The list of jobs.
*
* @param GoogleCloudMlV1Job[] $jobs
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return GoogleCloudMlV1Job[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListJobsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListJobsResponse');

View File

@@ -0,0 +1,69 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = GoogleCloudMlV1Location::class;
protected $locationsDataType = 'array';
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @var string
*/
public $nextPageToken;
/**
* Locations where at least one type of CMLE capability is available.
*
* @param GoogleCloudMlV1Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudMlV1Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListLocationsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListLocationsResponse');

View File

@@ -0,0 +1,69 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListModelsResponse extends \Google\Collection
{
protected $collection_key = 'models';
protected $modelsType = GoogleCloudMlV1Model::class;
protected $modelsDataType = 'array';
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @var string
*/
public $nextPageToken;
/**
* The list of models.
*
* @param GoogleCloudMlV1Model[] $models
*/
public function setModels($models)
{
$this->models = $models;
}
/**
* @return GoogleCloudMlV1Model[]
*/
public function getModels()
{
return $this->models;
}
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListModelsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListModelsResponse');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListOptimalTrialsRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListOptimalTrialsRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListOptimalTrialsRequest');

View File

@@ -0,0 +1,47 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListOptimalTrialsResponse extends \Google\Collection
{
protected $collection_key = 'trials';
protected $trialsType = GoogleCloudMlV1Trial::class;
protected $trialsDataType = 'array';
/**
* The pareto-optimal trials for multiple objective study or the optimal trial
* for single objective study. The definition of pareto-optimal can be checked
* in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency
*
* @param GoogleCloudMlV1Trial[] $trials
*/
public function setTrials($trials)
{
$this->trials = $trials;
}
/**
* @return GoogleCloudMlV1Trial[]
*/
public function getTrials()
{
return $this->trials;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListOptimalTrialsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListOptimalTrialsResponse');

View File

@@ -0,0 +1,45 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListStudiesResponse extends \Google\Collection
{
protected $collection_key = 'studies';
protected $studiesType = GoogleCloudMlV1Study::class;
protected $studiesDataType = 'array';
/**
* The studies associated with the project.
*
* @param GoogleCloudMlV1Study[] $studies
*/
public function setStudies($studies)
{
$this->studies = $studies;
}
/**
* @return GoogleCloudMlV1Study[]
*/
public function getStudies()
{
return $this->studies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListStudiesResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListStudiesResponse');

View File

@@ -0,0 +1,45 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListTrialsResponse extends \Google\Collection
{
protected $collection_key = 'trials';
protected $trialsType = GoogleCloudMlV1Trial::class;
protected $trialsDataType = 'array';
/**
* The trials associated with the study.
*
* @param GoogleCloudMlV1Trial[] $trials
*/
public function setTrials($trials)
{
$this->trials = $trials;
}
/**
* @return GoogleCloudMlV1Trial[]
*/
public function getTrials()
{
return $this->trials;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListTrialsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListTrialsResponse');

View File

@@ -0,0 +1,69 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ListVersionsResponse extends \Google\Collection
{
protected $collection_key = 'versions';
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @var string
*/
public $nextPageToken;
protected $versionsType = GoogleCloudMlV1Version::class;
protected $versionsDataType = 'array';
/**
* Optional. Pass this token as the `page_token` field of the request for a
* subsequent call.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of versions.
*
* @param GoogleCloudMlV1Version[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return GoogleCloudMlV1Version[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ListVersionsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListVersionsResponse');

View File

@@ -0,0 +1,63 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Location extends \Google\Collection
{
protected $collection_key = 'capabilities';
protected $capabilitiesType = GoogleCloudMlV1Capability::class;
protected $capabilitiesDataType = 'array';
/**
* @var string
*/
public $name;
/**
* Capabilities available in the location.
*
* @param GoogleCloudMlV1Capability[] $capabilities
*/
public function setCapabilities($capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return GoogleCloudMlV1Capability[]
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Location::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Location');

View File

@@ -0,0 +1,54 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ManualScaling extends \Google\Model
{
/**
* The number of nodes to allocate for this model. These nodes are always up,
* starting from the time the model is deployed, so the cost of operating this
* model will be proportional to `nodes` * number of hours since last billing
* cycle plus the cost for each prediction performed.
*
* @var int
*/
public $nodes;
/**
* The number of nodes to allocate for this model. These nodes are always up,
* starting from the time the model is deployed, so the cost of operating this
* model will be proportional to `nodes` * number of hours since last billing
* cycle plus the cost for each prediction performed.
*
* @param int $nodes
*/
public function setNodes($nodes)
{
$this->nodes = $nodes;
}
/**
* @return int
*/
public function getNodes()
{
return $this->nodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ManualScaling::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling');

View File

@@ -0,0 +1,93 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Measurement extends \Google\Collection
{
protected $collection_key = 'metrics';
/**
* Output only. Time that the trial has been running at the point of this
* measurement.
*
* @var string
*/
public $elapsedTime;
protected $metricsType = GoogleCloudMlV1MeasurementMetric::class;
protected $metricsDataType = 'array';
/**
* The number of steps a machine learning model has been trained for. Must be
* non-negative.
*
* @var string
*/
public $stepCount;
/**
* Output only. Time that the trial has been running at the point of this
* measurement.
*
* @param string $elapsedTime
*/
public function setElapsedTime($elapsedTime)
{
$this->elapsedTime = $elapsedTime;
}
/**
* @return string
*/
public function getElapsedTime()
{
return $this->elapsedTime;
}
/**
* Provides a list of metrics that act as inputs into the objective function.
*
* @param GoogleCloudMlV1MeasurementMetric[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return GoogleCloudMlV1MeasurementMetric[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* The number of steps a machine learning model has been trained for. Must be
* non-negative.
*
* @param string $stepCount
*/
public function setStepCount($stepCount)
{
$this->stepCount = $stepCount;
}
/**
* @return string
*/
public function getStepCount()
{
return $this->stepCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Measurement::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Measurement');

View File

@@ -0,0 +1,62 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1MeasurementMetric extends \Google\Model
{
/**
* Required. Metric name.
*
* @var string
*/
public $metric;
/**
* Required. The value for this metric.
*
* @var
*/
public $value;
/**
* Required. Metric name.
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1MeasurementMetric::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1MeasurementMetric');

View File

@@ -0,0 +1,88 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1MetricSpec extends \Google\Model
{
/**
* Unspecified MetricName.
*/
public const NAME_METRIC_NAME_UNSPECIFIED = 'METRIC_NAME_UNSPECIFIED';
/**
* CPU usage.
*/
public const NAME_CPU_USAGE = 'CPU_USAGE';
/**
* GPU duty cycle.
*/
public const NAME_GPU_DUTY_CYCLE = 'GPU_DUTY_CYCLE';
/**
* metric name.
*
* @var string
*/
public $name;
/**
* Target specifies the target value for the given metric; once real metric
* deviates from the threshold by a certain percentage, the node count
* changes.
*
* @var int
*/
public $target;
/**
* metric name.
*
* Accepted values: METRIC_NAME_UNSPECIFIED, CPU_USAGE, GPU_DUTY_CYCLE
*
* @param self::NAME_* $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return self::NAME_*
*/
public function getName()
{
return $this->name;
}
/**
* Target specifies the target value for the given metric; once real metric
* deviates from the threshold by a certain percentage, the node count
* changes.
*
* @param int $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return int
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1MetricSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1MetricSpec');

View File

@@ -0,0 +1,257 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Model extends \Google\Collection
{
protected $collection_key = 'regions';
protected $defaultVersionType = GoogleCloudMlV1Version::class;
protected $defaultVersionDataType = '';
/**
* Optional. The description specified for the model when it was created.
*
* @var string
*/
public $description;
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a model from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform model updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetModel`, and systems are expected to put
* that etag in the request to `UpdateModel` to ensure that their change will
* be applied to the model as intended.
*
* @var string
*/
public $etag;
/**
* Optional. One or more labels that you can add, to organize your models.
* Each label is a key-value pair, where both the key and the value are
* arbitrary strings that you supply. For more information, see the
* documentation on using labels. Note that this field is not updatable for
* mls1* models.
*
* @var string[]
*/
public $labels;
/**
* Required. The name specified for the model when it was created. The model
* name must be unique within the project it is created in.
*
* @var string
*/
public $name;
/**
* Optional. If true, online prediction nodes send `stderr` and `stdout`
* streams to Cloud Logging. These can be more verbose than the standard
* access logs (see `onlinePredictionLogging`) and can incur higher cost.
* However, they are helpful for debugging. Note that [logs may incur a
* cost](/stackdriver/pricing), especially if your project receives prediction
* requests at a high QPS. Estimate your costs before enabling this option.
* Default is false.
*
* @var bool
*/
public $onlinePredictionConsoleLogging;
/**
* Optional. If true, online prediction access logs are sent to Cloud Logging.
* These logs are like standard server access logs, containing information
* like timestamp and latency for each request. Note that [logs may incur a
* cost](/stackdriver/pricing), especially if your project receives prediction
* requests at a high queries per second rate (QPS). Estimate your costs
* before enabling this option. Default is false.
*
* @var bool
*/
public $onlinePredictionLogging;
/**
* Optional. The list of regions where the model is going to be deployed. Only
* one region per model is supported. Defaults to 'us-central1' if nothing is
* set. See the available regions for AI Platform services. Note: * No matter
* where a model is deployed, it can always be accessed by users from
* anywhere, both for online and batch prediction. * The region for a batch
* prediction job is set by the region field when submitting the batch
* prediction job and does not take its value from this field.
*
* @var string[]
*/
public $regions;
/**
* Output only. The default version of the model. This version will be used to
* handle prediction requests that do not specify a version. You can change
* the default version by calling projects.models.versions.setDefault.
*
* @param GoogleCloudMlV1Version $defaultVersion
*/
public function setDefaultVersion(GoogleCloudMlV1Version $defaultVersion)
{
$this->defaultVersion = $defaultVersion;
}
/**
* @return GoogleCloudMlV1Version
*/
public function getDefaultVersion()
{
return $this->defaultVersion;
}
/**
* Optional. The description specified for the model when it was created.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a model from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform model updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetModel`, and systems are expected to put
* that etag in the request to `UpdateModel` to ensure that their change will
* be applied to the model as intended.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. One or more labels that you can add, to organize your models.
* Each label is a key-value pair, where both the key and the value are
* arbitrary strings that you supply. For more information, see the
* documentation on using labels. Note that this field is not updatable for
* mls1* models.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. The name specified for the model when it was created. The model
* name must be unique within the project it is created in.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. If true, online prediction nodes send `stderr` and `stdout`
* streams to Cloud Logging. These can be more verbose than the standard
* access logs (see `onlinePredictionLogging`) and can incur higher cost.
* However, they are helpful for debugging. Note that [logs may incur a
* cost](/stackdriver/pricing), especially if your project receives prediction
* requests at a high QPS. Estimate your costs before enabling this option.
* Default is false.
*
* @param bool $onlinePredictionConsoleLogging
*/
public function setOnlinePredictionConsoleLogging($onlinePredictionConsoleLogging)
{
$this->onlinePredictionConsoleLogging = $onlinePredictionConsoleLogging;
}
/**
* @return bool
*/
public function getOnlinePredictionConsoleLogging()
{
return $this->onlinePredictionConsoleLogging;
}
/**
* Optional. If true, online prediction access logs are sent to Cloud Logging.
* These logs are like standard server access logs, containing information
* like timestamp and latency for each request. Note that [logs may incur a
* cost](/stackdriver/pricing), especially if your project receives prediction
* requests at a high queries per second rate (QPS). Estimate your costs
* before enabling this option. Default is false.
*
* @param bool $onlinePredictionLogging
*/
public function setOnlinePredictionLogging($onlinePredictionLogging)
{
$this->onlinePredictionLogging = $onlinePredictionLogging;
}
/**
* @return bool
*/
public function getOnlinePredictionLogging()
{
return $this->onlinePredictionLogging;
}
/**
* Optional. The list of regions where the model is going to be deployed. Only
* one region per model is supported. Defaults to 'us-central1' if nothing is
* set. See the available regions for AI Platform services. Note: * No matter
* where a model is deployed, it can always be accessed by users from
* anywhere, both for online and batch prediction. * The region for a batch
* prediction job is set by the region field when submitting the batch
* prediction job and does not take its value from this field.
*
* @param string[] $regions
*/
public function setRegions($regions)
{
$this->regions = $regions;
}
/**
* @return string[]
*/
public function getRegions()
{
return $this->regions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Model::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model');

View File

@@ -0,0 +1,253 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1OperationMetadata extends \Google\Model
{
/**
* Unspecified operation type.
*/
public const OPERATION_TYPE_OPERATION_TYPE_UNSPECIFIED = 'OPERATION_TYPE_UNSPECIFIED';
/**
* An operation to create a new version.
*/
public const OPERATION_TYPE_CREATE_VERSION = 'CREATE_VERSION';
/**
* An operation to delete an existing version.
*/
public const OPERATION_TYPE_DELETE_VERSION = 'DELETE_VERSION';
/**
* An operation to delete an existing model.
*/
public const OPERATION_TYPE_DELETE_MODEL = 'DELETE_MODEL';
/**
* An operation to update an existing model.
*/
public const OPERATION_TYPE_UPDATE_MODEL = 'UPDATE_MODEL';
/**
* An operation to update an existing version.
*/
public const OPERATION_TYPE_UPDATE_VERSION = 'UPDATE_VERSION';
/**
* An operation to update project configuration.
*/
public const OPERATION_TYPE_UPDATE_CONFIG = 'UPDATE_CONFIG';
/**
* The time the operation was submitted.
*
* @var string
*/
public $createTime;
/**
* The time operation processing completed.
*
* @var string
*/
public $endTime;
/**
* Indicates whether a request to cancel this operation has been made.
*
* @var bool
*/
public $isCancellationRequested;
/**
* The user labels, inherited from the model or the model version being
* operated on.
*
* @var string[]
*/
public $labels;
/**
* Contains the name of the model associated with the operation.
*
* @var string
*/
public $modelName;
/**
* The operation type.
*
* @var string
*/
public $operationType;
/**
* Contains the project number associated with the operation.
*
* @var string
*/
public $projectNumber;
/**
* The time operation processing started.
*
* @var string
*/
public $startTime;
protected $versionType = GoogleCloudMlV1Version::class;
protected $versionDataType = '';
/**
* The time the operation was submitted.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The time operation processing completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Indicates whether a request to cancel this operation has been made.
*
* @param bool $isCancellationRequested
*/
public function setIsCancellationRequested($isCancellationRequested)
{
$this->isCancellationRequested = $isCancellationRequested;
}
/**
* @return bool
*/
public function getIsCancellationRequested()
{
return $this->isCancellationRequested;
}
/**
* The user labels, inherited from the model or the model version being
* operated on.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Contains the name of the model associated with the operation.
*
* @param string $modelName
*/
public function setModelName($modelName)
{
$this->modelName = $modelName;
}
/**
* @return string
*/
public function getModelName()
{
return $this->modelName;
}
/**
* The operation type.
*
* Accepted values: OPERATION_TYPE_UNSPECIFIED, CREATE_VERSION,
* DELETE_VERSION, DELETE_MODEL, UPDATE_MODEL, UPDATE_VERSION, UPDATE_CONFIG
*
* @param self::OPERATION_TYPE_* $operationType
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return self::OPERATION_TYPE_*
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* Contains the project number associated with the operation.
*
* @param string $projectNumber
*/
public function setProjectNumber($projectNumber)
{
$this->projectNumber = $projectNumber;
}
/**
* @return string
*/
public function getProjectNumber()
{
return $this->projectNumber;
}
/**
* The time operation processing started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Contains the version associated with the operation.
*
* @param GoogleCloudMlV1Version $version
*/
public function setVersion(GoogleCloudMlV1Version $version)
{
$this->version = $version;
}
/**
* @return GoogleCloudMlV1Version
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1OperationMetadata::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1OperationMetadata');

View File

@@ -0,0 +1,218 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ParameterSpec extends \Google\Collection
{
/**
* By default, no scaling is applied.
*/
public const SCALE_TYPE_NONE = 'NONE';
/**
* Scales the feasible space to (0, 1) linearly.
*/
public const SCALE_TYPE_UNIT_LINEAR_SCALE = 'UNIT_LINEAR_SCALE';
/**
* Scales the feasible space logarithmically to (0, 1). The entire feasible
* space must be strictly positive.
*/
public const SCALE_TYPE_UNIT_LOG_SCALE = 'UNIT_LOG_SCALE';
/**
* Scales the feasible space "reverse" logarithmically to (0, 1). The result
* is that values close to the top of the feasible space are spread out more
* than points near the bottom. The entire feasible space must be strictly
* positive.
*/
public const SCALE_TYPE_UNIT_REVERSE_LOG_SCALE = 'UNIT_REVERSE_LOG_SCALE';
/**
* You must specify a valid type. Using this unspecified type will result in
* an error.
*/
public const TYPE_PARAMETER_TYPE_UNSPECIFIED = 'PARAMETER_TYPE_UNSPECIFIED';
/**
* Type for real-valued parameters.
*/
public const TYPE_DOUBLE = 'DOUBLE';
/**
* Type for integral parameters.
*/
public const TYPE_INTEGER = 'INTEGER';
/**
* The parameter is categorical, with a value chosen from the categories
* field.
*/
public const TYPE_CATEGORICAL = 'CATEGORICAL';
/**
* The parameter is real valued, with a fixed set of feasible points. If
* `type==DISCRETE`, feasible_points must be provided, and {`min_value`,
* `max_value`} will be ignored.
*/
public const TYPE_DISCRETE = 'DISCRETE';
protected $collection_key = 'discreteValues';
/**
* Required if type is `CATEGORICAL`. The list of possible categories.
*
* @var string[]
*/
public $categoricalValues;
/**
* Required if type is `DISCRETE`. A list of feasible points. The list should
* be in strictly increasing order. For instance, this parameter might have
* possible settings of 1.5, 2.5, and 4.0. This list should not contain more
* than 1,000 values.
*
* @var []
*/
public $discreteValues;
/**
* Required if type is `DOUBLE` or `INTEGER`. This field should be unset if
* type is `CATEGORICAL`. This value should be integers if type is `INTEGER`.
*
* @var
*/
public $maxValue;
/**
* Required if type is `DOUBLE` or `INTEGER`. This field should be unset if
* type is `CATEGORICAL`. This value should be integers if type is INTEGER.
*
* @var
*/
public $minValue;
/**
* Required. The parameter name must be unique amongst all ParameterConfigs in
* a HyperparameterSpec message. E.g., "learning_rate".
*
* @var string
*/
public $parameterName;
/**
* Optional. How the parameter should be scaled to the hypercube. Leave unset
* for categorical parameters. Some kind of scaling is strongly recommended
* for real or integral parameters (e.g., `UNIT_LINEAR_SCALE`).
*
* @var string
*/
public $scaleType;
/**
* Required. The type of the parameter.
*
* @var string
*/
public $type;
/**
* Required if type is `CATEGORICAL`. The list of possible categories.
*
* @param string[] $categoricalValues
*/
public function setCategoricalValues($categoricalValues)
{
$this->categoricalValues = $categoricalValues;
}
/**
* @return string[]
*/
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;
}
/**
* Required. The parameter name must be unique amongst all ParameterConfigs in
* a HyperparameterSpec message. E.g., "learning_rate".
*
* @param string $parameterName
*/
public function setParameterName($parameterName)
{
$this->parameterName = $parameterName;
}
/**
* @return string
*/
public function getParameterName()
{
return $this->parameterName;
}
/**
* Optional. How the parameter should be scaled to the hypercube. Leave unset
* for categorical parameters. Some kind of scaling is strongly recommended
* for real or integral parameters (e.g., `UNIT_LINEAR_SCALE`).
*
* Accepted values: NONE, UNIT_LINEAR_SCALE, UNIT_LOG_SCALE,
* UNIT_REVERSE_LOG_SCALE
*
* @param self::SCALE_TYPE_* $scaleType
*/
public function setScaleType($scaleType)
{
$this->scaleType = $scaleType;
}
/**
* @return self::SCALE_TYPE_*
*/
public function getScaleType()
{
return $this->scaleType;
}
/**
* Required. The type of the parameter.
*
* Accepted values: PARAMETER_TYPE_UNSPECIFIED, DOUBLE, INTEGER, CATEGORICAL,
* DISCRETE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ParameterSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ParameterSpec');

View File

@@ -0,0 +1,46 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1PredictRequest extends \Google\Model
{
protected $httpBodyType = GoogleApiHttpBody::class;
protected $httpBodyDataType = '';
/**
* Required. The prediction request body. Refer to the [request body details
* section](#request-body-details) for more information on how to structure
* your request.
*
* @param GoogleApiHttpBody $httpBody
*/
public function setHttpBody(GoogleApiHttpBody $httpBody)
{
$this->httpBody = $httpBody;
}
/**
* @return GoogleApiHttpBody
*/
public function getHttpBody()
{
return $this->httpBody;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1PredictRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictRequest');

View File

@@ -0,0 +1,393 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1PredictionInput extends \Google\Collection
{
/**
* Unspecified format.
*/
public const DATA_FORMAT_DATA_FORMAT_UNSPECIFIED = 'DATA_FORMAT_UNSPECIFIED';
/**
* Each line of the file is a JSON dictionary representing one record.
*/
public const DATA_FORMAT_JSON = 'JSON';
/**
* Deprecated. Use JSON instead.
*/
public const DATA_FORMAT_TEXT = 'TEXT';
/**
* The source file is a TFRecord file. Currently available only for input
* data.
*/
public const DATA_FORMAT_TF_RECORD = 'TF_RECORD';
/**
* The source file is a GZIP-compressed TFRecord file. Currently available
* only for input data.
*/
public const DATA_FORMAT_TF_RECORD_GZIP = 'TF_RECORD_GZIP';
/**
* Values are comma-separated rows, with keys in a separate file. Currently
* available only for output data.
*/
public const DATA_FORMAT_CSV = 'CSV';
/**
* Unspecified format.
*/
public const OUTPUT_DATA_FORMAT_DATA_FORMAT_UNSPECIFIED = 'DATA_FORMAT_UNSPECIFIED';
/**
* Each line of the file is a JSON dictionary representing one record.
*/
public const OUTPUT_DATA_FORMAT_JSON = 'JSON';
/**
* Deprecated. Use JSON instead.
*/
public const OUTPUT_DATA_FORMAT_TEXT = 'TEXT';
/**
* The source file is a TFRecord file. Currently available only for input
* data.
*/
public const OUTPUT_DATA_FORMAT_TF_RECORD = 'TF_RECORD';
/**
* The source file is a GZIP-compressed TFRecord file. Currently available
* only for input data.
*/
public const OUTPUT_DATA_FORMAT_TF_RECORD_GZIP = 'TF_RECORD_GZIP';
/**
* Values are comma-separated rows, with keys in a separate file. Currently
* available only for output data.
*/
public const OUTPUT_DATA_FORMAT_CSV = 'CSV';
protected $collection_key = 'inputPaths';
/**
* Optional. Number of records per batch, defaults to 64. The service will
* buffer batch_size number of records in memory before invoking one
* Tensorflow prediction call internally. So take the record size and memory
* available into consideration when setting this parameter.
*
* @var string
*/
public $batchSize;
/**
* Required. The format of the input data files.
*
* @var string
*/
public $dataFormat;
/**
* Required. The Cloud Storage location of the input data files. May contain
* wildcards.
*
* @var string[]
*/
public $inputPaths;
/**
* Optional. The maximum number of workers to be used for parallel processing.
* Defaults to 10 if not specified.
*
* @var string
*/
public $maxWorkerCount;
/**
* Use this field if you want to use the default version for the specified
* model. The string must use the following format:
* `"projects/YOUR_PROJECT/models/YOUR_MODEL"`
*
* @var string
*/
public $modelName;
/**
* Optional. Format of the output data files, defaults to JSON.
*
* @var string
*/
public $outputDataFormat;
/**
* Required. The output Google Cloud Storage location.
*
* @var string
*/
public $outputPath;
/**
* Required. The Google Compute Engine region to run the prediction job in.
* See the available regions for AI Platform services.
*
* @var string
*/
public $region;
/**
* Optional. The AI Platform runtime version to use for this batch prediction.
* If not set, AI Platform will pick the runtime version used during the
* CreateVersion request for this model version, or choose the latest stable
* version when model version information is not available such as when the
* model is specified by uri.
*
* @var string
*/
public $runtimeVersion;
/**
* Optional. The name of the signature defined in the SavedModel to use for
* this job. Please refer to
* [SavedModel](https://tensorflow.github.io/serving/serving_basic.html) for
* information about how to use signatures. Defaults to [DEFAULT_SERVING_SIGNA
* TURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/sig
* nature_constants) , which is "serving_default".
*
* @var string
*/
public $signatureName;
/**
* Use this field if you want to specify a Google Cloud Storage path for the
* model to use.
*
* @var string
*/
public $uri;
/**
* Use this field if you want to specify a version of the model to use. The
* string is formatted the same way as `model_version`, with the addition of
* the version information:
* `"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"`
*
* @var string
*/
public $versionName;
/**
* Optional. Number of records per batch, defaults to 64. The service will
* buffer batch_size number of records in memory before invoking one
* Tensorflow prediction call internally. So take the record size and memory
* available into consideration when setting this parameter.
*
* @param string $batchSize
*/
public function setBatchSize($batchSize)
{
$this->batchSize = $batchSize;
}
/**
* @return string
*/
public function getBatchSize()
{
return $this->batchSize;
}
/**
* Required. The format of the input data files.
*
* Accepted values: DATA_FORMAT_UNSPECIFIED, JSON, TEXT, TF_RECORD,
* TF_RECORD_GZIP, CSV
*
* @param self::DATA_FORMAT_* $dataFormat
*/
public function setDataFormat($dataFormat)
{
$this->dataFormat = $dataFormat;
}
/**
* @return self::DATA_FORMAT_*
*/
public function getDataFormat()
{
return $this->dataFormat;
}
/**
* Required. The Cloud Storage location of the input data files. May contain
* wildcards.
*
* @param string[] $inputPaths
*/
public function setInputPaths($inputPaths)
{
$this->inputPaths = $inputPaths;
}
/**
* @return string[]
*/
public function getInputPaths()
{
return $this->inputPaths;
}
/**
* Optional. The maximum number of workers to be used for parallel processing.
* Defaults to 10 if not specified.
*
* @param string $maxWorkerCount
*/
public function setMaxWorkerCount($maxWorkerCount)
{
$this->maxWorkerCount = $maxWorkerCount;
}
/**
* @return string
*/
public function getMaxWorkerCount()
{
return $this->maxWorkerCount;
}
/**
* Use this field if you want to use the default version for the specified
* model. The string must use the following format:
* `"projects/YOUR_PROJECT/models/YOUR_MODEL"`
*
* @param string $modelName
*/
public function setModelName($modelName)
{
$this->modelName = $modelName;
}
/**
* @return string
*/
public function getModelName()
{
return $this->modelName;
}
/**
* Optional. Format of the output data files, defaults to JSON.
*
* Accepted values: DATA_FORMAT_UNSPECIFIED, JSON, TEXT, TF_RECORD,
* TF_RECORD_GZIP, CSV
*
* @param self::OUTPUT_DATA_FORMAT_* $outputDataFormat
*/
public function setOutputDataFormat($outputDataFormat)
{
$this->outputDataFormat = $outputDataFormat;
}
/**
* @return self::OUTPUT_DATA_FORMAT_*
*/
public function getOutputDataFormat()
{
return $this->outputDataFormat;
}
/**
* Required. The output Google Cloud Storage location.
*
* @param string $outputPath
*/
public function setOutputPath($outputPath)
{
$this->outputPath = $outputPath;
}
/**
* @return string
*/
public function getOutputPath()
{
return $this->outputPath;
}
/**
* Required. The Google Compute Engine region to run the prediction job in.
* See the available regions for AI Platform services.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Optional. The AI Platform runtime version to use for this batch prediction.
* If not set, AI Platform will pick the runtime version used during the
* CreateVersion request for this model version, or choose the latest stable
* version when model version information is not available such as when the
* model is specified by uri.
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* Optional. The name of the signature defined in the SavedModel to use for
* this job. Please refer to
* [SavedModel](https://tensorflow.github.io/serving/serving_basic.html) for
* information about how to use signatures. Defaults to [DEFAULT_SERVING_SIGNA
* TURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/sig
* nature_constants) , which is "serving_default".
*
* @param string $signatureName
*/
public function setSignatureName($signatureName)
{
$this->signatureName = $signatureName;
}
/**
* @return string
*/
public function getSignatureName()
{
return $this->signatureName;
}
/**
* Use this field if you want to specify a Google Cloud Storage path for the
* model to use.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
/**
* Use this field if you want to specify a version of the model to use. The
* string is formatted the same way as `model_version`, with the addition of
* the version information:
* `"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"`
*
* @param string $versionName
*/
public function setVersionName($versionName)
{
$this->versionName = $versionName;
}
/**
* @return string
*/
public function getVersionName()
{
return $this->versionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1PredictionInput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput');

View File

@@ -0,0 +1,106 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1PredictionOutput extends \Google\Model
{
/**
* The number of data instances which resulted in errors.
*
* @var string
*/
public $errorCount;
/**
* Node hours used by the batch prediction job.
*
* @var
*/
public $nodeHours;
/**
* The output Google Cloud Storage location provided at the job creation time.
*
* @var string
*/
public $outputPath;
/**
* The number of generated predictions.
*
* @var string
*/
public $predictionCount;
/**
* The number of data instances which resulted in errors.
*
* @param string $errorCount
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return string
*/
public function getErrorCount()
{
return $this->errorCount;
}
public function setNodeHours($nodeHours)
{
$this->nodeHours = $nodeHours;
}
public function getNodeHours()
{
return $this->nodeHours;
}
/**
* The output Google Cloud Storage location provided at the job creation time.
*
* @param string $outputPath
*/
public function setOutputPath($outputPath)
{
$this->outputPath = $outputPath;
}
/**
* @return string
*/
public function getOutputPath()
{
return $this->outputPath;
}
/**
* The number of generated predictions.
*
* @param string $predictionCount
*/
public function setPredictionCount($predictionCount)
{
$this->predictionCount = $predictionCount;
}
/**
* @return string
*/
public function getPredictionCount()
{
return $this->predictionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1PredictionOutput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionOutput');

View File

@@ -0,0 +1,207 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1ReplicaConfig extends \Google\Collection
{
protected $collection_key = 'containerCommand';
protected $acceleratorConfigType = GoogleCloudMlV1AcceleratorConfig::class;
protected $acceleratorConfigDataType = '';
/**
* Arguments to the entrypoint command. The following rules apply for
* container_command and container_args: - If you do not supply command or
* args: The defaults defined in the Docker image are used. - If you supply a
* command but no args: The default EntryPoint and the default Cmd defined in
* the Docker image are ignored. Your command is run without any arguments. -
* If you supply only args: The default Entrypoint defined in the Docker image
* is run with the args that you supplied. - If you supply a command and args:
* The default Entrypoint and the default Cmd defined in the Docker image are
* ignored. Your command is run with your args. It cannot be set if custom
* container image is not provided. Note that this field and
* [TrainingInput.args] are mutually exclusive, i.e., both cannot be set at
* the same time.
*
* @var string[]
*/
public $containerArgs;
/**
* The command with which the replica's custom container is run. If provided,
* it will override default ENTRYPOINT of the docker image. If not provided,
* the docker image's ENTRYPOINT is used. It cannot be set if custom container
* image is not provided. Note that this field and [TrainingInput.args] are
* mutually exclusive, i.e., both cannot be set at the same time.
*
* @var string[]
*/
public $containerCommand;
protected $diskConfigType = GoogleCloudMlV1DiskConfig::class;
protected $diskConfigDataType = '';
/**
* The Docker image to run on the replica. This image must be in Container
* Registry. Learn more about [configuring custom containers](/ai-
* platform/training/docs/distributed-training-containers).
*
* @var string
*/
public $imageUri;
/**
* The AI Platform runtime version that includes a TensorFlow version matching
* the one used in the custom container. This field is required if the replica
* is a TPU worker that uses a custom container. Otherwise, do not specify
* this field. This must be a [runtime version that currently supports
* training with TPUs](/ml-engine/docs/tensorflow/runtime-version-list#tpu-
* support). Note that the version of TensorFlow included in a runtime version
* may differ from the numbering of the runtime version itself, because it may
* have a different [patch version](https://www.tensorflow.org/guide/version_c
* ompat#semantic_versioning_20). In this field, you must specify the runtime
* version (TensorFlow minor version). For example, if your custom container
* runs TensorFlow `1.x.y`, specify `1.x`.
*
* @var string
*/
public $tpuTfVersion;
/**
* Represents the type and number of accelerators used by the replica. [Learn
* about restrictions on accelerator configurations for training.](/ai-
* platform/training/docs/using-gpus#compute-engine-machine-types-with-gpu)
*
* @param GoogleCloudMlV1AcceleratorConfig $acceleratorConfig
*/
public function setAcceleratorConfig(GoogleCloudMlV1AcceleratorConfig $acceleratorConfig)
{
$this->acceleratorConfig = $acceleratorConfig;
}
/**
* @return GoogleCloudMlV1AcceleratorConfig
*/
public function getAcceleratorConfig()
{
return $this->acceleratorConfig;
}
/**
* Arguments to the entrypoint command. The following rules apply for
* container_command and container_args: - If you do not supply command or
* args: The defaults defined in the Docker image are used. - If you supply a
* command but no args: The default EntryPoint and the default Cmd defined in
* the Docker image are ignored. Your command is run without any arguments. -
* If you supply only args: The default Entrypoint defined in the Docker image
* is run with the args that you supplied. - If you supply a command and args:
* The default Entrypoint and the default Cmd defined in the Docker image are
* ignored. Your command is run with your args. It cannot be set if custom
* container image is not provided. Note that this field and
* [TrainingInput.args] are mutually exclusive, i.e., both cannot be set at
* the same time.
*
* @param string[] $containerArgs
*/
public function setContainerArgs($containerArgs)
{
$this->containerArgs = $containerArgs;
}
/**
* @return string[]
*/
public function getContainerArgs()
{
return $this->containerArgs;
}
/**
* The command with which the replica's custom container is run. If provided,
* it will override default ENTRYPOINT of the docker image. If not provided,
* the docker image's ENTRYPOINT is used. It cannot be set if custom container
* image is not provided. Note that this field and [TrainingInput.args] are
* mutually exclusive, i.e., both cannot be set at the same time.
*
* @param string[] $containerCommand
*/
public function setContainerCommand($containerCommand)
{
$this->containerCommand = $containerCommand;
}
/**
* @return string[]
*/
public function getContainerCommand()
{
return $this->containerCommand;
}
/**
* Represents the configuration of disk options.
*
* @param GoogleCloudMlV1DiskConfig $diskConfig
*/
public function setDiskConfig(GoogleCloudMlV1DiskConfig $diskConfig)
{
$this->diskConfig = $diskConfig;
}
/**
* @return GoogleCloudMlV1DiskConfig
*/
public function getDiskConfig()
{
return $this->diskConfig;
}
/**
* The Docker image to run on the replica. This image must be in Container
* Registry. Learn more about [configuring custom containers](/ai-
* platform/training/docs/distributed-training-containers).
*
* @param string $imageUri
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* The AI Platform runtime version that includes a TensorFlow version matching
* the one used in the custom container. This field is required if the replica
* is a TPU worker that uses a custom container. Otherwise, do not specify
* this field. This must be a [runtime version that currently supports
* training with TPUs](/ml-engine/docs/tensorflow/runtime-version-list#tpu-
* support). Note that the version of TensorFlow included in a runtime version
* may differ from the numbering of the runtime version itself, because it may
* have a different [patch version](https://www.tensorflow.org/guide/version_c
* ompat#semantic_versioning_20). In this field, you must specify the runtime
* version (TensorFlow minor version). For example, if your custom container
* runs TensorFlow `1.x.y`, specify `1.x`.
*
* @param string $tpuTfVersion
*/
public function setTpuTfVersion($tpuTfVersion)
{
$this->tpuTfVersion = $tpuTfVersion;
}
/**
* @return string
*/
public function getTpuTfVersion()
{
return $this->tpuTfVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1ReplicaConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ReplicaConfig');

View File

@@ -0,0 +1,76 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1RequestLoggingConfig extends \Google\Model
{
/**
* Required. Fully qualified BigQuery table name in the following format: "
* project_id.dataset_name.table_name" The specified table must already exist,
* and the "Cloud ML Service Agent" for your project must have permission to
* write to it. The table must have the following
* [schema](/bigquery/docs/schemas): Field name Type Mode model STRING
* REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data
* STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE
*
* @var string
*/
public $bigqueryTableName;
/**
* Percentage of requests to be logged, expressed as a fraction from 0 to 1.
* For example, if you want to log 10% of requests, enter `0.1`. The sampling
* window is the lifetime of the model version. Defaults to 0.
*
* @var
*/
public $samplingPercentage;
/**
* Required. Fully qualified BigQuery table name in the following format: "
* project_id.dataset_name.table_name" The specified table must already exist,
* and the "Cloud ML Service Agent" for your project must have permission to
* write to it. The table must have the following
* [schema](/bigquery/docs/schemas): Field name Type Mode model STRING
* REQUIRED model_version STRING REQUIRED time TIMESTAMP REQUIRED raw_data
* STRING REQUIRED raw_prediction STRING NULLABLE groundtruth STRING NULLABLE
*
* @param string $bigqueryTableName
*/
public function setBigqueryTableName($bigqueryTableName)
{
$this->bigqueryTableName = $bigqueryTableName;
}
/**
* @return string
*/
public function getBigqueryTableName()
{
return $this->bigqueryTableName;
}
public function setSamplingPercentage($samplingPercentage)
{
$this->samplingPercentage = $samplingPercentage;
}
public function getSamplingPercentage()
{
return $this->samplingPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1RequestLoggingConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1RequestLoggingConfig');

View File

@@ -0,0 +1,132 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1RouteMap extends \Google\Model
{
/**
* HTTP path on the container to send health checkss to. AI Platform
* Prediction intermittently sends GET requests to this path on the
* container's IP address and port to check that the container is healthy.
* Read more about [health checks](/ai-platform/prediction/docs/custom-
* container-requirements#checks). For example, if you set this field to
* `/bar`, then AI Platform Prediction intermittently sends a GET request to
* the `/bar` path on the port of your container specified by the first value
* of Version.container.ports. If you don't specify this field, it defaults to
* the following value: /v1/models/ MODEL/versions/VERSION The placeholders in
* this value are replaced as follows: * MODEL: The name of the parent Model.
* This does not include the "projects/PROJECT_ID/models/" prefix that the API
* returns in output; it is the bare model name, as provided to
* projects.models.create. * VERSION: The name of the model version. This does
* not include the "projects/PROJECT_ID /models/MODEL/versions/" prefix that
* the API returns in output; it is the bare version name, as provided to
* projects.models.versions.create.
*
* @var string
*/
public $health;
/**
* HTTP path on the container to send prediction requests to. AI Platform
* Prediction forwards requests sent using projects.predict to this path on
* the container's IP address and port. AI Platform Prediction then returns
* the container's response in the API response. For example, if you set this
* field to `/foo`, then when AI Platform Prediction receives a prediction
* request, it forwards the request body in a POST request to the `/foo` path
* on the port of your container specified by the first value of
* Version.container.ports. If you don't specify this field, it defaults to
* the following value: /v1/models/MODEL/versions/VERSION:predict The
* placeholders in this value are replaced as follows: * MODEL: The name of
* the parent Model. This does not include the "projects/PROJECT_ID/models/"
* prefix that the API returns in output; it is the bare model name, as
* provided to projects.models.create. * VERSION: The name of the model
* version. This does not include the
* "projects/PROJECT_ID/models/MODEL/versions/" prefix that the API returns in
* output; it is the bare version name, as provided to
* projects.models.versions.create.
*
* @var string
*/
public $predict;
/**
* HTTP path on the container to send health checkss to. AI Platform
* Prediction intermittently sends GET requests to this path on the
* container's IP address and port to check that the container is healthy.
* Read more about [health checks](/ai-platform/prediction/docs/custom-
* container-requirements#checks). For example, if you set this field to
* `/bar`, then AI Platform Prediction intermittently sends a GET request to
* the `/bar` path on the port of your container specified by the first value
* of Version.container.ports. If you don't specify this field, it defaults to
* the following value: /v1/models/ MODEL/versions/VERSION The placeholders in
* this value are replaced as follows: * MODEL: The name of the parent Model.
* This does not include the "projects/PROJECT_ID/models/" prefix that the API
* returns in output; it is the bare model name, as provided to
* projects.models.create. * VERSION: The name of the model version. This does
* not include the "projects/PROJECT_ID /models/MODEL/versions/" prefix that
* the API returns in output; it is the bare version name, as provided to
* projects.models.versions.create.
*
* @param string $health
*/
public function setHealth($health)
{
$this->health = $health;
}
/**
* @return string
*/
public function getHealth()
{
return $this->health;
}
/**
* HTTP path on the container to send prediction requests to. AI Platform
* Prediction forwards requests sent using projects.predict to this path on
* the container's IP address and port. AI Platform Prediction then returns
* the container's response in the API response. For example, if you set this
* field to `/foo`, then when AI Platform Prediction receives a prediction
* request, it forwards the request body in a POST request to the `/foo` path
* on the port of your container specified by the first value of
* Version.container.ports. If you don't specify this field, it defaults to
* the following value: /v1/models/MODEL/versions/VERSION:predict The
* placeholders in this value are replaced as follows: * MODEL: The name of
* the parent Model. This does not include the "projects/PROJECT_ID/models/"
* prefix that the API returns in output; it is the bare model name, as
* provided to projects.models.create. * VERSION: The name of the model
* version. This does not include the
* "projects/PROJECT_ID/models/MODEL/versions/" prefix that the API returns in
* output; it is the bare version name, as provided to
* projects.models.versions.create.
*
* @param string $predict
*/
public function setPredict($predict)
{
$this->predict = $predict;
}
/**
* @return string
*/
public function getPredict()
{
return $this->predict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1RouteMap::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1RouteMap');

View File

@@ -0,0 +1,50 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1SampledShapleyAttribution extends \Google\Model
{
/**
* The number of feature permutations to consider when approximating the
* Shapley values.
*
* @var int
*/
public $numPaths;
/**
* The number of feature permutations to consider when approximating the
* Shapley values.
*
* @param int $numPaths
*/
public function setNumPaths($numPaths)
{
$this->numPaths = $numPaths;
}
/**
* @return int
*/
public function getNumPaths()
{
return $this->numPaths;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1SampledShapleyAttribution::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SampledShapleyAttribution');

View File

@@ -0,0 +1,160 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Scheduling extends \Google\Model
{
/**
* Optional. The maximum job running time, expressed in seconds. The field can
* contain up to nine fractional digits, terminated by `s`. If not specified,
* this field defaults to `604800s` (seven days). If the training job is still
* running after this duration, AI Platform Training cancels it. The duration
* is measured from when the job enters the `RUNNING` state; therefore it does
* not overlap with the duration limited by Scheduling.max_wait_time. For
* example, if you want to ensure your job runs for no more than 2 hours, set
* this field to `7200s` (2 hours * 60 minutes / hour * 60 seconds / minute).
* If you submit your training job using the `gcloud` tool, you can [specify
* this field in a `config.yaml` file](/ai-platform/training/docs/training-
* jobs#formatting_your_configuration_parameters). For example: ```yaml
* trainingInput: scheduling: maxRunningTime: 7200s ```
*
* @var string
*/
public $maxRunningTime;
/**
* Optional. The maximum job wait time, expressed in seconds. The field can
* contain up to nine fractional digits, terminated by `s`. If not specified,
* there is no limit to the wait time. The minimum for this field is `1800s`
* (30 minutes). If the training job has not entered the `RUNNING` state after
* this duration, AI Platform Training cancels it. After the job begins
* running, it can no longer be cancelled due to the maximum wait time.
* Therefore the duration limited by this field does not overlap with the
* duration limited by Scheduling.max_running_time. For example, if the job
* temporarily stops running and retries due to a [VM restart](/ai-
* platform/training/docs/overview#restarts), this cannot lead to a maximum
* wait time cancellation. However, independently of this constraint, AI
* Platform Training might stop a job if there are too many retries due to
* exhausted resources in a region. The following example describes how you
* might use this field: To cancel your job if it doesn't start running within
* 1 hour, set this field to `3600s` (1 hour * 60 minutes / hour * 60 seconds
* / minute). If the job is still in the `QUEUED` or `PREPARING` state after
* an hour of waiting, AI Platform Training cancels the job. If you submit
* your training job using the `gcloud` tool, you can [specify this field in a
* `config.yaml` file](/ai-platform/training/docs/training-
* jobs#formatting_your_configuration_parameters). For example: ```yaml
* trainingInput: scheduling: maxWaitTime: 3600s ```
*
* @var string
*/
public $maxWaitTime;
/**
* Optional. Job scheduling will be based on this priority, which in the range
* [0, 1000]. The bigger the number, the higher the priority. Default to 0 if
* not set. If there are multiple jobs requesting same type of accelerators,
* the high priority job will be scheduled prior to ones with low priority.
*
* @var int
*/
public $priority;
/**
* Optional. The maximum job running time, expressed in seconds. The field can
* contain up to nine fractional digits, terminated by `s`. If not specified,
* this field defaults to `604800s` (seven days). If the training job is still
* running after this duration, AI Platform Training cancels it. The duration
* is measured from when the job enters the `RUNNING` state; therefore it does
* not overlap with the duration limited by Scheduling.max_wait_time. For
* example, if you want to ensure your job runs for no more than 2 hours, set
* this field to `7200s` (2 hours * 60 minutes / hour * 60 seconds / minute).
* If you submit your training job using the `gcloud` tool, you can [specify
* this field in a `config.yaml` file](/ai-platform/training/docs/training-
* jobs#formatting_your_configuration_parameters). For example: ```yaml
* trainingInput: scheduling: maxRunningTime: 7200s ```
*
* @param string $maxRunningTime
*/
public function setMaxRunningTime($maxRunningTime)
{
$this->maxRunningTime = $maxRunningTime;
}
/**
* @return string
*/
public function getMaxRunningTime()
{
return $this->maxRunningTime;
}
/**
* Optional. The maximum job wait time, expressed in seconds. The field can
* contain up to nine fractional digits, terminated by `s`. If not specified,
* there is no limit to the wait time. The minimum for this field is `1800s`
* (30 minutes). If the training job has not entered the `RUNNING` state after
* this duration, AI Platform Training cancels it. After the job begins
* running, it can no longer be cancelled due to the maximum wait time.
* Therefore the duration limited by this field does not overlap with the
* duration limited by Scheduling.max_running_time. For example, if the job
* temporarily stops running and retries due to a [VM restart](/ai-
* platform/training/docs/overview#restarts), this cannot lead to a maximum
* wait time cancellation. However, independently of this constraint, AI
* Platform Training might stop a job if there are too many retries due to
* exhausted resources in a region. The following example describes how you
* might use this field: To cancel your job if it doesn't start running within
* 1 hour, set this field to `3600s` (1 hour * 60 minutes / hour * 60 seconds
* / minute). If the job is still in the `QUEUED` or `PREPARING` state after
* an hour of waiting, AI Platform Training cancels the job. If you submit
* your training job using the `gcloud` tool, you can [specify this field in a
* `config.yaml` file](/ai-platform/training/docs/training-
* jobs#formatting_your_configuration_parameters). For example: ```yaml
* trainingInput: scheduling: maxWaitTime: 3600s ```
*
* @param string $maxWaitTime
*/
public function setMaxWaitTime($maxWaitTime)
{
$this->maxWaitTime = $maxWaitTime;
}
/**
* @return string
*/
public function getMaxWaitTime()
{
return $this->maxWaitTime;
}
/**
* Optional. Job scheduling will be based on this priority, which in the range
* [0, 1000]. The bigger the number, the higher the priority. Default to 0 if
* not set. If there are multiple jobs requesting same type of accelerators,
* the high priority job will be scheduled prior to ones with low priority.
*
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Scheduling::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Scheduling');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1SetDefaultVersionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1SetDefaultVersionRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SetDefaultVersionRequest');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StopTrialRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StopTrialRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StopTrialRequest');

View File

@@ -0,0 +1,153 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Study extends \Google\Model
{
/**
* The study state is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The study is active.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The study is stopped due to an internal error.
*/
public const STATE_INACTIVE = 'INACTIVE';
/**
* The study is done when the service exhausts the parameter search space or
* max_trial_count is reached.
*/
public const STATE_COMPLETED = 'COMPLETED';
/**
* Output only. Time at which the study was created.
*
* @var string
*/
public $createTime;
/**
* Output only. A human readable reason why the Study is inactive. This should
* be empty if a study is ACTIVE or COMPLETED.
*
* @var string
*/
public $inactiveReason;
/**
* Output only. The name of a study.
*
* @var string
*/
public $name;
/**
* Output only. The detailed state of a study.
*
* @var string
*/
public $state;
protected $studyConfigType = GoogleCloudMlV1StudyConfig::class;
protected $studyConfigDataType = '';
/**
* Output only. Time at which the study was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. A human readable reason why the Study is inactive. This should
* be empty if a study is ACTIVE or COMPLETED.
*
* @param string $inactiveReason
*/
public function setInactiveReason($inactiveReason)
{
$this->inactiveReason = $inactiveReason;
}
/**
* @return string
*/
public function getInactiveReason()
{
return $this->inactiveReason;
}
/**
* Output only. The name of a study.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The detailed state of a study.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, INACTIVE, COMPLETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. Configuration of the study.
*
* @param GoogleCloudMlV1StudyConfig $studyConfig
*/
public function setStudyConfig(GoogleCloudMlV1StudyConfig $studyConfig)
{
$this->studyConfig = $studyConfig;
}
/**
* @return GoogleCloudMlV1StudyConfig
*/
public function getStudyConfig()
{
return $this->studyConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Study::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Study');

View File

@@ -0,0 +1,123 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfig extends \Google\Collection
{
/**
* The default algorithm used by the Cloud AI Platform Vizier service.
*/
public const ALGORITHM_ALGORITHM_UNSPECIFIED = 'ALGORITHM_UNSPECIFIED';
/**
* Gaussian Process Bandit.
*/
public const ALGORITHM_GAUSSIAN_PROCESS_BANDIT = 'GAUSSIAN_PROCESS_BANDIT';
/**
* Simple grid search within the feasible space. To use grid search, all
* parameters must be `INTEGER`, `CATEGORICAL`, or `DISCRETE`.
*/
public const ALGORITHM_GRID_SEARCH = 'GRID_SEARCH';
/**
* Simple random search within the feasible space.
*/
public const ALGORITHM_RANDOM_SEARCH = 'RANDOM_SEARCH';
protected $collection_key = 'parameters';
/**
* The search algorithm specified for the study.
*
* @var string
*/
public $algorithm;
protected $automatedStoppingConfigType = GoogleCloudMlV1AutomatedStoppingConfig::class;
protected $automatedStoppingConfigDataType = '';
protected $metricsType = GoogleCloudMlV1StudyConfigMetricSpec::class;
protected $metricsDataType = 'array';
protected $parametersType = GoogleCloudMlV1StudyConfigParameterSpec::class;
protected $parametersDataType = 'array';
/**
* The search algorithm specified for the study.
*
* Accepted values: ALGORITHM_UNSPECIFIED, GAUSSIAN_PROCESS_BANDIT,
* GRID_SEARCH, RANDOM_SEARCH
*
* @param self::ALGORITHM_* $algorithm
*/
public function setAlgorithm($algorithm)
{
$this->algorithm = $algorithm;
}
/**
* @return self::ALGORITHM_*
*/
public function getAlgorithm()
{
return $this->algorithm;
}
/**
* Configuration for automated stopping of unpromising Trials.
*
* @param GoogleCloudMlV1AutomatedStoppingConfig $automatedStoppingConfig
*/
public function setAutomatedStoppingConfig(GoogleCloudMlV1AutomatedStoppingConfig $automatedStoppingConfig)
{
$this->automatedStoppingConfig = $automatedStoppingConfig;
}
/**
* @return GoogleCloudMlV1AutomatedStoppingConfig
*/
public function getAutomatedStoppingConfig()
{
return $this->automatedStoppingConfig;
}
/**
* Metric specs for the study.
*
* @param GoogleCloudMlV1StudyConfigMetricSpec[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return GoogleCloudMlV1StudyConfigMetricSpec[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Required. The set of parameters to tune.
*
* @param GoogleCloudMlV1StudyConfigParameterSpec[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpec[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfig');

View File

@@ -0,0 +1,84 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigMetricSpec extends \Google\Model
{
/**
* Goal Type will default to maximize.
*/
public const GOAL_GOAL_TYPE_UNSPECIFIED = 'GOAL_TYPE_UNSPECIFIED';
/**
* Maximize the goal metric.
*/
public const GOAL_MAXIMIZE = 'MAXIMIZE';
/**
* Minimize the goal metric.
*/
public const GOAL_MINIMIZE = 'MINIMIZE';
/**
* Required. The optimization goal of the metric.
*
* @var string
*/
public $goal;
/**
* Required. The name of the metric.
*
* @var string
*/
public $metric;
/**
* Required. The optimization goal of the metric.
*
* Accepted values: GOAL_TYPE_UNSPECIFIED, MAXIMIZE, MINIMIZE
*
* @param self::GOAL_* $goal
*/
public function setGoal($goal)
{
$this->goal = $goal;
}
/**
* @return self::GOAL_*
*/
public function getGoal()
{
return $this->goal;
}
/**
* Required. The name of the metric.
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigMetricSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigMetricSpec');

View File

@@ -0,0 +1,283 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpec extends \Google\Collection
{
/**
* By default, no scaling is applied.
*/
public const SCALE_TYPE_SCALE_TYPE_UNSPECIFIED = 'SCALE_TYPE_UNSPECIFIED';
/**
* Scales the feasible space to (0, 1) linearly.
*/
public const SCALE_TYPE_UNIT_LINEAR_SCALE = 'UNIT_LINEAR_SCALE';
/**
* Scales the feasible space logarithmically to (0, 1). The entire feasible
* space must be strictly positive.
*/
public const SCALE_TYPE_UNIT_LOG_SCALE = 'UNIT_LOG_SCALE';
/**
* Scales the feasible space "reverse" logarithmically to (0, 1). The result
* is that values close to the top of the feasible space are spread out more
* than points near the bottom. The entire feasible space must be strictly
* positive.
*/
public const SCALE_TYPE_UNIT_REVERSE_LOG_SCALE = 'UNIT_REVERSE_LOG_SCALE';
/**
* You must specify a valid type. Using this unspecified type will result in
* an error.
*/
public const TYPE_PARAMETER_TYPE_UNSPECIFIED = 'PARAMETER_TYPE_UNSPECIFIED';
/**
* Type for real-valued parameters.
*/
public const TYPE_DOUBLE = 'DOUBLE';
/**
* Type for integral parameters.
*/
public const TYPE_INTEGER = 'INTEGER';
/**
* The parameter is categorical, with a value chosen from the categories
* field.
*/
public const TYPE_CATEGORICAL = 'CATEGORICAL';
/**
* The parameter is real valued, with a fixed set of feasible points. If
* `type==DISCRETE`, feasible_points must be provided, and {`min_value`,
* `max_value`} will be ignored.
*/
public const TYPE_DISCRETE = 'DISCRETE';
protected $collection_key = 'childParameterSpecs';
protected $categoricalValueSpecType = GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec::class;
protected $categoricalValueSpecDataType = '';
protected $childParameterSpecsType = GoogleCloudMlV1StudyConfigParameterSpec::class;
protected $childParameterSpecsDataType = 'array';
protected $discreteValueSpecType = GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec::class;
protected $discreteValueSpecDataType = '';
protected $doubleValueSpecType = GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec::class;
protected $doubleValueSpecDataType = '';
protected $integerValueSpecType = GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec::class;
protected $integerValueSpecDataType = '';
/**
* Required. The parameter name must be unique amongst all ParameterSpecs.
*
* @var string
*/
public $parameter;
protected $parentCategoricalValuesType = GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec::class;
protected $parentCategoricalValuesDataType = '';
protected $parentDiscreteValuesType = GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec::class;
protected $parentDiscreteValuesDataType = '';
protected $parentIntValuesType = GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec::class;
protected $parentIntValuesDataType = '';
/**
* How the parameter should be scaled. Leave unset for categorical parameters.
*
* @var string
*/
public $scaleType;
/**
* Required. The type of the parameter.
*
* @var string
*/
public $type;
/**
* The value spec for a 'CATEGORICAL' parameter.
*
* @param GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec $categoricalValueSpec
*/
public function setCategoricalValueSpec(GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec $categoricalValueSpec)
{
$this->categoricalValueSpec = $categoricalValueSpec;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec
*/
public function getCategoricalValueSpec()
{
return $this->categoricalValueSpec;
}
/**
* A child node is active if the parameter's value matches the child node's
* matching_parent_values. If two items in child_parameter_specs have the same
* name, they must have disjoint matching_parent_values.
*
* @param GoogleCloudMlV1StudyConfigParameterSpec[] $childParameterSpecs
*/
public function setChildParameterSpecs($childParameterSpecs)
{
$this->childParameterSpecs = $childParameterSpecs;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpec[]
*/
public function getChildParameterSpecs()
{
return $this->childParameterSpecs;
}
/**
* The value spec for a 'DISCRETE' parameter.
*
* @param GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec $discreteValueSpec
*/
public function setDiscreteValueSpec(GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec $discreteValueSpec)
{
$this->discreteValueSpec = $discreteValueSpec;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
*/
public function getDiscreteValueSpec()
{
return $this->discreteValueSpec;
}
/**
* The value spec for a 'DOUBLE' parameter.
*
* @param GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec $doubleValueSpec
*/
public function setDoubleValueSpec(GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec $doubleValueSpec)
{
$this->doubleValueSpec = $doubleValueSpec;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec
*/
public function getDoubleValueSpec()
{
return $this->doubleValueSpec;
}
/**
* The value spec for an 'INTEGER' parameter.
*
* @param GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec $integerValueSpec
*/
public function setIntegerValueSpec(GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec $integerValueSpec)
{
$this->integerValueSpec = $integerValueSpec;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec
*/
public function getIntegerValueSpec()
{
return $this->integerValueSpec;
}
/**
* Required. The parameter name must be unique amongst all ParameterSpecs.
*
* @param string $parameter
*/
public function setParameter($parameter)
{
$this->parameter = $parameter;
}
/**
* @return string
*/
public function getParameter()
{
return $this->parameter;
}
/**
* @param GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec $parentCategoricalValues
*/
public function setParentCategoricalValues(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec $parentCategoricalValues)
{
$this->parentCategoricalValues = $parentCategoricalValues;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec
*/
public function getParentCategoricalValues()
{
return $this->parentCategoricalValues;
}
/**
* @param GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec $parentDiscreteValues
*/
public function setParentDiscreteValues(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec $parentDiscreteValues)
{
$this->parentDiscreteValues = $parentDiscreteValues;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec
*/
public function getParentDiscreteValues()
{
return $this->parentDiscreteValues;
}
/**
* @param GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec $parentIntValues
*/
public function setParentIntValues(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec $parentIntValues)
{
$this->parentIntValues = $parentIntValues;
}
/**
* @return GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec
*/
public function getParentIntValues()
{
return $this->parentIntValues;
}
/**
* How the parameter should be scaled. Leave unset for categorical parameters.
*
* Accepted values: SCALE_TYPE_UNSPECIFIED, UNIT_LINEAR_SCALE, UNIT_LOG_SCALE,
* UNIT_REVERSE_LOG_SCALE
*
* @param self::SCALE_TYPE_* $scaleType
*/
public function setScaleType($scaleType)
{
$this->scaleType = $scaleType;
}
/**
* @return self::SCALE_TYPE_*
*/
public function getScaleType()
{
return $this->scaleType;
}
/**
* Required. The type of the parameter.
*
* Accepted values: PARAMETER_TYPE_UNSPECIFIED, DOUBLE, INTEGER, CATEGORICAL,
* DISCRETE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpec');

View File

@@ -0,0 +1,51 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Must be specified if type is `CATEGORICAL`. The list of possible
* categories.
*
* @var string[]
*/
public $values;
/**
* Must be specified if type is `CATEGORICAL`. The list of possible
* categories.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec');

View File

@@ -0,0 +1,44 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Must be specified if type is `DISCRETE`. A list of feasible points. The
* list should be in strictly increasing order. For instance, this parameter
* might have possible settings of 1.5, 2.5, and 4.0. This list should not
* contain more than 1,000 values.
*
* @var []
*/
public $values;
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec');

View File

@@ -0,0 +1,54 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec extends \Google\Model
{
/**
* Must be specified if type is `DOUBLE`. Maximum value of the parameter.
*
* @var
*/
public $maxValue;
/**
* Must be specified if type is `DOUBLE`. Minimum value of the parameter.
*
* @var
*/
public $minValue;
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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec');

View File

@@ -0,0 +1,70 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec extends \Google\Model
{
/**
* Must be specified if type is `INTEGER`. Maximum value of the parameter.
*
* @var string
*/
public $maxValue;
/**
* Must be specified if type is `INTEGER`. Minimum value of the parameter.
*
* @var string
*/
public $minValue;
/**
* Must be specified if type is `INTEGER`. Maximum value of the parameter.
*
* @param string $maxValue
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return string
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Must be specified if type is `INTEGER`. Minimum value of the parameter.
*
* @param string $minValue
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return string
*/
public function getMinValue()
{
return $this->minValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec');

View File

@@ -0,0 +1,51 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Matches values of the parent parameter with type 'CATEGORICAL'. All values
* must exist in `categorical_value_spec` of parent parameter.
*
* @var string[]
*/
public $values;
/**
* Matches values of the parent parameter with type 'CATEGORICAL'. All values
* must exist in `categorical_value_spec` of parent parameter.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec');

View File

@@ -0,0 +1,42 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Matches values of the parent parameter with type 'DISCRETE'. All values
* must exist in `discrete_value_spec` of parent parameter.
*
* @var []
*/
public $values;
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec');

View File

@@ -0,0 +1,51 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Matches values of the parent parameter with type 'INTEGER'. All values must
* lie in `integer_value_spec` of parent parameter.
*
* @var string[]
*/
public $values;
/**
* Matches values of the parent parameter with type 'INTEGER'. All values must
* lie in `integer_value_spec` of parent parameter.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec');

View File

@@ -0,0 +1,114 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1SuggestTrialsMetadata extends \Google\Model
{
/**
* The identifier of the client that is requesting the suggestion.
*
* @var string
*/
public $clientId;
/**
* The time operation was submitted.
*
* @var string
*/
public $createTime;
/**
* The name of the study that the trial belongs to.
*
* @var string
*/
public $study;
/**
* The number of suggestions requested.
*
* @var int
*/
public $suggestionCount;
/**
* The identifier of the client that is requesting the suggestion.
*
* @param string $clientId
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* The time operation was submitted.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The name of the study that the trial belongs to.
*
* @param string $study
*/
public function setStudy($study)
{
$this->study = $study;
}
/**
* @return string
*/
public function getStudy()
{
return $this->study;
}
/**
* The number of suggestions requested.
*
* @param int $suggestionCount
*/
public function setSuggestionCount($suggestionCount)
{
$this->suggestionCount = $suggestionCount;
}
/**
* @return int
*/
public function getSuggestionCount()
{
return $this->suggestionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1SuggestTrialsMetadata::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SuggestTrialsMetadata');

View File

@@ -0,0 +1,76 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1SuggestTrialsRequest extends \Google\Model
{
/**
* Required. The identifier of the client that is requesting the suggestion.
* If multiple SuggestTrialsRequests have the same `client_id`, the service
* will return the identical suggested trial if the trial is pending, and
* provide a new trial if the last suggested trial was completed.
*
* @var string
*/
public $clientId;
/**
* Required. The number of suggestions requested.
*
* @var int
*/
public $suggestionCount;
/**
* Required. The identifier of the client that is requesting the suggestion.
* If multiple SuggestTrialsRequests have the same `client_id`, the service
* will return the identical suggested trial if the trial is pending, and
* provide a new trial if the last suggested trial was completed.
*
* @param string $clientId
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* Required. The number of suggestions requested.
*
* @param int $suggestionCount
*/
public function setSuggestionCount($suggestionCount)
{
$this->suggestionCount = $suggestionCount;
}
/**
* @return int
*/
public function getSuggestionCount()
{
return $this->suggestionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1SuggestTrialsRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SuggestTrialsRequest');

View File

@@ -0,0 +1,130 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1SuggestTrialsResponse extends \Google\Collection
{
/**
* The study state is unspecified.
*/
public const STUDY_STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The study is active.
*/
public const STUDY_STATE_ACTIVE = 'ACTIVE';
/**
* The study is stopped due to an internal error.
*/
public const STUDY_STATE_INACTIVE = 'INACTIVE';
/**
* The study is done when the service exhausts the parameter search space or
* max_trial_count is reached.
*/
public const STUDY_STATE_COMPLETED = 'COMPLETED';
protected $collection_key = 'trials';
/**
* The time at which operation processing completed.
*
* @var string
*/
public $endTime;
/**
* The time at which the operation was started.
*
* @var string
*/
public $startTime;
/**
* The state of the study.
*
* @var string
*/
public $studyState;
protected $trialsType = GoogleCloudMlV1Trial::class;
protected $trialsDataType = 'array';
/**
* The time at which operation processing completed.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* The time at which the operation was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The state of the study.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, INACTIVE, COMPLETED
*
* @param self::STUDY_STATE_* $studyState
*/
public function setStudyState($studyState)
{
$this->studyState = $studyState;
}
/**
* @return self::STUDY_STATE_*
*/
public function getStudyState()
{
return $this->studyState;
}
/**
* A list of trials.
*
* @param GoogleCloudMlV1Trial[] $trials
*/
public function setTrials($trials)
{
$this->trials = $trials;
}
/**
* @return GoogleCloudMlV1Trial[]
*/
public function getTrials()
{
return $this->trials;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1SuggestTrialsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SuggestTrialsResponse');

View File

@@ -0,0 +1,819 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1TrainingInput extends \Google\Collection
{
/**
* A single worker instance. This tier is suitable for learning how to use
* Cloud ML, and for experimenting with new models using small datasets.
*/
public const SCALE_TIER_BASIC = 'BASIC';
/**
* Many workers and a few parameter servers.
*/
public const SCALE_TIER_STANDARD_1 = 'STANDARD_1';
/**
* A large number of workers with many parameter servers.
*/
public const SCALE_TIER_PREMIUM_1 = 'PREMIUM_1';
/**
* A single worker instance [with a GPU](/ai-platform/training/docs/using-
* gpus).
*/
public const SCALE_TIER_BASIC_GPU = 'BASIC_GPU';
/**
* A single worker instance with a [Cloud TPU](/ml-
* engine/docs/tensorflow/using-tpus).
*/
public const SCALE_TIER_BASIC_TPU = 'BASIC_TPU';
/**
* The CUSTOM tier is not a set tier, but rather enables you to use your own
* cluster specification. When you use this tier, set values to configure your
* processing cluster according to these guidelines: * You _must_ set
* `TrainingInput.masterType` to specify the type of machine to use for your
* master node. This is the only required setting. * You _may_ set
* `TrainingInput.workerCount` to specify the number of workers to use. If you
* specify one or more workers, you _must_ also set `TrainingInput.workerType`
* to specify the type of machine to use for your worker nodes. * You _may_
* set `TrainingInput.parameterServerCount` to specify the number of parameter
* servers to use. If you specify one or more parameter servers, you _must_
* also set `TrainingInput.parameterServerType` to specify the type of machine
* to use for your parameter servers. Note that all of your workers must use
* the same machine type, which can be different from your parameter server
* type and master type. Your parameter servers must likewise use the same
* machine type, which can be different from your worker type and master type.
*/
public const SCALE_TIER_CUSTOM = 'CUSTOM';
protected $collection_key = 'packageUris';
/**
* Optional. Command-line arguments passed to the training application when it
* starts. If your job uses a custom container, then the arguments are passed
* to the container's `ENTRYPOINT` command.
*
* @var string[]
*/
public $args;
/**
* Optional. Whether you want AI Platform Training to enable [interactive
* shell access](https://cloud.google.com/ai-platform/training/docs/monitor-
* debug-interactive-shell) to training containers. If set to `true`, you can
* access interactive shells at the URIs given by
* TrainingOutput.web_access_uris or HyperparameterOutput.web_access_uris
* (within TrainingOutput.trials).
*
* @var bool
*/
public $enableWebAccess;
protected $encryptionConfigType = GoogleCloudMlV1EncryptionConfig::class;
protected $encryptionConfigDataType = '';
protected $evaluatorConfigType = GoogleCloudMlV1ReplicaConfig::class;
protected $evaluatorConfigDataType = '';
/**
* Optional. The number of evaluator replicas to use for the training job.
* Each replica in the cluster will be of the type specified in
* `evaluator_type`. This value can only be used when `scale_tier` is set to
* `CUSTOM`. If you set this value, you must also set `evaluator_type`. The
* default value is zero.
*
* @var string
*/
public $evaluatorCount;
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's evaluator nodes. The supported values are the same as those described
* in the entry for `masterType`. This value must be consistent with the
* category of machine type that `masterType` uses. In other words, both must
* be Compute Engine machine types or both must be legacy machine types. This
* value must be present when `scaleTier` is set to `CUSTOM` and
* `evaluatorCount` is greater than zero.
*
* @var string
*/
public $evaluatorType;
protected $hyperparametersType = GoogleCloudMlV1HyperparameterSpec::class;
protected $hyperparametersDataType = '';
/**
* Optional. A Google Cloud Storage path in which to store training outputs
* and other data needed for training. This path is passed to your TensorFlow
* program as the '--job-dir' command-line argument. The benefit of specifying
* this field is that Cloud ML validates the path for use in training.
*
* @var string
*/
public $jobDir;
protected $masterConfigType = GoogleCloudMlV1ReplicaConfig::class;
protected $masterConfigDataType = '';
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's master worker. You must specify this field when `scaleTier` is set to
* `CUSTOM`. You can use certain Compute Engine machine types directly in this
* field. See the [list of compatible Compute Engine machine types](/ai-
* platform/training/docs/machine-types#compute-engine-machine-types).
* Alternatively, you can use the certain legacy machine types in this field.
* See the [list of legacy machine types](/ai-platform/training/docs/machine-
* types#legacy-machine-types). Finally, if you want to use a TPU for
* training, specify `cloud_tpu` in this field. Learn more about the [special
* configuration options for training with TPUs](/ai-
* platform/training/docs/using-tpus#configuring_a_custom_tpu_machine).
*
* @var string
*/
public $masterType;
/**
* Optional. The full name of the [Compute Engine network](/vpc/docs/vpc) to
* which the Job is peered. For example,
* `projects/12345/global/networks/myVPC`. The format of this field is
* `projects/{project}/global/networks/{network}`, where {project} is a
* project number (like `12345`) and {network} is network name. Private
* services access must already be configured for the network. If left
* unspecified, the Job is not peered with any network. [Learn about using VPC
* Network Peering.](/ai-platform/training/docs/vpc-peering).
*
* @var string
*/
public $network;
/**
* Required. The Google Cloud Storage location of the packages with the
* training program and any additional dependencies. The maximum number of
* package URIs is 100.
*
* @var string[]
*/
public $packageUris;
protected $parameterServerConfigType = GoogleCloudMlV1ReplicaConfig::class;
protected $parameterServerConfigDataType = '';
/**
* Optional. The number of parameter server replicas to use for the training
* job. Each replica in the cluster will be of the type specified in
* `parameter_server_type`. This value can only be used when `scale_tier` is
* set to `CUSTOM`. If you set this value, you must also set
* `parameter_server_type`. The default value is zero.
*
* @var string
*/
public $parameterServerCount;
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's parameter server. The supported values are the same as those
* described in the entry for `master_type`. This value must be consistent
* with the category of machine type that `masterType` uses. In other words,
* both must be Compute Engine machine types or both must be legacy machine
* types. This value must be present when `scaleTier` is set to `CUSTOM` and
* `parameter_server_count` is greater than zero.
*
* @var string
*/
public $parameterServerType;
/**
* Required. The Python module name to run after installing the packages.
*
* @var string
*/
public $pythonModule;
/**
* Optional. The version of Python used in training. You must either specify
* this field or specify `masterConfig.imageUri`. The following Python
* versions are available: * Python '3.7' is available when `runtime_version`
* is set to '1.15' or later. * Python '3.5' is available when
* `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7'
* is available when `runtime_version` is set to '1.15' or earlier. Read more
* about the Python versions available for [each runtime version](/ml-
* engine/docs/runtime-version-list).
*
* @var string
*/
public $pythonVersion;
/**
* Required. The region to run the training job in. See the [available
* regions](/ai-platform/training/docs/regions) for AI Platform Training.
*
* @var string
*/
public $region;
/**
* Optional. The AI Platform runtime version to use for training. You must
* either specify this field or specify `masterConfig.imageUri`. For more
* information, see the [runtime version list](/ai-
* platform/training/docs/runtime-version-list) and learn [how to manage
* runtime versions](/ai-platform/training/docs/versioning).
*
* @var string
*/
public $runtimeVersion;
/**
* Required. Specifies the machine types, the number of replicas for workers
* and parameter servers.
*
* @var string
*/
public $scaleTier;
protected $schedulingType = GoogleCloudMlV1Scheduling::class;
protected $schedulingDataType = '';
/**
* Optional. The email address of a service account to use when running the
* training appplication. You must have the `iam.serviceAccounts.actAs`
* permission for the specified service account. In addition, the AI Platform
* Training Google-managed service account must have the
* `roles/iam.serviceAccountAdmin` role for the specified service account.
* [Learn more about configuring a service account.](/ai-
* platform/training/docs/custom-service-account) If not specified, the AI
* Platform Training Google-managed service account is used by default.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. Use `chief` instead of `master` in the `TF_CONFIG` environment
* variable when training with a custom container. Defaults to `false`. [Learn
* more about this field.](/ai-platform/training/docs/distributed-training-
* details#chief-versus-master) This field has no effect for training jobs
* that don't use a custom container.
*
* @var bool
*/
public $useChiefInTfConfig;
protected $workerConfigType = GoogleCloudMlV1ReplicaConfig::class;
protected $workerConfigDataType = '';
/**
* Optional. The number of worker replicas to use for the training job. Each
* replica in the cluster will be of the type specified in `worker_type`. This
* value can only be used when `scale_tier` is set to `CUSTOM`. If you set
* this value, you must also set `worker_type`. The default value is zero.
*
* @var string
*/
public $workerCount;
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's worker nodes. The supported values are the same as those described in
* the entry for `masterType`. This value must be consistent with the category
* of machine type that `masterType` uses. In other words, both must be
* Compute Engine machine types or both must be legacy machine types. If you
* use `cloud_tpu` for this value, see special instructions for [configuring a
* custom TPU machine](/ml-engine/docs/tensorflow/using-
* tpus#configuring_a_custom_tpu_machine). This value must be present when
* `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero.
*
* @var string
*/
public $workerType;
/**
* Optional. Command-line arguments passed to the training application when it
* starts. If your job uses a custom container, then the arguments are passed
* to the container's `ENTRYPOINT` command.
*
* @param string[] $args
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return string[]
*/
public function getArgs()
{
return $this->args;
}
/**
* Optional. Whether you want AI Platform Training to enable [interactive
* shell access](https://cloud.google.com/ai-platform/training/docs/monitor-
* debug-interactive-shell) to training containers. If set to `true`, you can
* access interactive shells at the URIs given by
* TrainingOutput.web_access_uris or HyperparameterOutput.web_access_uris
* (within TrainingOutput.trials).
*
* @param bool $enableWebAccess
*/
public function setEnableWebAccess($enableWebAccess)
{
$this->enableWebAccess = $enableWebAccess;
}
/**
* @return bool
*/
public function getEnableWebAccess()
{
return $this->enableWebAccess;
}
/**
* Optional. Options for using customer-managed encryption keys (CMEK) to
* protect resources created by a training job, instead of using Google's
* default encryption. If this is set, then all resources created by the
* training job will be encrypted with the customer-managed encryption key
* that you specify. [Learn how and when to use CMEK with AI Platform
* Training](/ai-platform/training/docs/cmek).
*
* @param GoogleCloudMlV1EncryptionConfig $encryptionConfig
*/
public function setEncryptionConfig(GoogleCloudMlV1EncryptionConfig $encryptionConfig)
{
$this->encryptionConfig = $encryptionConfig;
}
/**
* @return GoogleCloudMlV1EncryptionConfig
*/
public function getEncryptionConfig()
{
return $this->encryptionConfig;
}
/**
* Optional. The configuration for evaluators. You should only set
* `evaluatorConfig.acceleratorConfig` if `evaluatorType` is set to a Compute
* Engine machine type. [Learn about restrictions on accelerator
* configurations for training.](/ai-platform/training/docs/using-
* gpus#compute-engine-machine-types-with-gpu) Set `evaluatorConfig.imageUri`
* only if you build a custom image for your evaluator. If
* `evaluatorConfig.imageUri` has not been set, AI Platform uses the value of
* `masterConfig.imageUri`. Learn more about [configuring custom
* containers](/ai-platform/training/docs/distributed-training-containers).
*
* @param GoogleCloudMlV1ReplicaConfig $evaluatorConfig
*/
public function setEvaluatorConfig(GoogleCloudMlV1ReplicaConfig $evaluatorConfig)
{
$this->evaluatorConfig = $evaluatorConfig;
}
/**
* @return GoogleCloudMlV1ReplicaConfig
*/
public function getEvaluatorConfig()
{
return $this->evaluatorConfig;
}
/**
* Optional. The number of evaluator replicas to use for the training job.
* Each replica in the cluster will be of the type specified in
* `evaluator_type`. This value can only be used when `scale_tier` is set to
* `CUSTOM`. If you set this value, you must also set `evaluator_type`. The
* default value is zero.
*
* @param string $evaluatorCount
*/
public function setEvaluatorCount($evaluatorCount)
{
$this->evaluatorCount = $evaluatorCount;
}
/**
* @return string
*/
public function getEvaluatorCount()
{
return $this->evaluatorCount;
}
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's evaluator nodes. The supported values are the same as those described
* in the entry for `masterType`. This value must be consistent with the
* category of machine type that `masterType` uses. In other words, both must
* be Compute Engine machine types or both must be legacy machine types. This
* value must be present when `scaleTier` is set to `CUSTOM` and
* `evaluatorCount` is greater than zero.
*
* @param string $evaluatorType
*/
public function setEvaluatorType($evaluatorType)
{
$this->evaluatorType = $evaluatorType;
}
/**
* @return string
*/
public function getEvaluatorType()
{
return $this->evaluatorType;
}
/**
* Optional. The set of Hyperparameters to tune.
*
* @param GoogleCloudMlV1HyperparameterSpec $hyperparameters
*/
public function setHyperparameters(GoogleCloudMlV1HyperparameterSpec $hyperparameters)
{
$this->hyperparameters = $hyperparameters;
}
/**
* @return GoogleCloudMlV1HyperparameterSpec
*/
public function getHyperparameters()
{
return $this->hyperparameters;
}
/**
* Optional. A Google Cloud Storage path in which to store training outputs
* and other data needed for training. This path is passed to your TensorFlow
* program as the '--job-dir' command-line argument. The benefit of specifying
* this field is that Cloud ML validates the path for use in training.
*
* @param string $jobDir
*/
public function setJobDir($jobDir)
{
$this->jobDir = $jobDir;
}
/**
* @return string
*/
public function getJobDir()
{
return $this->jobDir;
}
/**
* Optional. The configuration for your master worker. You should only set
* `masterConfig.acceleratorConfig` if `masterType` is set to a Compute Engine
* machine type. Learn about [restrictions on accelerator configurations for
* training.](/ai-platform/training/docs/using-gpus#compute-engine-machine-
* types-with-gpu) Set `masterConfig.imageUri` only if you build a custom
* image. Only one of `masterConfig.imageUri` and `runtimeVersion` should be
* set. Learn more about [configuring custom containers](/ai-
* platform/training/docs/distributed-training-containers).
*
* @param GoogleCloudMlV1ReplicaConfig $masterConfig
*/
public function setMasterConfig(GoogleCloudMlV1ReplicaConfig $masterConfig)
{
$this->masterConfig = $masterConfig;
}
/**
* @return GoogleCloudMlV1ReplicaConfig
*/
public function getMasterConfig()
{
return $this->masterConfig;
}
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's master worker. You must specify this field when `scaleTier` is set to
* `CUSTOM`. You can use certain Compute Engine machine types directly in this
* field. See the [list of compatible Compute Engine machine types](/ai-
* platform/training/docs/machine-types#compute-engine-machine-types).
* Alternatively, you can use the certain legacy machine types in this field.
* See the [list of legacy machine types](/ai-platform/training/docs/machine-
* types#legacy-machine-types). Finally, if you want to use a TPU for
* training, specify `cloud_tpu` in this field. Learn more about the [special
* configuration options for training with TPUs](/ai-
* platform/training/docs/using-tpus#configuring_a_custom_tpu_machine).
*
* @param string $masterType
*/
public function setMasterType($masterType)
{
$this->masterType = $masterType;
}
/**
* @return string
*/
public function getMasterType()
{
return $this->masterType;
}
/**
* Optional. The full name of the [Compute Engine network](/vpc/docs/vpc) to
* which the Job is peered. For example,
* `projects/12345/global/networks/myVPC`. The format of this field is
* `projects/{project}/global/networks/{network}`, where {project} is a
* project number (like `12345`) and {network} is network name. Private
* services access must already be configured for the network. If left
* unspecified, the Job is not peered with any network. [Learn about using VPC
* Network Peering.](/ai-platform/training/docs/vpc-peering).
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Required. The Google Cloud Storage location of the packages with the
* training program and any additional dependencies. The maximum number of
* package URIs is 100.
*
* @param string[] $packageUris
*/
public function setPackageUris($packageUris)
{
$this->packageUris = $packageUris;
}
/**
* @return string[]
*/
public function getPackageUris()
{
return $this->packageUris;
}
/**
* Optional. The configuration for parameter servers. You should only set
* `parameterServerConfig.acceleratorConfig` if `parameterServerType` is set
* to a Compute Engine machine type. [Learn about restrictions on accelerator
* configurations for training.](/ai-platform/training/docs/using-
* gpus#compute-engine-machine-types-with-gpu) Set
* `parameterServerConfig.imageUri` only if you build a custom image for your
* parameter server. If `parameterServerConfig.imageUri` has not been set, AI
* Platform uses the value of `masterConfig.imageUri`. Learn more about
* [configuring custom containers](/ai-platform/training/docs/distributed-
* training-containers).
*
* @param GoogleCloudMlV1ReplicaConfig $parameterServerConfig
*/
public function setParameterServerConfig(GoogleCloudMlV1ReplicaConfig $parameterServerConfig)
{
$this->parameterServerConfig = $parameterServerConfig;
}
/**
* @return GoogleCloudMlV1ReplicaConfig
*/
public function getParameterServerConfig()
{
return $this->parameterServerConfig;
}
/**
* Optional. The number of parameter server replicas to use for the training
* job. Each replica in the cluster will be of the type specified in
* `parameter_server_type`. This value can only be used when `scale_tier` is
* set to `CUSTOM`. If you set this value, you must also set
* `parameter_server_type`. The default value is zero.
*
* @param string $parameterServerCount
*/
public function setParameterServerCount($parameterServerCount)
{
$this->parameterServerCount = $parameterServerCount;
}
/**
* @return string
*/
public function getParameterServerCount()
{
return $this->parameterServerCount;
}
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's parameter server. The supported values are the same as those
* described in the entry for `master_type`. This value must be consistent
* with the category of machine type that `masterType` uses. In other words,
* both must be Compute Engine machine types or both must be legacy machine
* types. This value must be present when `scaleTier` is set to `CUSTOM` and
* `parameter_server_count` is greater than zero.
*
* @param string $parameterServerType
*/
public function setParameterServerType($parameterServerType)
{
$this->parameterServerType = $parameterServerType;
}
/**
* @return string
*/
public function getParameterServerType()
{
return $this->parameterServerType;
}
/**
* Required. The Python module name to run after installing the packages.
*
* @param string $pythonModule
*/
public function setPythonModule($pythonModule)
{
$this->pythonModule = $pythonModule;
}
/**
* @return string
*/
public function getPythonModule()
{
return $this->pythonModule;
}
/**
* Optional. The version of Python used in training. You must either specify
* this field or specify `masterConfig.imageUri`. The following Python
* versions are available: * Python '3.7' is available when `runtime_version`
* is set to '1.15' or later. * Python '3.5' is available when
* `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7'
* is available when `runtime_version` is set to '1.15' or earlier. Read more
* about the Python versions available for [each runtime version](/ml-
* engine/docs/runtime-version-list).
*
* @param string $pythonVersion
*/
public function setPythonVersion($pythonVersion)
{
$this->pythonVersion = $pythonVersion;
}
/**
* @return string
*/
public function getPythonVersion()
{
return $this->pythonVersion;
}
/**
* Required. The region to run the training job in. See the [available
* regions](/ai-platform/training/docs/regions) for AI Platform Training.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Optional. The AI Platform runtime version to use for training. You must
* either specify this field or specify `masterConfig.imageUri`. For more
* information, see the [runtime version list](/ai-
* platform/training/docs/runtime-version-list) and learn [how to manage
* runtime versions](/ai-platform/training/docs/versioning).
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* Required. Specifies the machine types, the number of replicas for workers
* and parameter servers.
*
* Accepted values: BASIC, STANDARD_1, PREMIUM_1, BASIC_GPU, BASIC_TPU, CUSTOM
*
* @param self::SCALE_TIER_* $scaleTier
*/
public function setScaleTier($scaleTier)
{
$this->scaleTier = $scaleTier;
}
/**
* @return self::SCALE_TIER_*
*/
public function getScaleTier()
{
return $this->scaleTier;
}
/**
* Optional. Scheduling options for a training job.
*
* @param GoogleCloudMlV1Scheduling $scheduling
*/
public function setScheduling(GoogleCloudMlV1Scheduling $scheduling)
{
$this->scheduling = $scheduling;
}
/**
* @return GoogleCloudMlV1Scheduling
*/
public function getScheduling()
{
return $this->scheduling;
}
/**
* Optional. The email address of a service account to use when running the
* training appplication. You must have the `iam.serviceAccounts.actAs`
* permission for the specified service account. In addition, the AI Platform
* Training Google-managed service account must have the
* `roles/iam.serviceAccountAdmin` role for the specified service account.
* [Learn more about configuring a service account.](/ai-
* platform/training/docs/custom-service-account) If not specified, the AI
* Platform Training Google-managed service account is used by default.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. Use `chief` instead of `master` in the `TF_CONFIG` environment
* variable when training with a custom container. Defaults to `false`. [Learn
* more about this field.](/ai-platform/training/docs/distributed-training-
* details#chief-versus-master) This field has no effect for training jobs
* that don't use a custom container.
*
* @param bool $useChiefInTfConfig
*/
public function setUseChiefInTfConfig($useChiefInTfConfig)
{
$this->useChiefInTfConfig = $useChiefInTfConfig;
}
/**
* @return bool
*/
public function getUseChiefInTfConfig()
{
return $this->useChiefInTfConfig;
}
/**
* Optional. The configuration for workers. You should only set
* `workerConfig.acceleratorConfig` if `workerType` is set to a Compute Engine
* machine type. [Learn about restrictions on accelerator configurations for
* training.](/ai-platform/training/docs/using-gpus#compute-engine-machine-
* types-with-gpu) Set `workerConfig.imageUri` only if you build a custom
* image for your worker. If `workerConfig.imageUri` has not been set, AI
* Platform uses the value of `masterConfig.imageUri`. Learn more about
* [configuring custom containers](/ai-platform/training/docs/distributed-
* training-containers).
*
* @param GoogleCloudMlV1ReplicaConfig $workerConfig
*/
public function setWorkerConfig(GoogleCloudMlV1ReplicaConfig $workerConfig)
{
$this->workerConfig = $workerConfig;
}
/**
* @return GoogleCloudMlV1ReplicaConfig
*/
public function getWorkerConfig()
{
return $this->workerConfig;
}
/**
* Optional. The number of worker replicas to use for the training job. Each
* replica in the cluster will be of the type specified in `worker_type`. This
* value can only be used when `scale_tier` is set to `CUSTOM`. If you set
* this value, you must also set `worker_type`. The default value is zero.
*
* @param string $workerCount
*/
public function setWorkerCount($workerCount)
{
$this->workerCount = $workerCount;
}
/**
* @return string
*/
public function getWorkerCount()
{
return $this->workerCount;
}
/**
* Optional. Specifies the type of virtual machine to use for your training
* job's worker nodes. The supported values are the same as those described in
* the entry for `masterType`. This value must be consistent with the category
* of machine type that `masterType` uses. In other words, both must be
* Compute Engine machine types or both must be legacy machine types. If you
* use `cloud_tpu` for this value, see special instructions for [configuring a
* custom TPU machine](/ml-engine/docs/tensorflow/using-
* tpus#configuring_a_custom_tpu_machine). This value must be present when
* `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero.
*
* @param string $workerType
*/
public function setWorkerType($workerType)
{
$this->workerType = $workerType;
}
/**
* @return string
*/
public function getWorkerType()
{
return $this->workerType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1TrainingInput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput');

View File

@@ -0,0 +1,211 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1TrainingOutput extends \Google\Collection
{
protected $collection_key = 'trials';
protected $builtInAlgorithmOutputType = GoogleCloudMlV1BuiltInAlgorithmOutput::class;
protected $builtInAlgorithmOutputDataType = '';
/**
* The number of hyperparameter tuning trials that completed successfully.
* Only set for hyperparameter tuning jobs.
*
* @var string
*/
public $completedTrialCount;
/**
* The amount of ML units consumed by the job.
*
* @var
*/
public $consumedMLUnits;
/**
* The TensorFlow summary tag name used for optimizing hyperparameter tuning
* trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterS
* pec.FIELDS.hyperparameter_metric_tag) for more information. Only set for
* hyperparameter tuning jobs.
*
* @var string
*/
public $hyperparameterMetricTag;
/**
* Whether this job is a built-in Algorithm job.
*
* @var bool
*/
public $isBuiltInAlgorithmJob;
/**
* Whether this job is a hyperparameter tuning job.
*
* @var bool
*/
public $isHyperparameterTuningJob;
protected $trialsType = GoogleCloudMlV1HyperparameterOutput::class;
protected $trialsDataType = 'array';
/**
* Output only. URIs for accessing [interactive
* shells](https://cloud.google.com/ai-platform/training/docs/monitor-debug-
* interactive-shell) (one URI for each training node). Only available if
* training_input.enable_web_access is `true`. The keys are names of each node
* in the training job; for example, `master-replica-0` for the master node,
* `worker-replica-0` for the first worker, and `ps-replica-0` for the first
* parameter server. The values are the URIs for each node's interactive
* shell.
*
* @var string[]
*/
public $webAccessUris;
/**
* Details related to built-in algorithms jobs. Only set for built-in
* algorithms jobs.
*
* @param GoogleCloudMlV1BuiltInAlgorithmOutput $builtInAlgorithmOutput
*/
public function setBuiltInAlgorithmOutput(GoogleCloudMlV1BuiltInAlgorithmOutput $builtInAlgorithmOutput)
{
$this->builtInAlgorithmOutput = $builtInAlgorithmOutput;
}
/**
* @return GoogleCloudMlV1BuiltInAlgorithmOutput
*/
public function getBuiltInAlgorithmOutput()
{
return $this->builtInAlgorithmOutput;
}
/**
* The number of hyperparameter tuning trials that completed successfully.
* Only set for hyperparameter tuning jobs.
*
* @param string $completedTrialCount
*/
public function setCompletedTrialCount($completedTrialCount)
{
$this->completedTrialCount = $completedTrialCount;
}
/**
* @return string
*/
public function getCompletedTrialCount()
{
return $this->completedTrialCount;
}
public function setConsumedMLUnits($consumedMLUnits)
{
$this->consumedMLUnits = $consumedMLUnits;
}
public function getConsumedMLUnits()
{
return $this->consumedMLUnits;
}
/**
* The TensorFlow summary tag name used for optimizing hyperparameter tuning
* trials. See [`HyperparameterSpec.hyperparameterMetricTag`](#HyperparameterS
* pec.FIELDS.hyperparameter_metric_tag) for more information. Only set for
* hyperparameter tuning jobs.
*
* @param string $hyperparameterMetricTag
*/
public function setHyperparameterMetricTag($hyperparameterMetricTag)
{
$this->hyperparameterMetricTag = $hyperparameterMetricTag;
}
/**
* @return string
*/
public function getHyperparameterMetricTag()
{
return $this->hyperparameterMetricTag;
}
/**
* Whether this job is a built-in Algorithm job.
*
* @param bool $isBuiltInAlgorithmJob
*/
public function setIsBuiltInAlgorithmJob($isBuiltInAlgorithmJob)
{
$this->isBuiltInAlgorithmJob = $isBuiltInAlgorithmJob;
}
/**
* @return bool
*/
public function getIsBuiltInAlgorithmJob()
{
return $this->isBuiltInAlgorithmJob;
}
/**
* Whether this job is a hyperparameter tuning job.
*
* @param bool $isHyperparameterTuningJob
*/
public function setIsHyperparameterTuningJob($isHyperparameterTuningJob)
{
$this->isHyperparameterTuningJob = $isHyperparameterTuningJob;
}
/**
* @return bool
*/
public function getIsHyperparameterTuningJob()
{
return $this->isHyperparameterTuningJob;
}
/**
* Results for individual Hyperparameter trials. Only set for hyperparameter
* tuning jobs.
*
* @param GoogleCloudMlV1HyperparameterOutput[] $trials
*/
public function setTrials($trials)
{
$this->trials = $trials;
}
/**
* @return GoogleCloudMlV1HyperparameterOutput[]
*/
public function getTrials()
{
return $this->trials;
}
/**
* Output only. URIs for accessing [interactive
* shells](https://cloud.google.com/ai-platform/training/docs/monitor-debug-
* interactive-shell) (one URI for each training node). Only available if
* training_input.enable_web_access is `true`. The keys are names of each node
* in the training job; for example, `master-replica-0` for the master node,
* `worker-replica-0` for the first worker, and `ps-replica-0` for the first
* parameter server. The values are the URIs for each node's interactive
* shell.
*
* @param string[] $webAccessUris
*/
public function setWebAccessUris($webAccessUris)
{
$this->webAccessUris = $webAccessUris;
}
/**
* @return string[]
*/
public function getWebAccessUris()
{
return $this->webAccessUris;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1TrainingOutput::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingOutput');

View File

@@ -0,0 +1,265 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Trial extends \Google\Collection
{
/**
* The trial state is unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Indicates that a specific trial has been requested, but it has not yet been
* suggested by the service.
*/
public const STATE_REQUESTED = 'REQUESTED';
/**
* Indicates that the trial has been suggested.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Indicates that the trial is done, and either has a final_measurement set,
* or is marked as trial_infeasible.
*/
public const STATE_COMPLETED = 'COMPLETED';
/**
* Indicates that the trial should stop according to the service.
*/
public const STATE_STOPPING = 'STOPPING';
protected $collection_key = 'parameters';
/**
* Output only. The identifier of the client that originally requested this
* trial.
*
* @var string
*/
public $clientId;
/**
* Output only. Time at which the trial's status changed to COMPLETED.
*
* @var string
*/
public $endTime;
protected $finalMeasurementType = GoogleCloudMlV1Measurement::class;
protected $finalMeasurementDataType = '';
/**
* Output only. A human readable string describing why the trial is
* infeasible. This should only be set if trial_infeasible is true.
*
* @var string
*/
public $infeasibleReason;
protected $measurementsType = GoogleCloudMlV1Measurement::class;
protected $measurementsDataType = 'array';
/**
* Output only. Name of the trial assigned by the service.
*
* @var string
*/
public $name;
protected $parametersType = GoogleCloudMlV1TrialParameter::class;
protected $parametersDataType = 'array';
/**
* Output only. Time at which the trial was started.
*
* @var string
*/
public $startTime;
/**
* The detailed state of a trial.
*
* @var string
*/
public $state;
/**
* Output only. If true, the parameters in this trial are not attempted again.
*
* @var bool
*/
public $trialInfeasible;
/**
* Output only. The identifier of the client that originally requested this
* trial.
*
* @param string $clientId
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* Output only. Time at which the trial's status changed to COMPLETED.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* The final measurement containing the objective value.
*
* @param GoogleCloudMlV1Measurement $finalMeasurement
*/
public function setFinalMeasurement(GoogleCloudMlV1Measurement $finalMeasurement)
{
$this->finalMeasurement = $finalMeasurement;
}
/**
* @return GoogleCloudMlV1Measurement
*/
public function getFinalMeasurement()
{
return $this->finalMeasurement;
}
/**
* Output only. A human readable string describing why the trial is
* infeasible. This should only be set if trial_infeasible is true.
*
* @param string $infeasibleReason
*/
public function setInfeasibleReason($infeasibleReason)
{
$this->infeasibleReason = $infeasibleReason;
}
/**
* @return string
*/
public function getInfeasibleReason()
{
return $this->infeasibleReason;
}
/**
* A list of measurements that are strictly lexicographically ordered by their
* induced tuples (steps, elapsed_time). These are used for early stopping
* computations.
*
* @param GoogleCloudMlV1Measurement[] $measurements
*/
public function setMeasurements($measurements)
{
$this->measurements = $measurements;
}
/**
* @return GoogleCloudMlV1Measurement[]
*/
public function getMeasurements()
{
return $this->measurements;
}
/**
* Output only. Name of the trial assigned by the service.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The parameters of the trial.
*
* @param GoogleCloudMlV1TrialParameter[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return GoogleCloudMlV1TrialParameter[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Output only. Time at which the trial was started.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The detailed state of a trial.
*
* Accepted values: STATE_UNSPECIFIED, REQUESTED, ACTIVE, COMPLETED, STOPPING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. If true, the parameters in this trial are not attempted again.
*
* @param bool $trialInfeasible
*/
public function setTrialInfeasible($trialInfeasible)
{
$this->trialInfeasible = $trialInfeasible;
}
/**
* @return bool
*/
public function getTrialInfeasible()
{
return $this->trialInfeasible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Trial::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Trial');

View File

@@ -0,0 +1,106 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1TrialParameter extends \Google\Model
{
/**
* Must be set if ParameterType is DOUBLE or DISCRETE.
*
* @var
*/
public $floatValue;
/**
* Must be set if ParameterType is INTEGER
*
* @var string
*/
public $intValue;
/**
* The name of the parameter.
*
* @var string
*/
public $parameter;
/**
* Must be set if ParameterTypeis CATEGORICAL
*
* @var string
*/
public $stringValue;
public function setFloatValue($floatValue)
{
$this->floatValue = $floatValue;
}
public function getFloatValue()
{
return $this->floatValue;
}
/**
* Must be set if ParameterType is INTEGER
*
* @param string $intValue
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* The name of the parameter.
*
* @param string $parameter
*/
public function setParameter($parameter)
{
$this->parameter = $parameter;
}
/**
* @return string
*/
public function getParameter()
{
return $this->parameter;
}
/**
* Must be set if ParameterTypeis CATEGORICAL
*
* @param string $stringValue
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1TrialParameter::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrialParameter');

View File

@@ -0,0 +1,827 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1Version extends \Google\Collection
{
/**
* Unspecified framework. Assigns a value based on the file suffix.
*/
public const FRAMEWORK_FRAMEWORK_UNSPECIFIED = 'FRAMEWORK_UNSPECIFIED';
/**
* Tensorflow framework.
*/
public const FRAMEWORK_TENSORFLOW = 'TENSORFLOW';
/**
* Scikit-learn framework.
*/
public const FRAMEWORK_SCIKIT_LEARN = 'SCIKIT_LEARN';
/**
* XGBoost framework.
*/
public const FRAMEWORK_XGBOOST = 'XGBOOST';
/**
* The version state is unspecified.
*/
public const STATE_UNKNOWN = 'UNKNOWN';
/**
* The version is ready for prediction.
*/
public const STATE_READY = 'READY';
/**
* The version is being created. New UpdateVersion and DeleteVersion requests
* will fail if a version is in the CREATING state.
*/
public const STATE_CREATING = 'CREATING';
/**
* The version failed to be created, possibly cancelled. `error_message`
* should contain the details of the failure.
*/
public const STATE_FAILED = 'FAILED';
/**
* The version is being deleted. New UpdateVersion and DeleteVersion requests
* will fail if a version is in the DELETING state.
*/
public const STATE_DELETING = 'DELETING';
/**
* The version is being updated. New UpdateVersion and DeleteVersion requests
* will fail if a version is in the UPDATING state.
*/
public const STATE_UPDATING = 'UPDATING';
protected $collection_key = 'packageUris';
protected $acceleratorConfigType = GoogleCloudMlV1AcceleratorConfig::class;
protected $acceleratorConfigDataType = '';
protected $autoScalingType = GoogleCloudMlV1AutoScaling::class;
protected $autoScalingDataType = '';
protected $containerType = GoogleCloudMlV1ContainerSpec::class;
protected $containerDataType = '';
/**
* Output only. The time the version was created.
*
* @var string
*/
public $createTime;
/**
* The Cloud Storage URI of a directory containing trained model artifacts to
* be used to create the model version. See the [guide to deploying
* models](/ai-platform/prediction/docs/deploying-models) for more
* information. The total number of files under this directory must not exceed
* 1000. During projects.models.versions.create, AI Platform Prediction copies
* all files from the specified directory to a location managed by the
* service. From then on, AI Platform Prediction uses these copies of the
* model artifacts to serve predictions, not the original files in Cloud
* Storage, so this location is useful only as a historical record. If you
* specify container, then this field is optional. Otherwise, it is required.
* Learn [how to use this field with a custom container](/ai-
* platform/prediction/docs/custom-container-requirements#artifacts).
*
* @var string
*/
public $deploymentUri;
/**
* Optional. The description specified for the version when it was created.
*
* @var string
*/
public $description;
/**
* Output only. The details of a failure or a cancellation.
*
* @var string
*/
public $errorMessage;
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a model from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform model updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetVersion`, and systems are expected to
* put that etag in the request to `UpdateVersion` to ensure that their change
* will be applied to the model as intended.
*
* @var string
*/
public $etag;
protected $explanationConfigType = GoogleCloudMlV1ExplanationConfig::class;
protected $explanationConfigDataType = '';
/**
* Optional. The machine learning framework AI Platform uses to train this
* version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`,
* `XGBOOST`. If you do not specify a framework, AI Platform will analyze
* files in the deployment_uri to determine a framework. If you choose
* `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the
* model to 1.4 or greater. Do **not** specify a framework if you're deploying
* a [custom prediction routine](/ai-platform/prediction/docs/custom-
* prediction-routines) or if you're using a [custom container](/ai-
* platform/prediction/docs/use-custom-container).
*
* @var string
*/
public $framework;
/**
* Output only. If true, this version will be used to handle prediction
* requests that do not specify a version. You can change the default version
* by calling projects.methods.versions.setDefault.
*
* @var bool
*/
public $isDefault;
/**
* Optional. One or more labels that you can add, to organize your model
* versions. Each label is a key-value pair, where both the key and the value
* are arbitrary strings that you supply. For more information, see the
* documentation on using labels. Note that this field is not updatable for
* mls1* models.
*
* @var string[]
*/
public $labels;
/**
* Output only. The [AI Platform (Unified)
* `Model`](https://cloud.google.com/ai-platform-
* unified/docs/reference/rest/v1beta1/projects.locations.models) ID for the
* last [model migration](https://cloud.google.com/ai-platform-
* unified/docs/start/migrating-to-ai-platform-unified).
*
* @var string
*/
public $lastMigrationModelId;
/**
* Output only. The last time this version was successfully [migrated to AI
* Platform (Unified)](https://cloud.google.com/ai-platform-
* unified/docs/start/migrating-to-ai-platform-unified).
*
* @var string
*/
public $lastMigrationTime;
/**
* Output only. The time the version was last used for prediction.
*
* @var string
*/
public $lastUseTime;
/**
* Optional. The type of machine on which to serve the model. Currently only
* applies to online prediction service. To learn about valid values for this
* field, read [Choosing a machine type for online prediction](/ai-
* platform/prediction/docs/machine-types-online-prediction). If this field is
* not specified and you are using a [regional endpoint](/ai-
* platform/prediction/docs/regional-endpoints), then the machine type
* defaults to `n1-standard-2`. If this field is not specified and you are
* using the global endpoint (`ml.googleapis.com`), then the machine type
* defaults to `mls1-c1-m2`.
*
* @var string
*/
public $machineType;
protected $manualScalingType = GoogleCloudMlV1ManualScaling::class;
protected $manualScalingDataType = '';
/**
* Required. The name specified for the version when it was created. The
* version name must be unique within the model it is created in.
*
* @var string
*/
public $name;
/**
* Optional. Cloud Storage paths (`gs://…`) of packages for [custom prediction
* routines](/ml-engine/docs/tensorflow/custom-prediction-routines) or
* [scikit-learn pipelines with custom code](/ml-engine/docs/scikit/exporting-
* for-prediction#custom-pipeline-code). For a custom prediction routine, one
* of these packages must contain your Predictor class (see
* [`predictionClass`](#Version.FIELDS.prediction_class)). Additionally,
* include any dependencies used by your Predictor or scikit-learn pipeline
* uses that are not already included in your selected [runtime version](/ml-
* engine/docs/tensorflow/runtime-version-list). If you specify this field,
* you must also set [`runtimeVersion`](#Version.FIELDS.runtime_version) to
* 1.4 or greater.
*
* @var string[]
*/
public $packageUris;
/**
* Optional. The fully qualified name (module_name.class_name) of a class that
* implements the Predictor interface described in this reference field. The
* module containing this class should be included in a package provided to
* the [`packageUris` field](#Version.FIELDS.package_uris). Specify this field
* if and only if you are deploying a [custom prediction routine (beta)](/ml-
* engine/docs/tensorflow/custom-prediction-routines). If you specify this
* field, you must set [`runtimeVersion`](#Version.FIELDS.runtime_version) to
* 1.4 or greater and you must set `machineType` to a [legacy (MLS1) machine
* type](/ml-engine/docs/machine-types-online-prediction). The following code
* sample provides the Predictor interface: class Predictor(object): Interface
* for constructing custom predictors. def predict(self, instances, **kwargs):
* Performs custom prediction. Instances are the decoded values from the
* request. They have already been deserialized from JSON. Args: instances: A
* list of prediction input instances. **kwargs: A dictionary of keyword args
* provided as additional fields on the predict request body. Returns: A list
* of outputs containing the prediction results. This list must be JSON
* serializable. raise NotImplementedError() @classmethod def from_path(cls,
* model_dir): Creates an instance of Predictor using the given path. Loading
* of the predictor should be done in this method. Args: model_dir: The local
* directory that contains the exported model file along with any additional
* files uploaded when creating the version resource. Returns: An instance
* implementing this Predictor class. raise NotImplementedError() Learn more
* about [the Predictor interface and custom prediction routines](/ml-
* engine/docs/tensorflow/custom-prediction-routines).
*
* @var string
*/
public $predictionClass;
/**
* Required. The version of Python used in prediction. The following Python
* versions are available: * Python '3.7' is available when `runtime_version`
* is set to '1.15' or later. * Python '3.5' is available when
* `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7'
* is available when `runtime_version` is set to '1.15' or earlier. Read more
* about the Python versions available for [each runtime version](/ml-
* engine/docs/runtime-version-list).
*
* @var string
*/
public $pythonVersion;
protected $requestLoggingConfigType = GoogleCloudMlV1RequestLoggingConfig::class;
protected $requestLoggingConfigDataType = '';
protected $routesType = GoogleCloudMlV1RouteMap::class;
protected $routesDataType = '';
/**
* Required. The AI Platform runtime version to use for this deployment. For
* more information, see the [runtime version list](/ml-engine/docs/runtime-
* version-list) and [how to manage runtime versions](/ml-
* engine/docs/versioning).
*
* @var string
*/
public $runtimeVersion;
/**
* Optional. Specifies the service account for resource access control. If you
* specify this field, then you must also specify either the `containerSpec`
* or the `predictionClass` field. Learn more about [using a custom service
* account](/ai-platform/prediction/docs/custom-service-account).
*
* @var string
*/
public $serviceAccount;
/**
* Output only. The state of a version.
*
* @var string
*/
public $state;
/**
* Optional. Accelerator config for using GPUs for online prediction (beta).
* Only specify this field if you have specified a Compute Engine (N1) machine
* type in the `machineType` field. Learn more about [using GPUs for online
* prediction](/ml-engine/docs/machine-types-online-prediction#gpus).
*
* @param GoogleCloudMlV1AcceleratorConfig $acceleratorConfig
*/
public function setAcceleratorConfig(GoogleCloudMlV1AcceleratorConfig $acceleratorConfig)
{
$this->acceleratorConfig = $acceleratorConfig;
}
/**
* @return GoogleCloudMlV1AcceleratorConfig
*/
public function getAcceleratorConfig()
{
return $this->acceleratorConfig;
}
/**
* Automatically scale the number of nodes used to serve the model in response
* to increases and decreases in traffic. Care should be taken to ramp up
* traffic according to the model's ability to scale or you will start seeing
* increases in latency and 429 response codes.
*
* @param GoogleCloudMlV1AutoScaling $autoScaling
*/
public function setAutoScaling(GoogleCloudMlV1AutoScaling $autoScaling)
{
$this->autoScaling = $autoScaling;
}
/**
* @return GoogleCloudMlV1AutoScaling
*/
public function getAutoScaling()
{
return $this->autoScaling;
}
/**
* Optional. Specifies a custom container to use for serving predictions. If
* you specify this field, then `machineType` is required. If you specify this
* field, then `deploymentUri` is optional. If you specify this field, then
* you must not specify `runtimeVersion`, `packageUris`, `framework`,
* `pythonVersion`, or `predictionClass`.
*
* @param GoogleCloudMlV1ContainerSpec $container
*/
public function setContainer(GoogleCloudMlV1ContainerSpec $container)
{
$this->container = $container;
}
/**
* @return GoogleCloudMlV1ContainerSpec
*/
public function getContainer()
{
return $this->container;
}
/**
* Output only. The time the version was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The Cloud Storage URI of a directory containing trained model artifacts to
* be used to create the model version. See the [guide to deploying
* models](/ai-platform/prediction/docs/deploying-models) for more
* information. The total number of files under this directory must not exceed
* 1000. During projects.models.versions.create, AI Platform Prediction copies
* all files from the specified directory to a location managed by the
* service. From then on, AI Platform Prediction uses these copies of the
* model artifacts to serve predictions, not the original files in Cloud
* Storage, so this location is useful only as a historical record. If you
* specify container, then this field is optional. Otherwise, it is required.
* Learn [how to use this field with a custom container](/ai-
* platform/prediction/docs/custom-container-requirements#artifacts).
*
* @param string $deploymentUri
*/
public function setDeploymentUri($deploymentUri)
{
$this->deploymentUri = $deploymentUri;
}
/**
* @return string
*/
public function getDeploymentUri()
{
return $this->deploymentUri;
}
/**
* Optional. The description specified for the version when it was created.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The details of a failure or a cancellation.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a model from overwriting each other. It is strongly
* suggested that systems make use of the `etag` in the read-modify-write
* cycle to perform model updates in order to avoid race conditions: An `etag`
* is returned in the response to `GetVersion`, and systems are expected to
* put that etag in the request to `UpdateVersion` to ensure that their change
* will be applied to the model as intended.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Configures explainability features on the model's version. Some
* explanation features require additional metadata to be loaded as part of
* the model payload.
*
* @param GoogleCloudMlV1ExplanationConfig $explanationConfig
*/
public function setExplanationConfig(GoogleCloudMlV1ExplanationConfig $explanationConfig)
{
$this->explanationConfig = $explanationConfig;
}
/**
* @return GoogleCloudMlV1ExplanationConfig
*/
public function getExplanationConfig()
{
return $this->explanationConfig;
}
/**
* Optional. The machine learning framework AI Platform uses to train this
* version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`,
* `XGBOOST`. If you do not specify a framework, AI Platform will analyze
* files in the deployment_uri to determine a framework. If you choose
* `SCIKIT_LEARN` or `XGBOOST`, you must also set the runtime version of the
* model to 1.4 or greater. Do **not** specify a framework if you're deploying
* a [custom prediction routine](/ai-platform/prediction/docs/custom-
* prediction-routines) or if you're using a [custom container](/ai-
* platform/prediction/docs/use-custom-container).
*
* Accepted values: FRAMEWORK_UNSPECIFIED, TENSORFLOW, SCIKIT_LEARN, XGBOOST
*
* @param self::FRAMEWORK_* $framework
*/
public function setFramework($framework)
{
$this->framework = $framework;
}
/**
* @return self::FRAMEWORK_*
*/
public function getFramework()
{
return $this->framework;
}
/**
* Output only. If true, this version will be used to handle prediction
* requests that do not specify a version. You can change the default version
* by calling projects.methods.versions.setDefault.
*
* @param bool $isDefault
*/
public function setIsDefault($isDefault)
{
$this->isDefault = $isDefault;
}
/**
* @return bool
*/
public function getIsDefault()
{
return $this->isDefault;
}
/**
* Optional. One or more labels that you can add, to organize your model
* versions. Each label is a key-value pair, where both the key and the value
* are arbitrary strings that you supply. For more information, see the
* documentation on using labels. Note that this field is not updatable for
* mls1* models.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The [AI Platform (Unified)
* `Model`](https://cloud.google.com/ai-platform-
* unified/docs/reference/rest/v1beta1/projects.locations.models) ID for the
* last [model migration](https://cloud.google.com/ai-platform-
* unified/docs/start/migrating-to-ai-platform-unified).
*
* @param string $lastMigrationModelId
*/
public function setLastMigrationModelId($lastMigrationModelId)
{
$this->lastMigrationModelId = $lastMigrationModelId;
}
/**
* @return string
*/
public function getLastMigrationModelId()
{
return $this->lastMigrationModelId;
}
/**
* Output only. The last time this version was successfully [migrated to AI
* Platform (Unified)](https://cloud.google.com/ai-platform-
* unified/docs/start/migrating-to-ai-platform-unified).
*
* @param string $lastMigrationTime
*/
public function setLastMigrationTime($lastMigrationTime)
{
$this->lastMigrationTime = $lastMigrationTime;
}
/**
* @return string
*/
public function getLastMigrationTime()
{
return $this->lastMigrationTime;
}
/**
* Output only. The time the version was last used for prediction.
*
* @param string $lastUseTime
*/
public function setLastUseTime($lastUseTime)
{
$this->lastUseTime = $lastUseTime;
}
/**
* @return string
*/
public function getLastUseTime()
{
return $this->lastUseTime;
}
/**
* Optional. The type of machine on which to serve the model. Currently only
* applies to online prediction service. To learn about valid values for this
* field, read [Choosing a machine type for online prediction](/ai-
* platform/prediction/docs/machine-types-online-prediction). If this field is
* not specified and you are using a [regional endpoint](/ai-
* platform/prediction/docs/regional-endpoints), then the machine type
* defaults to `n1-standard-2`. If this field is not specified and you are
* using the global endpoint (`ml.googleapis.com`), then the machine type
* defaults to `mls1-c1-m2`.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Manually select the number of nodes to use for serving the model. You
* should generally use `auto_scaling` with an appropriate `min_nodes`
* instead, but this option is available if you want more predictable billing.
* Beware that latency and error rates will increase if the traffic exceeds
* that capability of the system to serve it based on the selected number of
* nodes.
*
* @param GoogleCloudMlV1ManualScaling $manualScaling
*/
public function setManualScaling(GoogleCloudMlV1ManualScaling $manualScaling)
{
$this->manualScaling = $manualScaling;
}
/**
* @return GoogleCloudMlV1ManualScaling
*/
public function getManualScaling()
{
return $this->manualScaling;
}
/**
* Required. The name specified for the version when it was created. The
* version name must be unique within the model it is created in.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Cloud Storage paths (`gs://…`) of packages for [custom prediction
* routines](/ml-engine/docs/tensorflow/custom-prediction-routines) or
* [scikit-learn pipelines with custom code](/ml-engine/docs/scikit/exporting-
* for-prediction#custom-pipeline-code). For a custom prediction routine, one
* of these packages must contain your Predictor class (see
* [`predictionClass`](#Version.FIELDS.prediction_class)). Additionally,
* include any dependencies used by your Predictor or scikit-learn pipeline
* uses that are not already included in your selected [runtime version](/ml-
* engine/docs/tensorflow/runtime-version-list). If you specify this field,
* you must also set [`runtimeVersion`](#Version.FIELDS.runtime_version) to
* 1.4 or greater.
*
* @param string[] $packageUris
*/
public function setPackageUris($packageUris)
{
$this->packageUris = $packageUris;
}
/**
* @return string[]
*/
public function getPackageUris()
{
return $this->packageUris;
}
/**
* Optional. The fully qualified name (module_name.class_name) of a class that
* implements the Predictor interface described in this reference field. The
* module containing this class should be included in a package provided to
* the [`packageUris` field](#Version.FIELDS.package_uris). Specify this field
* if and only if you are deploying a [custom prediction routine (beta)](/ml-
* engine/docs/tensorflow/custom-prediction-routines). If you specify this
* field, you must set [`runtimeVersion`](#Version.FIELDS.runtime_version) to
* 1.4 or greater and you must set `machineType` to a [legacy (MLS1) machine
* type](/ml-engine/docs/machine-types-online-prediction). The following code
* sample provides the Predictor interface: class Predictor(object): Interface
* for constructing custom predictors. def predict(self, instances, **kwargs):
* Performs custom prediction. Instances are the decoded values from the
* request. They have already been deserialized from JSON. Args: instances: A
* list of prediction input instances. **kwargs: A dictionary of keyword args
* provided as additional fields on the predict request body. Returns: A list
* of outputs containing the prediction results. This list must be JSON
* serializable. raise NotImplementedError() @classmethod def from_path(cls,
* model_dir): Creates an instance of Predictor using the given path. Loading
* of the predictor should be done in this method. Args: model_dir: The local
* directory that contains the exported model file along with any additional
* files uploaded when creating the version resource. Returns: An instance
* implementing this Predictor class. raise NotImplementedError() Learn more
* about [the Predictor interface and custom prediction routines](/ml-
* engine/docs/tensorflow/custom-prediction-routines).
*
* @param string $predictionClass
*/
public function setPredictionClass($predictionClass)
{
$this->predictionClass = $predictionClass;
}
/**
* @return string
*/
public function getPredictionClass()
{
return $this->predictionClass;
}
/**
* Required. The version of Python used in prediction. The following Python
* versions are available: * Python '3.7' is available when `runtime_version`
* is set to '1.15' or later. * Python '3.5' is available when
* `runtime_version` is set to a version from '1.4' to '1.14'. * Python '2.7'
* is available when `runtime_version` is set to '1.15' or earlier. Read more
* about the Python versions available for [each runtime version](/ml-
* engine/docs/runtime-version-list).
*
* @param string $pythonVersion
*/
public function setPythonVersion($pythonVersion)
{
$this->pythonVersion = $pythonVersion;
}
/**
* @return string
*/
public function getPythonVersion()
{
return $this->pythonVersion;
}
/**
* Optional. *Only* specify this field in a projects.models.versions.patch
* request. Specifying it in a projects.models.versions.create request has no
* effect. Configures the request-response pair logging on predictions from
* this Version.
*
* @param GoogleCloudMlV1RequestLoggingConfig $requestLoggingConfig
*/
public function setRequestLoggingConfig(GoogleCloudMlV1RequestLoggingConfig $requestLoggingConfig)
{
$this->requestLoggingConfig = $requestLoggingConfig;
}
/**
* @return GoogleCloudMlV1RequestLoggingConfig
*/
public function getRequestLoggingConfig()
{
return $this->requestLoggingConfig;
}
/**
* Optional. Specifies paths on a custom container's HTTP server where AI
* Platform Prediction sends certain requests. If you specify this field, then
* you must also specify the `container` field. If you specify the `container`
* field and do not specify this field, it defaults to the following: ```json
* { "predict": "/v1/models/MODEL/versions/VERSION:predict", "health":
* "/v1/models/MODEL/versions/VERSION" } ``` See RouteMap for more details
* about these default values.
*
* @param GoogleCloudMlV1RouteMap $routes
*/
public function setRoutes(GoogleCloudMlV1RouteMap $routes)
{
$this->routes = $routes;
}
/**
* @return GoogleCloudMlV1RouteMap
*/
public function getRoutes()
{
return $this->routes;
}
/**
* Required. The AI Platform runtime version to use for this deployment. For
* more information, see the [runtime version list](/ml-engine/docs/runtime-
* version-list) and [how to manage runtime versions](/ml-
* engine/docs/versioning).
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
/**
* Optional. Specifies the service account for resource access control. If you
* specify this field, then you must also specify either the `containerSpec`
* or the `predictionClass` field. Learn more about [using a custom service
* account](/ai-platform/prediction/docs/custom-service-account).
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Output only. The state of a version.
*
* Accepted values: UNKNOWN, READY, CREATING, FAILED, DELETING, UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1Version::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version');

View File

@@ -0,0 +1,52 @@
<?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\CloudMachineLearningEngine;
class GoogleCloudMlV1XraiAttribution extends \Google\Model
{
/**
* Number of steps for approximating the path integral. A good value to start
* is 50 and gradually increase until the sum to diff property is met within
* the desired error range.
*
* @var int
*/
public $numIntegralSteps;
/**
* Number of steps for approximating the path integral. A good value to start
* is 50 and gradually increase until the sum to diff property is met within
* the desired error range.
*
* @param int $numIntegralSteps
*/
public function setNumIntegralSteps($numIntegralSteps)
{
$this->numIntegralSteps = $numIntegralSteps;
}
/**
* @return int
*/
public function getNumIntegralSteps()
{
return $this->numIntegralSteps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudMlV1XraiAttribution::class, 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1XraiAttribution');

View File

@@ -0,0 +1,71 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = GoogleIamV1AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param GoogleIamV1AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return GoogleIamV1AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1AuditConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1AuditConfig');

View File

@@ -0,0 +1,91 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1AuditLogConfig::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1AuditLogConfig');

View File

@@ -0,0 +1,216 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param GoogleTypeExpr $condition
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1Binding::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1Binding');

View File

@@ -0,0 +1,165 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = GoogleIamV1AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = GoogleIamV1Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param GoogleIamV1AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return GoogleIamV1AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param GoogleIamV1Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return GoogleIamV1Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1Policy::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1Policy');

View File

@@ -0,0 +1,72 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1SetIamPolicyRequest extends \Google\Model
{
protected $policyType = GoogleIamV1Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param GoogleIamV1Policy $policy
*/
public function setPolicy(GoogleIamV1Policy $policy)
{
$this->policy = $policy;
}
/**
* @return GoogleIamV1Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1SetIamPolicyRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1SetIamPolicyRequest');

View File

@@ -0,0 +1,55 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = '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).
*
* @var string[]
*/
public $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).
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1TestIamPermissionsRequest::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1TestIamPermissionsRequest');

View File

@@ -0,0 +1,51 @@
<?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\CloudMachineLearningEngine;
class GoogleIamV1TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1TestIamPermissionsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleIamV1TestIamPermissionsResponse');

View File

@@ -0,0 +1,67 @@
<?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\CloudMachineLearningEngine;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_CloudMachineLearningEngine_GoogleLongrunningListOperationsResponse');

View File

@@ -0,0 +1,158 @@
<?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\CloudMachineLearningEngine;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation');

View File

@@ -0,0 +1,25 @@
<?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\CloudMachineLearningEngine;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty');

View File

@@ -0,0 +1,99 @@
<?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\CloudMachineLearningEngine;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_CloudMachineLearningEngine_GoogleRpcStatus');

View File

@@ -0,0 +1,122 @@
<?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\CloudMachineLearningEngine;
class GoogleTypeExpr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeExpr::class, 'Google_Service_CloudMachineLearningEngine_GoogleTypeExpr');

View File

@@ -0,0 +1,89 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleApiHttpBody;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ExplainRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1GetConfigResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1PredictRequest;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $projects = $mlService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Performs explanation on the data in the request. {% dynamic include "/ai-
* platform/includes/___explain-request" %} (projects.explain)
*
* @param string $name Required. The resource name of a model or a version.
* Authorization: requires the `predict` permission on the specified resource.
* @param GoogleCloudMlV1ExplainRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleApiHttpBody
* @throws \Google\Service\Exception
*/
public function explain($name, GoogleCloudMlV1ExplainRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('explain', [$params], GoogleApiHttpBody::class);
}
/**
* Get the service account information associated with your project. You need
* this information in order to grant the service account permissions 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.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1GetConfigResponse
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], GoogleCloudMlV1GetConfigResponse::class);
}
/**
* Performs online prediction on the data in the request. {% dynamic include
* "/ai-platform/includes/___predict-request" %} (projects.predict)
*
* @param string $name Required. The resource name of a model or a version.
* Authorization: requires the `predict` permission on the specified resource.
* @param GoogleCloudMlV1PredictRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleApiHttpBody
* @throws \Google\Service\Exception
*/
public function predict($name, GoogleCloudMlV1PredictRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('predict', [$params], GoogleApiHttpBody::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudMachineLearningEngine_Resource_Projects');

View File

@@ -0,0 +1,218 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1CancelJobRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Job;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListJobsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1Policy;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1SetIamPolicyRequest;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
/**
* The "jobs" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $jobs = $mlService->projects_jobs;
* </code>
*/
class ProjectsJobs extends \Google\Service\Resource
{
/**
* Cancels a running job. (jobs.cancel)
*
* @param string $name Required. The name of the job to cancel.
* @param GoogleCloudMlV1CancelJobRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleCloudMlV1CancelJobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* Creates a training or a batch prediction job. (jobs.create)
*
* @param string $parent Required. The project name.
* @param GoogleCloudMlV1Job $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Job
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudMlV1Job $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudMlV1Job::class);
}
/**
* Describes a job. (jobs.get)
*
* @param string $name Required. The name of the job to get the description of.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Job
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Job::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (jobs.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 the jobs in the project. If there are no jobs that match the request
* parameters, the list request returns an empty response body: {}.
* (jobs.listProjectsJobs)
*
* @param string $parent Required. The name of the project for which to list
* jobs.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the subset of jobs to retrieve.
* You can filter on the value of one or more attributes of the job object. For
* example, retrieve jobs with a job identifier that starts with 'census':
* gcloud ai-platform jobs list --filter='jobId:census*' List all failed jobs
* with names that start with 'rnn': gcloud ai-platform jobs list
* --filter='jobId:rnn* AND state:FAILED' For more examples, see the guide to
* monitoring jobs.
* @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 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 GoogleCloudMlV1ListJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListJobsResponse::class);
}
/**
* Updates a specific job resource. Currently the only supported fields to
* update are `labels`. (jobs.patch)
*
* @param string $name Required. The job name.
* @param GoogleCloudMlV1Job $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Specifies the path, relative to `Job`,
* of the field to update. To adopt etag mechanism, include `etag` field in the
* mask, and include the `etag` value in your job resource. For example, to
* change the labels of a job, the `update_mask` parameter would be specified as
* `labels`, `etag`, and the `PATCH` request body would specify the new value,
* as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag":
* "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the
* server, the labels of the job will be replaced with the given ones, and the
* server end `etag` will be recalculated. Currently the only supported update
* masks are `labels` and `etag`.
* @return GoogleCloudMlV1Job
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudMlV1Job $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudMlV1Job::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (jobs.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. (jobs.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsJobs::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsJobs');

View File

@@ -0,0 +1,76 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListLocationsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $locations = $mlService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Get the complete list of CMLE capabilities in a location, along with their
* location-specific properties. (locations.get)
*
* @param string $name Required. The name of the location.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Location::class);
}
/**
* List all locations that provides at least one type of CMLE capability.
* (locations.listProjectsLocations)
*
* @param string $parent Required. The name of the project for which available
* locations are to be listed (since some locations might be whitelisted for
* specific projects).
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of locations 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 GoogleCloudMlV1ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocations');

View File

@@ -0,0 +1,74 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation;
use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $operations = $mlService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations 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 GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,100 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListStudiesResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Study;
use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
/**
* The "studies" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $studies = $mlService->projects_locations_studies;
* </code>
*/
class ProjectsLocationsStudies extends \Google\Service\Resource
{
/**
* Creates a study. (studies.create)
*
* @param string $parent Required. The project and location that the study
* belongs to. Format: projects/{project}/locations/{location}
* @param GoogleCloudMlV1Study $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string studyId Required. The ID to use for the study, which will
* become the final component of the study's resource name.
* @return GoogleCloudMlV1Study
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudMlV1Study $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudMlV1Study::class);
}
/**
* Deletes a study. (studies.delete)
*
* @param string $name Required. The study name.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a study. (studies.get)
*
* @param string $name Required. The study name.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Study
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Study::class);
}
/**
* Lists all the studies in a region for an associated project.
* (studies.listProjectsLocationsStudies)
*
* @param string $parent Required. The project and location that the study
* belongs to. Format: projects/{project}/locations/{location}
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1ListStudiesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsStudies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListStudiesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsStudies::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocationsStudies');

View File

@@ -0,0 +1,207 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1AddTrialMeasurementRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1CompleteTrialRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListOptimalTrialsRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListOptimalTrialsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListTrialsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1StopTrialRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1SuggestTrialsRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Trial;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation;
use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
/**
* The "trials" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $trials = $mlService->projects_locations_studies_trials;
* </code>
*/
class ProjectsLocationsStudiesTrials extends \Google\Service\Resource
{
/**
* Adds a measurement of the objective metrics to a trial. This measurement is
* assumed to have been taken before the trial is complete.
* (trials.addMeasurement)
*
* @param string $name Required. The trial name.
* @param GoogleCloudMlV1AddTrialMeasurementRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Trial
* @throws \Google\Service\Exception
*/
public function addMeasurement($name, GoogleCloudMlV1AddTrialMeasurementRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addMeasurement', [$params], GoogleCloudMlV1Trial::class);
}
/**
* Checks whether a trial should stop or not. Returns a long-running operation.
* When the operation is successful, it will contain a
* CheckTrialEarlyStoppingStateResponse. (trials.checkEarlyStoppingState)
*
* @param string $name Required. The trial name.
* @param GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function checkEarlyStoppingState($name, GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkEarlyStoppingState', [$params], GoogleLongrunningOperation::class);
}
/**
* Marks a trial as complete. (trials.complete)
*
* @param string $name Required. The trial name.metat
* @param GoogleCloudMlV1CompleteTrialRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Trial
* @throws \Google\Service\Exception
*/
public function complete($name, GoogleCloudMlV1CompleteTrialRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('complete', [$params], GoogleCloudMlV1Trial::class);
}
/**
* Adds a user provided trial to a study. (trials.create)
*
* @param string $parent Required. The name of the study that the trial belongs
* to.
* @param GoogleCloudMlV1Trial $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Trial
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudMlV1Trial $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudMlV1Trial::class);
}
/**
* Deletes a trial. (trials.delete)
*
* @param string $name Required. The trial name.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a trial. (trials.get)
*
* @param string $name Required. The trial name.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Trial
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Trial::class);
}
/**
* Lists the trials associated with a study.
* (trials.listProjectsLocationsStudiesTrials)
*
* @param string $parent Required. The name of the study that the trial belongs
* to.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1ListTrialsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsStudiesTrials($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListTrialsResponse::class);
}
/**
* Lists the pareto-optimal trials for multi-objective study or the optimal
* trials for single-objective study. The definition of pareto-optimal can be
* checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency
* (trials.listOptimalTrials)
*
* @param string $parent Required. The name of the study that the pareto-optimal
* trial belongs to.
* @param GoogleCloudMlV1ListOptimalTrialsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1ListOptimalTrialsResponse
* @throws \Google\Service\Exception
*/
public function listOptimalTrials($parent, GoogleCloudMlV1ListOptimalTrialsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('listOptimalTrials', [$params], GoogleCloudMlV1ListOptimalTrialsResponse::class);
}
/**
* Stops a trial. (trials.stop)
*
* @param string $name Required. The trial name.
* @param GoogleCloudMlV1StopTrialRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Trial
* @throws \Google\Service\Exception
*/
public function stop($name, GoogleCloudMlV1StopTrialRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], GoogleCloudMlV1Trial::class);
}
/**
* Adds one or more trials to a study, with parameter values suggested by AI
* Platform Vizier. Returns a long-running operation associated with the
* generation of trial suggestions. When this long-running operation succeeds,
* it will contain a SuggestTrialsResponse. (trials.suggest)
*
* @param string $parent Required. The name of the study that the trial belongs
* to.
* @param GoogleCloudMlV1SuggestTrialsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function suggest($parent, GoogleCloudMlV1SuggestTrialsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('suggest', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsStudiesTrials::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocationsStudiesTrials');

View File

@@ -0,0 +1,215 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListModelsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Model;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1Policy;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1SetIamPolicyRequest;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation;
/**
* The "models" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $models = $mlService->projects_models;
* </code>
*/
class 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. (models.create)
*
* @param string $parent Required. The project name.
* @param GoogleCloudMlV1Model $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Model
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudMlV1Model $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudMlV1Model::class);
}
/**
* 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.
* (models.delete)
*
* @param string $name Required. The name of the 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);
}
/**
* 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.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Model
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Model::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 the models in a project. Each project can contain multiple models, and
* each model can have multiple versions. If there are no models that match the
* request parameters, the list request returns an empty response body: {}.
* (models.listProjectsModels)
*
* @param string $parent Required. The name of the project whose models are to
* be listed.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the subset of models to
* retrieve.
* @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 GoogleCloudMlV1ListModelsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsModels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListModelsResponse::class);
}
/**
* Updates a specific model resource. Currently the only supported fields to
* update are `description` and `default_version.name`. (models.patch)
*
* @param string $name Required. The project name.
* @param GoogleCloudMlV1Model $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Specifies the path, relative to
* `Model`, of the field to update. For example, to change the description of a
* model to "foo" and set its default version to "version_1", the `update_mask`
* parameter would be specified as `description`, `default_version.name`, and
* the `PATCH` request body would specify the new value, as follows: {
* "description": "foo", "defaultVersion": { "name":"version_1" } } Currently
* the supported update masks are `description` and `default_version.name`.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudMlV1Model $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsModels::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsModels');

View File

@@ -0,0 +1,172 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListVersionsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1SetDefaultVersionRequest;
use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Version;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $versions = $mlService->projects_models_versions;
* </code>
*/
class 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.setDefault.
* (versions.create)
*
* @param string $parent Required. The name of the model.
* @param GoogleCloudMlV1Version $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudMlV1Version $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* 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.
* @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);
}
/**
* Gets information about a model version. Models can have multiple versions.
* You can call 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.
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Version
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudMlV1Version::class);
}
/**
* Gets basic information about all the versions of a model. If you expect that
* a model has many 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). If there are no versions that match the request parameters,
* the list request returns an empty response body: {}.
* (versions.listProjectsModelsVersions)
*
* @param string $parent Required. The name of the model for which to list the
* version.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the subset of versions to
* retrieve.
* @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 GoogleCloudMlV1ListVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsModelsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudMlV1ListVersionsResponse::class);
}
/**
* Updates the specified Version resource. Currently the only update-able fields
* are `description`, `requestLoggingConfig`, `autoScaling.minNodes`, and
* `manualScaling.nodes`. (versions.patch)
*
* @param string $name Required. The name of the model.
* @param GoogleCloudMlV1Version $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Specifies the path, relative to
* `Version`, of the field to update. Must be present and non-empty. For
* example, to change the description of a version to "foo", the `update_mask`
* parameter would be specified as `description`, and the `PATCH` request body
* would specify the new value, as follows: ``` { "description": "foo" } ```
* Currently the only supported update mask fields are `description`,
* `requestLoggingConfig`, `autoScaling.minNodes`, and `manualScaling.nodes`.
* However, you can only update `manualScaling.nodes` if the version uses a
* [Compute Engine (N1) machine type](/ml-engine/docs/machine-types-online-
* prediction).
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudMlV1Version $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleLongrunningOperation::class);
}
/**
* 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
* projects.models.versions.list.
* @param GoogleCloudMlV1SetDefaultVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudMlV1Version
* @throws \Google\Service\Exception
*/
public function setDefault($name, GoogleCloudMlV1SetDefaultVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setDefault', [$params], GoogleCloudMlV1Version::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsModelsVersions::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsModelsVersions');

View File

@@ -0,0 +1,95 @@
<?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\CloudMachineLearningEngine\Resource;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningListOperationsResponse;
use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation;
use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $mlService = new Google\Service\CloudMachineLearningEngine(...);
* $operations = $mlService->projects_operations;
* </code>
*/
class 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 GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* 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 GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsOperations::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsOperations');