📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 GoogleApiHttpBody.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AcceleratorConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AddTrialMeasurementRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AutoScaling.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AutomatedStoppingConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1BuiltInAlgorithmOutput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1CancelJobRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Capability.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1CompleteTrialRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Config.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ContainerPort.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ContainerSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1DiskConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1EncryptionConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1EnvVar.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ExplainRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ExplanationConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1GetConfigResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1HyperparameterOutput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1HyperparameterSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1IntegratedGradientsAttribution.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Job.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListJobsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListLocationsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListModelsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListOptimalTrialsRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListOptimalTrialsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListStudiesResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListTrialsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ListVersionsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Location.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ManualScaling.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Measurement.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1MeasurementMetric.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1MetricSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Model.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ParameterSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1PredictRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1PredictionInput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1PredictionOutput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1ReplicaConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1RequestLoggingConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1RouteMap.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1SampledShapleyAttribution.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Scheduling.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1SetDefaultVersionRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StopTrialRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Study.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfig.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigMetricSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1SuggestTrialsMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1SuggestTrialsRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1SuggestTrialsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1TrainingInput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1TrainingOutput.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Trial.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1TrialParameter.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1Version.php
▶ Open 📄 View Source
🐘 GoogleCloudMlV1XraiAttribution.php
▶ Open 📄 View Source
🐘 GoogleIamV1AuditConfig.php
▶ Open 📄 View Source
🐘 GoogleIamV1AuditLogConfig.php
▶ Open 📄 View Source
🐘 GoogleIamV1Binding.php
▶ Open 📄 View Source
🐘 GoogleIamV1Policy.php
▶ Open 📄 View Source
🐘 GoogleIamV1SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 GoogleIamV1TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 GoogleIamV1TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 GoogleLongrunningListOperationsResponse.php
▶ Open 📄 View Source
🐘 GoogleLongrunningOperation.php
▶ Open 📄 View Source
🐘 GoogleProtobufEmpty.php
▶ Open 📄 View Source
🐘 GoogleRpcStatus.php
▶ Open 📄 View Source
🐘 GoogleTypeExpr.php
▶ Open 📄 View Source

📄 Source: GoogleCloudMlV1ContainerSpec.php

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

namespace Google\Service\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');
← Back